|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.tools.pvlogger.SimpleStateStore
SimpleStateStore is an implementation of StateStore for testing purposes only. An instance of SimpleStateStore publishes snapshot to the console. It does not provide persistent storage.
| Field Summary | |
protected static java.lang.String |
SNAPSHOT_TYPE
|
| Constructor Summary | |
SimpleStateStore()
|
|
| 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 with the specified id. |
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 |
protected static java.lang.String[] |
getPVsToLog()
Get the array of pvs to log. |
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 by displaying its description to a console. |
void |
publish(MachineSnapshot machineSnapshot)
Publish the machine snapshot by displaying its description to a console. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final java.lang.String SNAPSHOT_TYPE
| Constructor Detail |
public SimpleStateStore()
| Method Detail |
public void publish(ChannelSnapshot snapshot,
long machineId)
publish in interface StateStoresnapshot - The snapshot to publishmachineId - The id of the channel snapshot's associated machine snapshotpublic void publish(MachineSnapshot machineSnapshot)
publish in interface StateStoremachineSnapshot - The machine snapshot to publishpublic java.lang.String[] fetchTypes()
fetchTypes in interface StateStorepublic ChannelGroup fetchGroup(java.lang.String type)
fetchGroup in interface StateStoretype - the logger type
public MachineSnapshot fetchMachineSnapshot(long id)
fetchMachineSnapshot in interface StateStoreid - The id which identifies the machine snapshot we wish to fetch.
public MachineSnapshot loadChannelSnapshotsInto(MachineSnapshot machineSnapshot)
loadChannelSnapshotsInto in interface StateStoremachineSnapshot - 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)
fetchMachineSnapshotsInRange in interface StateStoretype - 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
protected static java.lang.String[] getPVsToLog()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||