public abstract class AbstractStateMonitor extends AbstractMonitorService
monitorListeners
Constructor and Description |
---|
AbstractStateMonitor(String id,
Executor executor,
com.google.common.collect.Interner<String> stringInterner,
EventProcessor eventProcessor) |
Modifier and Type | Method and Description |
---|---|
void |
akn(UserInformation userInformation,
Date aknTimestamp) |
protected void |
applyPersistentInformation(PersistentInformation persistentInformation) |
protected void |
buildMonitorAttributes(Map<String,Variant> attributes) |
protected Event.EventBuilder |
createEvent(UserInformation userInformation) |
StateInformation |
getCurrentState() |
protected void |
injectEventAttributes(Event.EventBuilder builder) |
boolean |
isSuppressEvents() |
protected void |
sendEvent(Event.EventBuilder builder) |
protected void |
sendEvent(Event event) |
protected void |
sendEvent(Event event,
boolean force) |
protected void |
setAttributes(Map<String,Variant> attributes) |
protected void |
setFailure(Variant value,
Long valueTimestamp,
Severity severity,
boolean requireAck) |
protected void |
setFailure(Variant value,
Long valueTimestamp,
Severity severity,
boolean requireAck,
MonitorDecorator decorator) |
protected void |
setInactive() |
protected void |
setOk(Variant value,
Long valueTimestamp) |
protected void |
setState(StateInformation.Builder builder,
long now,
MonitorDecorator decorator) |
protected void |
setStringAttributes(Map<String,String> attributes) |
void |
setSuppressEvents(boolean suppressEvents) |
protected void |
setUnsafe() |
protected abstract void |
storePersistentInformation(PersistentInformation persistentInformation) |
protected void |
triggerFailure(Variant value,
Long valueTimestamp,
Severity severity,
boolean requireAck,
MonitorDecorator decorator) |
addStatusListener, getId, intern, notifyStateChange, removeStatusListener
public AbstractStateMonitor(String id, Executor executor, com.google.common.collect.Interner<String> stringInterner, EventProcessor eventProcessor)
public void akn(UserInformation userInformation, Date aknTimestamp)
protected void sendEvent(Event.EventBuilder builder)
protected void sendEvent(Event event)
protected void sendEvent(Event event, boolean force)
protected void setState(StateInformation.Builder builder, long now, MonitorDecorator decorator)
protected Event.EventBuilder createEvent(UserInformation userInformation)
public StateInformation getCurrentState()
public void setSuppressEvents(boolean suppressEvents)
public boolean isSuppressEvents()
protected void injectEventAttributes(Event.EventBuilder builder)
protected void setUnsafe()
protected void triggerFailure(Variant value, Long valueTimestamp, Severity severity, boolean requireAck, MonitorDecorator decorator)
protected void setFailure(Variant value, Long valueTimestamp, Severity severity, boolean requireAck)
protected void setFailure(Variant value, Long valueTimestamp, Severity severity, boolean requireAck, MonitorDecorator decorator)
protected void setInactive()
protected void applyPersistentInformation(PersistentInformation persistentInformation)
protected abstract void storePersistentInformation(PersistentInformation persistentInformation)
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.