org.inria.myriads.snoozenode.groupmanager.monitoring.receiver
Class GroupManagerSummaryReceiver
java.lang.Object
org.inria.myriads.snoozenode.tcpip.TCPDataReceiver
org.inria.myriads.snoozenode.groupmanager.monitoring.receiver.GroupManagerSummaryReceiver
- All Implemented Interfaces:
- Runnable, DataListener
public final class GroupManagerSummaryReceiver
- extends TCPDataReceiver
- implements DataListener
Group manager monitoring data receiver.
- Author:
- Eugen Feller
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroupManagerSummaryReceiver
public GroupManagerSummaryReceiver(org.inria.myriads.snoozecommon.communication.NetworkAddress networkAddress,
int timeOut,
GroupLeaderRepository repository)
throws Exception
- Constructor.
- Parameters:
networkAddress
- The network addresstimeOut
- The timeoutrepository
- The group leader repository
- Throws:
Exception
onFailure
public void onFailure(String workerThreadId)
- Handles the monitoring data timeout.
- Specified by:
onFailure
in interface DataListener
- Parameters:
workerThreadId
- The worker thread id
onDataArrival
public void onDataArrival(Object data,
String workerThreadId)
- Data event callback.
- Specified by:
onDataArrival
in interface DataListener
- Parameters:
data
- The data objectworkerThreadId
- The worker thread identifier
Copyright © 2012. All Rights Reserved.