|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
RASIMaskChangeGenerator defines the methods that must be implemented to control the message and trace masks and to generate mask change events. These events notify the listener that the state of the object's message or trace mask has changed.
RASIMaskChangeGenerator also provides methods that
allow it to know which RASIEvent
classes it can query
to learn the event type values that might be used in its message
or trace masks. This information can also be presented to a
graphical program to display these event types to an end user.
This interface defines methods common to RASILoggers
and RASIHandlers
. It should not be necessary to
implement this directly.
Method Summary | |
---|---|
void |
addMaskChangeListener(RASIMaskChangeListener listener)
Adds an object that wishes to be informed of changes in the message or trace mask configuration. |
void |
addMessageEventClass(java.lang.String name)
Adds the name of a message event class which this object uses. |
void |
addTraceEventClass(java.lang.String name)
Adds the name of a trace event class which this object uses. |
void |
fireMaskChangedEvent(RASMaskChangeEvent mc)
Tells all RASIMaskChangeListeners that
the message or trace mask has been changed. |
java.util.Hashtable |
getConfig()
Gets the configuration of this object. |
java.util.Enumeration |
getMaskChangeListeners()
Gets the set of objects that wish to be informed of changes in the message or trace mask configuration. |
java.util.Enumeration |
getMessageEventClasses()
Gets the set of message event classes which this object uses. |
long |
getMessageMask()
Gets the mask which defines the set of message types that will be processed. |
java.util.Enumeration |
getTraceEventClasses()
Gets the set of trace event classes which this object uses. |
long |
getTraceMask()
Gets the mask which defines the set of trace types that will be processed. |
void |
removeMaskChangeListener(RASIMaskChangeListener listener)
Removes an object from the list that wishes to be informed of changes in the message or trace mask configuration. |
void |
removeMessageEventClass(java.lang.String name)
Removes the name of a message event class from the list of classes which this object uses. |
void |
removeTraceEventClass(java.lang.String name)
Removes the name of a trace event class from the list of classes which this object uses. |
void |
setConfig(java.util.Hashtable ht)
Sets the configuration of this object. |
void |
setMessageMask(long mask)
Sets the mask which defines the set of message types that will be processed. |
void |
setTraceMask(long mask)
Sets the mask which defines the set of trace types that will be processed. |
Methods inherited from interface com.ibm.ras.RASIObject |
---|
getDescription, getGroup, getName, setDescription, setName |
Method Detail |
public java.util.Hashtable getConfig()
getConfig
in interface RASIObject
All values are Strings. Extensions to this object may add additional keys.
public void setConfig(java.util.Hashtable ht)
to initialize a RAS object.
It should not be necessary for an application to use this method.
- Specified by:
setConfig
in interface RASIObject
- Parameters:
ht
- A Hashtable containing the configuration.
This object searches for the following keys:
- messageMask
- The mask which selects the message types to be processed.
- traceMask
- The mask which selects the trace types to be processed.
- messageEventClasses
- A blank-delimited list of message event classes which this
object uses.
- traceEventClasses
- A blank-delimited list of trace event classes which this
object uses.
All values are Strings.
If a key is not found, an internal default for that element
is set instead.
Extensions to this object may add additional keys.
public long getMessageMask()
RASIMessageEvent
TYPE_XXXX constants.public void setMessageMask(long mask)
RASIMessageEvent
TYPE_XXXX constants.
The mask value is not validated against these types.mask
- The message mask.public long getTraceMask()
RASITraceEvent
TYPE_XXXX constants.public void setTraceMask(long mask)
RASITraceEvent
TYPE_XXXX constants.
The mask value is not validated against these types.mask
- The trace mask.public void addMaskChangeListener(RASIMaskChangeListener listener)
listener
- The mask change listener.public void removeMaskChangeListener(RASIMaskChangeListener listener)
listener
- The mask change listener.public java.util.Enumeration getMaskChangeListeners()
public void fireMaskChangedEvent(RASMaskChangeEvent mc)
RASIMaskChangeListeners
that
the message or trace mask has been changed.mc
- A mask change event, indicating what has changed.public void addMessageEventClass(java.lang.String name)
name
- The event class name.public void removeMessageEventClass(java.lang.String name)
name
- The event class name.public java.util.Enumeration getMessageEventClasses()
public void addTraceEventClass(java.lang.String name)
name
- The event class name.public void removeTraceEventClass(java.lang.String name)
name
- The event class name.public java.util.Enumeration getTraceEventClasses()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |