Package org.apache.hadoop.hbase.client
Class PerClientRandomNonceGenerator
java.lang.Object
org.apache.hadoop.hbase.client.PerClientRandomNonceGenerator
- All Implemented Interfaces:
NonceGenerator
NonceGenerator implementation that uses client ID hash + random int as nonce group, and random
numbers as nonces.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final long
private static final PerClientRandomNonceGenerator
Fields inherited from interface org.apache.hadoop.hbase.client.NonceGenerator
CLIENT_NONCES_ENABLED_KEY
-
Constructor Summary
-
Method Summary
-
Field Details
-
INST
-
clientId
-
-
Constructor Details
-
PerClientRandomNonceGenerator
private PerClientRandomNonceGenerator()
-
-
Method Details
-
getNonceGroup
Description copied from interface:NonceGenerator
Returns the nonce group (client ID) of this client manager.- Specified by:
getNonceGroup
in interfaceNonceGenerator
-
newNonce
Description copied from interface:NonceGenerator
Returns New nonce.- Specified by:
newNonce
in interfaceNonceGenerator
-
get
Get the singleton nonce generator.
-