public class CommandTool extends Object
| Constructor and Description |
|---|
CommandTool() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkRaw(String path,
int bufferSize,
int nThreads) |
void |
close() |
void |
connect(String partition,
String geometry) |
org.lsst.ccs.utilities.location.LocationSet |
emulators() |
void |
halt() |
void |
list(String path) |
void |
listen() |
org.lsst.ccs.utilities.location.LocationSet |
locations() |
void |
mkdir(String folderName) |
void |
mv(String path,
String targetFolderName) |
void |
pl(String playlistFile) |
void |
pla(String playlistFile,
String imagePath) |
void |
play(String playlistFile,
boolean repeat) |
void |
purge(String folderName,
String delta) |
void |
read(String path,
File dir,
int bufferSize,
int nThreads) |
void |
readRaw(String path,
File dir,
int bufferSize,
int nThreads) |
void |
readReg(int... address) |
void |
restart() |
void |
rm(String path) |
void |
rmdir(String folderName) |
void |
stop() |
Version |
version() |
void |
write(String targetFolderName,
File dir,
String pattern) |
void |
writeRaw(File dir,
String targetFolderName,
String pattern) |
@Command(name="connect",
description="Connect to a DAQ store")
public void connect(@Argument(name="partition",description="Partition name")
String partition,
@Argument(name="geometry",description="Override default geometry",defaultValue="")
String geometry)
throws DAQException
DAQException@Command(name="close",
description="Close DAQ store")
public void close()
throws DAQException
DAQException@Command(name="list",
alias="ls",
description="List folders/files")
public void list(@Argument(name="folder",description="Path",defaultValue="")
String path)
throws DAQException
DAQException@Command(name="mkdir",
description="Create new folder")
public void mkdir(String folderName)
throws DAQException
DAQException@Command(name="rmdir",
description="Delete folder")
public void rmdir(String folderName)
throws DAQException
DAQException@Command(name="rm",
description="Delete image")
public void rm(String path)
throws DAQException
DAQException@Command(name="mv",
description="Move image")
public void mv(String path,
String targetFolderName)
throws DAQException
DAQException@Command(name="showPlaylist",
alias="sp",
description="List contents of playlist")
public void pl(String playlistFile)
throws DAQException,
IOException
DAQExceptionIOException@Command(name="addPlaylistImage",
alias="ap",
description="Add an image to a playlist")
public void pla(String playlistFile,
String imagePath)
throws DAQException,
IOException
DAQExceptionIOException@Command(name="emulators",
description="List configured emulators")
public org.lsst.ccs.utilities.location.LocationSet emulators()
throws DAQException
DAQException@Command(name="play",
description="Start a playlist")
public void play(String playlistFile,
@Argument(name="repeat",description="Repeat",defaultValue="false")
boolean repeat)
throws DAQException,
IOException
DAQExceptionIOException@Command(name="halt",
description="Halt a playlist")
public void halt()
throws DAQException
DAQException@Command(name="stop",
description="Stop a playlist")
public void stop()
throws DAQException
DAQException@Command(name="restart",
description="Restart a playlist")
public void restart()
throws DAQException
DAQException@Command(name="locations",
description="List configured locations")
public org.lsst.ccs.utilities.location.LocationSet locations()
throws DAQException
DAQException@Command(name="version",
description="Get version info")
public Version version()
throws DAQException
DAQException@Command(name="checkRaw") public void checkRaw(String path, @Argument(defaultValue="1950720") int bufferSize, @Argument(defaultValue="4") int nThreads) throws DAQException, IOException, nom.tam.fits.FitsException, InterruptedException, ExecutionException
DAQExceptionIOExceptionnom.tam.fits.FitsExceptionInterruptedExceptionExecutionException@Command(name="readRaw") public void readRaw(String path, @Argument(defaultValue=".",description="Folder where .raw (and .meta) files will be written") File dir, @Argument(defaultValue="1950720") int bufferSize, @Argument(defaultValue="4") int nThreads) throws DAQException, IOException, nom.tam.fits.FitsException, InterruptedException, ExecutionException
DAQExceptionIOExceptionnom.tam.fits.FitsExceptionInterruptedExceptionExecutionException@Command(name="writeRaw",
description="Write a set of .raw images into the 2 day store")
public void writeRaw(File dir,
@Argument(defaultValue="emu")
String targetFolderName,
@Argument(defaultValue="(\\w+)_(R\\d\\d)_(Reb[0-2|W|G]).raw")
String pattern)
throws DAQException,
IOException
DAQExceptionIOException@Command(name="listen",
description="Listen for images")
public void listen()
@Command(name="read",
description="Read and decode data in image")
public void read(String path,
@Argument(defaultValue=".",description="Folder where FITS files will be written")
File dir,
@Argument(defaultValue="1950720")
int bufferSize,
@Argument(defaultValue="4")
int nThreads)
throws DAQException,
IOException,
nom.tam.fits.FitsException,
InterruptedException,
ExecutionException
DAQExceptionIOExceptionnom.tam.fits.FitsExceptionInterruptedExceptionExecutionException@Command(name="write",
description="Write a set of FITS files to the store")
public void write(String targetFolderName,
File dir,
@Argument(defaultValue="*.fits")
String pattern)
throws IOException,
nom.tam.fits.TruncatedFileException,
DAQException
IOExceptionnom.tam.fits.TruncatedFileExceptionDAQException@Command(name="purge",
description="Purge files in a folder older than some delta to make space")
public void purge(String folderName,
String delta)
throws DAQException
DAQException@Command(name="readReg",
description="Read registers")
public void readReg(int... address)
throws DAQException
DAQExceptionCopyright © 2022 LSST. All rights reserved.