net.jxta.instantp2p
Class InstantP2PApp
java.lang.Object
|
+--net.jxta.instantp2p.PeerGroupApp
|
+--net.jxta.instantp2p.InstantP2PApp
- public class InstantP2PApp
- extends PeerGroupApp
Method Summary |
void |
init(net.jxta.peergroup.PeerGroup group,
net.jxta.document.Advertisement adv)
Initialize the application |
protected boolean |
isValidPeer(net.jxta.protocol.PeerGroupAdvertisement peerAdv)
|
void |
removeAllContentRequests()
Returns the SharePolicy for the PeerGroup |
protected boolean |
replaceTest(net.jxta.protocol.PeerGroupAdvertisement newPeerAdv,
net.jxta.protocol.PeerGroupAdvertisement oldPeerAdv)
|
protected void |
startPolicy()
Protected Methods to be overloaded by subclasses |
Methods inherited from class net.jxta.instantp2p.PeerGroupApp |
addGroup,
addPeer,
checkDiscoverResults,
createPipeAdvertisement,
getAdvertisement,
getDirectory,
getDiscovery,
getGids,
getGroup,
getGroupName,
getGroups,
getNewPeerGroupAdvertisement,
getParentApp,
getPeer,
getPeerGroup,
getPeers,
getPids,
getPipePolicy,
getRootDirectory,
joinGroup,
joinNewGroup,
loadAdvertisement,
pollDiscover,
removeGroup,
removePeer,
requestRemoteDiscover,
saveAdvertisement,
selectPeer,
setApp,
setParentApp,
setRootDirectory,
startApp,
stopApp |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
InstantP2PApp
public InstantP2PApp()
init
public void init(net.jxta.peergroup.PeerGroup group,
net.jxta.document.Advertisement adv)
throws net.jxta.exception.PeerGroupException
- Description copied from class: PeerGroupApp
- Initialize the application
- Overrides:
- init in class PeerGroupApp
- Tags copied from class: PeerGroupApp
- Parameters:
group
- PeerGroup this application is started from
removeAllContentRequests
public void removeAllContentRequests()
- Returns the SharePolicy for the PeerGroup
- Returns:
- the SharePolicy for the PeerGroup
- Since:
- JXTA 1.0
startPolicy
protected void startPolicy()
throws net.jxta.exception.PeerGroupException
- Protected Methods to be overloaded by subclasses
- Overrides:
- startPolicy in class PeerGroupApp
isValidPeer
protected boolean isValidPeer(net.jxta.protocol.PeerGroupAdvertisement peerAdv)
- Overrides:
- isValidPeer in class PeerGroupApp
replaceTest
protected boolean replaceTest(net.jxta.protocol.PeerGroupAdvertisement newPeerAdv,
net.jxta.protocol.PeerGroupAdvertisement oldPeerAdv)
- Overrides:
- replaceTest in class PeerGroupApp