|
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
class 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/interfaces inherited from interface 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 | |
|---|---|
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 |
| Field Detail |
|---|
protected PeerGroup groupImpl
| Constructor Detail |
|---|
PeerGroupInterface(PeerGroup theRealThing)
| Method Detail |
|---|
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 Service getInterface()
getInterface in interface Servicepublic PeerGroup getWeakInterface()
getWeakInterface in interface PeerGrouppublic void unref()
unref in interface PeerGrouppublic Advertisement getImplAdvertisement()
getImplAdvertisement in interface Servicepublic ThreadGroup getHomeThreadGroup()
getHomeThreadGroup in interface PeerGrouppublic JxtaLoader getLoader()
getLoader in interface PeerGrouppublic boolean isRendezvous()
isRendezvous in interface PeerGrouppublic PeerGroupAdvertisement getPeerGroupAdvertisement()
getPeerGroupAdvertisement in interface PeerGrouppublic PeerAdvertisement getPeerAdvertisement()
getPeerAdvertisement in interface PeerGroup
public Service lookupService(ID name)
throws ServiceNotFoundException
lookupService in interface PeerGroupServiceNotFoundException
public Service lookupService(ID name,
int roleIndex)
throws ServiceNotFoundException
lookupService in interface PeerGroupServiceNotFoundExceptionpublic Iterator getRoleMap(ID name)
getRoleMap in interface PeerGrouppublic boolean compatible(Element compat)
compatible in interface PeerGroup
public Module loadModule(ID assignedID,
Advertisement impl)
throws ProtocolNotSupportedException,
PeerGroupException
loadModule in interface PeerGroupProtocolNotSupportedException
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 PeerGroupIOException
public PeerGroup newGroup(Advertisement pgAdv)
throws PeerGroupException
newGroup in interface PeerGroupPeerGroupException
public PeerGroup newGroup(PeerGroupID gid,
Advertisement impl,
String name,
String description)
throws PeerGroupException
newGroup in interface PeerGroupPeerGroupException
public PeerGroup newGroup(PeerGroupID gid)
throws PeerGroupException
newGroup in interface PeerGroupPeerGroupExceptionpublic RendezVousService getRendezVousService()
getRendezVousService in interface PeerGrouppublic EndpointService getEndpointService()
getEndpointService in interface PeerGrouppublic ResolverService getResolverService()
getResolverService in interface PeerGrouppublic DiscoveryService getDiscoveryService()
getDiscoveryService in interface PeerGrouppublic PeerInfoService getPeerInfoService()
getPeerInfoService in interface PeerGrouppublic MembershipService getMembershipService()
getMembershipService in interface PeerGrouppublic PipeService getPipeService()
getPipeService in interface PeerGrouppublic AccessService getAccessService()
getAccessService in interface PeerGrouppublic PeerGroupID getPeerGroupID()
getPeerGroupID in interface PeerGrouppublic PeerID getPeerID()
getPeerID in interface PeerGrouppublic String getPeerGroupName()
getPeerGroupName in interface PeerGrouppublic String getPeerName()
getPeerName in interface PeerGrouppublic ConfigParams getConfigAdvertisement()
getConfigAdvertisement in interface PeerGroup
public ModuleImplAdvertisement getAllPurposePeerGroupImplAdvertisement()
throws Exception
getAllPurposePeerGroupImplAdvertisement in interface PeerGroupExceptionpublic PeerGroup getParentGroup()
getParentGroup in interface PeerGroup
|
JXTA J2SE | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||