urv.emulator.tasks.stats
Class MembershipStatsTask

java.lang.Object
  extended by java.lang.Thread
      extended by urv.emulator.tasks.EmulatorTask
          extended by urv.emulator.tasks.stats.MembershipStatsTask
All Implemented Interfaces:
java.lang.Runnable, EmulationGroupMembershipListener

public class MembershipStatsTask
extends EmulatorTask
implements EmulationGroupMembershipListener

This task gathers information about the groups created in the applications and the nodes that joined these groups This information is checked with the view of each MChannel, in order to verify the correct behaviour of getView() method in the channel

Author:
Marcel Arrufat Arias

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
MembershipStatsTask()
           
 
Method Summary
 void doSomething()
          Add the code that should be launched in the run method
 void onGroupCreated(java.net.InetAddress multicastAddress, java.net.InetAddress localAddress, MChannel mChannel)
           
 
Methods inherited from class urv.emulator.tasks.EmulatorTask
getClassName, getEmulationController, print, run, setEmulationController
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MembershipStatsTask

public MembershipStatsTask()
Parameters:
emulationController -
Method Detail

doSomething

public void doSomething()
Add the code that should be launched in the run method

Specified by:
doSomething in class EmulatorTask

onGroupCreated

public void onGroupCreated(java.net.InetAddress multicastAddress,
                           java.net.InetAddress localAddress,
                           MChannel mChannel)
Specified by:
onGroupCreated in interface EmulationGroupMembershipListener