public class MonitorTaskControl extends Object implements org.lsst.ccs.framework.HasLifecycle
| Constructor and Description |
|---|
MonitorTaskControl() |
| Modifier and Type | Method and Description |
|---|---|
static MonitorTaskControl |
createNode(org.lsst.ccs.Subsystem subsys,
String name)
Create a new object and add it to the tree.
|
Map<String,MonitorTask> |
getMonitorTaskMap()
Gets the map of monitoring task pairs.
|
int |
getPublishPeriod()
Gets the monitoring publishing period.
|
List<String> |
getTaskNames()
Command to get the list of known special monitor task pair names.
|
boolean |
hasPeriodChanged()
Gets whether update period has changed.
|
void |
postInit()
Post-init phase.
|
void |
setPublishPeriod(int period)
Command to set the monitor publishing period.
|
void |
setTaskActive(String taskName,
boolean active)
Command to set the active state for a special monitor task pair.
|
void |
setTaskPeriod(String taskName,
int period)
Command to set the period for a special monitor task pair.
|
public static MonitorTaskControl createNode(org.lsst.ccs.Subsystem subsys, String name)
subsys - The subsystem objectname - The name of this nodepublic void postInit()
postInit in interface org.lsst.ccs.framework.HasLifecycle@Command(type=ACTION,
description="Set the monitor publish period")
public void setPublishPeriod(@Argument(description="The publish period (ms)")
int period)
period - The period (milliseconds) to set.@Command(type=QUERY,
level=0,
description="Get the special monitor task names")
public List<String> getTaskNames()
@Command(type=ACTION,
description="Set the period for a special monitor task")
public void setTaskPeriod(@Argument(description="The task name")
String taskName,
@Argument(description="The task period (ms)")
int period)
taskName - The name of the taskperiod - The period (ms)@Command(type=ACTION,
description="Set the active state for a special monitor task")
public void setTaskActive(@Argument(description="The task name")
String taskName,
@Argument(description="Whether to make active")
boolean active)
taskName - The name of the taskactive - Whether to activate or notpublic boolean hasPeriodChanged()
public Map<String,MonitorTask> getMonitorTaskMap()
public int getPublishPeriod()
Copyright © 2020 LSST. All rights reserved.