public class JXTAPlatformImpl extends Object implements JXTAPlatform
Modifier and Type | Field and Description |
---|---|
protected JXTAPlatformConfig |
config |
protected static String |
INITNODESDIR |
protected boolean |
isRdv |
protected net.jxta.peergroup.PeerGroup |
langridPeerGroup |
protected static net.jxta.document.MimeMediaType |
mimeMediaType |
protected net.jxta.peergroup.PeerGroup |
netPeerGroup |
protected boolean |
running |
protected net.jxta.peergroup.PeerGroup |
workingPeerGroup |
Constructor and Description |
---|
JXTAPlatformImpl(JXTAPlatformConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
checkPlatformRunning() |
void |
clearCache() |
protected net.jxta.peergroup.PeerGroup |
createPeerGroup(net.jxta.peergroup.PeerGroup peerGroup,
net.jxta.peergroup.PeerGroupID pid,
String peerGroupName,
String peerGroupDescription) |
protected net.jxta.peergroup.PeerGroup |
discoverPeerGroup(net.jxta.peergroup.PeerGroup peerGroup,
net.jxta.peergroup.PeerGroupID pid) |
net.jxta.document.Advertisement[] |
getAdvertisements(JXTAPlatformSearchCondition cond) |
net.jxta.platform.NetworkManager |
getNetworkManager() |
net.jxta.peergroup.PeerGroup |
getPeerGroup() |
net.jxta.peer.PeerID |
getPeerID() |
boolean |
isRdv() |
protected void |
joinGroupNullMembership(net.jxta.peergroup.PeerGroup grp) |
void |
localPublish(net.jxta.document.Advertisement adv) |
void |
localPublish(net.jxta.document.Advertisement adv,
long lifetimeMillis,
long expirationMillis) |
void |
peers_r() |
void |
publish(net.jxta.document.Advertisement advertisement) |
void |
publish(net.jxta.document.Advertisement advertisement,
long lifetimeMillis,
long expirationMillis) |
void |
rdvstatus(boolean verbose) |
void |
rdvstatus(PrintStream stream,
boolean verbose,
net.jxta.peergroup.PeerGroup peerGroup) |
protected void |
registerAdvertisementInstances(Map<String,net.jxta.document.AdvertisementFactory.Instantiator> instances) |
void |
searchAdvertisements(JXTAPlatformSearchCondition cond) |
void |
showStatus(PrintStream stream,
boolean verbose) |
void |
shutdown() |
void |
start(String sourceGridId,
boolean hosted,
Collection<URL> seedUrls,
net.jxta.discovery.DiscoveryListener discoveryListener) |
protected void |
startJXTA(String gridId,
boolean hosted,
Collection<URL> seedUrls) |
protected void |
startUpdater() |
protected static final String INITNODESDIR
protected static net.jxta.document.MimeMediaType mimeMediaType
protected net.jxta.peergroup.PeerGroup netPeerGroup
protected net.jxta.peergroup.PeerGroup langridPeerGroup
protected net.jxta.peergroup.PeerGroup workingPeerGroup
protected JXTAPlatformConfig config
protected boolean running
protected boolean isRdv
public JXTAPlatformImpl(JXTAPlatformConfig config)
public net.jxta.platform.NetworkManager getNetworkManager()
getNetworkManager
in interface JXTAPlatform
public void start(String sourceGridId, boolean hosted, Collection<URL> seedUrls, net.jxta.discovery.DiscoveryListener discoveryListener) throws JXTAPlatformException
start
in interface JXTAPlatform
JXTAPlatformException
protected net.jxta.peergroup.PeerGroup discoverPeerGroup(net.jxta.peergroup.PeerGroup peerGroup, net.jxta.peergroup.PeerGroupID pid) throws JXTAPlatformException
JXTAPlatformException
protected net.jxta.peergroup.PeerGroup createPeerGroup(net.jxta.peergroup.PeerGroup peerGroup, net.jxta.peergroup.PeerGroupID pid, String peerGroupName, String peerGroupDescription) throws JXTAPlatformException
JXTAPlatformException
protected void joinGroupNullMembership(net.jxta.peergroup.PeerGroup grp) throws JXTAPlatformException
JXTAPlatformException
public void publish(net.jxta.document.Advertisement advertisement) throws JXTAPlatformException
publish
in interface JXTAPlatform
JXTAPlatformException
public void publish(net.jxta.document.Advertisement advertisement, long lifetimeMillis, long expirationMillis) throws JXTAPlatformException
publish
in interface JXTAPlatform
JXTAPlatformException
public void localPublish(net.jxta.document.Advertisement adv) throws JXTAPlatformException
localPublish
in interface JXTAPlatform
JXTAPlatformException
public void localPublish(net.jxta.document.Advertisement adv, long lifetimeMillis, long expirationMillis) throws JXTAPlatformException
localPublish
in interface JXTAPlatform
JXTAPlatformException
public void searchAdvertisements(JXTAPlatformSearchCondition cond) throws JXTAPlatformException
searchAdvertisements
in interface JXTAPlatform
JXTAPlatformException
public net.jxta.document.Advertisement[] getAdvertisements(JXTAPlatformSearchCondition cond) throws JXTAPlatformException
getAdvertisements
in interface JXTAPlatform
JXTAPlatformException
public void checkPlatformRunning() throws JXTAPlatformException
JXTAPlatformException
public void shutdown()
shutdown
in interface JXTAPlatform
public net.jxta.peer.PeerID getPeerID()
getPeerID
in interface JXTAPlatform
public void clearCache()
clearCache
in interface JXTAPlatform
protected void registerAdvertisementInstances(Map<String,net.jxta.document.AdvertisementFactory.Instantiator> instances)
protected void startUpdater()
public void rdvstatus(boolean verbose)
rdvstatus
in interface JXTAPlatform
public void peers_r()
peers_r
in interface JXTAPlatform
public void rdvstatus(PrintStream stream, boolean verbose, net.jxta.peergroup.PeerGroup peerGroup)
protected void startJXTA(String gridId, boolean hosted, Collection<URL> seedUrls) throws net.jxta.exception.PeerGroupException
net.jxta.exception.PeerGroupException
public void showStatus(PrintStream stream, boolean verbose)
showStatus
in interface JXTAPlatform
public net.jxta.peergroup.PeerGroup getPeerGroup()
getPeerGroup
in interface JXTAPlatform
public boolean isRdv()
isRdv
in interface JXTAPlatform