|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.jxta.impl.peer.PeerInfoInterface
PeerInfoInterface provides a pure interface object that permits interaction with the actual PeerInfo implementation without giving access to the real object.
Constructor Summary | |
PeerInfoInterface(net.jxta.peer.PeerInfo theRealThing)
Only authorized constructor |
Method Summary | |
void |
flushAdvertisements(java.lang.String id)
Flush cached advertisements. |
net.jxta.document.Advertisement |
getAdvertisement()
Returns the advertisment for that service. |
net.jxta.service.Service |
getInterface()
returns an interface object that permits to use this service without having access to the real object. |
java.util.Enumeration |
getLocalPeerInfo(java.lang.String peer)
Get PeerInfo from local cache. |
net.jxta.protocol.PeerInfoAdvertisement |
getPeerInfo()
Retrieve Peer Information Advertisement for local peer |
void |
getRemotePeerInfo(java.lang.String peer)
Get PeerInfo from a remote peer. |
void |
init(net.jxta.peergroup.PeerGroup pg,
net.jxta.document.Advertisement a)
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. |
void |
registerService(net.jxta.protocol.ServiceAdvertisement advertisement)
Register a Service in the Peer Advertisement service adversement describes a specific service that is running on the peer (i.e. |
int |
startApp(java.lang.String[] arg)
This is here for temporary class hierarchy reasons. |
void |
stopApp()
This is here for temporary class hierarchy reasons. |
void |
unRegisterService(net.jxta.protocol.ServiceAdvertisement advertisement)
unRegisters a prevously registered service |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public PeerInfoInterface(net.jxta.peer.PeerInfo theRealThing)
Method Detail |
public net.jxta.service.Service getInterface()
public net.jxta.document.Advertisement getAdvertisement()
public void init(net.jxta.peergroup.PeerGroup pg, net.jxta.document.Advertisement a)
group
- PeerGroup this application is started frompublic int startApp(java.lang.String[] arg)
arg
- A table of strings arguments.public void stopApp()
public net.jxta.protocol.PeerInfoAdvertisement getPeerInfo()
public void registerService(net.jxta.protocol.ServiceAdvertisement advertisement) throws java.io.IOException
advertisement
- service advertisement to be registeredpublic void unRegisterService(net.jxta.protocol.ServiceAdvertisement advertisement) throws java.io.IOException
advertisement
- service advertisement to be unregisteredpublic void getRemotePeerInfo(java.lang.String peer)
peer
- Address of a peer, or portal to connect to, if
address is nullpublic java.util.Enumeration getLocalPeerInfo(java.lang.String peer) throws java.io.IOException
peer
- Address of a peer, or portal to connect to, if
address is nullpublic void flushAdvertisements(java.lang.String id) throws java.io.IOException
id
- peerId of peer whose locally cached adv is to be
deleted. If null, cached advs of all peers are deleted.
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |