|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.resilientedge.jockey.peerbridge.PeerPlatformBridge
Bridges between the client side api for peer networking and the service provider.
Constructor Summary | |
PeerPlatformBridge()
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 |
static PeerPlatformBridge |
getInstance()
Returns the singleton instance |
boolean |
init()
Initialize this instance. |
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,
Authority[] authorities)
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 PeerPlatformBridge()
Method Detail |
public static PeerPlatformBridge getInstance()
public PlatformInfo getInfo()
public PeerGroupToken getDefaultGroup()
public PeerNetwork getDefaultPeerNetwork()
public PeerNetworkBrowser getBrowserForGroup(PeerGroupToken group)
group
- Description of Parameterpublic AppToken startAppSession(AppDescriptor app, Authority[] authorities)
app
- app starting a new sessionpublic void endAppSession(AppToken app)
app
- the app token returned from startAppSession().public void addAuthority(Authority authority)
authority
- The feature to be added to the Authority attributepublic void removeAuthority(Authority authority)
authority
- Description of Parameterpublic void releaseInstance(PeerPlatform instance)
instance
- PeerPlatform instancepublic boolean init()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |