Skip navigation links
A B C D E F G I K M O P Q R S T U V 

A

AddSubkeyCmd - Class in ax.antpick.k2hdkc
Adds a new subkey to a current subkey.
App - Class in ax.antpick.k2hdkc.example
Provides an example to add a key of "keystring" with a value of "valuestring" to a k2hdkc cluster.
App() - Constructor for class ax.antpick.k2hdkc.example.App
 
ax.antpick.k2hdkc - package ax.antpick.k2hdkc
Provides classes that are fundamental to the applications to communicate with a k2hdk clustering system.
ax.antpick.k2hdkc.example - package ax.antpick.k2hdkc.example
Provides example implementations of the ax.antpick.k2hdkc package.

B

bytesToInt(byte[]) - Static method in interface ax.antpick.k2hdkc.Cmd
Packs a byte array to integer.

C

CasGetCmd - Class in ax.antpick.k2hdkc
Gets a variable from a cluster using a CAS operation.
CasIncDecCmd - Class in ax.antpick.k2hdkc
Increments and Decrements a variable in a cluster by using a CAS operation.
CasInitCmd - Class in ax.antpick.k2hdkc
Initializes a variable in a cluster by using a CAS operation.
CasSetCmd - Class in ax.antpick.k2hdkc
Sets a value in a cluster by using a CAS operation.
clearSubkeys(String) - Method in class ax.antpick.k2hdkc.Cluster
Clear subkeys of a key.
ClearSubkeysCmd - Class in ax.antpick.k2hdkc
Clears subkeys of a key.
CLibrary - Interface in ax.antpick.k2hdkc
This JNA interface provides functions in the standard C library.
close() - Method in class ax.antpick.k2hdkc.Cluster
Closes(Disposes) native libraries called by JNA.
close() - Method in class ax.antpick.k2hdkc.Session
Closes a connection with a chmpx slave process.
Cluster - Class in ax.antpick.k2hdkc
Holds configurations of a chmpx slave server.
Cluster.NativeLogLevel - Enum in ax.antpick.k2hdkc
Defines levels used to dump a k2hdkc data
Cluster.NativeStackLogLevel - Enum in ax.antpick.k2hdkc
Defines the level which native library puts logs.
Cmd<T> - Interface in ax.antpick.k2hdkc
Represents an operation of a k2hdkc cluster.
Cmd.DataType - Enum in ax.antpick.k2hdkc
DataType of data in CAS operation
CmdBase - Class in ax.antpick.k2hdkc
Holds common data types, members and instance methods of Cmd derived classes.
CmdBase() - Constructor for class ax.antpick.k2hdkc.CmdBase
 

D

DEFAULT_CHECK_PARENT_ATTRS - Static variable in interface ax.antpick.k2hdkc.Cmd
Default checkParentAttrs is true.
DEFAULT_CLEANUP - Static variable in class ax.antpick.k2hdkc.Cluster
Default clean up
DEFAULT_CUK - Static variable in class ax.antpick.k2hdkc.Cluster
The cuk(Cloud Unique Key) a chmpx slave process's cuk
DEFAULT_EXPIRATION_DURATION - Static variable in interface ax.antpick.k2hdkc.Cmd
Default data expiration duration is 0.
DEFAULT_IS_CHECK_PARENT_ATTRS - Static variable in interface ax.antpick.k2hdkc.Cmd
Default clear all subkeys is false.
DEFAULT_IS_CLEAR_SUBKEYS - Static variable in interface ax.antpick.k2hdkc.Cmd
Default clear all subkeys is false.
DEFAULT_IS_FIFO - Static variable in interface ax.antpick.k2hdkc.Cmd
Default isFifo is true.
DEFAULT_IS_INCREMENT - Static variable in interface ax.antpick.k2hdkc.Cmd
Default isIncrement is true.
DEFAULT_NATIVE_LOG_LEVEL - Static variable in class ax.antpick.k2hdkc.Cluster
The default C library log level
DEFAULT_NATIVE_LOG_PATH - Static variable in class ax.antpick.k2hdkc.Cluster
The default log level
DEFAULT_NATIVE_STACK_LOG_LEVEL - Static variable in class ax.antpick.k2hdkc.Cluster
The default stack log level
DEFAULT_NEED_RETURN_VALUE - Static variable in interface ax.antpick.k2hdkc.Cmd
Default isReturnValue is true.
DEFAULT_PARENT_KEY - Static variable in interface ax.antpick.k2hdkc.Cmd
Default parent string is null.
DEFAULT_PASS - Static variable in interface ax.antpick.k2hdkc.Cmd
Default passphrase string is null.
DEFAULT_PORT - Static variable in class ax.antpick.k2hdkc.Cluster
The port a chmpx slave process listens to control the process
DEFAULT_REJOIN - Static variable in class ax.antpick.k2hdkc.Cluster
true if reconnecting with a chmpx slave process after unexpected closing a connection.
DEFAULT_REMOVE_ELEMENT_SIZE - Static variable in interface ax.antpick.k2hdkc.Cmd
Default pass is null.
DEFAULT_REMOVE_RECURSIVELY - Static variable in interface ax.antpick.k2hdkc.Cmd
Default removing subkeys recursively is false.
DEFAULT_RETRY_REJOIN_FOREVER - Static variable in class ax.antpick.k2hdkc.Cluster
Default retry rejoin
DEFAULT_SUBKEYS - Static variable in interface ax.antpick.k2hdkc.Cmd
Default clear all subkeys is false.

