|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.util.AbstractXmlObject
com.waveset.object.GenericObject
com.waveset.logging.trace.TraceConfig
Nested Class Summary |
Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
Field Summary | |
protected static boolean |
_debug
|
static java.lang.String |
code_id
|
static java.lang.String |
DATE_FORMAT
|
static java.lang.String |
DESTINATION
Key to property that specifies destination override (e.g., trace.destination=STDOUT ). |
static java.lang.String |
GLOBAL
|
static java.lang.String |
IS_LOGGING
|
static java.lang.String |
MAX_FAILURES
|
static java.lang.String |
MAX_FILE_SIZE
|
static java.lang.String |
MAX_FILES
|
static java.lang.String |
MAX_METHOD_CACHE
Key to property that specifies size of method level cache (e.g., trace.methodLevelCacheSize=1000 ). |
static java.lang.String |
MODE
|
static java.lang.String |
MODE_ASYNC
|
static java.lang.String |
MODE_SYNC
|
static java.lang.String |
TIME_FORMAT
|
static java.lang.String |
TRACE_CONFIG
|
static java.lang.String |
TRACE_DESTINATION
Key to property that specifies destination override (e.g., trace.destination=STDOUT ). |
static java.lang.String |
TRACE_ENABLED
Key to property that specifies whether trace is enabled (e.g., trace.enabled=true ). |
static java.lang.String |
TRACE_FILE
|
static java.lang.String |
TRACE_LEVEL
Key to property that specifies global trace level (e.g., trace.level=3 ). |
static java.lang.String |
TRACE_LEVEL_DOT
Key to property that specifies scope trace level (e.g., trace.level=3 ). |
static java.lang.String |
TRACE_LEVELS
|
Fields inherited from class com.waveset.object.GenericObject |
ATT_ID, ATT_NAME, ATT_TYPE, ATT_VALUE, EL_ATTRIBUTE, EL_FORMREF, ELEMENT, FLATTEN_ALL, FLATTEN_NOTHING, FLATTEN_OBJECT_LISTS, SYN_MISMATCHED_NAMES, SYN_MISPLACED_DOT, SYN_MISPLACED_LBRACKET, SYN_NAMED_LIST, SYN_NO_DOT, SYN_NO_GEO, SYN_NO_INDEX, SYN_NO_LIST, SYN_NO_NAME, SYN_NO_TARGET |
Fields inherited from class com.waveset.util.AbstractXmlObject |
_trace |
Constructor Summary | |
TraceConfig()
Create a default configuration object. |
|
TraceConfig(GenericObject sysConfig)
Use the System configuration object to get the trace config called by WSTrace when a configuration change is requested. |
Method Summary | |
void |
clearLevel(java.lang.String scope)
Remove any property specifying a trace level for the (precise) scope specified. |
void |
clearLevel(java.lang.String scope,
boolean bInclusive)
Remove any property specifying a trace level for the scope specified. |
java.lang.String |
getDateFormat()
Get the date format used in the trace files. |
java.lang.String |
getDestination()
Get the current destination, setting. |
java.lang.String |
getIsLogging()
Switch which will determine if any of the trace code is executed. |
java.lang.String |
getLevel(java.lang.String scope)
Get the level specified for the given scope. |
java.lang.String |
getMaxFailures()
Get the max number of handler failures before we automatically stop looging to a trace device. |
java.lang.String |
getMaxFiles()
Get the max number of files to create during trace. |
java.lang.String |
getMaxFileSize()
Get the max size of each trace file. |
java.lang.String |
getMaxMethodCacheSize()
Get the max size of method cache. |
java.util.Map |
getMethodTraceLevels()
|
java.lang.String |
getMode()
Get the current logger mode, there are two modes synchronous and asynchronous. |
java.lang.String |
getNameSpace()
Get the current namespace. |
java.lang.String |
getTimeFormat()
Get the time format used in the trace files. |
java.lang.String |
getTraceFileName()
Get the file and path to the trace file that will be written. |
boolean |
isLogging()
Switch which will determine if any of the trace code is executed. |
void |
listLevels(java.io.PrintWriter out,
java.lang.String scope)
Display the trace level settings that are relevant to the specified scope. |
void |
listLevels(java.io.PrintWriter out,
java.lang.String scope,
boolean bInclusive)
Display the trace level settings that are relevant to the specified scope. |
void |
put(java.lang.String key,
java.lang.Object value)
Private method to allow concationation of the objects current namespace. |
boolean |
serverConfigExists(java.lang.String serverName)
Test the trace configurations and see if a config exists supplied server. |
void |
setDateFormat(java.lang.String dateFormat)
Set the date format used in the trace files. |
void |
setDestination(java.lang.String destination)
Set the current destination, setting. |
void |
setIsLogging(java.lang.String isLogging)
Set the logging switch. |
void |
setLevel(int level,
java.lang.String scope)
|
void |
setMaxFialures(java.lang.String max)
Set the max number of handler failures before we automatically stop looging to a trace device. |
void |
setMaxFiles(java.lang.String max)
Sets the max number of files to create during trace. |
void |
setMaxFileSize(java.lang.String size)
Set the max size of each trace file in KB |
void |
setMaxMethodCacheSize(java.lang.String max)
Sets the max number of items in the method cache; |
void |
setMethodTraceLevels(java.util.Map levels)
Set the map of method trace levels |
void |
setMode(java.lang.String mode)
Set the current logger mode, there are two modes synchronous and asynchronous. |
void |
setNameSpace(java.lang.String nameSpace)
This method sets the namesspace the trace config will use, essentially this names which nested object to use when making changes to the trace configuration. |
void |
setTimeFormat(java.lang.String timeFormat)
Set the time format used in the trace files. |
void |
setTraceFile(java.lang.String file)
Set the file and path to the trace file that will be written. |
void |
showLevel(java.io.PrintWriter out,
java.lang.String scope)
Display the trace level setting in effect for the specified scope. |
Methods inherited from class com.waveset.object.GenericObject |
add, addAlias, assimilate, assimilateModifications, browse, clear, clearAliases, containsKey, containsValue, dumpMap, entrySet, filter, findObject, findObject, get, getAttributes, getBoolean, getDate, getDate, getDate, getElementName, getEncrypted, getForm, getFormRef, getId, getInt, getList, getListOfStrings, getLocal, getLong, getName, getObject, getObjectCreateIfNull, getString, isEmpty, keySet, main, parseXml, parseXml, println, put, put, put, put, putAll, putLocal, remove, removeLocal, setAliases, setAttributes, setForm, setFormRef, setId, setIgnoreForm, setName, size, sort, sort, test1, test2, test3, toDisplayString, toDisplayString, toMap, toMap, toMap, toMap, toMap, toMap, toString, toXml, toXmlNoForm, toXmlNormalized, toXmlNormalized, toXmlNormalized, trace, trace, values |
Methods inherited from class com.waveset.util.AbstractXmlObject |
addXmlHeader, cloneObject, dump, dumpFile, getReference, println, setTrace, toIdentityString, toVerboseString, toVerboseString, toXml, toXml, toXml |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
Field Detail |
public static final java.lang.String code_id
protected static boolean _debug
public static final java.lang.String TRACE_CONFIG
public static final java.lang.String MODE_SYNC
public static final java.lang.String MODE_ASYNC
public static final java.lang.String IS_LOGGING
public static final java.lang.String TRACE_FILE
public static final java.lang.String TRACE_LEVELS
public static final java.lang.String TIME_FORMAT
public static final java.lang.String DATE_FORMAT
public static final java.lang.String MAX_FILE_SIZE
public static final java.lang.String MAX_FILES
public static final java.lang.String MODE
public static final java.lang.String MAX_FAILURES
public static final java.lang.String MAX_METHOD_CACHE
trace.methodLevelCacheSize=1000
).
public static final java.lang.String DESTINATION
trace.destination=STDOUT
).
public static final java.lang.String TRACE_ENABLED
trace.enabled=true
).
public static final java.lang.String TRACE_DESTINATION
trace.destination=STDOUT
).
public static final java.lang.String TRACE_LEVEL
trace.level=3
).
public static final java.lang.String TRACE_LEVEL_DOT
trace.level=3
).
public static final java.lang.String GLOBAL
Constructor Detail |
public TraceConfig()
public TraceConfig(GenericObject sysConfig)
Method Detail |
public void setNameSpace(java.lang.String nameSpace)
public java.lang.String getNameSpace()
public void put(java.lang.String key, java.lang.Object value)
public void setLevel(int level, java.lang.String scope)
public void clearLevel(java.lang.String scope)
public void clearLevel(java.lang.String scope, boolean bInclusive)
bInclusive
- - if true, clear any trace level setting
at or below the specified scope.
Otherwise, clear only the trace level setting (if any)
for the precisescope specified.public void showLevel(java.io.PrintWriter out, java.lang.String scope)
public void listLevels(java.io.PrintWriter out, java.lang.String scope)
This includes the entry that determines the trace level in effect for the specified scope, as well as any entry that sets a trace level within that scope.
public void listLevels(java.io.PrintWriter out, java.lang.String scope, boolean bInclusive)
This includes the entry that determines the trace level in effect for the specified scope, as well as any entry that sets a trace level within that scope.
public java.lang.String getLevel(java.lang.String scope)
public boolean isLogging()
public java.lang.String getIsLogging()
public void setIsLogging(java.lang.String isLogging)
public java.util.Map getMethodTraceLevels()
public void setMethodTraceLevels(java.util.Map levels)
public void setMaxFileSize(java.lang.String size)
public java.lang.String getMaxFileSize()
public void setMaxFiles(java.lang.String max)
public java.lang.String getMaxFiles()
public java.lang.String getMaxMethodCacheSize()
public void setMaxMethodCacheSize(java.lang.String max)
public java.lang.String getTraceFileName()
public void setTraceFile(java.lang.String file)
public java.lang.String getTimeFormat()
public void setTimeFormat(java.lang.String timeFormat)
public java.lang.String getDateFormat()
public void setDateFormat(java.lang.String dateFormat)
public java.lang.String getDestination()
public void setDestination(java.lang.String destination)
public java.lang.String getMode()
public void setMode(java.lang.String mode)
public java.lang.String getMaxFailures()
public void setMaxFialures(java.lang.String max)
public boolean serverConfigExists(java.lang.String serverName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |