|
Project JXTA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.jxta.impl.peer.PeerInfoServiceInterface
public class PeerInfoServiceInterface
PeerInfoServiceInterface provides a pure interface object that permits interaction with the actual PeerInfoService implementation without giving access to the real object.
| Field Summary |
|---|
| Fields inherited from interface net.jxta.platform.Module |
|---|
START_AGAIN_PROGRESS, START_AGAIN_STALLED, START_OK |
| Constructor Summary | |
|---|---|
PeerInfoServiceInterface(PeerInfoService theRealThing)
Only authorized constructor |
|
| 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)
|
Advertisement |
getImplAdvertisement()
|
Service |
getInterface()
Since THIS is already such an object, it returns itself. |
PeerMonitorInfo |
getPeerMonitorInfo()
|
void |
getPeerMonitorInfo(PeerID peerID,
PeerMonitorInfoListener peerMonitorInfoListener,
long timeout)
|
long[] |
getSupportedReportRates()
|
void |
init(PeerGroup pg,
ID assignedID,
Advertisement impl)
Initialize the application FIXME: This is meaningless for the interface object; it is there only to satisfy the requirements of the interface that we implement. |
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)
This is here for temporary class hierarchy reasons. it is ALWAYS ignored. |
void |
stopApp()
This is here for temporary class hierarchy reasons. it is ALWAYS ignored. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PeerInfoServiceInterface(PeerInfoService theRealThing)
theRealThing - | Method Detail |
|---|
public Service getInterface()
getInterface in interface Servicepublic Advertisement getImplAdvertisement()
getImplAdvertisement in interface Service
public void init(PeerGroup pg,
ID assignedID,
Advertisement impl)
init in interface Modulepublic int startApp(String[] arg)
startApp in interface Modulepublic void stopApp()
stopApp in interface Modulepublic 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 | |||||||||