E

execute(Session) - Method in class ax.antpick.k2hdkc.AddSubkeyCmd
Adds a new subkey to the current subkeys of a key.
execute(Session) - Method in class ax.antpick.k2hdkc.CasGetCmd
Gets a variable from a cluster using a CAS operation.
execute(Session) - Method in class ax.antpick.k2hdkc.CasIncDecCmd
Increments or decrements a CAS variable.
execute(Session) - Method in class ax.antpick.k2hdkc.CasInitCmd
Initialize the value of a key in a CAS operation.
execute(Session) - Method in class ax.antpick.k2hdkc.CasSetCmd
Sets a variable by a CAS operation.
execute(Session) - Method in class ax.antpick.k2hdkc.ClearSubkeysCmd
Clear subkeys of a key.
execute(Session) - Method in interface ax.antpick.k2hdkc.Cmd
Executes a command and return a result.
execute(Session) - Method in class ax.antpick.k2hdkc.GetAttrsCmd
Retrievs attributes of a key.
execute(Session) - Method in class ax.antpick.k2hdkc.GetCmd
Retrieves the value of a key
execute(Session) - Method in class ax.antpick.k2hdkc.GetSubkeysCmd
Retrievs subkeys of a key.
execute(Session) - Method in class ax.antpick.k2hdkc.KeyQueueAddCmd
Adds an element to this queue.
execute(Session) - Method in class ax.antpick.k2hdkc.KeyQueueRemoveCmd
Removes an element from this queue.
execute(Session) - Method in class ax.antpick.k2hdkc.QueueAddCmd
Adds an element to this queue.
execute(Session) - Method in class ax.antpick.k2hdkc.QueueRemoveCmd
Removes elements from this queue.
execute(Session) - Method in class ax.antpick.k2hdkc.RemoveCmd
Removes a key from a cluster.
execute(Session) - Method in class ax.antpick.k2hdkc.RemoveSubkeyCmd
Remove subkeys.
execute(Session) - Method in class ax.antpick.k2hdkc.RenameCmd
Rename a old key with a new key.
execute(Session) - Method in class ax.antpick.k2hdkc.SetAllCmd
Stores a key with a value and subkeys.
execute(Session) - Method in class ax.antpick.k2hdkc.SetCmd
Updates the value of a key
execute(Session) - Method in class ax.antpick.k2hdkc.SetSubkeysCmd
Replaces current subkeys with new one.

F

fclose(Pointer) - Method in interface ax.antpick.k2hdkc.CLibrary
Closes a file.
FIELDS - Static variable in class ax.antpick.k2hdkc.K2hashAttrPack
Fields of K2hashAttrPack.
fopen(String, String) - Method in interface ax.antpick.k2hdkc.CLibrary
Opens a file.
free(Pointer) - Method in interface ax.antpick.k2hdkc.CLibrary
Frees the memory space pointed to by ptr.

G

