|
Project JXTA | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.impl.peergroup.PeerGroupInterface
PeerGroupInterface provides a pure interface object that permits interaction with the actual PeerGroup implementation without giving access to the real object. This class defines immutable objects. It has no control over the wrapped peer group object's life cycle. It serves to make weak PeerGroup interface object.
Nested Class Summary |
Nested classes inherited from class net.jxta.peergroup.PeerGroup |
PeerGroup.GlobalRegistry |
Field Summary | |
protected PeerGroup |
groupImpl
The peer group instance which backs this interface object. |
Fields inherited from interface net.jxta.platform.Module |
START_AGAIN_PROGRESS, START_AGAIN_STALLED, START_OK |
Constructor Summary | |
(package private) |
PeerGroupInterface(PeerGroup theRealThing)
Constructs an interface object that front-ends a given GenericPeerGroup. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.jxta.peergroup.PeerGroup |
|
Field Detail |
protected PeerGroup groupImpl
Constructor Detail |
PeerGroupInterface(PeerGroup theRealThing)
Method Detail |
public void init(PeerGroup pg, ID assignedID, Advertisement impl)
init
in interface Module
public int startApp(String[] arg)
startApp
in interface Module
public void stopApp()
stopApp
in interface Module
public Service getInterface()
getInterface
in interface Service
public PeerGroup getWeakInterface()
getWeakInterface
in interface PeerGroup
public void unref()
unref
in interface PeerGroup
public Advertisement getImplAdvertisement()
getImplAdvertisement
in interface Service
public ThreadGroup getHomeThreadGroup()
getHomeThreadGroup
in interface PeerGroup
public JxtaLoader getLoader()
getLoader
in interface PeerGroup
public boolean isRendezvous()
isRendezvous
in interface PeerGroup
public PeerGroupAdvertisement getPeerGroupAdvertisement()
getPeerGroupAdvertisement
in interface PeerGroup
public PeerAdvertisement getPeerAdvertisement()
getPeerAdvertisement
in interface PeerGroup
public Service lookupService(ID name) throws ServiceNotFoundException
lookupService
in interface PeerGroup
ServiceNotFoundException
public Service lookupService(ID name, int roleIndex) throws ServiceNotFoundException
lookupService
in interface PeerGroup
ServiceNotFoundException
public Iterator getRoleMap(ID name)
getRoleMap
in interface PeerGroup
public boolean compatible(Element compat)
compatible
in interface PeerGroup
public Module loadModule(ID assignedID, Advertisement impl) throws ProtocolNotSupportedException, PeerGroupException
loadModule
in interface PeerGroup
ProtocolNotSupportedException
PeerGroupException
public Module loadModule(ID assignedID, ModuleSpecID specID, int where)
loadModule
in interface PeerGroup
public void publishGroup(String name, String description) throws IOException
publishGroup
in interface PeerGroup
IOException
public PeerGroup newGroup(Advertisement pgAdv) throws PeerGroupException
newGroup
in interface PeerGroup
PeerGroupException
public PeerGroup newGroup(PeerGroupID gid, Advertisement impl, String name, String description) throws PeerGroupException
newGroup
in interface PeerGroup
PeerGroupException
public PeerGroup newGroup(PeerGroupID gid) throws PeerGroupException
newGroup
in interface PeerGroup
PeerGroupException
public RendezVousService getRendezVousService()
getRendezVousService
in interface PeerGroup
public EndpointService getEndpointService()
getEndpointService
in interface PeerGroup
public ResolverService getResolverService()
getResolverService
in interface PeerGroup
public DiscoveryService getDiscoveryService()
getDiscoveryService
in interface PeerGroup
public PeerInfoService getPeerInfoService()
getPeerInfoService
in interface PeerGroup
public MembershipService getMembershipService()
getMembershipService
in interface PeerGroup
public PipeService getPipeService()
getPipeService
in interface PeerGroup
public AccessService getAccessService()
getAccessService
in interface PeerGroup
public PeerGroupID getPeerGroupID()
getPeerGroupID
in interface PeerGroup
public PeerID getPeerID()
getPeerID
in interface PeerGroup
public String getPeerGroupName()
getPeerGroupName
in interface PeerGroup
public String getPeerName()
getPeerName
in interface PeerGroup
public ConfigParams getConfigAdvertisement()
getConfigAdvertisement
in interface PeerGroup
public ModuleImplAdvertisement getAllPurposePeerGroupImplAdvertisement() throws Exception
getAllPurposePeerGroupImplAdvertisement
in interface PeerGroup
Exception
public PeerGroup getParentGroup()
getParentGroup
in interface PeerGroup
|
JXTA J2SE | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |