Package org.cloudfoundry.client.lib

Examples of org.cloudfoundry.client.lib.CloudOperationException


    public void onClose(Session session, CloseReason closeReason) {
        if (closeReason.getCloseCode() == CloseReason.CloseCodes.NORMAL_CLOSURE
            || closeReason.getCloseCode() == CloseReason.CloseCodes.GOING_AWAY) {
            listener.onComplete();
        } else {
            listener.onError(new CloudOperationException("Loggregrator connection closed unexpectedly " + closeReason));
        }
    }
View Full Code Here


      WebSocketContainer container = ContainerProvider.getWebSocketContainer();
      ClientEndpointConfig config = buildClientConfig(configurator);
      Session session = container.connectToServer(new LoggregatorEndpoint(listener), config, loggregatorUri);
      return new StreamingLogTokenImpl(session);
    } catch (DeploymentException e) {
      throw new CloudOperationException(e);
    } catch (IOException e) {
      throw new CloudOperationException(e);
    }
  }
View Full Code Here

      SSLContext sslContext = SSLContext.getInstance("TLS");
      sslContext.init(null, trustManagers, null);

      return sslContext;
    } catch (NoSuchAlgorithmException e) {
      throw new CloudOperationException(e);
    } catch (KeyManagementException e) {
      throw new CloudOperationException(e);
    }
  }
View Full Code Here

TOP

Related Classes of org.cloudfoundry.client.lib.CloudOperationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.