get(String) - Method in class ax.antpick.k2hdkc.Cluster
Retrieves the value of a key.
GetAttrsCmd - Class in ax.antpick.k2hdkc
Retrievs attributes of a key.
GetCmd - Class in ax.antpick.k2hdkc
Retrievs the value of a key.
getCmd() - Method in class ax.antpick.k2hdkc.Result
Retrieves the command name in String representation.
getCode() - Method in class ax.antpick.k2hdkc.Result
Retrieves the latest response code from the k2hdkc server.
getCuk() - Method in class ax.antpick.k2hdkc.Cluster
Returns a chmpx slave cuk(Cloud Unique Key) string
getDetailCode() - Method in class ax.antpick.k2hdkc.Result
Retrieves the latest response code in details from the k2hdkc server.
getenv(String) - Method in interface ax.antpick.k2hdkc.CLibrary
Gets the value of an enviroment.
getFieldOrder() - Method in class ax.antpick.k2hdkc.K2hashAttrPack
Returns fields in the same order with the k2hash C API K2hashAttrPack structure.
getHandle() - Method in class ax.antpick.k2hdkc.Session
Returns a k2hash data handle.
getPath() - Method in class ax.antpick.k2hdkc.Cluster
Returns a chmpx cluster configuration file path string
getPort() - Method in class ax.antpick.k2hdkc.Cluster
Returns a chmpx slave control port
getSubkeys(String) - Method in class ax.antpick.k2hdkc.Cluster
Retrieves the subkeys of a key.
GetSubkeysCmd - Class in ax.antpick.k2hdkc
Retrievs subkeys of a key.
getValue() - Method in class ax.antpick.k2hdkc.Result
Returns a value
getValusAsInt(byte[]) - Static method in interface ax.antpick.k2hdkc.Cmd
Returns a value as a integer value.

I

initNativeLog() - Method in class ax.antpick.k2hdkc.Cluster
Initializes log files on each native stack.
isCleanup() - Method in class ax.antpick.k2hdkc.Cluster
Returns a flag to clear configuration backup
isRejoin() - Method in class ax.antpick.k2hdkc.Cluster
Returns a flag to rejoin cluster automatically
isRetryRejoinForever() - Method in class ax.antpick.k2hdkc.Cluster
Returns a flag to do retry to rejoin cluster automatically
isSuccess() - Method in class ax.antpick.k2hdkc.Result
Returns true if the request result is success.

K

K2HASH_INVALID_HANDLE - Static variable in class ax.antpick.k2hdkc.Session
k2hash default handle
K2hashAttrPack - Class in ax.antpick.k2hdkc
Holds information about an k2hash's attribute of a key.
K2hashAttrPack() - Constructor for class ax.antpick.k2hdkc.K2hashAttrPack
Constructor of K2hashAttrPack
K2HDKC_INVALID_HANDLE - Static variable in class ax.antpick.k2hdkc.Session
k2hdkc default handle
keylength - Variable in class ax.antpick.k2hdkc.K2hashAttrPack
The length of an attribute key.
KeyQueueAddCmd - Class in ax.antpick.k2hdkc
Adds a new element to a queue.
KeyQueueRemoveCmd - Class in ax.antpick.k2hdkc
Removes a new element to a queue.

M

main(String[]) - Static method in class ax.antpick.k2hdkc.example.App
 

O

