|
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
public class 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 Modulearg - A table of strings arguments.
public void stopApp()
stopApp in interface ModulePeerInfoHandler getPeerInfoHandler(String name)
public Service getInterface()
getInterface in interface Servicepublic Advertisement getImplAdvertisement()
getImplAdvertisement in interface Service
public void init(PeerGroup group,
ID assignedID,
Advertisement impl)
throws PeerGroupException
init in interface Modulegroup - assignedID - impl -
PeerGroupException - throw any exception thrown during
obtaining Servicepublic PeerGroup getGroup()
public boolean isLocalMonitoringAvailable()
isLocalMonitoringAvailable in interface PeerInfoServicepublic boolean isLocalMonitoringAvailable(ModuleClassID moduleClassID)
isLocalMonitoringAvailable in interface PeerInfoServicepublic long[] getSupportedReportRates()
getSupportedReportRates in interface PeerInfoServicepublic boolean isSupportedReportRate(long reportRate)
isSupportedReportRate in interface PeerInfoServicepublic long getBestReportRate(long desiredReportRate)
getBestReportRate in interface PeerInfoServicepublic PeerMonitorInfo getPeerMonitorInfo()
getPeerMonitorInfo in interface PeerInfoService
public void getPeerMonitorInfo(PeerID peerID,
PeerMonitorInfoListener peerMonitorInfoListener,
long timeout)
throws MonitorException
getPeerMonitorInfo in interface PeerInfoServiceMonitorException
public MonitorReport getCumulativeMonitorReport(MonitorFilter monitorFilter)
throws MonitorException
getCumulativeMonitorReport in interface PeerInfoServiceMonitorException
public void getCumulativeMonitorReport(PeerID peerID,
MonitorFilter monitorFilter,
MonitorListener monitorListener,
long timeout)
throws MonitorException
getCumulativeMonitorReport in interface PeerInfoServiceMonitorException
public long addMonitorListener(MonitorFilter monitorFilter,
long reportRate,
boolean includeCumulative,
MonitorListener monitorListener)
throws MonitorException
addMonitorListener in interface PeerInfoServiceMonitorException
public void addRemoteMonitorListener(PeerID peerID,
MonitorFilter monitorFilter,
long reportRate,
boolean includeCumulative,
MonitorListener monitorListener,
long lease,
long timeout)
throws MonitorException
addRemoteMonitorListener in interface PeerInfoServiceMonitorException
public boolean removeMonitorListener(MonitorListener monitorListener)
throws MonitorException
removeMonitorListener in interface PeerInfoServiceMonitorException
public void removeRemoteMonitorListener(PeerID peerID,
MonitorListener monitorListener,
long timeout)
throws MonitorException
removeRemoteMonitorListener in interface PeerInfoServiceMonitorException
public void removeRemoteMonitorListener(MonitorListener monitorListener,
long timeout)
throws MonitorException
removeRemoteMonitorListener in interface PeerInfoServiceMonitorException
|
JXTA J2SE | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||