
public class MonitorCommands extends Object
| Constructor and Description |
|---|
MonitorCommands(Monitor mon)
Public constructor for MonitoringCommands.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getChannelNames()
Gets the list of channel names.
|
double |
getChannelValue(String name)
Gets a channel value.
|
Map<String,Object> |
getConfigurationMap()
Gets the map of configured values from all devices.
|
List<String> |
getDeviceNames()
Gets the list of all device names.
|
double |
readChannelValue(String name)
Reads a channel value.
|
void |
saveLimits()
Saves the monitoring limits.
|
public MonitorCommands(Monitor mon)
mon - The Monitor object on which the commands will be executed.@Command(type=ACTION, description="Save the monitoring limits") public void saveLimits() throws IOException
IOException@Command(type=QUERY, description="Get the list of all devices") public List<String> getDeviceNames()
@Command(type=QUERY, description="Get the list of channel names") public List<String> getChannelNames()
@Command(type=QUERY, description="Get a channel value") public double getChannelValue(@Argument(name="name",description="Channel name") String name)
name - The channel nameIllegalArgumentException - if the channel doesn't exist@Command(type=QUERY, description="Read a channel value") public double readChannelValue(@Argument(name="name",description="Channel name") String name)
name - The channel nameIllegalArgumentException - if the channel doesn't existCopyright © 2016 LSST. All rights reserved.