public interface StatusStorage
ParameterServerSubscriber
Modifier and Type | Method and Description |
---|---|
org.nd4j.parameterserver.model.SubscriberState |
getState(int id)
Get the state given an id.
|
List<Integer> |
ids()
The list of state ids
for the given
SubscriberState |
int |
numStates()
Returns the number of states
held by this storage
|
void |
updateState(org.nd4j.parameterserver.model.SubscriberState subscriberState)
Update the state for storage
|
List<Integer> ids()
SubscriberState
int numStates()
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
.id
- the id of the state to getvoid updateState(org.nd4j.parameterserver.model.SubscriberState subscriberState)
subscriberState
- the subscriber state to updateCopyright © 2019. All rights reserved.