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.The camera can be used to trigger images.
|
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
|
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.
|
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 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
DAQExceptionCopyright © 2021 LSST. All rights reserved.