Package wt.util
Class DebugProperties
java.lang.Object
wt.util.DebugProperties
- All Implemented Interfaces:
Serializable
This utility class provides access to all the properties that are used
to configure information capture to aid in debugging. It gets initialized
from the debug.properties file.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanDetermines if a particular flag is set, for a particular object.static booleanDetermines if a particular flag is set, for a particular object, qualified by the qualifier.static booleanDetermines if the DATA flag is set, for a particular object.static booleanDetermines if the DATA flag is set, for a particular object, qualified by the qualifier.static booleanFlag that specifies if any debug capture can take place for a specific target.static booleanisException(Object target) Determines if the EXCEPTION flag is set, for a particular object.static booleanisException(Object target, String qualifier) Determines if the EXCEPTION flag is set, for a particular object, qualified by the qualifier.static booleanDetermines if the REPORT flag is set, for a particular object.static booleanDetermines if the REPORT flag is set, for a particular object, qualified by the qualifier.static booleanisStackTrace(Object target) Determines if the STACK_TRACE flag is set, for a particular object.static booleanisStackTrace(Object target, String qualifier) Determines if the STACK_TRACE flag is set, for a particular object, qualified by the qualifier.static booleanDetermines if the TRACE flag is set, for a particular object.static booleanDetermines if the TRACE flag is set, for a particular object, qualified by the qualifier.static voidSets the flag, for a particular target, which may be qualified by the qualifier.
-
Method Details
-
isDebugOn
Flag that specifies if any debug capture can take place for a specific target.
Supported API: true- Parameters:
target-- Returns:
- boolean
-
isData
Determines if the DATA flag is set, for a particular object.
Supported API: true- Parameters:
target- an object that is the target of the flag; the object can be an instance of a Class, or a Class, so that it can be used from instance methods or static methods- Returns:
- true, if the flag is set, otherwise false.
- See Also:
-
isData
Determines if the DATA flag is set, for a particular object, qualified by the qualifier.
Supported API: true- Parameters:
target- an object that is the target of the flag; the object can be an instance of a Class, or a Class, so that it can be used from instance methods or static methodsqualifier- a string that provides an open end qualification for the target- Returns:
- true, if the flag is set, otherwise false.
- See Also:
-
isException
Determines if the EXCEPTION flag is set, for a particular object.
Supported API: true- Parameters:
target- an object that is the target of the flag; the object can be an instance of a Class, or a Class, so that it can be used from instance methods or static methods- Returns:
- true, if the flag is set, otherwise false.
- See Also:
-
isException
Determines if the EXCEPTION flag is set, for a particular object, qualified by the qualifier.
Supported API: true- Parameters:
target- an object that is the target of the flag; the object can be an instance of a Class, or a Class, so that it can be used from instance methods or static methodsqualifier- a string that provides an open end qualification for the target- Returns:
- true, if the flag is set, otherwise false.
- See Also:
-
isReport
Determines if the REPORT flag is set, for a particular object.
Supported API: true- Parameters:
target- an object that is the target of the flag; the object can be an instance of a Class, or a Class, so that it can be used from instance methods or static methods- Returns:
- true, if the flag is set, otherwise false.
- See Also:
-
isReport
Determines if the REPORT flag is set, for a particular object, qualified by the qualifier.
Supported API: true- Parameters:
target- an object that is the target of the flag; the object can be an instance of a Class, or a Class, so that it can be used from instance methods or static methodsqualifier- a string that provides an open end qualification for the target- Returns:
- true, if the flag is set, otherwise false.
- See Also:
-
isStackTrace
Determines if the STACK_TRACE flag is set, for a particular object.
Supported API: true- Parameters:
target- an object that is the target of the flag; the object can be an instance of a Class, or a Class, so that it can be used from instance methods or static methods- Returns:
- true, if the flag is set, otherwise false.
- See Also:
-
isStackTrace
Determines if the STACK_TRACE flag is set, for a particular object, qualified by the qualifier.
Supported API: true- Parameters:
target- an object that is the target of the flag; the object can be an instance of a Class, or a Class, so that it can be used from instance methods or static methodsqualifier- a string that provides an open end qualification for the target- Returns:
- true, if the flag is set, otherwise false.
- See Also:
-
isTrace
Determines if the TRACE flag is set, for a particular object.
Supported API: true- Parameters:
target- an object that is the target of the flag; the object can be an instance of a Class, or a Class, so that it can be used from instance methods or static methods- Returns:
- true, if the flag is set, otherwise false.
- See Also:
-
isTrace
Determines if the TRACE flag is set, for a particular object, qualified by the qualifier.
Supported API: true- Parameters:
target- an object that is the target of the flag; the object can be an instance of a Class, or a Class, so that it can be used from instance methods or static methodsqualifier- a string that provides an open end qualification for the target- Returns:
- true, if the flag is set, otherwise false.
- See Also:
-
getFlag
Determines if a particular flag is set, for a particular object.Determination is made based on the following algorithm for finding a flag configuration that best matches the target:
1) classname/target.toString()/current thread 2) classname/target.toString() 3) classname/current thread 4) classname
Supported API: true- Parameters:
flag- the flag to be checkedtarget- an object that is the target of the flag; the object can be an instance of a Class, or a Class, so that it can be used from instance methods or static methods- Returns:
- true, if the flag is set, otherwise false.
- See Also:
-
getFlag
Determines if a particular flag is set, for a particular object, qualified by the qualifier.Determination is made based on the following algorithm for finding a flag configuration that best matches the target:
1) classname/target.toString()/current thread 2) classname/target.toString() 3) classname/qualifier 4) classname/current thread 5) classname
Supported API: true- Parameters:
flag- the flag to be checkedtarget- an object that is the target of the flag; the object can be an instance of a Class, or a Class, so that it can be used from instance methods or static methodsqualifier- a string that provides an open end qualification for the target- Returns:
- true, if the flag is set, otherwise false.
- See Also:
-
setFlag
public static void setFlag(int flag, String target, DebugType target_type, String qualifier, boolean value) Sets the flag, for a particular target, which may be qualified by the qualifier.
Supported API: true- Parameters:
flag- the flag to be checkedtarget- a String that is the key for a target. If target is a Class, it is the classname. If target is an instance of a Class, it is the classname +"/"+ instance.toString(). If target is a package, it is the package name. If target is a defined group, it is the name of the group.target_type- one of the predefined DebugTypesqualifier- a string that provides an open end qualification for the targetvalue- true, if the flag is to be be set; false if the flag is to be cleared- See Also:
-