Examples of LoggregatorListener


Examples of org.eclipse.orion.server.cf.loggregator.LoggregatorListener

            return getInfoStatus;

          logger.debug(NLS.bind("Cloud info: {0}", getInfoStatus.getJsonData().toString()));

          String loggingEndpoint = getInfoStatus.getJsonData().getString("logging_endpoint");
          LoggregatorListener listener = new LoggregatorListener();
          new LoggregatorClient().start(target, loggingEndpoint + "/dump/?app=" + app.getAppJSON().get("guid"), listener);

          JSONObject messages = new JSONObject();
          messages.put("Messages", listener.getMessagesJSON());

          return new ServerStatus(IStatus.OK, HttpServletResponse.SC_OK, null, messages, null);
        } catch (Exception e) {
          String msg = NLS.bind("Failed to handle request for {0}", pathString); //$NON-NLS-1$
          ServerStatus status = new ServerStatus(IStatus.ERROR, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, msg, e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.