|
Project JXTA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServiceMonitor
The base interface for all ServiceMonitors For complete information about Service Monitors see the Document Designing and Implementing Service Monitors
| Field Summary |
|---|
| Fields inherited from interface net.jxta.platform.Module |
|---|
START_AGAIN_PROGRESS, START_AGAIN_STALLED, START_OK |
| Method Summary | |
|---|---|
void |
beginCumulativeReport()
A request for a cumulative Report(s) are coming, prepare to receive them |
ServiceMonitorFilter |
createSupportedCumulativeServiceMonitorFilter(ServiceMonitorFilter serviceMonitorFilter)
Transform the provided ServiceMonitorFilter into one that is supported for cumulative reporting |
ServiceMonitorFilter |
createSupportedServiceMonitorFilter(ServiceMonitorFilter serviceMonitorFilter,
long reportRate)
Transform the provided ServiceMonitorFilter into one that is supported for periodic reporting at the specified rate |
void |
destroy()
Clean up. |
void |
endCumulativeReport()
Indication that the flurry of requests for cumulative Report is over |
ServiceMetric |
getCumulativeServiceMetric(ServiceMonitorFilter serviceMonitorFilter,
long fromTime,
long toTime)
Get ServiceMetrics since the start (or last reset time) of this ServiceMonitor. |
ModuleClassID |
getModuleClassID()
Get ModuleClassID of this ServiceMonitor |
ServiceMetric |
getServiceMetric(ServiceMonitorFilter serviceMonitorFilter,
long fromTime,
long toTime,
int pulseIndex,
long reportRate)
Get ServiceMetrics accrued in during this pulse interval |
void |
serviceMonitorFilterDeregistered(ServiceMonitorFilter serviceMonitorFilter,
int reportRateIndex,
long reportRate,
boolean retiredRate)
Information that the Monitor Manager is deregistering the Monitoring for this filter at this rate |
void |
serviceMonitorFilterRegistered(ServiceMonitorFilter serviceMonitorFilter,
int reportRateIndex,
long reportRate,
boolean newRate)
Information that the Monitor Manager has accepted a Monitoring for this filter at this rate |
void |
validateCumulativeServiceMonitorFilter(ServiceMonitorFilter serviceMonitorFilter)
Validate ServiceMonitorFilter for a cumulative Report |
void |
validateServiceMonitorFilter(ServiceMonitorFilter serviceMonitorFilter,
long reportRate)
Validate ServiceMonitorFilter for a periodic Reporting |
| Methods inherited from interface net.jxta.platform.Module |
|---|
init, startApp, stopApp |
| Method Detail |
|---|
ModuleClassID getModuleClassID()
ServiceMetric getServiceMetric(ServiceMonitorFilter serviceMonitorFilter,
long fromTime,
long toTime,
int pulseIndex,
long reportRate)
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)void beginCumulativeReport()
endCumulativeReport()
ServiceMetric getCumulativeServiceMetric(ServiceMonitorFilter serviceMonitorFilter,
long fromTime,
long toTime)
serviceMonitorFilter - Filter Metrics based upon this MonitorFilterfromTime - Beginning time as determined by the MonitorManagertoTime - Ending time as determined by the MonitorManagerbeginCumulativeReport(),
endCumulativeReport()void endCumulativeReport()
beginCumulativeReport()
void validateCumulativeServiceMonitorFilter(ServiceMonitorFilter serviceMonitorFilter)
throws MonitorFilterException
MonitorFilterException
void validateServiceMonitorFilter(ServiceMonitorFilter serviceMonitorFilter,
long reportRate)
throws MonitorFilterException
MonitorFilterException
ServiceMonitorFilter createSupportedCumulativeServiceMonitorFilter(ServiceMonitorFilter serviceMonitorFilter)
throws MonitorFilterException
MonitorFilterException
ServiceMonitorFilter createSupportedServiceMonitorFilter(ServiceMonitorFilter serviceMonitorFilter,
long reportRate)
throws MonitorFilterException
MonitorFilterException
void serviceMonitorFilterRegistered(ServiceMonitorFilter serviceMonitorFilter,
int reportRateIndex,
long reportRate,
boolean newRate)
serviceMonitorFilter - Accepted FilterreportRateIndex - Pulse Index into pyramid of accepted ratereportRate - Accepted reporting ratenewRate - Is this a new reporting rate (ie you don't have any currently registered at this rate)
void serviceMonitorFilterDeregistered(ServiceMonitorFilter serviceMonitorFilter,
int reportRateIndex,
long reportRate,
boolean retiredRate)
serviceMonitorFilter - Deregistered FilterreportRateIndex - Pulse Index into pyramid of deregistered filterreportRate - Reporting rate of deregistered filterretiredRate - Is this a retired filter the last one registered at this rate (ie you don't have to keep metrics for this rate any longer)void destroy()
|
JXTA J2SE | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||