|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ClientADDPOptions.AddpTraceMode>
com.genesyslab.platform.commons.connection.configuration.ClientADDPOptions.AddpTraceMode
public static enum ClientADDPOptions.AddpTraceMode
Configuration option values for ADDP traces enabling in the client and server logs.
Enum Constant Summary | |
---|---|
Both
Log ADDP traces on client side and query server to log ADDP traces in server logs. |
|
Local
Log ADDP traces on client side only. |
|
None
Do not log ADDP traces. |
|
Remote
Query server to log ADDP traces in server logs. |
Method Summary | |
---|---|
static ClientADDPOptions.AddpTraceMode |
parse(java.lang.String strMode)
This static method analyzes ADDP trace mode string value and returns correspondent enumeration value. Values mean: "local" (or "true" , "yes" , "on" ) -
log ADDP traces on client side only,
"remote" - query server to log ADDP traces in server logs,
"both" (or "full" ) - log ADDP traces on client side and
query server to log ADDP traces in server logs,
"none" or any illegal value - do not log ADDP traces.
This method also supports Configuration Server CfgTraceMode enumeration values
by the following way:
|
boolean |
traceLocal()
Returns indicator to enable ADDP traces in client side logs. |
boolean |
traceRemote()
Returns indicator to enable ADDP traces in server side logs. |
static ClientADDPOptions.AddpTraceMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ClientADDPOptions.AddpTraceMode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ClientADDPOptions.AddpTraceMode None
public static final ClientADDPOptions.AddpTraceMode Local
public static final ClientADDPOptions.AddpTraceMode Remote
public static final ClientADDPOptions.AddpTraceMode Both
Method Detail |
---|
public static ClientADDPOptions.AddpTraceMode[] values()
for (ClientADDPOptions.AddpTraceMode c : ClientADDPOptions.AddpTraceMode.values()) System.out.println(c);
public static ClientADDPOptions.AddpTraceMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic boolean traceLocal()
public boolean traceRemote()
public static ClientADDPOptions.AddpTraceMode parse(java.lang.String strMode)
"local"
(or "true"
, "yes"
, "on"
) -
log ADDP traces on client side only,"remote"
- query server to log ADDP traces in server logs,"both"
(or "full"
) - log ADDP traces on client side and
query server to log ADDP traces in server logs,"none"
or any illegal value - do not log ADDP traces.
CfgTraceMode trMode = CfgTraceMode.CFGTMLocal;
config.setAddpTraceMode(AddpTraceMode.parse(trMode.toString()));
strMode
- string value representing trace mode
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |