Package com.tailf.conf
Class Conf
Object
com.tailf.conf.Conf
General class for static methods and constants used
by the ConfD API:s (Maapi, Cdb, Dp, and Notif)
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Indicates the candidate configuration.static final int
Indicates the intended db.static final int
Indicates the null db (should not be used).static final int
Indicates the operational db.static final int
Indicates the pre commit running db.static final int
Indicates the running configuration.static final int
Indicates the startup configuration.static final int
Debug level flag.static final int
Debug level flag.static final int
Debug level flag.static final int
Debug level flag.static final int
static final int
Internal Acceptor client ids used by both application and ConfInternalstatic final int
static final int
Library version.static final int
Indicates a read only transaction.static final int
Indicates a read and write transaction.static final int
Default port number that NCS listens to.static final int
Default port number that ConfD listens to.static final int
Library protocol version.static final int
General return value for many of the API methods.static final int
General return value for many of the API methods.static final int
General return value for many of the API methods.static final int
General return value for many of the API methods.static final int
General return value for many of the API methods.static final int
General return value for many of the API methods.static final int
General return value for many of the API methods. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
byteArrayToHexString
(byte[] a) Converts a byte array to a hex stringstatic String
dbnameToString
(int dbname) Converts a dbname constant into a stringstatic byte[]
Converts a hex string to a byte arraystatic String
kpToString
(ConfObject[] kp) Converts a keypath Object[] kp into a string.static String
modeToString
(int mode) Converts a mode constant into a string
-
Field Details
-
LIBVSN
public static final int LIBVSNLibrary version.- See Also:
-
PROTOVSN
public static final int PROTOVSNLibrary protocol version.- See Also:
-
PORT
public static final int PORTDefault port number that ConfD listens to.- See Also:
-
NCS_PORT
public static final int NCS_PORTDefault port number that NCS listens to. If multiple NCS instances execute on the same host, use NcsMain.getInstance().getNcsPort() to obtain the port number for IPC.- See Also:
-
IA_CLIENT_MAAPI
public static final int IA_CLIENT_MAAPIInternal Acceptor client ids used by both application and ConfInternal- See Also:
-
IA_CLIENT_HA
public static final int IA_CLIENT_HA- See Also:
-
IA_CLIENT_NCS
public static final int IA_CLIENT_NCS- See Also:
-
REPLY_DELAYED_RESPONSE
public static final int REPLY_DELAYED_RESPONSEGeneral return value for many of the API methods.- See Also:
-
REPLY_ACCUMULATE
public static final int REPLY_ACCUMULATEGeneral return value for many of the API methods.- See Also:
-
REPLY_OK
public static final int REPLY_OKGeneral return value for many of the API methods.- See Also:
-
REPLY_ERR
public static final int REPLY_ERRGeneral return value for many of the API methods.- See Also:
-
REPLY_EOF
public static final int REPLY_EOFGeneral return value for many of the API methods.- See Also:
-
REPLY_VALIDATION_WARN
public static final int REPLY_VALIDATION_WARNGeneral return value for many of the API methods.- See Also:
-
REPLY_ALREADY_LOCKED
public static final int REPLY_ALREADY_LOCKEDGeneral return value for many of the API methods.- See Also:
-
DB_NONE
public static final int DB_NONEIndicates the null db (should not be used).- See Also:
-
DB_CANDIDATE
public static final int DB_CANDIDATEIndicates the candidate configuration.- See Also:
-
DB_RUNNING
public static final int DB_RUNNINGIndicates the running configuration.- See Also:
-
DB_STARTUP
public static final int DB_STARTUPIndicates the startup configuration.- See Also:
-
DB_OPERATIONAL
public static final int DB_OPERATIONALIndicates the operational db.- See Also:
-
DB_PRE_COMMIT_RUNNING
public static final int DB_PRE_COMMIT_RUNNINGIndicates the pre commit running db. Only available in cdb subscriptions- See Also:
-
DB_INTENDED
public static final int DB_INTENDEDIndicates the intended db.- See Also:
-
DEBUG_SILENT
public static final int DEBUG_SILENTDebug level flag. No debug printouts whatsoever are produced by the library.- See Also:
-
DEBUG_NORMAL
public static final int DEBUG_NORMALDebug level flag. The execution of user callback functions will be traced.- See Also:
-
DEBUG_TRACE
public static final int DEBUG_TRACEDebug level flag. Various internal trace printouts will occur.- See Also:
-
DEBUG_PROTO
public static final int DEBUG_PROTODebug level flag. Various internal trace printouts will occur.- See Also:
-
MODE_READ
public static final int MODE_READIndicates a read only transaction.- See Also:
-
MODE_READ_WRITE
public static final int MODE_READ_WRITEIndicates a read and write transaction.- See Also:
-
-
Constructor Details
-
Conf
public Conf()
-
-
Method Details
-
dbnameToString
Converts a dbname constant into a string -
modeToString
Converts a mode constant into a string -
kpToString
Converts a keypath Object[] kp into a string. A keypath is an array of either ConfTag or ConfKey objects. Mostly used for debugging keypaths. Notice that a keypath array is always reversed, beginning with the leaf first. This method will return the string of the keypath in correct order, beginning with namespace and top element first.- Parameters:
kp
- Keypath
-
hexStringToByteArray
Converts a hex string to a byte array -
byteArrayToHexString
Converts a byte array to a hex string
-