All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.eNetwork.ECL.trace.ECLTrace

java.lang.Object
   |
   +----com.ibm.eNetwork.ECL.trace.ECLTrace

public class ECLTrace
extends Object
ECLTrace is used to register/unregister ECLTraceListeners and set/get the traceLevels for all the traceable HACL components.


Variable Index

 o SESSION_TRACE_COMM_EVENT
 o SESSION_TRACE_DS
 o SESSION_TRACE_ERR
 o SESSION_TRACE_FIELD
 o SESSION_TRACE_FIELDLIST
 o SESSION_TRACE_OIA
 o SESSION_TRACE_OIA_EVENT
 o SESSION_TRACE_PRINTER
 o SESSION_TRACE_PS
 o SESSION_TRACE_PS_EVENT
 o SESSION_TRACE_SCREENRECO_EVENT
 o SESSION_TRACE_SCREENRECODBG_EVENT
 o SESSION_TRACE_SCRN_RECO
 o SESSION_TRACE_SD
 o SESSION_TRACE_SESSION
 o SESSION_TRACE_TRANSPORT
 o SESSION_TRACE_XFER
 o TRACE_MAXIMUM
 o TRACE_MINIMUM
 o TRACE_NONE
 o TRACE_NORMAL

Constructor Index

 o ECLTrace()

Method Index

 o GetTraceLevel(String)
Returns the trace level of the specified ECL component
 o RegisterTraceEvent(ECLTraceListener)
Registers a notification object for all trace events fired by HACL components.
 o RegisterTraceEvent(ECLTraceListener, String)
Registers a notification object for trace events fired by HACL components.
 o SetTraceLevel(String, int)
Sets the trace level of the ECL component to the level passed in.
 o UnregisterTraceEvent(ECLTraceListener)
Unregisters a notification object previously registered with the RegisterTraceListener() method.
 o UnregisterTraceEvent(ECLTraceListener, String)
Unregisters a notification object previously registered with the RegisterTraceListener() method.

Variables

 o TRACE_NONE
 public static final int TRACE_NONE
 o TRACE_MINIMUM
 public static final int TRACE_MINIMUM
 o TRACE_NORMAL
 public static final int TRACE_NORMAL
 o TRACE_MAXIMUM
 public static final int TRACE_MAXIMUM
 o SESSION_TRACE_SESSION
 public static String SESSION_TRACE_SESSION
 o SESSION_TRACE_PS
 public static String SESSION_TRACE_PS
 o SESSION_TRACE_FIELD
 public static String SESSION_TRACE_FIELD
 o SESSION_TRACE_FIELDLIST
 public static String SESSION_TRACE_FIELDLIST
 o SESSION_TRACE_OIA
 public static String SESSION_TRACE_OIA
 o SESSION_TRACE_ERR
 public static String SESSION_TRACE_ERR
 o SESSION_TRACE_XFER
 public static String SESSION_TRACE_XFER
 o SESSION_TRACE_DS
 public static String SESSION_TRACE_DS
 o SESSION_TRACE_TRANSPORT
 public static String SESSION_TRACE_TRANSPORT
 o SESSION_TRACE_OIA_EVENT
 public static String SESSION_TRACE_OIA_EVENT
 o SESSION_TRACE_PS_EVENT
 public static String SESSION_TRACE_PS_EVENT
 o SESSION_TRACE_COMM_EVENT
 public static String SESSION_TRACE_COMM_EVENT
 o SESSION_TRACE_SCREENRECO_EVENT
 public static String SESSION_TRACE_SCREENRECO_EVENT
 o SESSION_TRACE_SCREENRECODBG_EVENT
 public static String SESSION_TRACE_SCREENRECODBG_EVENT
 o SESSION_TRACE_SD
 public static String SESSION_TRACE_SD
 o SESSION_TRACE_SCRN_RECO
 public static String SESSION_TRACE_SCRN_RECO
 o SESSION_TRACE_PRINTER
 public static String SESSION_TRACE_PRINTER

Constructors

 o ECLTrace
 public ECLTrace()

Methods

 o RegisterTraceEvent
 public static boolean RegisterTraceEvent(ECLTraceListener notify)
Registers a notification object for all trace events fired by HACL components. The notification object must implement the ECLTraceListener. The ECLTraceListener added through this method will receive trace events from every component being traced in every session. This method is designed for users who want to route all trace events to the same trace facility.

ECLTraceListener objects can be unregistered using the UnregisterTraceEventEvent() method.

Parameters:
notify - ECLTraceListener object which is notified when trace events are fired.
See Also:
UnregisterTraceEvent, RegisterTraceEvent, ECLTraceListener
 o RegisterTraceEvent
 public static boolean RegisterTraceEvent(ECLTraceListener notify,
                                          String ID)
Registers a notification object for trace events fired by HACL components. The notification object must implement the ECLTraceListener. The ECLTraceListener added through this method will receive trace events only from those components being traced in the the session whose SESSION_NAME property matches the ID parameter. This method is designed for users who want to route trace events from different sessions to different trace facilities.

ECLTraceListener objects can be unregistered using the UnregisterTraceEventEvent() method.

Parameters:
notify - ECLTraceListener object which is notified when trace events are fired.
ID - Should match the SESSION_NAME property to receive events only from those components that are used by this session.
See Also:
UnregisterTraceEvent, RegisterTraceEvent, ECLTraceListener
 o UnregisterTraceEvent
 public static boolean UnregisterTraceEvent(ECLTraceListener notify)
Unregisters a notification object previously registered with the RegisterTraceListener() method. If the notification object is not currently registered, this method does nothing.

Parameters:
notify - ECLTraceListener object which should be unregistered.
See Also:
RegisterTraceListener, ECLTraceListener
 o UnregisterTraceEvent
 public static boolean UnregisterTraceEvent(ECLTraceListener notify,
                                            String ID)
Unregisters a notification object previously registered with the RegisterTraceListener() method. If the notification object is not currently registered, this method does nothing.

Parameters:
notify - ECLTraceListener object which should be unregistered.
ID - Unregister the ECLTraceListener associated with this session ID.
See Also:
RegisterTraceListener, ECLTraceListener
 o SetTraceLevel
 public static boolean SetTraceLevel(String comp,
                                     int traceLevel)
Sets the trace level of the ECL component to the level passed in. Returns true when it succeeds.

Parameters:
comp - Name of the component whose trace level should be changed
traceLevel - Trace level value.
 o GetTraceLevel
 public static int GetTraceLevel(String comp)
Returns the trace level of the specified ECL component

Parameters:
comp - Name of the component.
Returns:
The current trace level of this component.

All Packages  Class Hierarchy  This Package  Previous  Next  Index