Project JXTA

net.jxta.meter
Class PeerMonitorInfo

java.lang.Object
  extended by net.jxta.meter.PeerMonitorInfo
All Implemented Interfaces:
DocumentSerializable

public class PeerMonitorInfo
extends Object
implements DocumentSerializable

The Monitoring Capabilities of a Local or Remote Peer as a list of ServiceMonitor ClassIDs and supported Reporting Rates.


Field Summary
static PeerMonitorInfo NO_PEER_MONITOR_INFO
           
 
Constructor Summary
PeerMonitorInfo()
          PeerMonitorInfo
PeerMonitorInfo(boolean allowsMonitoring, ModuleClassID[] moduleClassIDs, long[] reportRates, long lastResetTime, long runningTime)
          PeerMonitorInfo
 
Method Summary
 boolean allowsMonitoring()
          Allows Monitoring
 long getLastResetTime()
          Get Time that the Monitor was last Reset (probably same as startTime)
 ModuleClassID[] getModuleClassIDs()
          Get Suported Service Monitors as a list of ModuleClassIDs
 long[] getReportRates()
          Get Suported Reporting Rates (in Milliseconds)
 long getRunningTime()
          Get the running time since the monitor was reset (probably same as upTime)
 void initializeFrom(Element element)
           
 void serializeTo(Element element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_PEER_MONITOR_INFO

public static final PeerMonitorInfo NO_PEER_MONITOR_INFO
Constructor Detail

PeerMonitorInfo

public PeerMonitorInfo()
PeerMonitorInfo


PeerMonitorInfo

public PeerMonitorInfo(boolean allowsMonitoring,
                       ModuleClassID[] moduleClassIDs,
                       long[] reportRates,
                       long lastResetTime,
                       long runningTime)
PeerMonitorInfo

Parameters:
allowsMonitoring -
moduleClassIDs -
reportRates -
Method Detail

allowsMonitoring

public boolean allowsMonitoring()
Allows Monitoring


getReportRates

public long[] getReportRates()
Get Suported Reporting Rates (in Milliseconds)

Returns:
long[]

getModuleClassIDs

public ModuleClassID[] getModuleClassIDs()
Get Suported Service Monitors as a list of ModuleClassIDs


getLastResetTime

public long getLastResetTime()
Get Time that the Monitor was last Reset (probably same as startTime)


getRunningTime

public long getRunningTime()
Get the running time since the monitor was reset (probably same as upTime)


serializeTo

public void serializeTo(Element element)
                 throws DocumentSerializationException
Specified by:
serializeTo in interface DocumentSerializable
Throws:
DocumentSerializationException

initializeFrom

public void initializeFrom(Element element)
                    throws DocumentSerializationException
Specified by:
initializeFrom in interface DocumentSerializable
Throws:
DocumentSerializationException

JXTA J2SE