public class TraceController extends Object
Modifier and Type | Method and Description |
---|---|
static void |
setAcceptor(TraceMessageAcceptor acceptor)
Set the acceptor that will be used to actually handle trace events.
|
static void |
setProperties(Properties props)
Set the trace control properties from a given set of properties.
|
static void |
setProperty(String key,
String value)
Set one of the trace control properties.
|
static void |
start(Properties props)
Start the operation of the trace system.
|
public static void setAcceptor(TraceMessageAcceptor acceptor)
acceptor
- The new acceptor.public static void setProperties(Properties props)
IMPORTANT: The properties are processed in an unpredictable order.
props
- public static void setProperty(String key, String value)
If the given key names a tracing property, process its value. Note that it is not an error for the key to have nothing to do with tracing; in that case, it's ignored. It is an error for the value to be null.
key
- The name of the property to set.value
- The value to set it to, if it is a trace control property.public static void start(Properties props)
Trace
objects may be obtained and messages may be sent to them.
However, the messages will be queued up until this routine is called.
(Note that the messages will be governed by the default thresholds.)
Applications should not need to call this method, since normally it is
called automatically by the server boot class (e.g., Boot
).
props
- The initial set of properties provided by the user. They
override the defaults. They may be changed later.Copyright © 2017. All rights reserved.