|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Manager
Manager - A Session Manager abstraction. Responsibilities include Session creation, destruction, storage and the processing of Invocations in the presence of the Session.
Field Summary | |
---|---|
static ServiceName |
NAME
|
Method Summary | |
---|---|
boolean |
contextualise(Invocation invocation)
Contextualise an Invocation - somehow colocate the Invocation and the relevant Session within the same JVM somewhere in the Cluster, give the Invocation the Session and invoke() it. |
Session |
create(Invocation invocation)
Create a new Session |
Session |
createWithName(java.lang.String name)
|
void |
destroy(Session session)
Destroy a Session |
int |
getMaxInactiveInterval()
|
SessionIdFactory |
getSessionIdFactory()
|
void |
init(ManagerConfig config)
Initialise the Manager with information not readily available at construction time. |
void |
setMaxInactiveInterval(int interval)
|
Methods inherited from interface org.codehaus.wadi.core.Lifecycle |
---|
start, stop |
Field Detail |
---|
static final ServiceName NAME
Method Detail |
---|
void init(ManagerConfig config)
config
- An object carrying configuration informationsSession createWithName(java.lang.String name) throws SessionAlreadyExistException
SessionAlreadyExistException
Session create(Invocation invocation)
invocation
- the Invocation
void destroy(Session session)
session
- the Sessionint getMaxInactiveInterval()
void setMaxInactiveInterval(int interval)
The
- maximum amount of time (in seconds) that a Session
may lie inactive (i.e. without receiving an Invocation) before it
should be garbage collected.SessionIdFactory getSessionIdFactory()
boolean contextualise(Invocation invocation) throws InvocationException
invocation
-
InvocationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |