public interface StateServerKeyAdapter
StateServerKey.StateServerKey(StateServerKeyAdapter)
constructor to supply the information needed to create a new StateServerKey
instance
when other constructors are inappropriate.Modifier and Type | Method and Description |
---|---|
int |
getAppId()
The translated application ID in which the generated
StateServerKey will live. |
java.lang.String |
getAppName()
The name of the application namespace in which the generated
StateServerKey will
live. |
java.lang.String |
getDisplayString()
The string to be used when the generated key is displayed via
StateServerKey.toString() . |
java.io.InputStream |
getKeyByteStream()
Returns an
InputStream from which the bytes corresponding to the
StateServerKey are read. |
int |
getRegisteredAccessorFactoryId()
The ID of the factory registered for creating an appropriate
DataAccessor
subclass when this key is presented to
DataAccessor.createDataAccessor(com.scaleoutsoftware.soss.client.da.StateServerKey, boolean) . |
boolean |
hasKeyString()
Checks if the key has a keystring associated with it
|
boolean |
isChunkObject()
Checks if the key is for MapReduce/ConcurrentMap chunk object.
|
boolean |
useKeyHashing()
Checks if the key should be hashed do determine the partition, or the partition is explicitly
defined in the key.
|
java.lang.String getAppName()
StateServerKey
will
live. If this method returns null
, the value returned from
getAppId()
will be used instead.StateServerKey
will live.int getAppId()
The translated application ID in which the generated StateServerKey
will live.
This value is the result of translating an application name to an ID via
StateServerKey.appNameToId(String, boolean)
.
StateServerKey.StateServerKey(StateServerKeyAdapter)
only if getAppName()
returns null
.StateServerKey
will live.java.io.InputStream getKeyByteStream()
InputStream
from which the bytes corresponding to the
StateServerKey
are read.java.lang.String getDisplayString()
StateServerKey.toString()
. If this method returns null
,
StateServerKey.toString()
will display the contents of the key as a sequence of
hex bytes.StateServerKey.toString()
int getRegisteredAccessorFactoryId()
The ID of the factory registered for creating an appropriate DataAccessor
subclass when this key is presented to
DataAccessor.createDataAccessor(com.scaleoutsoftware.soss.client.da.StateServerKey, boolean)
.
StateServerKeyAdapter
implementors
should return 0.boolean hasKeyString()
boolean useKeyHashing()
boolean isChunkObject()