Package com.tibco.tibjms.admin
Class TraceInfo
- java.lang.Object
-
- com.tibco.tibjms.admin.TraceInfo
-
public class TraceInfo extends java.lang.ObjectThis 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 longTRACE_ACLstatic longTRACE_ADMINstatic longTRACE_ALLstatic longTRACE_AUTHstatic longTRACE_CONFIGstatic longTRACE_CONFIG_DETAILstatic longTRACE_CONNECTstatic longTRACE_CONNECT_ERRORstatic longTRACE_DBSTOREstatic longTRACE_DEBUGstatic longTRACE_DEFAULTstatic longTRACE_DESTstatic longTRACE_FLOWstatic longTRACE_FTLstatic longTRACE_INFOstatic longTRACE_JAASstatic longTRACE_JNDIstatic longTRACE_JVMstatic longTRACE_JVMERRstatic longTRACE_LDAP_DEBUGstatic longTRACE_LIMITSstatic longTRACE_LOADERstatic longTRACE_MEMORYstatic longTRACE_MEMORY_DEBUGstatic longTRACE_MSGstatic longTRACE_MSTOREstatic longTRACE_MULTICASTDeprecated.As of release 8.3static longTRACE_OAUTH2static longTRACE_OAUTH2_DEBUGstatic longTRACE_PRODCONSstatic longTRACE_ROUTEstatic longTRACE_ROUTE_DEBUGstatic longTRACE_RV_ADVstatic longTRACE_SSstatic longTRACE_SSLstatic longTRACE_SSL_DEBUGstatic longTRACE_TXstatic longTRACE_WARN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTraceItems(long add)Add the specified trace items to the current list of add trace items.voidclearAddTraceItems()Clear the set of add trace items so that it is empty.voidclearAllTraceItems()Clear the set of absolute, add, and remove trace items so the object is essentially empty.voidclearRemoveTraceItems()Clear the set of remove trace items so that it is empty.voidclearSetTraceItems()Clear the set of absolute trace items so that it is empty.booleanequals(java.lang.Object o)static TraceInfofrom(javax.management.openmbean.CompositeData cd)For Internal use only, may be removed or deprecated in future.longgetAllTraceItems()Get the calculated set of trace items.longgetTraceAddItems()Get the set of add trace items.longgetTraceRemoveItems()Get the set of remove trace items.longgetTraceSetItems()Get the set of absolute trace items.booleanhasItems(long traceItems)Determine if a set of trace items will be logged based on the setting in this TraceInfo.voidremoveTraceItems(long remove)Add the specified trace items to the current list of remove trace items.voidsetTraceItems(long set)Set the absolute trace items for this TraceInfo.java.lang.StringtoString()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:
equalsin 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:
toStringin 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.
-
-