cgl.narada.transport
Class MonitoredLink

java.lang.Object
  extended by cgl.narada.transport.MonitoredLink
Direct Known Subclasses:
IPSecLink, LinkImpl, NIOTCPLink, PTCPLink, TCPLink, UDPLink

public class MonitoredLink
extends Object


Constructor Summary
MonitoredLink()
           
 
Method Summary
 void disablePerformanceFactor(String factor)
           
 void enablePerformanceFactor(String factor)
           
 LinkPerformanceData[] getAllPerformanceData()
          Returns the complete set of performance factors measured and their corresponding values
 long[] getLatencies()
           
 String getPerformanceData(String factorName)
          Returns the value of a performance factor as a string
 String[] getPerformanceFactorsMeasured()
          Returns the list of performance factors that are measured on this communication link
 boolean performanceGatheringEnabled()
          Used to test weather performing gathering is enabled for a given communication link
 void processPerformancePackets(byte[] perfData)
           
 byte[] sendPerformancePackets()
           
 void setPerformanceGathering(boolean gather)
          Used to enable or disable performance gathering on a communication link
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitoredLink

public MonitoredLink()
Method Detail

sendPerformancePackets

public byte[] sendPerformancePackets()
                              throws TransportException
Throws:
TransportException

processPerformancePackets

public void processPerformancePackets(byte[] perfData)

getLatencies

public long[] getLatencies()

setPerformanceGathering

public void setPerformanceGathering(boolean gather)
Used to enable or disable performance gathering on a communication link


performanceGatheringEnabled

public boolean performanceGatheringEnabled()
Used to test weather performing gathering is enabled for a given communication link


getPerformanceFactorsMeasured

public String[] getPerformanceFactorsMeasured()
Returns the list of performance factors that are measured on this communication link


disablePerformanceFactor

public void disablePerformanceFactor(String factor)

enablePerformanceFactor

public void enablePerformanceFactor(String factor)

getAllPerformanceData

public LinkPerformanceData[] getAllPerformanceData()
Returns the complete set of performance factors measured and their corresponding values


getPerformanceData

public String getPerformanceData(String factorName)
Returns the value of a performance factor as a string



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