public interface RmiDataCollecting extends Remote
SensorRepository. After
collecting some sensor datas, this class averages over the data collected
and calls its registered data collectors rmiProcessData(java.util.Map<java.lang.String, stella.DataEvent>, boolean) method.
The data collectors are responsible for further processing the data, e.g.
they can write it into a data-base or display it graphically.| Modifier and Type | Method and Description |
|---|---|
long |
rmiGetInterval()
Returns the intervall in which the listener wants to be notified.This
is devided by the repositories base intervall to yield the number of
averaged data events used for notification.
|
void |
rmiProcessData(Map<String,DataEvent> sensors,
boolean weather)
This method is called after the
stella.sensor.ShortAverageRepository collected
some data. |
void rmiProcessData(Map<String,DataEvent> sensors, boolean weather) throws RemoteException
stella.sensor.ShortAverageRepository collected
some data. In the argument, all sensors that have at least once in the
liftime of the repository delivered data are mapped against the
average DataEvent
of all data events sent during the
averaging period. Note that it is in principle possible that the
sensor mapped has not produced a single data event in the last
averaging period and therfore is mapped to null.
This version is the remote counterpart to
DataCollecting. It should be used with data
collectors that reside in a different VM than the repository
RemoteExceptionlong rmiGetInterval()
throws RemoteException
RemoteException