|
ABLE, Version 1.1b | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.rmi.server.RemoteObject | +--java.rmi.server.RemoteServer | +--java.rmi.server.UnicastRemoteObject | +--com.ibm.able.platform.PlatformTracerSupport
This class defines an implementation of an ABLE PlatformTracer object.
Tracer objects may be found in some ABLE objects; in particular, those that support the 'getTracer()' method. Tracer objects can be used to control (even remotely) when and how a containing object will produce trace messages (as opposed to debug messages, which are either compiled in or completely compiled out of a program at build time).
Trace messages are runtime messages. Trace messages can be turned on and off programmatically, and they can be directed to the Java console or batched up in internal queues that can be retrieved and examined by other programs.
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary | |
PlatformTracerSupport()
Create a new trace object. |
Method Summary | |
void |
clearBatchLog()
Clear the batch trace log. |
static java.lang.String |
Copyright()
Determine the copyright of this class. |
void |
dumpBatchLog()
Dump the batch trace log to the Java console. |
java.util.Vector |
getBatchLog()
Retrieve the batch trace log. |
boolean |
isActive()
Determine whether tracing is active. |
void |
logTrace(java.lang.String theTraceMsg)
Log a trace message. |
void |
setActive(boolean theTraceFlag)
Enable or disable tracing. |
void |
setBatch(boolean theBatchFlag)
Enable or disable batch tracing. |
java.lang.String |
toString()
Retrieve a string describing (the contents of) the object. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone,
exportObject,
exportObject,
exportObject,
unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost,
getLog,
setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals,
getRef,
hashCode,
toStub |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public PlatformTracerSupport() throws java.rmi.RemoteException
Method Detail |
public boolean isActive() throws java.rmi.RemoteException
public void setActive(boolean theTraceFlag) throws java.rmi.RemoteException
theTraceFlag
- Use true to enable tracing.
Use false to disable tracing.
public void setBatch(boolean theBatchFlag) throws java.rmi.RemoteException
theBatchFlag
- Use true to enable tracing.
Use false to disable tracing.
getBatchLog()
,
dumpBatchLog()
public void clearBatchLog() throws java.rmi.RemoteException
public java.util.Vector getBatchLog() throws java.rmi.RemoteException
public void dumpBatchLog() throws java.rmi.RemoteException
public void logTrace(java.lang.String theTraceMsg)
If batch tracing is active, the trace message is stored internally in a Vector, which may be retrieved later, or dumped to the Java console.
If batch tracing is not active, the trace message is written out to the Java console using System.out.println().
theTraceMsg
- Any Java String object.
getBatchLog()
,
dumpBatchLog()
public java.lang.String toString()
public static java.lang.String Copyright()
|
ABLE, Version 1.1b | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |