net.jxta.impl.meter
Class MonitorManager
java.lang.Object
net.jxta.impl.meter.MonitorManager
- All Implemented Interfaces:
- Module, Service
- public class MonitorManager
- extends Object
- implements Service
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NOT_PULSING
public static final int NOT_PULSING
- See Also:
- Constant Field Values
MonitorManager
public MonitorManager()
getImplAdvertisement
public Advertisement getImplAdvertisement()
- Specified by:
getImplAdvertisement
in interface Service
getInterface
public Service getInterface()
- Specified by:
getInterface
in interface Service
init
public void init(PeerGroup peerGroup,
ID assignedID,
Advertisement implAdvertisement)
- Specified by:
init
in interface Module
startApp
public int startApp(String[] args)
- Specified by:
startApp
in interface Module
stopApp
public void stopApp()
- Specified by:
stopApp
in interface Module
getReportRates
public static long[] getReportRates()
isLocalMonitoringAvailable
public boolean isLocalMonitoringAvailable(ModuleClassID moduleClassID)
getPeerGroup
public PeerGroup getPeerGroup()
getPeerMonitorInfo
public PeerMonitorInfo getPeerMonitorInfo()
getReportRatesCount
public int getReportRatesCount()
getReportRateIndex
public int getReportRateIndex(long reportRate)
isSupportedReportRate
public boolean isSupportedReportRate(long reportRate)
getReportRate
public long getReportRate(int index)
getBestReportRate
public long getBestReportRate(long desiredReportRate)
getServiceMonitor
public ServiceMonitor getServiceMonitor(ModuleClassID moduleClassID)
validateCumulativeMonitorFilter
public void validateCumulativeMonitorFilter(MonitorFilter monitorFilter)
throws MonitorFilterException
- Throws:
MonitorFilterException
validateMonitorFilter
public void validateMonitorFilter(MonitorFilter monitorFilter,
long reportRate)
throws MonitorFilterException
- Throws:
MonitorFilterException
createSupportedCumulativeMonitorFilter
public MonitorFilter createSupportedCumulativeMonitorFilter(MonitorFilter monitorFilter)
throws MonitorFilterException
- Throws:
MonitorFilterException
createSupportedMonitorFilter
public MonitorFilter createSupportedMonitorFilter(MonitorFilter monitorFilter,
long reportRate)
throws MonitorFilterException
- Throws:
MonitorFilterException
addMonitorListener
public long addMonitorListener(MonitorFilter monitorFilter,
long reportRate,
boolean includeCumulative,
MonitorListener monitorListener)
throws MonitorException
- Throws:
MonitorException
removeMonitorListener
public int removeMonitorListener(MonitorListener monitorListener)
getCumulativeMonitorReport
public MonitorReport getCumulativeMonitorReport(MonitorFilter monitorFilter)
throws MonitorFilterException,
MonitorException
- Throws:
MonitorFilterException
MonitorException
getMonitorableServiceTypes
public ModuleClassID[] getMonitorableServiceTypes()
getPulseRate
public long getPulseRate()
getPulseRateIndex
public int getPulseRateIndex()
getPulseRate
public long getPulseRate(ServiceMonitor serviceMonitor)
getPulseRateIndex
public long getPulseRateIndex(ServiceMonitor serviceMonitor)
isEvenPulseForRateIndex
boolean isEvenPulseForRateIndex(int pulseRateIndex)
destroy
public void destroy()
registerMonitorManager
public static MonitorManager registerMonitorManager(PeerGroup peerGroup)
throws JxtaException
- DO NOT USE THIS METHOD: It will be deprecated when MonitorManager becomes a
FULL FLEDGED SERVICE
- Throws:
JxtaException
unregisterMonitorManager
public static void unregisterMonitorManager(PeerGroup peerGroup)
- DO NOT USE THIS METHOD: It will be deprecated when MonitorManager becomes a
FULL FLEDGED SERVICE
getServiceMonitor
public static ServiceMonitor getServiceMonitor(PeerGroup peerGroup,
ModuleClassID serviceClassID)