|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--RemoteLogClient
A RemoteLogClient is the client-side implementation of the Log interface. It sends events to a RemoteLogServer which actually processes the given commands, storing and retrieving log records.
| Field Summary | |
static int |
PORT
The default port on which to make connections. |
| Constructor Summary | |
RemoteLogClient(java.net.InetAddress addr,
int port)
Constructor takes parameters for connecting to the RemoteLogServer. |
|
| Method Summary | |
void |
add(LogRecord record)
Adds a record to the log administered by the RemoteLogServer, assuming there is enough space in the server log, and that it matches the filter set by setFilter. |
LogRecord[] |
getAll(long windowMS)
Returns all of the records stored at the RemoteLogServer that have timestamps within the given window. |
void |
setFilter(java.lang.String pattern)
Sets the inclusion filter for the server. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int PORT
| Constructor Detail |
public RemoteLogClient(java.net.InetAddress addr,
int port)
addr - the address of the remote serverport - the TCP port the server is listening for connections on| Method Detail |
public void add(LogRecord record)
add in interface Logpublic LogRecord[] getAll(long windowMS)
getAll in interface LogwindowMS - all records whose timestamps are between
the current time and [windowMS] milliseconds ago will be
returned.public void setFilter(java.lang.String pattern)
setFilter in interface Logpattern - the pattern to set the filter to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||