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

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


          final Long      fromTime  = now() - (24 * 60 * 60 * 1000);
          final Long      toTime    = now();
          final Set<String> modules   = LogModuleNames.ALL_NAMES; // all
          final List<Attribute>    attrs   = null;
 
          final LogQueryResult result  = logging.queryServerLog(
              filename,
              startRecord,
              searchForward,
              requestedCount,
              fromTime,
              toTime,
              Level.WARNING.toString(),
              modules,
              attrs );
        
         final String[]           fieldNames  = result.getFieldNames();
        
         for( final LogQueryEntry entry : result.getEntries() )
         {
              final String    messageID   = entry.getMessageID();
             
              final String[]  causes  = logging.getDiagnosticCauses( messageID );

View Full Code Here


      for( final Logging logging : loggings )
      {
          assert( logging != null );
          final StatefulLoggingHelper helper  = createHelper(logging);
         
          final LogQueryResult    result  = helper.query();
          validateResult( result );
      }
     
      printElapsed( "testQuery", start);
  }
View Full Code Here

   
   
        public void
    testEquals()
    {
        final LogQueryResult d   = createDummy();
       
        assertEquals( d, d );
       
        final LogQueryResult dCopy  =
            new LogQueryResultImpl( d.getFieldNames(), d.getEntries() );
      
        assertEquals( d, dCopy );
        assertEquals( dCopy, d );
    }
View Full Code Here

          Level.WARNING.toString(),
          levelOnly,
          listOfModules,
          props );
    
     final LogQueryResult result  = convertQueryResult( attrs );
    
     final LogQueryEntry[]    entries = result.getEntries();
     assert( entries.length != 0 );
    
     for( final LogQueryEntry entry : entries )
     {
          final String    messageID   = entry.getMessageID();
View Full Code Here

      final Set<Logging>  loggings    = getAllLogging();
     
      for( final Logging logging : loggings )
      {
          final LoggingHelper helper  = createHelper( logging );
          final LogQueryResult    result  =
              helper.queryServerLog( LOWEST_SUPPORTED_QUERY_LEVEL, "EJB" );
          validateResult( result );
      }
  }
View Full Code Here

     
      for( final Logging logging : loggings )
      {
          final LoggingHelper helper  = createHelper( logging );
         
          final LogQueryResult    result  =
              helper.queryServerLog( LOWEST_SUPPORTED_QUERY_LEVEL,
              LogModuleNames.ALL_NAMES );
          validateResult( result );
      }
  }
View Full Code Here

     
      for( final Logging logging : loggings )
      {
          final LoggingHelper helper  = createHelper( logging );
         
          final LogQueryResult    result  =
              helper.queryServerLog( LOWEST_SUPPORTED_QUERY_LEVEL );
          validateResult( result );
      }
  }
View Full Code Here

     
      for( final Logging logging : loggings )
      {
          final LoggingHelper helper  = createHelper( logging );
         
          final LogQueryResult    result  =  helper.queryAllCurrent();
          validateResult( result );
      }
  }
View Full Code Here

     
      for( final Logging logging : loggings )
      {
          final LoggingHelper helper  = createHelper( logging );
         
          final LogQueryResult    result  =
              helper.queryServerLogRecent( HOUR_MILLIS );
          validateResult( result );
      }
  }
View Full Code Here

     
      for( final Logging logging : loggings )
      {
          final LoggingHelper helper  = createHelper( logging );
         
          final LogQueryResult    result  =
              helper.queryServerLogRecent(
                  HOUR_MILLIS, LogModuleNames.ALL_NAMES );
          validateResult( result );
       }
  }
View Full Code Here

TOP

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

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.