|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.jmx.server.LogArchiverHelper
public class LogArchiverHelper
Helper class for return log and console messages from an OddjobMBean.
Constructor Summary | |
---|---|
LogArchiverHelper()
|
Method Summary | |
---|---|
static String |
consoleId(Object component,
ConsoleArchiver archiver)
Get the console id. |
static LogEvent[] |
retrieveConsoleEvents(Object component,
ConsoleArchiver archiver,
Long last,
Integer max)
Get an array of the latest console events. |
static LogEvent[] |
retrieveLogEvents(Object component,
LogArchiver archiver,
Long last,
Integer max)
Get an array of the latest log events. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogArchiverHelper()
Method Detail |
---|
public static LogEvent[] retrieveLogEvents(Object component, LogArchiver archiver, Long last, Integer max)
component
- The componet to get log events for.archiver
- The LogArchiver.last
- The sequence of the last event required.max
- The total number of events.
public static String consoleId(Object component, ConsoleArchiver archiver)
component
- The component.archiver
- The ConsoleArchvier.
public static LogEvent[] retrieveConsoleEvents(Object component, ConsoleArchiver archiver, Long last, Integer max)
component
- The component.archiver
- The ConsoleArchvier.last
- The last event number.max
- The maximum events required.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |