Package com.tibco.tibjms.admin
Class TraceInfo
- java.lang.Object
-
- com.tibco.tibjms.admin.TraceInfo
-
public class TraceInfo extends java.lang.Object
This class represents the set of trace message types that will be output to a particular output destination (console or log file). The trace parameters consist of three sets of TRACE_* items that are evaluated as follows:
1) Absolute items (setTraceItems) are the starting point for the set of trace items that will be logged.
2) Add items (addTraceItems) are then added to the list of absolute items (duplicates are ignored).
3) Remove items (removeTraceItems) are then removed from the list above to get the final list of items.
setTraceItems() always overwrites the list of absolute items. addTraceItems() and removeTraceItems() append to their respective lists of trace items. To reset all or part of the trace parameters, use the clear*() methods.
-
-
Field Summary
Fields Modifier and Type Field Description static long
TRACE_ACL
static long
TRACE_ADMIN
static long
TRACE_ALL
static long
TRACE_AUTH
static long
TRACE_CONFIG
static long
TRACE_CONFIG_DETAIL
static long
TRACE_CONNECT
static long
TRACE_CONNECT_ERROR
static long
TRACE_DBSTORE
static long
TRACE_DEBUG
static long
TRACE_DEFAULT
static long
TRACE_DEST
static long
TRACE_FLOW
static long
TRACE_FTL
static long
TRACE_INFO
static long
TRACE_JAAS
static long
TRACE_JNDI
static long
TRACE_JVM
static long
TRACE_JVMERR
static long
TRACE_LDAP_DEBUG
static long
TRACE_LIMITS
static long
TRACE_LOADER
static long
TRACE_MEMORY
static long
TRACE_MEMORY_DEBUG
static long
TRACE_MSG
static long
TRACE_MSTORE
static long
TRACE_MULTICAST
Deprecated.As of release 8.3static long
TRACE_OAUTH2
static long
TRACE_OAUTH2_DEBUG
static long
TRACE_PRODCONS
static long
TRACE_ROUTE
static long
TRACE_ROUTE_DEBUG
static long
TRACE_RV_ADV
static long
TRACE_SS
static long
TRACE_SSL
static long
TRACE_SSL_DEBUG
static long
TRACE_TX
static long
TRACE_WARN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTraceItems(long add)
Add the specified trace items to the current list of add trace items.void
clearAddTraceItems()
Clear the set of add trace items so that it is empty.void
clearAllTraceItems()
Clear the set of absolute, add, and remove trace items so the object is essentially empty.void
clearRemoveTraceItems()
Clear the set of remove trace items so that it is empty.void
clearSetTraceItems()
Clear the set of absolute trace items so that it is empty.boolean
equals(java.lang.Object o)
static TraceInfo
from(javax.management.openmbean.CompositeData cd)
For Internal use only, may be removed or deprecated in future.long
getAllTraceItems()
Get the calculated set of trace items.long
getTraceAddItems()
Get the set of add trace items.long
getTraceRemoveItems()
Get the set of remove trace items.long
getTraceSetItems()
Get the set of absolute trace items.boolean
hasItems(long traceItems)
Determine if a set of trace items will be logged based on the setting in this TraceInfo.void
removeTraceItems(long remove)
Add the specified trace items to the current list of remove trace items.void
setTraceItems(long set)
Set the absolute trace items for this TraceInfo.java.lang.String
toString()
Generate a string representation of this TraceInfo.
-
-
-
Field Detail
-
TRACE_INFO
public static final long TRACE_INFO
- See Also:
- Constant Field Values
-
TRACE_WARN
public static final long TRACE_WARN
- See Also:
- Constant Field Values
-
TRACE_ACL
public static final long TRACE_ACL
- See Also:
- Constant Field Values
-
TRACE_LIMITS
public static final long TRACE_LIMITS
- See Also:
- Constant Field Values
-
TRACE_SSL
public static final long TRACE_SSL
- See Also:
- Constant Field Values
-
TRACE_SSL_DEBUG
public static final long TRACE_SSL_DEBUG
- See Also:
- Constant Field Values
-
TRACE_ROUTE
public static final long TRACE_ROUTE
- See Also:
- Constant Field Values
-
TRACE_ROUTE_DEBUG
public static final long TRACE_ROUTE_DEBUG
- See Also:
- Constant Field Values
-
TRACE_ADMIN
public static final long TRACE_ADMIN
- See Also:
- Constant Field Values
-
TRACE_CONFIG
public static final long TRACE_CONFIG
- See Also:
- Constant Field Values
-
TRACE_RV_ADV
public static final long TRACE_RV_ADV
- See Also:
- Constant Field Values
-
TRACE_CONNECT
public static final long TRACE_CONNECT
- See Also:
- Constant Field Values
-
TRACE_CONNECT_ERROR
public static final long TRACE_CONNECT_ERROR
- See Also:
- Constant Field Values
-
TRACE_PRODCONS
public static final long TRACE_PRODCONS
- See Also:
- Constant Field Values
-
TRACE_DEST
public static final long TRACE_DEST
- See Also:
- Constant Field Values
-
TRACE_TX
public static final long TRACE_TX
- See Also:
- Constant Field Values
-
TRACE_SS
public static final long TRACE_SS
- See Also:
- Constant Field Values
-
TRACE_MEMORY
public static final long TRACE_MEMORY
- See Also:
- Constant Field Values
-
TRACE_MEMORY_DEBUG
public static final long TRACE_MEMORY_DEBUG
- See Also:
- Constant Field Values
-
TRACE_LDAP_DEBUG
public static final long TRACE_LDAP_DEBUG
- See Also:
- Constant Field Values
-
TRACE_AUTH
public static final long TRACE_AUTH
- See Also:
- Constant Field Values
-
TRACE_MSG
public static final long TRACE_MSG
- See Also:
- Constant Field Values
-
TRACE_FLOW
public static final long TRACE_FLOW
- See Also:
- Constant Field Values
-
TRACE_JVM
public static final long TRACE_JVM
- See Also:
- Constant Field Values
-
TRACE_JAAS
public static final long TRACE_JAAS
- See Also:
- Constant Field Values
-
TRACE_FTL
public static final long TRACE_FTL
- See Also:
- Constant Field Values
-
TRACE_JNDI
public static final long TRACE_JNDI
- See Also:
- Constant Field Values
-
TRACE_OAUTH2
public static final long TRACE_OAUTH2
- See Also:
- Constant Field Values
-
TRACE_OAUTH2_DEBUG
public static final long TRACE_OAUTH2_DEBUG
- See Also:
- Constant Field Values
-
TRACE_MULTICAST
@Deprecated public static final long TRACE_MULTICAST
Deprecated.As of release 8.3- See Also:
- Constant Field Values
-
TRACE_DBSTORE
public static final long TRACE_DBSTORE
- See Also:
- Constant Field Values
-
TRACE_JVMERR
public static final long TRACE_JVMERR
- See Also:
- Constant Field Values
-
TRACE_MSTORE
public static final long TRACE_MSTORE
- See Also:
- Constant Field Values
-
TRACE_LOADER
public static final long TRACE_LOADER
- See Also:
- Constant Field Values
-
TRACE_CONFIG_DETAIL
public static final long TRACE_CONFIG_DETAIL
- See Also:
- Constant Field Values
-
TRACE_DEBUG
public static final long TRACE_DEBUG
- See Also:
- Constant Field Values
-
TRACE_ALL
public static final long TRACE_ALL
- See Also:
- Constant Field Values
-
TRACE_DEFAULT
public static final long TRACE_DEFAULT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TraceInfo
public TraceInfo()
Public constuctor that creates a TraveInfo with TRACE_DEFAULT set. This is the same as using the constructor TraceInfo(TRACE_DEFAULT,0,0);
-
TraceInfo
public TraceInfo(long set, long add, long remove)
Public constructor used to create a new TraceInfo object. The values passed to this constructor can be a single TRACE_* constant or a set of TRACE_* constants combined with the binary OR operator (|).- Parameters:
set
- The set of absolute trace items for this TraceInfo.add
- The set of add trace items for this TraceInfo.remove
- The set of remove trace items for this TraceInfo.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
setTraceItems
public void setTraceItems(long set)
Set the absolute trace items for this TraceInfo. This method overwrites any absolute trace items that were previously set in this object. The current add and remove trace items will not be effected by this call. To directly specify exactly what will be traced, first call clearAllTraceItems() and then set the desired items with this method.- Parameters:
set
- The set of absolute trace items for this TraceInfo. Can be a single TRACE_* constant or a set of TRACE_* constants combined with the binary OR operator (|).
-
addTraceItems
public void addTraceItems(long add)
Add the specified trace items to the current list of add trace items. Any duplicate items will be ignored. To reset the list of add trace items, call clearAddTraceItems() first.- Parameters:
add
- The set of trace items to append to the list of add trace items. Can be a single TRACE_* constant or a set of TRACE_* constants combined with the binary OR operator (|).
-
removeTraceItems
public void removeTraceItems(long remove)
Add the specified trace items to the current list of remove trace items. Any duplicate items will be ignored. To reset the list of remove trace items, call clearRemoveTraceItems() first.- Parameters:
remove
- The set of trace items to append to the list of remove trace items. Can be a single TRACE_* constant or a set of TRACE_* constants combined with the binary OR operator (|).
-
getTraceSetItems
public long getTraceSetItems()
Get the set of absolute trace items. To determine if particular TRACE_* item is in the set use bitwise AND (&).- Returns:
- the set of absolute trace items as a long.
-
getTraceAddItems
public long getTraceAddItems()
Get the set of add trace items. To determine if particular TRACE_* item is in the set use bitwise AND (&).- Returns:
- the set of add trace items as a long.
-
getTraceRemoveItems
public long getTraceRemoveItems()
Get the set of remove trace items. To determine if particular TRACE_* item is in the set use bitwise AND (&).- Returns:
- the set of remove trace items as a long.
-
clearSetTraceItems
public void clearSetTraceItems()
Clear the set of absolute trace items so that it is empty.
-
clearAddTraceItems
public void clearAddTraceItems()
Clear the set of add trace items so that it is empty.
-
clearRemoveTraceItems
public void clearRemoveTraceItems()
Clear the set of remove trace items so that it is empty.
-
clearAllTraceItems
public void clearAllTraceItems()
Clear the set of absolute, add, and remove trace items so the object is essentially empty.
-
getAllTraceItems
public long getAllTraceItems()
Get the calculated set of trace items. This is calculated by taking the absolute set of trace items, adding the set of add trace items, and then removing the set of remove trace items.- Returns:
- the calculated set of trace items.
-
hasItems
public boolean hasItems(long traceItems)
Determine if a set of trace items will be logged based on the setting in this TraceInfo.- Parameters:
traceItems
- The trace items to test for. Can be a single TRACE_* constant or a set of TRACE_* constants combined with the binary OR operator (|).- Returns:
- true if the TraceInfo object has all of the items set, false otherwise.
-
toString
public java.lang.String toString()
Generate a string representation of this TraceInfo.- Overrides:
toString
in classjava.lang.Object
- Returns:
- a string representation of this TraceInfo.
-
from
public static TraceInfo from(javax.management.openmbean.CompositeData cd)
For Internal use only, may be removed or deprecated in future.- Returns:
- a TraceInfo object from CompositeData
- Throws:
java.lang.IllegalArgumentException
- if CompositeType does not match or if a null CompositeData is passed.
-
-