|
Project JXTA | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.impl.peer.PeerInfoServiceImpl
Peer Info provides a mechanism to obtain information about peers.
Nested Class Summary | |
(package private) class |
PeerInfoServiceImpl.PipQueryHandler
|
Field Summary | |
(package private) static Hashtable |
peerInfoServices
|
Fields inherited from interface net.jxta.platform.Module |
START_AGAIN_PROGRESS, START_AGAIN_STALLED, START_OK |
Constructor Summary | |
PeerInfoServiceImpl()
|
Method Summary | |
long |
addMonitorListener(MonitorFilter monitorFilter,
long reportRate,
boolean includeCumulative,
MonitorListener monitorListener)
|
void |
addRemoteMonitorListener(PeerID peerID,
MonitorFilter monitorFilter,
long reportRate,
boolean includeCumulative,
MonitorListener monitorListener,
long lease,
long timeout)
|
long |
getBestReportRate(long desiredReportRate)
|
MonitorReport |
getCumulativeMonitorReport(MonitorFilter monitorFilter)
|
void |
getCumulativeMonitorReport(PeerID peerID,
MonitorFilter monitorFilter,
MonitorListener monitorListener,
long timeout)
|
PeerGroup |
getGroup()
Returns the group to which this service is attached. |
Advertisement |
getImplAdvertisement()
Returns the advertisement for that service. |
Service |
getInterface()
Service objects are not manipulated directly to protect usage of the service. |
(package private) int |
getNextQueryId()
|
(package private) PeerInfoHandler |
getPeerInfoHandler(String name)
|
PeerMonitorInfo |
getPeerMonitorInfo()
|
void |
getPeerMonitorInfo(PeerID peerID,
PeerMonitorInfoListener peerMonitorInfoListener,
long timeout)
|
long[] |
getSupportedReportRates()
|
void |
init(PeerGroup group,
ID assignedID,
Advertisement impl)
init is called by PeerGroup to init the Service |
boolean |
isLocalMonitoringAvailable()
|
boolean |
isLocalMonitoringAvailable(ModuleClassID moduleClassID)
|
boolean |
isSupportedReportRate(long reportRate)
|
boolean |
removeMonitorListener(MonitorListener monitorListener)
|
void |
removeRemoteMonitorListener(MonitorListener monitorListener,
long timeout)
|
void |
removeRemoteMonitorListener(PeerID peerID,
MonitorListener monitorListener,
long timeout)
|
int |
startApp(String[] arg)
Supply arguments and starts this service if it hadn't started by itself. |
void |
stopApp()
Ask this service to stop. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static Hashtable peerInfoServices
Constructor Detail |
public PeerInfoServiceImpl()
Method Detail |
int getNextQueryId()
public int startApp(String[] arg)
startApp
in interface Module
arg
- A table of strings arguments.
public void stopApp()
stopApp
in interface Module
PeerInfoHandler getPeerInfoHandler(String name)
public Service getInterface()
getInterface
in interface Service
public Advertisement getImplAdvertisement()
getImplAdvertisement
in interface Service
public void init(PeerGroup group, ID assignedID, Advertisement impl) throws PeerGroupException
init
in interface Module
group
- assignedID
- impl
-
PeerGroupException
- throw any exception thrown during
obtaining Servicepublic PeerGroup getGroup()
public boolean isLocalMonitoringAvailable()
isLocalMonitoringAvailable
in interface PeerInfoService
public boolean isLocalMonitoringAvailable(ModuleClassID moduleClassID)
isLocalMonitoringAvailable
in interface PeerInfoService
public long[] getSupportedReportRates()
getSupportedReportRates
in interface PeerInfoService
public boolean isSupportedReportRate(long reportRate)
isSupportedReportRate
in interface PeerInfoService
public long getBestReportRate(long desiredReportRate)
getBestReportRate
in interface PeerInfoService
public PeerMonitorInfo getPeerMonitorInfo()
getPeerMonitorInfo
in interface PeerInfoService
public void getPeerMonitorInfo(PeerID peerID, PeerMonitorInfoListener peerMonitorInfoListener, long timeout) throws MonitorException
getPeerMonitorInfo
in interface PeerInfoService
MonitorException
public MonitorReport getCumulativeMonitorReport(MonitorFilter monitorFilter) throws MonitorException
getCumulativeMonitorReport
in interface PeerInfoService
MonitorException
public void getCumulativeMonitorReport(PeerID peerID, MonitorFilter monitorFilter, MonitorListener monitorListener, long timeout) throws MonitorException
getCumulativeMonitorReport
in interface PeerInfoService
MonitorException
public long addMonitorListener(MonitorFilter monitorFilter, long reportRate, boolean includeCumulative, MonitorListener monitorListener) throws MonitorException
addMonitorListener
in interface PeerInfoService
MonitorException
public void addRemoteMonitorListener(PeerID peerID, MonitorFilter monitorFilter, long reportRate, boolean includeCumulative, MonitorListener monitorListener, long lease, long timeout) throws MonitorException
addRemoteMonitorListener
in interface PeerInfoService
MonitorException
public boolean removeMonitorListener(MonitorListener monitorListener) throws MonitorException
removeMonitorListener
in interface PeerInfoService
MonitorException
public void removeRemoteMonitorListener(PeerID peerID, MonitorListener monitorListener, long timeout) throws MonitorException
removeRemoteMonitorListener
in interface PeerInfoService
MonitorException
public void removeRemoteMonitorListener(MonitorListener monitorListener, long timeout) throws MonitorException
removeRemoteMonitorListener
in interface PeerInfoService
MonitorException
|
JXTA J2SE | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |