|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.websphere.ras.Manager
The Manager is a WebSphere facility from which JRAS-compliant message and trace Loggers are obtained and through which the logical grouping of trace Loggers can be performed. It is the users interface with runtime services and Systems Management functionality. The Manager is a process singleton. Users must obtain a reference to this singleton Manager instance via the static "getManager()" method. When a user requests a named message or trace Logger from the Manager, the Manager will create it if necessary and then returns a reference to the caller. Only one instance of any named Logger is ever created (although both a message logger and a trace logger can be created with the same name). It is not recommended to create more than one Logger of a given type (message/trace) per class, but any logger can be shared among multiple classes. It is recommended that the fully qualified class name of the class instantiating the logger be used as the logger name to guarantee uniqueness among the name space. Groups are a convenience mechanism that can be used to build a functional trace across a variety of classes. Any trace Logger can be added to multiple groups, although this may lead to unpredictable side effects when more than one group is trace enabled at one time.
Constructor Summary | |
---|---|
Manager()
Deprecated. |
Method Summary | |
---|---|
void |
addLoggerToGroup(RASTraceLogger logger,
java.lang.String groupName)
Add a RASTraceLogger to a Group. |
RASMessageLogger |
createRASMessageLogger(java.lang.String component,
java.lang.String name)
FOR IBM INTERNAL USE ONLY Retrieve the specified RASMessageLogger, creating it if it doesn't already exist. |
RASMessageLogger |
createRASMessageLogger(java.lang.String organization,
java.lang.String product,
java.lang.String component,
java.lang.String name)
Retrieve the specified RASMessageLogger, creating it if it doesn't already exist. |
RASTraceLogger |
createRASTraceLogger(java.lang.String component,
java.lang.String name)
FOR IBM INTERNAL USE ONLY Retrieve the specified RASTraceLogger, creating it if it doesn't already exist. |
RASTraceLogger |
createRASTraceLogger(java.lang.String organization,
java.lang.String product,
java.lang.String component,
java.lang.String name)
Retrieve the specified RASTraceLogger, creating it if it doesn't already exist. |
static Manager |
getManager()
Return a reference to the singleton ManagerImpl instance for this process. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Manager()
Method Detail |
public static Manager getManager()
public RASMessageLogger createRASMessageLogger(java.lang.String organization, java.lang.String product, java.lang.String component, java.lang.String name) throws java.lang.IllegalArgumentException
organization
- The name of the organization. May not be null or empty String.product
- The name of the product. May not be null or empty String.component
- The name of the component. May not be null or empty String.name
- The name of the logger. May not be null or empty String.java.lang.IllegalArgumentException
- A passed String is either null or an empty string.public RASMessageLogger createRASMessageLogger(java.lang.String component, java.lang.String name) throws java.lang.IllegalArgumentException
component
- The name of the component. May not be null or empty String.name
- The name of the logger. May not be null or empty String.java.lang.IllegalArgumentException
- A passed String is either null or an empty string.public RASTraceLogger createRASTraceLogger(java.lang.String organization, java.lang.String product, java.lang.String component, java.lang.String name) throws java.lang.IllegalArgumentException
organization
- The name of the organization. May not be null or empty String.product
- The name of the product. May not be null or empty String.component
- The name of the component. May not be null or empty String.name
- The name of the logger. May not be null or empty String.java.lang.IllegalArgumentException
- A passed String is either null or an empty string.public RASTraceLogger createRASTraceLogger(java.lang.String component, java.lang.String name) throws java.lang.IllegalArgumentException
component
- The name of the component. May not be null or empty String.name
- The name of the logger. May not be null or empty String.java.lang.IllegalArgumentException
- A passed String is either null or an empty string.public void addLoggerToGroup(RASTraceLogger logger, java.lang.String groupName) throws java.lang.IllegalArgumentException
logger
- A reference to the RASTraceLogger to add to the group. May not be null. The RASTraceLogger
must have been obtained from this Manager.groupName
- The name of the group. May not be null or empty Stringjava.lang.IllegalArgumentException
- The specified logger is null or not a Logger. The
specified group is null or an empty String.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |