|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.protomatter.syslog.BasicLogger
util.RemoteLogServer
public class RemoteLogServer
A logger that sends messages to remote receivers. Receivers may be added
or removed with the addRmiLogListener(com.protomatter.syslog.RemoteLogReceiver) and
removeRmiLogListener(com.protomatter.syslog.RemoteLogReceiver) at any time within the livetime of this
logger. This differs from the original impleemntation of RemoteLog
in the protomatter package, as this allowed easy adding of remote loggers
only on construct time.
| Field Summary | |
|---|---|
private String |
bindname
The binding name of the remote log server. |
private static int |
EXPORTPORT
The port where we want to export. |
private List<com.protomatter.syslog.RemoteLogReceiver> |
receiver
A list of RemoteLogReceiver instances that should be logged. |
| Fields inherited from class com.protomatter.syslog.BasicLogger |
|---|
formatter, policy, realPolicy |
| Constructor Summary | |
|---|---|
RemoteLogServer(String servername)
You will need to call the configure() method if you use this constructor. |
|
| Method Summary | |
|---|---|
void |
addRmiLogListener(com.protomatter.syslog.RemoteLogReceiver ear)
Adds a remote log receiver to this server. |
boolean |
bindToRegistry()
Binds this receiver's casting capabilities to a running registry. |
void |
exit()
Unbinds this server from the registry. |
void |
flush()
Does nothing. |
boolean |
isValid()
Returns true. |
void |
log(com.protomatter.syslog.SyslogMessage sm)
Log the given message to all bound listeners. |
void |
removeRmiLogListener(com.protomatter.syslog.RemoteLogReceiver ear)
Removes a remote log receiver to this server. |
void |
shutdown()
Prepare for shutdown and call the exit method. |
boolean |
unbindFromRegistry()
Unbinds this receiver torso from the registry. |
| Methods inherited from class com.protomatter.syslog.BasicLogger |
|---|
formatLogEntry, getName, getPolicy, getTextFormatter, isSuspended, mightLog, resetDateFormat, resume, setName, setPolicy, setTextFormatter, shouldLog, suspend |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private List<com.protomatter.syslog.RemoteLogReceiver> receiver
private String bindname
private static final int EXPORTPORT
| Constructor Detail |
|---|
public RemoteLogServer(String servername)
| Method Detail |
|---|
public final void log(com.protomatter.syslog.SyslogMessage sm)
log in interface com.protomatter.syslog.Sysloggerlog in class com.protomatter.syslog.BasicLoggerpublic void shutdown()
shutdown in interface com.protomatter.syslog.Sysloggershutdown in class com.protomatter.syslog.BasicLoggerpublic void flush()
flush in interface com.protomatter.syslog.Sysloggerflush in class com.protomatter.syslog.BasicLoggerpublic void exit()
exit in interface ExitCleaning
public boolean isValid()
throws RemoteException
isValid in interface RmiCasterRemoteException
public boolean bindToRegistry()
throws RemoteException
bindToRegistry in interface RmiCasterRemoteException
public boolean unbindFromRegistry()
throws RemoteException
unbindFromRegistry in interface RmiCasterRemoteException
public void addRmiLogListener(com.protomatter.syslog.RemoteLogReceiver ear)
throws RemoteException
addRmiLogListener in interface RmiLogCasterRemoteException
public void removeRmiLogListener(com.protomatter.syslog.RemoteLogReceiver ear)
throws RemoteException
removeRmiLogListener in interface RmiLogCasterRemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||