grace.log
Interface Distributer
- All Known Implementing Classes:
- Log
- public abstract interface Distributer
- extends java.rmi.Remote
Field Summary |
static java.lang.String |
rcsid
|
Method Summary |
void |
addHandler(Handler handler)
|
void |
addHandler(Handler handler,
java.lang.String event)
|
void |
distribute(Event event)
|
void |
enableEventType(java.lang.String eventType,
boolean enabled)
Enables or disables the logging of the given event type. |
boolean |
eventTypeEnabled(java.lang.String eventType)
Indicates that the given eventType is will be distributed to
the Handlers. |
java.lang.String |
getName()
The name of this Distributer uniquely identifies it among all
Distributers on the internet. |
void |
setName(java.lang.String name)
|
rcsid
public static final java.lang.String rcsid
getName
public java.lang.String getName()
throws java.rmi.RemoteException
- The name of this Distributer uniquely identifies it among all
Distributers on the internet. It defaults to the VMID plus a
sequence number unless the name is overridden by the set name
function.
setName
public void setName(java.lang.String name)
throws java.rmi.RemoteException
distribute
public void distribute(Event event)
throws java.rmi.RemoteException
addHandler
public void addHandler(Handler handler)
throws java.rmi.RemoteException
addHandler
public void addHandler(Handler handler,
java.lang.String event)
throws java.rmi.RemoteException
enableEventType
public void enableEventType(java.lang.String eventType,
boolean enabled)
throws java.rmi.RemoteException
- Enables or disables the logging of the given event type. Can
be called at any point during the execution of the program.
eventTypeEnabled
public boolean eventTypeEnabled(java.lang.String eventType)
throws java.rmi.RemoteException
- Indicates that the given eventType is will be distributed to
the Handlers.