public abstract class GenericRemoteMonitor extends AbstractMasterHandlerImpl implements MonitorService
| Modifier and Type | Field and Description |
|---|---|
protected EventProcessor |
eventProcessor |
protected java.util.concurrent.Executor |
executor |
protected java.lang.String |
id |
protected MonitorStatus |
state |
protected java.util.Date |
timestamp |
eventAttributes| Constructor and Description |
|---|
GenericRemoteMonitor(BundleContext context,
java.util.concurrent.Executor executor,
|
| Modifier and Type | Method and Description |
|---|---|
void |
addStatusListener(MonitorListener listener) |
protected Event.EventBuilder |
createEventBuilder()
Create a pre-filled event builder
|
void |
dataUpdate(java.util.Map<java.lang.String,java.lang.Object> context,
DataItemValue.Builder value)
Called when data changed or the handler chain changed.
|
void |
dispose() |
java.lang.String |
getId() |
protected java.util.Map<java.lang.String,Variant> |
getMonitorAttributes() |
protected static java.util.Calendar |
getTimestamp(DataItemValue.Builder itemValue,
java.lang.String attributeName) |
protected abstract void |
handleUpdate(DataItemValue.Builder itemValue) |
protected DataItemValue.Builder |
injectState(DataItemValue.Builder builder) |
java.lang.Long |
makeTimestamp(java.util.Date date) |
protected void |
nodeChanged(DataNode node) |
protected void |
publishAckRequestEvent(UserInformation user,
java.util.Date aknTimestamp) |
void |
removeStatusListener(MonitorListener listener) |
protected void |
reprocess() |
protected void |
setState(MonitorStatus state) |
protected void |
setState(MonitorStatus state,
java.util.Date timestamp,
java.util.Date aknTimestamp) |
protected void |
setStore(DataStore store) |
addItem, createTrackers, getMasterItems, processWrite, removeItem, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaknprotected final java.lang.String id
protected MonitorStatus state
protected java.util.Date timestamp
protected final EventProcessor eventProcessor
protected final java.util.concurrent.Executor executor
public GenericRemoteMonitor(BundleContext context,
java.util.concurrent.Executor executor,
poolTracker,
int priority,
java.lang.String id,
EventProcessor eventProcessor)
protected void nodeChanged(DataNode node)
protected void setStore(DataStore store)
public void dispose()
dispose in class AbstractMasterHandlerImplpublic java.lang.String getId()
getId in interface MonitorServiceprotected void setState(MonitorStatus state)
protected void setState(MonitorStatus state, java.util.Date timestamp, java.util.Date aknTimestamp)
protected static java.util.Calendar getTimestamp(DataItemValue.Builder itemValue, java.lang.String attributeName)
protected abstract void handleUpdate(DataItemValue.Builder itemValue)
public void dataUpdate(java.util.Map<java.lang.String,java.lang.Object> context,
DataItemValue.Builder value)
MasterItemHandlerThe call gets a context object provided which each handler can use to store context information of one calculation run. Each calculation run gets a fresh new context. The context is intended to pass data from one handler to the next.
Although the value parameter is a mutable type, the handler may only make changes inside the dataUpdate method.
dataUpdate in interface MasterItemHandlerdataUpdate in class AbstractMasterHandlerImplcontext - the context objectvalue - the changed valuepublic java.lang.Long makeTimestamp(java.util.Date date)
protected java.util.Map<java.lang.String,Variant> getMonitorAttributes()
protected Event.EventBuilder createEventBuilder()
protected void publishAckRequestEvent(UserInformation user,
java.util.Date aknTimestamp)
protected DataItemValue.Builder injectState(DataItemValue.Builder builder)
public void addStatusListener(MonitorListener listener)
addStatusListener in interface MonitorServicepublic void removeStatusListener(MonitorListener listener)
removeStatusListener in interface MonitorServiceprotected void reprocess()
reprocess in class AbstractMasterHandlerImpl
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0