|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.appserv.management.helper.Helper com.sun.appserv.management.helper.StatefulLoggingHelper
public final class StatefulLoggingHelper
Helper class for simplifying querying the log files.
Unlike LoggingHelper
, state is maintained from
call-to-call, which may be helpful in performing
repeated queries.
Some combinations of parameters may not be useful; it is up to the caller to ensure reasonable parameters.
A typical use for this helper would be periodic queries for new log records and/or retrieving log records in batches.
LoggingHelper
Field Summary |
---|
Fields inherited from class com.sun.appserv.management.helper.Helper |
---|
mBulkAccess, mDomainRoot, mQueryMgr |
Constructor Summary | |
---|---|
StatefulLoggingHelper(Logging logging)
Create with default parameters. |
Method Summary | |
---|---|
List<Attribute> |
getAttrs()
|
String |
getLogFile()
|
Logging |
getLogging()
|
String |
getLogLevel()
|
int |
getMaxRecords()
|
Set<String> |
getModules()
|
boolean |
getSearchForward()
|
long |
getStartIndex()
|
long |
getStartTime()
|
long |
getStopTime()
|
LogQueryResult |
query()
Query for LogRecords based upon the current settings. |
void |
setAttrs(List<Attribute> attrs)
|
void |
setLogFile(String name)
If the specified log file is different, the startIndex is reset appropriately. |
void |
setLogLevel(String logLevel)
|
void |
setMaxRecords(int maxRecords)
|
void |
setModule(String module)
|
void |
setModules(Set<String> modules)
|
void |
setSearchForward(boolean searchForward)
|
void |
setStartIndex(int startIndex)
|
void |
setStartTime(Long startTime)
|
void |
setStopTime(Long stopTime)
|
Methods inherited from class com.sun.appserv.management.helper.Helper |
---|
filterByAttributeValue, getDomainRoot, propsQuery, propsQuery |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StatefulLoggingHelper(Logging logging)
Method Detail |
---|
public Logging getLogging()
public String getLogFile()
public long getStartIndex()
public Set<String> getModules()
public List<Attribute> getAttrs()
public boolean getSearchForward()
public long getStartTime()
public long getStopTime()
public String getLogLevel()
public int getMaxRecords()
public void setLogFile(String name)
public void setStartIndex(int startIndex)
public void setLogLevel(String logLevel)
public void setMaxRecords(int maxRecords)
public void setModules(Set<String> modules)
public void setModule(String module)
public void setAttrs(List<Attribute> attrs)
public void setSearchForward(boolean searchForward)
public void setStartTime(Long startTime)
public void setStopTime(Long stopTime)
public LogQueryResult query()
|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2006 Sun Microsystems, Inc. All rights reserved.