org.inria.myriads.snoozenode.groupmanager.monitoring.receiver
Class LocalControllerSummaryReceiver

java.lang.Object
  extended by org.inria.myriads.snoozenode.tcpip.TCPDataReceiver
      extended by org.inria.myriads.snoozenode.groupmanager.monitoring.receiver.LocalControllerSummaryReceiver
All Implemented Interfaces:
Runnable, DataListener

public final class LocalControllerSummaryReceiver
extends TCPDataReceiver
implements DataListener

Local controller monitoring data receiver.

Author:
Eugen Feller

Constructor Summary
LocalControllerSummaryReceiver(org.inria.myriads.snoozecommon.communication.NetworkAddress networkAddress, int timeOut, BlockingQueue<LocalControllerDataTransporter> dataQueue, StateMachine stateMachine, GroupManagerRepository repository)
          Constructor.
 
Method Summary
 void onDataArrival(Object data, String workerThreadId)
          Data event callback.
 void onFailure(String workerThreadId)
          The failure event callback.
 
Methods inherited from class org.inria.myriads.snoozenode.tcpip.TCPDataReceiver
run, setHandler, terminate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalControllerSummaryReceiver

public LocalControllerSummaryReceiver(org.inria.myriads.snoozecommon.communication.NetworkAddress networkAddress,
                                      int timeOut,
                                      BlockingQueue<LocalControllerDataTransporter> dataQueue,
                                      StateMachine stateMachine,
                                      GroupManagerRepository repository)
                               throws Exception
Constructor.

Parameters:
networkAddress - The network address
timeOut - The timeout
dataQueue - The data queue
stateMachine - The state machine
repository - The group manager repository
Throws:
Exception
Method Detail

onFailure

public void onFailure(String workerThreadId)
The failure event callback.

Specified by:
onFailure in interface DataListener
Parameters:
workerThreadId - The worker thread identifier

onDataArrival

public void onDataArrival(Object data,
                          String workerThreadId)
Data event callback.

Specified by:
onDataArrival in interface DataListener
Parameters:
data - The data object
workerThreadId - The worker thread identifier


Copyright © 2012. All Rights Reserved.