of(String, String) - Static method in class ax.antpick.k2hdkc.AddSubkeyCmd
Constructs a AddSubkeyCmd instance.
of(String, Cmd.DataType, String, long) - Static method in class ax.antpick.k2hdkc.CasGetCmd
Constructs a CasGetCmd instance.
of(String, Cmd.DataType) - Static method in class ax.antpick.k2hdkc.CasGetCmd
Constructs a CasGetCmd instance.
of(String) - Static method in class ax.antpick.k2hdkc.CasIncDecCmd
Constructs a CasIncDecCmd instance.
of(String, boolean, String, long) - Static method in class ax.antpick.k2hdkc.CasIncDecCmd
Constructs a CasIncDecCmd instance.
of(String, byte, String, long) - Static method in class ax.antpick.k2hdkc.CasInitCmd
Constructs a CasInitCmd instance.
of(String, byte) - Static method in class ax.antpick.k2hdkc.CasInitCmd
Constructs a CasInitCmd instance.
of(String, short, String, long) - Static method in class ax.antpick.k2hdkc.CasInitCmd
Constructs a CasInitCmd instance.
of(String, short) - Static method in class ax.antpick.k2hdkc.CasInitCmd
Constructs a CasInitCmd instance.
of(String, int, String, long) - Static method in class ax.antpick.k2hdkc.CasInitCmd
Constructs a CasInitCmd instance.
of(String, int) - Static method in class ax.antpick.k2hdkc.CasInitCmd
Constructs a CasInitCmd instance.
of(String, long, String, long) - Static method in class ax.antpick.k2hdkc.CasInitCmd
Constructs a CasInitCmd instance.
of(String, long) - Static method in class ax.antpick.k2hdkc.CasInitCmd
Constructs a CasInitCmd instance.
of(String, byte, byte, String, long) - Static method in class ax.antpick.k2hdkc.CasSetCmd
Constructs a CasSetCmd instance.
of(String, byte, byte) - Static method in class ax.antpick.k2hdkc.CasSetCmd
Constructs a CasSetCmd instance.
of(String, short, short, String, long) - Static method in class ax.antpick.k2hdkc.CasSetCmd
Constructs a CasSetCmd instance.
of(String, short, short) - Static method in class ax.antpick.k2hdkc.CasSetCmd
Constructs a CasSetCmd instance.
of(String, int, int, String, long) - Static method in class ax.antpick.k2hdkc.CasSetCmd
Constructs a CasSetCmd instance.
of(String, int, int) - Static method in class ax.antpick.k2hdkc.CasSetCmd
Constructs a CasSetCmd instance.
of(String, long, long, String, long) - Static method in class ax.antpick.k2hdkc.CasSetCmd
Constructs a CasSetCmd instance.
of(String, long, long) - Static method in class ax.antpick.k2hdkc.CasSetCmd
Constructs a CasSetCmd instance.
of(String) - Static method in class ax.antpick.k2hdkc.ClearSubkeysCmd
Constructs a ClearSubkeysCmd instance.
of(String) - Static method in class ax.antpick.k2hdkc.Cluster
Creates a Cluster instance.
of(String, short) - Static method in class ax.antpick.k2hdkc.Cluster
Creates a Cluster instance.
of(String, short, String) - Static method in class ax.antpick.k2hdkc.Cluster
Creates a Cluster instance.
of(String, short, String, boolean, boolean, boolean) - Static method in class ax.antpick.k2hdkc.Cluster
Creates a Cluster instance.
of(String) - Static method in class ax.antpick.k2hdkc.GetAttrsCmd
Constructs a GetAttrsCmd instance.
of(String) - Static method in class ax.antpick.k2hdkc.GetCmd
Constructs a GetCmd instance.
of(String, String) - Static method in class ax.antpick.k2hdkc.GetCmd
Constructs a GetCmd instance.
of(String) - Static method in class ax.antpick.k2hdkc.GetSubkeysCmd
Constructs a GetSubkeysCmd instance.
of(String, String, String) - Static method in class ax.antpick.k2hdkc.KeyQueueAddCmd
Constructs a KeyQueueAddCmd instance.
of(String, String, String, boolean, boolean, String, long) - Static method in class ax.antpick.k2hdkc.KeyQueueAddCmd
Constructs a KeyQueueAddCmd instance.
of(String) - Static method in class ax.antpick.k2hdkc.KeyQueueRemoveCmd
Constructs a KeyQueueRemoveCmd instance.
of(String, String) - Static method in class ax.antpick.k2hdkc.QueueAddCmd
Constructs a QueueAddCmd instance.
of(String, String, boolean, boolean, String, long) - Static method in class ax.antpick.k2hdkc.QueueAddCmd
Constructs a QueueAddCmd instance.
of(String) - Static method in class ax.antpick.k2hdkc.QueueRemoveCmd
Constructs a QueueRemoveCmd instance.
of(String) - Static method in class ax.antpick.k2hdkc.RemoveCmd
Constructs a RemoveCmd instance.
of(String, String) - Static method in class ax.antpick.k2hdkc.RemoveSubkeyCmd
Constructs a RemoveSubkeyCmd instance.
of(String, String, boolean) - Static method in class ax.antpick.k2hdkc.RemoveSubkeyCmd
Constructs a RemoveSubkeyCmd instance.
of(String, String) - Static method in class ax.antpick.k2hdkc.RenameCmd
Constructs a RenameCmd instance.
of(String, String, String, boolean, String, long) - Static method in class ax.antpick.k2hdkc.RenameCmd
Constructs a RenameCmd instance.
of(String, boolean, T, long, long) - Static method in class ax.antpick.k2hdkc.Result
Creates a Result instance.
of(Cluster) - Static method in class ax.antpick.k2hdkc.Session
Creates a Session instance.
of(String, String) - Static method in class ax.antpick.k2hdkc.SetAllCmd
Constructs a SetAllCmd instance.
of(String, String, String[]) - Static method in class ax.antpick.k2hdkc.SetAllCmd
Constructs a SetAllCmd instance.
of(String, String, String[], String, long) - Static method in class ax.antpick.k2hdkc.SetAllCmd
Constructs a SetAllCmd instance.
of(String, String) - Static method in class ax.antpick.k2hdkc.SetCmd
Constructs a SetCmd instance.
of(String, String, boolean, String, long) - Static method in class ax.antpick.k2hdkc.SetCmd
Constructs a SetCmd instance.
of(String, String[]) - Static method in class ax.antpick.k2hdkc.SetSubkeysCmd
Constructs a SetSubkeys instance.

