net.jxta.impl.endpoint.endpointMeter
Class EndpointServiceMonitor
java.lang.Object
net.jxta.impl.meter.GenericServiceMonitor
net.jxta.impl.endpoint.endpointMeter.EndpointServiceMonitor
- All Implemented Interfaces:
- ServiceMonitorImpl, ServiceMonitor, Module
public class EndpointServiceMonitor
- extends GenericServiceMonitor
Standard EndpointService Monitor
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 |
EndpointServiceMonitor
public EndpointServiceMonitor()
init
protected void init()
-
- Overrides:
init
in class GenericServiceMonitor
getEndpointMeter
public EndpointMeter getEndpointMeter()
getInboundMeter
public InboundMeter getInboundMeter(String serviceName,
String serviceParam)
getPropagationMeter
public PropagationMeter getPropagationMeter(String serviceName,
String serviceParam)
getOutboundMeter
public OutboundMeter getOutboundMeter(EndpointAddress endpointAddress)
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 MonitorFilterfromTime
- Beginning time as determined by the MonitorManagertoTime
- Ending time as determined by the MonitorManagerpulseIndex
- Pulse Index of the reporting rate PyramidreportRate
- 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 MonitorFilterfromTime
- Beginning time as determined by the MonitorManagertoTime
- Ending time as determined by the MonitorManager- See Also:
ServiceMonitor.beginCumulativeReport()
,
ServiceMonitor.endCumulativeReport()
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