Package com.ibm.websphere.ras
Class TrConfigurator
java.lang.Object
com.ibm.websphere.ras.TrConfigurator
Configurator: Uses a LogProvider configuration to initialize the TrService service.
The log provider is required to provide a non-null delegate. This delegate
can not be reset.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static String
static TextFileOutputStreamFactory
static String
static void
init
(com.ibm.wsspi.logprovider.LogProviderConfig config) Initialize Tr (and underlying Tr service).static void
This method (to register pre-created TraceComponents) is needed: but it should not be on the main/base Tr API, as it is not something that should be called frequently.static void
static void
setInstrumentation
(boolean instrumentation) static void
setMessageRouter
(MessageRouter msgRouter) Set the MessageRouter into the TrService delegate.static void
setTraceRouter
(com.ibm.ws.logging.WsTraceRouter msgRouter) Set the TraceRouter into the TrService delegate.static void
stop()
Stop the Tr service (the disabled delegate will be used until reconfigured).static void
unsetMessageRouter
(MessageRouter msgRouter) UnSet the MessageRouter from the TrService delegate.static void
unsetTraceRouter
(com.ibm.ws.logging.WsTraceRouter msgRouter) UnSet the TraceRouter from the TrService delegate.static void
Update Tr with new configuration values (based on injection via config admin).
-
Constructor Details
-
TrConfigurator
public TrConfigurator()
-
-
Method Details
-
init
public static void init(com.ibm.wsspi.logprovider.LogProviderConfig config) Initialize Tr (and underlying Tr service). -
update
Update Tr with new configuration values (based on injection via config admin). The parameter map should be modified to match actual values used (e.g. substitution in case of error).- Parameters:
newConfig
-
-
addTraceComponentListener
-
removeTraceComponentListener
-
getEffectiveTraceSpec
- Returns:
- the trace specification the server is using.
-
getLogLocation
- Returns:
-
stop
public static void stop()Stop the Tr service (the disabled delegate will be used until reconfigured). -
setInstrumentation
public static void setInstrumentation(boolean instrumentation) - Parameters:
instrumentation
-
-
setMessageRouter
Set the MessageRouter into the TrService delegate. -
unsetMessageRouter
UnSet the MessageRouter from the TrService delegate. -
setTraceRouter
public static void setTraceRouter(com.ibm.ws.logging.WsTraceRouter msgRouter) Set the TraceRouter into the TrService delegate. -
unsetTraceRouter
public static void unsetTraceRouter(com.ibm.ws.logging.WsTraceRouter msgRouter) UnSet the TraceRouter from the TrService delegate. -
registerTraceComponent
This method (to register pre-created TraceComponents) is needed: but it should not be on the main/base Tr API, as it is not something that should be called frequently.- Parameters:
tc
-
-
getFileOutputStreamFactory
- Returns:
-