Package com.sun.appserv.management.ext.logging

Examples of com.sun.appserv.management.ext.logging.Logging


            @HandlerOutput(name="hasResult", type=Boolean.class)}
     )
     public static void getErrorInfoList(HandlerContext handlerCtx){
        String instanceName = (String )handlerCtx.getInputValue("instanceName");
        Map infoMap[] = null;
        Logging logging = getLoggingBean(instanceName);
       
        if (logging != null)
            infoMap = logging.getErrorInfo();
       
       
        List result = new ArrayList();
       
        if (infoMap == null || infoMap.length <= 0){
View Full Code Here


     )
     public static void getErrorLoggersList(HandlerContext handlerCtx){
        String instanceName = (String )handlerCtx.getInputValue("instanceName");
        String ts = (String )handlerCtx.getInputValue("timeStamp");
        Long timeStamp = Long.parseLong(ts);
        Logging logging = getLoggingBean(instanceName);
        List result = new ArrayList();
       
        if (logging == null ){
            handlerCtx.setOutputValue("result", result);
            handlerCtx.setOutputValue("hasResults", false);
            handlerCtx.setOutputValue("hasSevereChart", false);
            handlerCtx.setOutputValue("hasWarningChart", false);
            return;
        }
       
        Map<String, Integer> warningMap = logging.getErrorDistribution(timeStamp, ""+Level.WARNING);
        Map<String, Integer> severeMap = logging.getErrorDistribution(timeStamp, ""+Level.SEVERE);
        Map<String, Integer[]>  combinedMap = new HashMap();
        String demo = (String )handlerCtx.getInputValue("demo");
       
        // combine date from both map
       
View Full Code Here

      query will begin at the next available index.
   */
      public LogQueryResult
  query()
  {
      final Logging   logging = getLogging();
      assert( logging != null );
     
        final LogQueryResult result = logging.queryServerLog(
            mLogFile,
            mStartIndex,
            mSearchForward,
            mMaxRecords,
            mStartTime,
View Full Code Here

      query will begin at the next available index.
   */
      public LogQueryResult
  query()
  {
      final Logging   logging = getLogging();
      assert( logging != null );
     
        final LogQueryResult result = logging.queryServerLog(
            mLogFile,
            mStartIndex,
            mSearchForward,
            mMaxRecords,
            mStartTime,
View Full Code Here

TOP

Related Classes of com.sun.appserv.management.ext.logging.Logging

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.