public class AlarmServer
extends com.google.common.util.concurrent.AbstractService
| Modifier and Type | Field and Description |
|---|---|
static TupleDefinition |
ALARM_TUPLE_DEFINITION |
| Constructor and Description |
|---|
AlarmServer(String yamcsInstance,
String streamName)
Creates an alarm server that pushes all alarms to a stream
|
| Modifier and Type | Method and Description |
|---|---|
ActiveAlarm |
acknowledge(Parameter p,
int id,
String username,
long ackTime,
String message) |
void |
doStart() |
void |
doStop() |
Map<Parameter,ActiveAlarm> |
getActiveAlarms()
Returns the current set of active alarms
|
protected static boolean |
moreSevere(Pvalue.MonitoringResult mr1,
Pvalue.MonitoringResult mr2) |
Map<Parameter,ActiveAlarm> |
subscribe(AlarmListener listener)
Register for alarm notices
|
void |
unsubscribe(AlarmListener listener) |
void |
update(ParameterValue pv,
int minViolations) |
void |
update(ParameterValue pv,
int minViolations,
boolean autoAck) |
public static final TupleDefinition ALARM_TUPLE_DEFINITION
public Map<Parameter,ActiveAlarm> subscribe(AlarmListener listener)
public void unsubscribe(AlarmListener listener)
public Map<Parameter,ActiveAlarm> getActiveAlarms()
public void doStart()
doStart in class com.google.common.util.concurrent.AbstractServicepublic void doStop()
doStop in class com.google.common.util.concurrent.AbstractServicepublic void update(ParameterValue pv, int minViolations)
public void update(ParameterValue pv, int minViolations, boolean autoAck)
public ActiveAlarm acknowledge(Parameter p, int id, String username, long ackTime, String message) throws CouldNotAcknowledgeAlarmException
protected static boolean moreSevere(Pvalue.MonitoringResult mr1, Pvalue.MonitoringResult mr2)
Copyright © 2017 Space Applications Services. All rights reserved.