Interface RASIMaskChangeGenerator
-
- All Superinterfaces:
- RASIObject, java.io.Serializable
- All Known Subinterfaces:
- RASIHandler, RASILogger, RASIMessageLogger, RASITraceLogger
- All Known Implementing Classes:
- RASLogger, RASMaskChangeGenerator, RASMessageLogger, RASTraceLogger, WsHandler, WsJrasMessageLogger, WsJrasTraceLogger
Deprecated.As of WAS 6.0, recommend using java.util.logging
public interface RASIMaskChangeGenerator extends RASIObject
RASIMaskChangeGeneratordefines 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.RASIMaskChangeGeneratoralso provides methods that allow it to know whichRASIEventclasses 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
RASILoggersandRASIHandlers. It should not be necessary to implement this directly.
-
-
Method Summary
Methods Modifier and Type Method and Description voidaddMaskChangeListener(RASIMaskChangeListener listener)Deprecated.Adds an object that wishes to be informed of changes in the message or trace mask configuration.voidaddMessageEventClass(java.lang.String name)Deprecated.Adds the name of a message event class which this object uses.voidaddTraceEventClass(java.lang.String name)Deprecated.Adds the name of a trace event class which this object uses.voidfireMaskChangedEvent(RASMaskChangeEvent mc)Deprecated.Tells allRASIMaskChangeListenersthat the message or trace mask has been changed.java.util.HashtablegetConfig()Deprecated.Gets the configuration of this object.java.util.EnumerationgetMaskChangeListeners()Deprecated.Gets the set of objects that wish to be informed of changes in the message or trace mask configuration.java.util.EnumerationgetMessageEventClasses()Deprecated.Gets the set of message event classes which this object uses.longgetMessageMask()Deprecated.Gets the mask which defines the set of message types that will be processed.java.util.EnumerationgetTraceEventClasses()Deprecated.Gets the set of trace event classes which this object uses.longgetTraceMask()Deprecated.Gets the mask which defines the set of trace types that will be processed.voidremoveMaskChangeListener(RASIMaskChangeListener listener)Deprecated.Removes an object from the list that wishes to be informed of changes in the message or trace mask configuration.voidremoveMessageEventClass(java.lang.String name)Deprecated.Removes the name of a message event class from the list of classes which this object uses.voidremoveTraceEventClass(java.lang.String name)Deprecated.Removes the name of a trace event class from the list of classes which this object uses.voidsetConfig(java.util.Hashtable ht)Deprecated.Sets the configuration of this object.voidsetMessageMask(long mask)Deprecated.Sets the mask which defines the set of message types that will be processed.voidsetTraceMask(long mask)Deprecated.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
-
getConfig
java.util.Hashtable getConfig()
Deprecated.Gets the configuration of this object.- Specified by:
getConfigin interfaceRASIObject- Returns:
- A
Hashtablecontaining the configuration. This object inserts the following key/value pairs into the the configuration:- 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. Extensions to this object may add additional keys.
-
setConfig
void setConfig(java.util.Hashtable ht)
Deprecated.Sets the configuration of this object. This method is used by aRASManagerto initialize a RAS object. It should not be necessary for an application to use this method.- Specified by:
setConfigin interfaceRASIObject- Parameters:
ht- AHashtablecontaining 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.
-
getMessageMask
long getMessageMask()
Deprecated.Gets the mask which defines the set of message types that will be processed. Possible values are defined by the logical OR of theRASIMessageEventTYPE_XXXXconstants.- Returns:
- The message mask.
-
setMessageMask
void setMessageMask(long mask)
Deprecated.Sets the mask which defines the set of message types that will be processed. Possible values are defined by the logical OR of theRASIMessageEventTYPE_XXXXconstants. The mask value is not validated against these types.- Parameters:
mask- The message mask.
-
getTraceMask
long getTraceMask()
Deprecated.Gets the mask which defines the set of trace types that will be processed. Possible values are defined by the logical OR of theRASITraceEventTYPE_XXXXconstants.- Returns:
- The trace mask.
-
setTraceMask
void setTraceMask(long mask)
Deprecated.Sets the mask which defines the set of trace types that will be processed. Possible values are defined by theRASITraceEventTYPE_XXXXconstants. The mask value is not validated against these types.- Parameters:
mask- The trace mask.
-
addMaskChangeListener
void addMaskChangeListener(RASIMaskChangeListener listener)
Deprecated.Adds an object that wishes to be informed of changes in the message or trace mask configuration. If the listener isnullor is already registered, this method does nothing.- Parameters:
listener- The mask change listener.
-
removeMaskChangeListener
void removeMaskChangeListener(RASIMaskChangeListener listener)
Deprecated.Removes an object from the list that wishes to be informed of changes in the message or trace mask configuration. If the listener isnullor is not registered, this method does nothing.- Parameters:
listener- The mask change listener.
-
getMaskChangeListeners
java.util.Enumeration getMaskChangeListeners()
Deprecated.Gets the set of objects that wish to be informed of changes in the message or trace mask configuration.- Returns:
- An
Enumerationof mask change listeners. If no listeners are registered, theEnumerationis empty.
-
fireMaskChangedEvent
void fireMaskChangedEvent(RASMaskChangeEvent mc)
Deprecated.Tells allRASIMaskChangeListenersthat the message or trace mask has been changed.- Parameters:
mc- A mask change event, indicating what has changed.
-
addMessageEventClass
void addMessageEventClass(java.lang.String name)
Deprecated.Adds the name of a message event class which this object uses. If the event class isnullor is already registered, this method does nothing.- Parameters:
name- The event class name.
-
removeMessageEventClass
void removeMessageEventClass(java.lang.String name)
Deprecated.Removes the name of a message event class from the list of classes which this object uses. If the event class isnullor is not registered, this method does nothing.- Parameters:
name- The event class name.
-
getMessageEventClasses
java.util.Enumeration getMessageEventClasses()
Deprecated.Gets the set of message event classes which this object uses.- Returns:
- An
Enumerationof RAS event class names. If no event classes are registered, theEnumerationis empty.
-
addTraceEventClass
void addTraceEventClass(java.lang.String name)
Deprecated.Adds the name of a trace event class which this object uses. If the event class isnullor is already registered, this method does nothing.- Parameters:
name- The event class name.
-
removeTraceEventClass
void removeTraceEventClass(java.lang.String name)
Deprecated.Removes the name of a trace event class from the list of classes which this object uses. If the event class isnullor is not registered, this method does nothing.- Parameters:
name- The event class name.
-
getTraceEventClasses
java.util.Enumeration getTraceEventClasses()
Deprecated.Gets the set of trace event classes which this object uses.- Returns:
- An
Enumerationof RAS event class names. If no event classes are registered, theEnumerationis empty.
-
-