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 SummaryFields 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 SummaryAll 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_INFOpublic static final long TRACE_INFO - See Also:
- Constant Field Values
 
 - 
TRACE_WARNpublic static final long TRACE_WARN - See Also:
- Constant Field Values
 
 - 
TRACE_ACLpublic static final long TRACE_ACL - See Also:
- Constant Field Values
 
 - 
TRACE_LIMITSpublic static final long TRACE_LIMITS - See Also:
- Constant Field Values
 
 - 
TRACE_SSLpublic static final long TRACE_SSL - See Also:
- Constant Field Values
 
 - 
TRACE_SSL_DEBUGpublic static final long TRACE_SSL_DEBUG - See Also:
- Constant Field Values
 
 - 
TRACE_ROUTEpublic static final long TRACE_ROUTE - See Also:
- Constant Field Values
 
 - 
TRACE_ROUTE_DEBUGpublic static final long TRACE_ROUTE_DEBUG - See Also:
- Constant Field Values
 
 - 
TRACE_ADMINpublic static final long TRACE_ADMIN - See Also:
- Constant Field Values
 
 - 
TRACE_CONFIGpublic static final long TRACE_CONFIG - See Also:
- Constant Field Values
 
 - 
TRACE_RV_ADVpublic static final long TRACE_RV_ADV - See Also:
- Constant Field Values
 
 - 
TRACE_CONNECTpublic static final long TRACE_CONNECT - See Also:
- Constant Field Values
 
 - 
TRACE_CONNECT_ERRORpublic static final long TRACE_CONNECT_ERROR - See Also:
- Constant Field Values
 
 - 
TRACE_PRODCONSpublic static final long TRACE_PRODCONS - See Also:
- Constant Field Values
 
 - 
TRACE_DESTpublic static final long TRACE_DEST - See Also:
- Constant Field Values
 
 - 
TRACE_TXpublic static final long TRACE_TX - See Also:
- Constant Field Values
 
 - 
TRACE_SSpublic static final long TRACE_SS - See Also:
- Constant Field Values
 
 - 
TRACE_MEMORYpublic static final long TRACE_MEMORY - See Also:
- Constant Field Values
 
 - 
TRACE_MEMORY_DEBUGpublic static final long TRACE_MEMORY_DEBUG - See Also:
- Constant Field Values
 
 - 
TRACE_LDAP_DEBUGpublic static final long TRACE_LDAP_DEBUG - See Also:
- Constant Field Values
 
 - 
TRACE_AUTHpublic static final long TRACE_AUTH - See Also:
- Constant Field Values
 
 - 
TRACE_MSGpublic static final long TRACE_MSG - See Also:
- Constant Field Values
 
 - 
TRACE_FLOWpublic static final long TRACE_FLOW - See Also:
- Constant Field Values
 
 - 
TRACE_JVMpublic static final long TRACE_JVM - See Also:
- Constant Field Values
 
 - 
TRACE_JAASpublic static final long TRACE_JAAS - See Also:
- Constant Field Values
 
 - 
TRACE_FTLpublic static final long TRACE_FTL - See Also:
- Constant Field Values
 
 - 
TRACE_JNDIpublic static final long TRACE_JNDI - See Also:
- Constant Field Values
 
 - 
TRACE_OAUTH2public static final long TRACE_OAUTH2 - See Also:
- Constant Field Values
 
 - 
TRACE_OAUTH2_DEBUGpublic 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_DBSTOREpublic static final long TRACE_DBSTORE - See Also:
- Constant Field Values
 
 - 
TRACE_JVMERRpublic static final long TRACE_JVMERR - See Also:
- Constant Field Values
 
 - 
TRACE_MSTOREpublic static final long TRACE_MSTORE - See Also:
- Constant Field Values
 
 - 
TRACE_LOADERpublic static final long TRACE_LOADER - See Also:
- Constant Field Values
 
 - 
TRACE_CONFIG_DETAILpublic static final long TRACE_CONFIG_DETAIL - See Also:
- Constant Field Values
 
 - 
TRACE_DEBUGpublic static final long TRACE_DEBUG - See Also:
- Constant Field Values
 
 - 
TRACE_ALLpublic static final long TRACE_ALL - See Also:
- Constant Field Values
 
 - 
TRACE_DEFAULTpublic static final long TRACE_DEFAULT - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
TraceInfopublic TraceInfo() Public constuctor that creates a TraveInfo with TRACE_DEFAULT set. This is the same as using the constructor TraceInfo(TRACE_DEFAULT,0,0);
 - 
TraceInfopublic 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- 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- java.lang.Object
 
 - 
setTraceItemspublic 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 (|).
 
 - 
addTraceItemspublic 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 (|).
 
 - 
removeTraceItemspublic 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 (|).
 
 - 
getTraceSetItemspublic 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.
 
 - 
getTraceAddItemspublic 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.
 
 - 
getTraceRemoveItemspublic 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.
 
 - 
clearSetTraceItemspublic void clearSetTraceItems() Clear the set of absolute trace items so that it is empty.
 - 
clearAddTraceItemspublic void clearAddTraceItems() Clear the set of add trace items so that it is empty.
 - 
clearRemoveTraceItemspublic void clearRemoveTraceItems() Clear the set of remove trace items so that it is empty.
 - 
clearAllTraceItemspublic void clearAllTraceItems() Clear the set of absolute, add, and remove trace items so the object is essentially empty.
 - 
getAllTraceItemspublic 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.
 
 - 
hasItemspublic 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.
 
 - 
toStringpublic java.lang.String toString() Generate a string representation of this TraceInfo.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- a string representation of this TraceInfo.
 
 - 
frompublic 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.
 
 
- 
 
-