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, updateStatepublic 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 BaseStatusStoragepublic Map<Integer,org.nd4j.parameterserver.model.SubscriberState> createMap()
BaseStatusStoragecreateMap in class BaseStatusStoragepublic 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 StatusStoragegetState in class BaseStatusStorageid - the id of the state to getCopyright © 2017. All rights reserved.