Package me.ahoo.cosid.machine
Class LocalMachineStateStorage
java.lang.Object
me.ahoo.cosid.machine.LocalMachineStateStorage
- All Implemented Interfaces:
MachineStateStorage
LocalMachine State Storage.
-
Field Summary
Fields inherited from interface me.ahoo.cosid.machine.MachineStateStorage
IN_MEMORY, LOCAL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
exists
(String namespace, InstanceId instanceId) get
(String namespace, InstanceId instanceId) void
remove
(String namespace, InstanceId instanceId) void
set
(String namespace, int machineId, InstanceId instanceId) int
-
Field Details
-
DEFAULT_STATE_LOCATION_PATH
-
stateLocation
-
-
Constructor Details
-
LocalMachineStateStorage
-
LocalMachineStateStorage
public LocalMachineStateStorage()
-
-
Method Details
-
get
- Specified by:
get
in interfaceMachineStateStorage
-
set
- Specified by:
set
in interfaceMachineStateStorage
-
remove
- Specified by:
remove
in interfaceMachineStateStorage
-
clear
- Specified by:
clear
in interfaceMachineStateStorage
-
size
- Specified by:
size
in interfaceMachineStateStorage
-
exists
- Specified by:
exists
in interfaceMachineStateStorage
-