public class Store extends Object implements AutoCloseable
| Constructor and Description |
|---|
Store(String partition)
Connects to a DAQ store.
|
Store(String partition,
ExecutorService executor)
Connects to a DAQ store using the specified executor for polling.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addImageListener(ImageListener l)
Add an image listener to this store.
|
void |
close() |
Camera |
getCamera()
Gets the camera associated with this store.
|
long |
getCapacity()
The total capacity in bytes of this store.
|
Catalog |
getCatalog()
Get the catalog associated with this store.
|
static Version |
getClientVersion() |
org.lsst.ccs.utilities.location.LocationSet |
getConfiguredSources()
Get the set of configured locations in this partition
|
Emulator |
getEmulator()
Gets the emulator associated with this store.
|
Guider |
getGuider()
Gets an instance of the Guider interface associated with this Store.
|
String |
getPartition()
The name of the associated DAQ partition.
|
RegisterClient |
getRegisterClient()
Gets the camera associated with this store.The camera can be used to
trigger images.
|
long |
getRemaining()
The storage capacity remaining (unused) in bytes.
|
void |
removeImageListener(ImageListener l)
Remove an image listener.
|
void |
simulateTrigger(org.lsst.ccs.utilities.location.Location location,
ImageMetaData meta,
int[] registerList,
Path rawData)
Simulate an image arriving in the 2-day store.
|
public Store(String partition) throws DAQException
partition - The name of the partitionDAQException - If the partition does not exist, or something else
goes wrongpublic Store(String partition, ExecutorService executor) throws DAQException
partition - The name of the partitionexecutor - The executor service to use for polling threadDAQException - If the partition does not exist, or something else
goes wrongpublic Catalog getCatalog()
public Camera getCamera() throws DAQException
DAQExceptionpublic Guider getGuider() throws DAQException
DAQExceptionpublic Emulator getEmulator() throws DAQException
DAQExceptionpublic RegisterClient getRegisterClient() throws DAQException
DAQExceptionpublic String getPartition()
public long getCapacity()
throws DAQException
DAQException - If unable to access to DAQ storepublic long getRemaining()
throws DAQException
DAQException - If unable to access the DAQ storepublic org.lsst.ccs.utilities.location.LocationSet getConfiguredSources()
throws DAQException
DAQExceptionpublic void addImageListener(ImageListener l)
l - The image listener to add.public void removeImageListener(ImageListener l)
l - The image listener to remove.public void close()
throws DAQException
close in interface AutoCloseableDAQExceptionpublic static Version getClientVersion() throws DAQException
DAQExceptionpublic void simulateTrigger(org.lsst.ccs.utilities.location.Location location,
ImageMetaData meta,
int[] registerList,
Path rawData)
throws DAQException
location - meta - registerList - rawData - DAQExceptionCopyright © 2023 LSST. All rights reserved.