cgl.narada.performance
Class MeasurementInitiator

java.lang.Object
  extended by java.lang.Thread
      extended by cgl.narada.performance.MeasurementInitiator
All Implemented Interfaces:
Runnable

public class MeasurementInitiator
extends Thread

This class ensures that the managed links send out performance packets at specified intervals.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
MeasurementInitiator()
           
 
Method Summary
 void addToListOfManagedLinks(Link link)
           
 void checkNewLinks()
           
 void disableMonitoring()
           
 void displayMetrics()
           
 void enableMonitoring()
           
 Hashtable getLinks()
           
 String getNumberWithPrecision(String s)
           
 boolean isThereAnyMeasuringLink()
           
static void main(String[] args)
           
 void removeFromListOfManagedLinks(Link link)
           
 void run()
           
 void setMeasurementInterval(long interval)
           
 void setTransportHandler(TransportHandler th)
           
 
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

MeasurementInitiator

public MeasurementInitiator()
Method Detail

addToListOfManagedLinks

public void addToListOfManagedLinks(Link link)

getLinks

public Hashtable getLinks()

removeFromListOfManagedLinks

public void removeFromListOfManagedLinks(Link link)

setMeasurementInterval

public void setMeasurementInterval(long interval)

setTransportHandler

public void setTransportHandler(TransportHandler th)

checkNewLinks

public void checkNewLinks()

enableMonitoring

public void enableMonitoring()

disableMonitoring

public void disableMonitoring()

displayMetrics

public void displayMetrics()

getNumberWithPrecision

public String getNumberWithPrecision(String s)

isThereAnyMeasuringLink

public boolean isThereAnyMeasuringLink()

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

main

public static void main(String[] args)


For comments and suggestions please send e-mail to The NaradaBrokering Project