|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
RASIFormatter defines the methods that must be implemented to format RAS events.
Method Summary | |
---|---|
void |
addEventClass(java.lang.String name)
Adds the name of a RASIEvent class which this
formatter can process. |
java.lang.String |
format(RASIEvent event)
Formats the RAS event. |
java.util.Enumeration |
getEventClasses()
Gets the set of RASIEvent classes which this
formatter can process. |
boolean |
isDefault()
Determines if this is a "default formatter," created by a RASHandler to format the RAS events generated by this toolkit. |
void |
removeEventClass(java.lang.String name)
Removes the name of a RASIEvent class from the list
of classes which this formatter can process. |
void |
setDefault(boolean flag)
Sets a flag that indicates whether this object is a "default formatter," attached automatically by a RASHandler. |
Methods inherited from interface com.ibm.ras.RASIObject |
---|
getConfig, getDescription, getGroup, getName, setConfig, setDescription, setName |
Method Detail |
public void setDefault(boolean flag)
Note: The RASHandler creates default message and trace formatters when it is created. It will set this flag true to prevent the RASManager from deleting these formatters.
flag
- true when this is a default formatter and
false otherwise.public boolean isDefault()
public void addEventClass(java.lang.String name)
RASIEvent
class which this
formatter can process. If the event class is null or is
already registered, this method does nothing.name
- The event class name.public void removeEventClass(java.lang.String name)
RASIEvent
class from the list
of classes which this formatter can process. If the event class is
null or is not registered, this method does nothing.name
- The event class name.public java.util.Enumeration getEventClasses()
RASIEvent
classes which this
formatter can process.public java.lang.String format(RASIEvent event)
event
- The event to format.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |