Class PresenceKvConstants
java.lang.Object
io.deephaven.enterprise.etcdclient.presence.PresenceKvConstants
Constants using in setting up presence KVs on etcd.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.deephaven.shadow.jetcd.io.etcd.jetcd.ByteSequencecontrollerWorkerPresenceKey(String workerProcessInfoId) Determine the key for the presence KV for a particular controller and workerstatic io.deephaven.shadow.jetcd.io.etcd.jetcd.ByteSequenceReturn the key prefix for the presence KV for all dispatchers.static io.deephaven.shadow.jetcd.io.etcd.jetcd.ByteSequencedispatcherWorkerPresenceKey(String dispatcherName, String processInfoId) Determine the key for the presence KV for a particular dispatcher and worker.static io.deephaven.shadow.jetcd.io.etcd.jetcd.ByteSequenceReturn the key prefix for the presence KV for all dispatchers.
-
Field Details
-
PRESENCE_KV_PUT_TIMEOUT_MILLIS
public static final long PRESENCE_KV_PUT_TIMEOUT_MILLIS- See Also:
-
PRESENCE_KV_DELETE_TIMEOUT_MILLIS
public static final long PRESENCE_KV_DELETE_TIMEOUT_MILLIS- See Also:
-
-
Constructor Details
-
PresenceKvConstants
public PresenceKvConstants()
-
-
Method Details
-
controllerWorkerPresenceKey
public static io.deephaven.shadow.jetcd.io.etcd.jetcd.ByteSequence controllerWorkerPresenceKey(String workerProcessInfoId) Determine the key for the presence KV for a particular controller and worker- Parameters:
workerProcessInfoId- the unique process info ID of the worker- Returns:
- the key to set or observe for ensuring the controller has presence (is handling) the given worker
-
controllerWorkerPresencePrefixKey
public static io.deephaven.shadow.jetcd.io.etcd.jetcd.ByteSequence controllerWorkerPresencePrefixKey()Return the key prefix for the presence KV for all dispatchers.- Returns:
- the key to set or observe for ensuring the dispatcher has presence (is handling) the given worker
-
dispatcherWorkerPresenceKey
public static io.deephaven.shadow.jetcd.io.etcd.jetcd.ByteSequence dispatcherWorkerPresenceKey(String dispatcherName, String processInfoId) Determine the key for the presence KV for a particular dispatcher and worker.- Parameters:
dispatcherName- the unique name of the dispatcherprocessInfoId- the unique process info ID of the worker- Returns:
- the key to set or observe for ensuring the dispatcher has presence (is handling) the given worker
-
dispatcherWorkerPresencePrefixKey
public static io.deephaven.shadow.jetcd.io.etcd.jetcd.ByteSequence dispatcherWorkerPresencePrefixKey()Return the key prefix for the presence KV for all dispatchers.- Returns:
- the key to set or observe for ensuring the dispatcher has presence (is handling) the given worker
-