Methods Summary |
---|
public com.sun.appserv.management.helper.LoggingHelper | createHelper(com.sun.appserv.management.ext.logging.Logging logging)
return new LoggingHelper( logging );
|
final java.util.Set | getAllLogging()
return getQueryMgr().queryJ2EETypeSet( XTypes.LOGGING );
|
public void | testQueryAll()
final Set<Logging> loggings = getAllLogging();
for( final Logging logging : loggings )
{
final LoggingHelper helper = createHelper( logging );
final LogQueryResult[] results = helper.queryAll();
for( final LogQueryResult result : results )
{
validateResult( result );
}
}
|
public void | testQueryAllCurrent()
final Set<Logging> loggings = getAllLogging();
for( final Logging logging : loggings )
{
final LoggingHelper helper = createHelper( logging );
final LogQueryResult result = helper.queryAllCurrent();
validateResult( result );
}
|
public void | testQueryAllInFile()
final Set<Logging> loggings = getAllLogging();
for( final Logging logging : loggings )
{
final LoggingHelper helper = createHelper( logging );
final String[] names = logging.getLogFileNames( SERVER_KEY );
for( final String name : names )
{
final LogQueryResult result = helper.queryAllInFile( name );
validateResult( result );
}
}
|
public void | testQueryServerLogLevel()
final Set<Logging> loggings = getAllLogging();
for( final Logging logging : loggings )
{
final LoggingHelper helper = createHelper( logging );
final LogQueryResult result =
helper.queryServerLog( LOWEST_SUPPORTED_QUERY_LEVEL );
validateResult( result );
}
|
public void | testQueryServerLogLevelAndModules()
final Set<Logging> loggings = getAllLogging();
for( final Logging logging : loggings )
{
final LoggingHelper helper = createHelper( logging );
final LogQueryResult result =
helper.queryServerLog( LOWEST_SUPPORTED_QUERY_LEVEL,
LogModuleNames.ALL_NAMES );
validateResult( result );
}
|
public void | testQueryServerLogRecent()
final Set<Logging> loggings = getAllLogging();
for( final Logging logging : loggings )
{
final LoggingHelper helper = createHelper( logging );
final LogQueryResult result =
helper.queryServerLogRecent( HOUR_MILLIS );
validateResult( result );
}
|
public void | testQueryServerLogRecentWithModules()
final Set<Logging> loggings = getAllLogging();
for( final Logging logging : loggings )
{
final LoggingHelper helper = createHelper( logging );
final LogQueryResult result =
helper.queryServerLogRecent(
HOUR_MILLIS, LogModuleNames.ALL_NAMES );
validateResult( result );
}
|
public void | testQueryServerLogSingle()
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 );
}
|
private void | validateResult(com.sun.appserv.management.ext.logging.LogQueryResult result)
assert( result != null );
assert( result.getFieldNames() != null );
assert( result.getEntries() != null );
|