KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > oddjob > jmx > client > LogPollable


1 package org.oddjob.jmx.client;
2
3 import org.oddjob.logging.LogEvent;
4
5 /**
6  * An inteface for the proxy to implement so that it can be polled for log messaages.
7  *
8  * @author Rob Gordon
9  */

10 public interface LogPollable {
11
12     public String JavaDoc url();
13     
14     public LogEvent[] retrieveLogEvents(long from, int max);
15     
16     public LogEvent[] retrieveConsoleEvents(long from, int max);
17
18     /**
19      * Get the consoleId which has been saved from the remote OddjobMBean. The console
20      * identifies the console on a remote server. The console will frequently be
21      * shared between components in a single JVM and so we don't want to get the same
22      * messages on a component by component bases.
23      *
24      * @return The consoleId.
25      */

26     public String JavaDoc consoleId();
27 }
28
Popular Tags