com.ibm.websphere.ras

Class TrConfigurator

  1. java.lang.Object
  2. extended bycom.ibm.websphere.ras.TrConfigurator

  1. public class TrConfigurator
  2. extends java.lang.Object
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

Constructor and Description
TrConfigurator()

Method Summary

Modifier and Type Method and Description
  1. static
  2. void
addTraceComponentListener(TraceComponentChangeListener tcl)
  1. static
  2. TextFileOutputStreamFactory
getFileOutputStreamFactory()
  1. static
  2. java.lang.String
getLogLocation()
  1. static
  2. void
init(com.ibm.wsspi.logprovider.LogProviderConfig config)
Initialize Tr (and underlying Tr service).
  1. static
  2. 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.
  1. static
  2. void
removeTraceComponentListener(TraceComponentChangeListener tcl)
  1. static
  2. void
setInstrumentation(boolean instrumentation)
  1. static
  2. void
setMessageRouter(MessageRouter msgRouter)
Set the MessageRouter into the TrService delegate.
  1. static
  2. com.ibm.ws.logging.internal.TraceSpecification
setTraceSpec(java.lang.String spec)
Set the trace specification of the service to the input value.
  1. static
  2. void
stop()
Stop the Tr service (the disabled delegate will be used until reconfigured).
  1. static
  2. void
unsetMessageRouter(MessageRouter msgRouter)
UnSet the MessageRouter from the TrService delegate.
  1. static
  2. void
update(java.util.Map<java.lang.String,java.lang.Object> newConfig)
Update Tr with new configuration values (based on injection via config admin).
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

TrConfigurator

  1. public TrConfigurator()

Method Detail

init

  1. public static void init(com.ibm.wsspi.logprovider.LogProviderConfig config)
Initialize Tr (and underlying Tr service).

update

  1. public 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). The parameter map should be modified to match actual values used (e.g. substitution in case of error).
Parameters:
newConfig -

addTraceComponentListener

  1. public static void addTraceComponentListener( TraceComponentChangeListener tcl)

removeTraceComponentListener

  1. public static void removeTraceComponentListener( TraceComponentChangeListener tcl)

setTraceSpec

  1. public static com.ibm.ws.logging.internal.TraceSpecification setTraceSpec( java.lang.String spec)
Set the trace specification of the service to the input value.
Parameters:
spec - New string trace specification
Returns:
new TraceSpecification, or null if unchanged

getLogLocation

  1. public static java.lang.String getLogLocation( )
Returns:

stop

  1. public static void stop()
Stop the Tr service (the disabled delegate will be used until reconfigured).

setInstrumentation

  1. public static void setInstrumentation( boolean instrumentation)
Parameters:
instrumentation -

setMessageRouter

  1. public static void setMessageRouter( MessageRouter msgRouter)
Set the MessageRouter into the TrService delegate.

unsetMessageRouter

  1. public static void unsetMessageRouter( MessageRouter msgRouter)
UnSet the MessageRouter from the TrService delegate.

registerTraceComponent

  1. public 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.
Parameters:
tc -

getFileOutputStreamFactory

  1. public static TextFileOutputStreamFactory getFileOutputStreamFactory( )
Returns: