public class TrConfigurator
extends java.lang.Object
Constructor and Description |
---|
TrConfigurator() |
Modifier and Type | Method and Description |
---|---|
static void |
addTraceComponentListener(TraceComponentChangeListener tcl) |
static java.lang.String |
getEffectiveTraceSpec() |
static TextFileOutputStreamFactory |
getFileOutputStreamFactory() |
static java.lang.String |
getLogLocation() |
static void |
init(com.ibm.wsspi.logprovider.LogProviderConfig config)
Initialize Tr (and underlying Tr service).
|
static void |
registerTraceComponent(TraceComponent tc)
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 |
removeTraceComponentListener(TraceComponentChangeListener tcl) |
static void |
setInstrumentation(boolean instrumentation) |
static void |
setMessageRouter(MessageRouter msgRouter)
Set the MessageRouter 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 |
update(java.util.Map<java.lang.String,java.lang.Object> newConfig)
Update Tr with new configuration values (based on injection via config
admin).
|
public static void init(com.ibm.wsspi.logprovider.LogProviderConfig config)
public static void update(java.util.Map<java.lang.String,java.lang.Object> newConfig)
newConfig
- public static void addTraceComponentListener(TraceComponentChangeListener tcl)
public static void removeTraceComponentListener(TraceComponentChangeListener tcl)
public static java.lang.String getEffectiveTraceSpec()
public static java.lang.String getLogLocation()
public static void stop()
public static void setInstrumentation(boolean instrumentation)
instrumentation
- public static void setMessageRouter(MessageRouter msgRouter)
public static void unsetMessageRouter(MessageRouter msgRouter)
public static void registerTraceComponent(TraceComponent tc)
tc
- public static TextFileOutputStreamFactory getFileOutputStreamFactory()