public class MapDbStatusStorage extends BaseStatusStorage
statusStorageMap, updated
Constructor and Description |
---|
MapDbStatusStorage() |
MapDbStatusStorage(long heartBeatEjectionMilliSeconds,
long checkInterval) |
Modifier and Type | Method and Description |
---|---|
Map<Integer,org.nd4j.parameterserver.model.SubscriberState> |
createMap()
Create the storage map
|
Map<Integer,Long> |
createUpdatedMap()
Create the storage map
|
org.nd4j.parameterserver.model.SubscriberState |
getState(int id)
Get the state given an id.
|
ids, numStates, updateState
public MapDbStatusStorage(long heartBeatEjectionMilliSeconds, long checkInterval)
heartBeatEjectionMilliSeconds
- the amount of time before
ejecting a given subscriber as failedcheckInterval
- the interval to check forpublic MapDbStatusStorage()
public Map<Integer,Long> createUpdatedMap()
createUpdatedMap
in class BaseStatusStorage
public Map<Integer,org.nd4j.parameterserver.model.SubscriberState> createMap()
BaseStatusStorage
createMap
in class BaseStatusStorage
public org.nd4j.parameterserver.model.SubscriberState getState(int id)
ParameterServerSubscriber
.
A SubscriberState
is supposed to be 1 to 1 mapping
for a stream and a MediaDriver
.
getState
in interface StatusStorage
getState
in class BaseStatusStorage
id
- the id of the state to getCopyright © 2019. All rights reserved.