JXTA

net.jxta.impl.rendezvous.rendezvousMeter
Class RendezvousServiceMonitor

java.lang.Object
  extended by net.jxta.impl.meter.GenericServiceMonitor
      extended by net.jxta.impl.rendezvous.rendezvousMeter.RendezvousServiceMonitor
All Implemented Interfaces:
ServiceMonitorImpl, ServiceMonitor, Module

public class RendezvousServiceMonitor
extends GenericServiceMonitor

The Service Monitor for the standard Rendezvous Service


Field Summary
 
Fields inherited from class net.jxta.impl.meter.GenericServiceMonitor
cumulativeServiceMetric, deltaServiceMetrics, implAdvertisement, monitorManager, reportRate, reportRateIndex
 
Fields inherited from interface net.jxta.platform.Module
START_AGAIN_PROGRESS, START_AGAIN_STALLED, START_DISABLED, START_OK
 
Constructor Summary
RendezvousServiceMonitor()
           
 
Method Summary
protected  ServiceMetric collectServiceMetrics()
          Get the service metrics accrued since the last pulse
 ClientConnectionMeter getClientConnectionMeter(EndpointAddress endpointAddress)
          Get a Client Connection Meter
 ClientConnectionMeter getClientConnectionMeter(PeerID peerId)
          Get a Client Connection Meter
 ClientConnectionMeter getClientConnectionMeter(String peerIdString)
          Get a Client Connection Meter
 ServiceMetric getCumulativeServiceMetric(ServiceMonitorFilter serviceMonitorFilter, long fromTime, long toTime)
          Get ServiceMetrics since the start (or last reset time) of this ServiceMonitor.
 RendezvousConnectionMeter getRendezvousConnectionMeter(PeerID peerID)
          Get a Rendezvous Connection Meter
 RendezvousConnectionMeter getRendezvousConnectionMeter(String peerIdStr)
          Get a Rendezvous Connection Meter
 RendezvousMeter getRendezvousMeter()
          Get the General RendezvousMeter
 ServiceMetric getServiceMetric(ServiceMonitorFilter serviceMonitorFilter, long fromTime, long toTime, int pulseIndex, long reportRate)
          Get ServiceMetrics accrued in during this pulse interval
protected  void init()
          
 
Methods inherited from class net.jxta.impl.meter.GenericServiceMonitor
beginCumulativeReport, beginPulse, createServiceMetric, createSupportedCumulativeServiceMonitorFilter, createSupportedServiceMonitorFilter, destroy, endCumulativeReport, endPulse, getCumulativeServiceMetric, getModuleClassID, getPeerGroup, init, init, resetPulseRate, serviceMonitorFilterDeregistered, serviceMonitorFilterRegistered, startApp, stopApp, validateCumulativeServiceMonitorFilter, validateServiceMonitorFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RendezvousServiceMonitor

public RendezvousServiceMonitor()
Method Detail

init

protected void init()

Overrides:
init in class GenericServiceMonitor

getRendezvousMeter

public RendezvousMeter getRendezvousMeter()
Get the General RendezvousMeter

Returns:
client RendezvousMeter

getClientConnectionMeter

public ClientConnectionMeter getClientConnectionMeter(EndpointAddress endpointAddress)
Get a Client Connection Meter

Parameters:
endpointAddress - containing Peer Id for the Meter
Returns:
client connection meter

getClientConnectionMeter

public ClientConnectionMeter getClientConnectionMeter(PeerID peerId)
Get a Client Connection Meter

Parameters:
peerId - Peer Id for the Meter
Returns:
client connection meter

getClientConnectionMeter

public ClientConnectionMeter getClientConnectionMeter(String peerIdString)
Get a Client Connection Meter

Parameters:
peerIdString - Peer Id as a String
Returns:
client connection meter

getRendezvousConnectionMeter

public RendezvousConnectionMeter getRendezvousConnectionMeter(String peerIdStr)
Get a Rendezvous Connection Meter

Parameters:
peerIdStr - Peer Id for the Meter as a String
Returns:
the Rendezvous Connection Meter

getRendezvousConnectionMeter

public RendezvousConnectionMeter getRendezvousConnectionMeter(PeerID peerID)
Get a Rendezvous Connection Meter

Parameters:
peerID - Peer Id for the Meter
Returns:
the Rendezvous Connection Meter

collectServiceMetrics

protected ServiceMetric collectServiceMetrics()
Get the service metrics accrued since the last pulse

Specified by:
collectServiceMetrics in class GenericServiceMonitor
Returns:
null if there were no metrices since the last call

getServiceMetric

public ServiceMetric getServiceMetric(ServiceMonitorFilter serviceMonitorFilter,
                                      long fromTime,
                                      long toTime,
                                      int pulseIndex,
                                      long reportRate)
Get ServiceMetrics accrued in during this pulse interval

Specified by:
getServiceMetric in interface ServiceMonitor
Overrides:
getServiceMetric in class GenericServiceMonitor
Parameters:
serviceMonitorFilter - Filter Metrics based upon this MonitorFilter
fromTime - Beginning time as determined by the MonitorManager
toTime - Ending time as determined by the MonitorManager
pulseIndex - Pulse Index of the reporting rate Pyramid
reportRate - Reporting Rate (corresponding to the PulseNumber's index)

getCumulativeServiceMetric

public ServiceMetric getCumulativeServiceMetric(ServiceMonitorFilter serviceMonitorFilter,
                                                long fromTime,
                                                long toTime)
Get ServiceMetrics since the start (or last reset time) of this ServiceMonitor. Calls to this will only occurr between calls to beginCumulativeReport() and endCumulativeReport()

Specified by:
getCumulativeServiceMetric in interface ServiceMonitor
Overrides:
getCumulativeServiceMetric in class GenericServiceMonitor
Parameters:
serviceMonitorFilter - Filter Metrics based upon this MonitorFilter
fromTime - Beginning time as determined by the MonitorManager
toTime - Ending time as determined by the MonitorManager
See Also:
ServiceMonitor.beginCumulativeReport(), ServiceMonitor.endCumulativeReport()

JXSE