|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
RASILogger defines the methods which are common to objects that wish to create RAS message and trace data. This interface is intended to be extended to include methods specific to the creation of message or trace data and should not be implemented directly.
An object which implements this interface may also wish to
implement RASIMaskChangeListener
.
Note: Classes which implement RASILogger
should, in their constructors, call the
addMessageEventClass
and
addTraceEventClass
methods to register the
RASIEvent
classes which the logger uses.
This will allow a graphical program to query the logger
to determine the supported RAS events. The events, in turn, can be
queried to determine their set of supported event types.
RASIMessageLogger
,
RASITraceLogger
Method Summary | |
---|---|
void |
addHandler(RASIHandler handler)
Registers a RAS handler with this logger. |
void |
fireRASEvent(RASIEvent event)
Sends a RASIEvent to all handlers which will process
the event. |
java.lang.String |
getClient()
Gets the name of the client which is associated with this logger. |
java.util.Hashtable |
getConfig()
Gets the configuration of this object. |
java.util.Enumeration |
getHandlers()
Gets all of the handlers associated with this logger. |
java.lang.String |
getServer()
Gets the name of the server which is associated with this logger. |
boolean |
isLoggable(long type)
Determines if a log entry will be processed by the logger and any of the handlers. |
boolean |
isLogging()
Determines if a logger is logging data ("on") or not ("off"). |
boolean |
isSynchronous()
Determines if synchronous logging is in effect. |
void |
removeHandler(RASIHandler handler)
Removes a RAS handler from this logger. |
void |
setClient(java.lang.String name)
Sets the name of the client which is associated with this logger. |
void |
setConfig(java.util.Hashtable ht)
Sets the configuration of this object. |
void |
setLogging(boolean flag)
Sets a flag that indicates whether the logger is logging data ("on") or not ("off"). |
void |
setServer(java.lang.String name)
Sets the name of the server which is associated with this logger. |
void |
setSynchronous(boolean flag)
Sets a flag that tells the logger whether to log data synchronously. |
Methods inherited from interface com.ibm.ras.RASIMaskChangeGenerator |
---|
addMaskChangeListener, addMessageEventClass, addTraceEventClass, fireMaskChangedEvent, getMaskChangeListeners, getMessageEventClasses, getMessageMask, getTraceEventClasses, getTraceMask, removeMaskChangeListener, removeMessageEventClass, removeTraceEventClass, setMessageMask, setTraceMask |
Methods inherited from interface com.ibm.ras.RASIObject |
---|
getDescription, getGroup, getName, setDescription, setName |
Method Detail |
public java.util.Hashtable getConfig()
getConfig
in interface RASIMaskChangeGenerator
All values are Strings. The parent and extensions of this object may add additional keys.
public void setConfig(java.util.Hashtable ht)
setConfig
in interface RASIMaskChangeGenerator
ht
- A Hashtable containing the configuration.
This object searches for the following keys:
All values are Strings. If a key is not found, an internal default for that element is set instead. The parent and extensions of this object may use additional keys.
public java.lang.String getClient()
public void setClient(java.lang.String name)
name
- The client name.public java.lang.String getServer()
public void setServer(java.lang.String name)
name
- The server name.public void addHandler(RASIHandler handler)
handler
- A RAS handler.public void removeHandler(RASIHandler handler)
handler
- A RAS handler.public java.util.Enumeration getHandlers()
public boolean isSynchronous()
public void setSynchronous(boolean flag)
flag
- A boolean set true
for
synchronous logging and false otherwise.public boolean isLogging()
public void setLogging(boolean flag)
flag
- true when the logger is "on" and false
otherwise.public boolean isLoggable(long type)
if (isLoggable(RASITraceEvent.TYPE_PUBLIC) trace(RASITraceEvent.TYPE_PUBLIC...);
type
- The type of the log entry. The set of possible values is
defined by the RASIMessageEvent
or
RASITraceEvent
TYPE_XXXX
constants.public void fireRASEvent(RASIEvent event)
RASIEvent
to all handlers which will process
the event. A null event is ignored.event
- The event to be sent.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |