|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.resilientedge.jockey.peer.PeerPlatform
|
+--com.resilientedge.jockey.peer.PeerPlatformImpl
The PeerPlatform is the primary entry point for an application to create and end sessions, add and remove credentials, and obtain access to defaults.
| Constructor Summary | |
PeerPlatformImpl()
Basic constructor. |
|
| Method Summary | |
void |
addAuthority(Authority authority)
Adds an application authority |
void |
endAppSession(AppToken app)
End a session for the given application. |
PeerNetworkBrowser |
getBrowserForGroup(PeerGroupToken group)
Allows an application to obtain a browser for a given group. |
PeerGroupToken |
getDefaultGroup()
Returns the default group for the application |
PeerNetwork |
getDefaultPeerNetwork()
Returns the default network for the group |
PlatformInfo |
getInfo()
Returns information about the current platform and available networks |
MessageBroker |
getMessageBroker(AppToken app,
PeerGroupToken group)
Returns a broker for the given group |
void |
releaseInstance(PeerPlatform instance)
Releases an instance previously obtained from getInstance() This is not necessary in this java implementation; we rely on Java garbage collection. |
void |
removeAuthority(Authority authority)
Removes an application authority |
AppToken |
startAppSession(AppDescriptor app)
Starts a new session for the given application and returns a new session token |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PeerPlatformImpl()
| Method Detail |
public PlatformInfo getInfo()
getInfo in class PeerPlatformpublic PeerGroupToken getDefaultGroup()
getDefaultGroup in class PeerPlatformpublic PeerNetwork getDefaultPeerNetwork()
getDefaultPeerNetwork in class PeerPlatformpublic PeerNetworkBrowser getBrowserForGroup(PeerGroupToken group)
getBrowserForGroup in class PeerPlatformgroup - Description of Parameter
public MessageBroker getMessageBroker(AppToken app,
PeerGroupToken group)
getMessageBroker in class PeerPlatformgroup - Description of Parameterpublic AppToken startAppSession(AppDescriptor app)
startAppSession in class PeerPlatformapp - app starting a new sessionpublic void endAppSession(AppToken app)
endAppSession in class PeerPlatformapp - the app token returned from startAppSession().public void addAuthority(Authority authority)
addAuthority in class PeerPlatformauthority - The feature to be added to the Authority attributepublic void removeAuthority(Authority authority)
removeAuthority in class PeerPlatformauthority - Description of Parameterpublic void releaseInstance(PeerPlatform instance)
instance - PeerPlatform instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||