P

pkey - Variable in class ax.antpick.k2hdkc.K2hashAttrPack
An attribute key.
pval - Variable in class ax.antpick.k2hdkc.K2hashAttrPack
An attribute value.

Q

QueueAddCmd - Class in ax.antpick.k2hdkc
Adds a new element to a queue.
QueueRemoveCmd - Class in ax.antpick.k2hdkc
Removes a new element to a queue.

R

remove(String) - Method in class ax.antpick.k2hdkc.Cluster
Removes the value of a key.
RemoveCmd - Class in ax.antpick.k2hdkc
Removes a key from a cluster.
RemoveSubkeyCmd - Class in ax.antpick.k2hdkc
Removes a subkey from the current subkeys.
RenameCmd - Class in ax.antpick.k2hdkc
Rename a key in a cluster.
Result<T> - Class in ax.antpick.k2hdkc
Holds common data types, members and instance methods of derived classes.

S

Session - Class in ax.antpick.k2hdkc
Holds a Cluster object and a connection handle with a chmpx slave process.
set(String, String) - Method in class ax.antpick.k2hdkc.Cluster
Sets the value of a key.
SetAllCmd - Class in ax.antpick.k2hdkc
Stores a key with a value and subkeys.
SetCmd - Class in ax.antpick.k2hdkc
Adds a key to a cluster.
setenv(String, String, int) - Method in interface ax.antpick.k2hdkc.CLibrary
Adds an enviroments.
setNativeLogLevel(String, Cluster.NativeStackLogLevel, Cluster.NativeLogLevel) - Method in class ax.antpick.k2hdkc.Cluster
Enables logging on each native stack.
setSubkeys(String, String[]) - Method in class ax.antpick.k2hdkc.Cluster
Sets a subkey of a key.
SetSubkeysCmd - Class in ax.antpick.k2hdkc
Replaces current subkeys with new one.

T

toString() - Method in class ax.antpick.k2hdkc.Cluster
Returns full of members as a string.
toString() - Method in class ax.antpick.k2hdkc.CmdBase
Returns full of members as a string.
toString() - Method in class ax.antpick.k2hdkc.Result
Returns full of members as a string.
toString() - Method in class ax.antpick.k2hdkc.Session
Returns full of members as a string.

U

unsetenv(String) - Method in interface ax.antpick.k2hdkc.CLibrary
Deletes an variable name from the environment.

V

vallength - Variable in class ax.antpick.k2hdkc.K2hashAttrPack
The length of an attribute value.
valueOf(String) - Static method in enum ax.antpick.k2hdkc.Cluster.NativeLogLevel
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ax.antpick.k2hdkc.Cluster.NativeStackLogLevel
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ax.antpick.k2hdkc.Cmd.DataType
Returns the enum constant of this type with the specified name.
values() - Static method in enum ax.antpick.k2hdkc.Cluster.NativeLogLevel
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum ax.antpick.k2hdkc.Cluster.NativeStackLogLevel
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum ax.antpick.k2hdkc.Cmd.DataType
Returns an array containing the constants of this enum type, in the order they are declared.
A B C D E F G I K M O P Q R S T U V 
Skip navigation links

Copyright © 2020. All rights reserved.