Package org.eclipse.orion.server.cf.objects

Examples of org.eclipse.orion.server.cf.objects.Log


      }

      String response = getInstanceLogStatus.getJsonData().optString("response");

      JSONObject jsonResp = new JSONObject();
      Log log = new Log(appName, logName);
      log.setContents(response);
      log.setLocation(new URI(baseRequestLocation));
      jsonResp.put(instanceNo, log.toJSON());

      return new ServerStatus(Status.OK_STATUS, HttpServletResponse.SC_OK, jsonResp);
    } catch (Exception e) {
      String msg = NLS.bind("An error occured when performing operation {0}", commandName); //$NON-NLS-1$
      logger.error(msg, e);
View Full Code Here


        String logFileEntry = logFiles[i];
        String[] logFileEntryParts = logFileEntry.split("\\s+");
        if (logFileEntryParts.length != 2) {
          continue;
        }
        Log log = new Log(appName, logFileEntryParts[0]);
        log.setLocation(baseUri.resolve(log.getName()));
        log.setSize(logFileEntryParts[1]);
        logsJSON.put(log.toJSON());
      }
    } catch (Exception e) {
      String msg = NLS.bind("An error occured when performing operation {0}", commandName); //$NON-NLS-1$
      logger.error(msg, e);
      return new ServerStatus(IStatus.ERROR, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, msg, e);
View Full Code Here

TOP

Related Classes of org.eclipse.orion.server.cf.objects.Log

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.