public class SessionManager extends Object
Modifier and Type | Method and Description |
---|---|
void |
close(UUID session) |
UUID |
createSession(String peerId,
String aalSpaceId,
String scopeId,
String description) |
String |
getAALSpaceIdFromSession(UUID session) |
InputStream |
getInputStream(UUID session) |
static SessionManager |
getInstance() |
OutputStream |
getOutputStream(UUID session) |
String |
getPeerIdFromSession(UUID session) |
UUID |
getSession(String peerId,
String aalSpaceId,
String scopeId) |
UUID[] |
getSessionFromAALScopeId(String scopeId) |
UUID[] |
getSessionIds() |
boolean |
isActive(UUID session) |
boolean |
isDuplicatedSession(UUID sessionId,
String peerId,
String aalSpaceId,
String scopeId) |
void |
setLink(UUID session,
InputStream in,
OutputStream out) |
void |
storeSession(UUID sessionId,
String peerId,
String aalSpaceId,
String scopeId) |
public static final Logger log
public static SessionManager getInstance()
public UUID[] getSessionFromAALScopeId(String scopeId)
scopeId
- the AAL Space Id to use for the researchpublic UUID createSession(String peerId, String aalSpaceId, String scopeId, String description)
public void setLink(UUID session, InputStream in, OutputStream out)
public void close(UUID session)
public OutputStream getOutputStream(UUID session)
public InputStream getInputStream(UUID session)
public boolean isActive(UUID session)
public UUID[] getSessionIds()
public boolean isDuplicatedSession(UUID sessionId, String peerId, String aalSpaceId, String scopeId)
public void storeSession(UUID sessionId, String peerId, String aalSpaceId, String scopeId)
Copyright © 2015 universAAL Consortium. All Rights Reserved.