org.inria.myriads.snoozenode.groupmanager.monitoring.receiver
public final class LocalControllerSummaryReceiver extends TCPDataReceiver implements DataListener
Constructor and Description |
---|
LocalControllerSummaryReceiver(org.inria.myriads.snoozecommon.communication.NetworkAddress networkAddress,
int timeOut,
BlockingQueue<LocalControllerDataTransporter> dataQueue,
StateMachine stateMachine,
GroupManagerRepository repository)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
onDataArrival(Object data,
String workerThreadId)
Data event callback.
|
void |
onFailure(String workerThreadId)
The failure event callback.
|
run, setHandler, terminate
public LocalControllerSummaryReceiver(org.inria.myriads.snoozecommon.communication.NetworkAddress networkAddress, int timeOut, BlockingQueue<LocalControllerDataTransporter> dataQueue, StateMachine stateMachine, GroupManagerRepository repository) throws Exception
networkAddress
- The network addresstimeOut
- The timeoutdataQueue
- The data queuestateMachine
- The state machinerepository
- The group manager repositoryException
public void onFailure(String workerThreadId)
onFailure
in interface DataListener
workerThreadId
- The worker thread identifierpublic void onDataArrival(Object data, String workerThreadId)
onDataArrival
in interface DataListener
data
- The data objectworkerThreadId
- The worker thread identifierCopyright © 2013. All Rights Reserved.