|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
StateStore is an interface that persistent storages must implement for publishing and recovering machine state.
| Method Summary | |
ChannelGroup |
fetchGroup(java.lang.String type)
Fetch a channel group for the specified logger type |
MachineSnapshot |
fetchMachineSnapshot(long id)
Fetch the machine snapshot associated with the unique machine snapshot identifier. |
MachineSnapshot[] |
fetchMachineSnapshotsInRange(java.lang.String type,
java.util.Date startTime,
java.util.Date endTime)
Fetch the machine snapshots within the specified time range. |
java.lang.String[] |
fetchTypes()
Fetch an array of valid logger types |
MachineSnapshot |
loadChannelSnapshotsInto(MachineSnapshot machineSnapshot)
Fetch the channel snapshots from the data source and populate the machine snapshot |
void |
publish(ChannelSnapshot snapshot,
long machineId)
Publish the channel snapshot and associate it with the machine snapshot given by the machine snapshop id. |
void |
publish(MachineSnapshot machineSnapshot)
Publish the machine snapshot. |
| Method Detail |
public void publish(ChannelSnapshot snapshot,
long machineId)
snapshot - The channel snapshot to publishmachineId - The unique id of the associated machine snapshotpublic void publish(MachineSnapshot machineSnapshot)
machineSnapshot - The machine snapshot to publish.public MachineSnapshot fetchMachineSnapshot(long id)
id - The unique machine snapshot identifier
public MachineSnapshot loadChannelSnapshotsInto(MachineSnapshot machineSnapshot)
machineSnapshot - The machine snapshot for which to fetch the channel snapshots and load them
public MachineSnapshot[] fetchMachineSnapshotsInRange(java.lang.String type,
java.util.Date startTime,
java.util.Date endTime)
type - The type of machine snapshots to fetch or null for no restrictionstartTime - The start time of the time rangeendTime - The end time of the time range
public java.lang.String[] fetchTypes()
public ChannelGroup fetchGroup(java.lang.String type)
type - the logger type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||