|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectp2ps.imp.peer.PeerImp
The main peer class that groups all the services together.
| Field Summary | |
protected AdvertisementFactory |
adverts
the advertisement factory |
protected Config |
config
the configuration of this peer |
protected DiscoveryService |
discovery
the discovery service |
protected GroupService |
group
the group service |
protected PipeService |
pipes
the pipe service |
protected RendezvousService |
rendezvous
the advertisement factory |
| Constructor Summary | |
PeerImp(Config config)
Constructs but does not initialise a peer. |
|
PeerImp(Config config,
char[] password)
Constructs but does not initialise a peer. |
|
PeerImp(Peer parent)
Constructs a group peer with the specified parent. |
|
| Method Summary | |
AdvertisementFactory |
getAdvertisementFactory()
|
Config |
getConfig()
|
DiscoveryService |
getDiscoveryService()
|
java.lang.String[] |
getGroupIDs()
|
GroupService |
getGroupService()
|
java.lang.String |
getIDPath()
|
java.lang.String |
getPeerID()
|
PipeService |
getPipeService()
|
RendezvousService |
getRendezvousService()
|
SecurityContext |
getSecurityContext()
|
SecurityManager |
getSecurityManager()
|
void |
init()
Initialises the peer |
void |
init(GroupAdvertisement groupad,
Peer parent)
Initialises the peer to belong to the specified group |
protected void |
initAdvertisementFactory()
Initialises the advertisement factory. |
protected void |
initDiscoveryService()
Initialises the discovery service |
protected void |
initGroupService()
Initialises the rendezvous service |
protected void |
initIDFactory()
Initializes the id factory |
protected void |
initLogging()
Kicks off the autoconfiguration of the default logging within the autolog package. |
protected void |
initNetworkInterface()
Initializes the id factory |
protected void |
initPipeService()
Initialises the pipe service |
protected void |
initRendezvousService()
Initialises the rendezvous service |
protected java.lang.Object |
initService(java.lang.String clsname)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected AdvertisementFactory adverts
protected DiscoveryService discovery
protected RendezvousService rendezvous
protected PipeService pipes
protected GroupService group
protected Config config
| Constructor Detail |
public PeerImp(Config config)
throws InitializationException,
java.io.IOException
public PeerImp(Config config,
char[] password)
throws InitializationException,
java.io.IOException
public PeerImp(Peer parent)
throws InitializationException,
java.io.IOException
| Method Detail |
protected void initLogging()
protected void initIDFactory()
protected void initNetworkInterface()
protected void initAdvertisementFactory()
protected void initPipeService()
throws java.io.IOException
java.io.IOException
protected void initDiscoveryService()
throws java.io.IOException
java.io.IOException
protected void initRendezvousService()
throws InitializationException,
java.io.IOException
InitializationException
java.io.IOException
protected void initGroupService()
throws java.io.IOException
java.io.IOException
protected java.lang.Object initService(java.lang.String clsname)
throws java.io.IOException
java.io.IOException
public void init()
throws InitializationException,
java.io.IOException
init in interface PeerInitializationException
java.io.IOException
public void init(GroupAdvertisement groupad,
Peer parent)
throws UnknownAuthorizationMechanismException,
AuthorizationException,
InitializationException,
java.io.IOException
init in interface PeerUnknownAuthorizationMechanismException
AuthorizationException
InitializationException
java.io.IOExceptionpublic java.lang.String getPeerID()
getPeerID in interface Peerpublic java.lang.String[] getGroupIDs()
getGroupIDs in interface Peerpublic java.lang.String getIDPath()
getIDPath in interface Peerpublic Config getConfig()
getConfig in interface Peerpublic SecurityContext getSecurityContext()
getSecurityContext in interface Peerpublic SecurityManager getSecurityManager()
getSecurityManager in interface Peerpublic AdvertisementFactory getAdvertisementFactory()
getAdvertisementFactory in interface Peerpublic DiscoveryService getDiscoveryService()
getDiscoveryService in interface Peerpublic RendezvousService getRendezvousService()
getRendezvousService in interface Peerpublic PipeService getPipeService()
getPipeService in interface Peerpublic GroupService getGroupService()
getGroupService in interface Peer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||