org.yamcs.alarms.EventAlarmStreamer Maven / Gradle / Ivy
package org.yamcs.alarms;
import java.util.ArrayList;
import org.yamcs.StandardTupleDefinitions;
import org.yamcs.yarch.DataType;
import org.yamcs.yarch.Stream;
import org.yamcs.yarch.protobuf.Db.Event;
/**
* Receives event alarms from the {@link AlarmServer} and sends them to the events_alarms stream to be recorded
*
*/
public class EventAlarmStreamer extends AlarmStreamer {
public static final DataType EVENT_DATA_TYPE = DataType
.protobuf(Event.class.getName());
public static final String CNAME_LAST_EVENT = "event";
public static final String CNAME_TRIGGER = "triggerEvent";
public static final String CNAME_CLEAR = "clearEvent";
public static final String CNAME_SEVERITY_INCREASED = "severityIncreasedEvent";
public EventAlarmStreamer(Stream s) {
super(s, EVENT_DATA_TYPE, StandardTupleDefinitions.EVENT_ALARM);
}
@Override
protected ArrayList