|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.wadi.core.contextualiser.BasicInvocation
public class BasicInvocation
| Field Summary | |
|---|---|
protected long |
exclusiveSessionLockWaitTime
|
protected Session |
session
|
protected java.lang.String |
sessionKey
|
| Constructor Summary | |
|---|---|
BasicInvocation(java.lang.String sessionKey,
long exclusiveSessionLockWaitTime)
|
|
| Method Summary | |
|---|---|
protected void |
doInvoke()
|
protected void |
doInvoke(InvocationContext context)
|
int |
getErrorCode()
|
java.lang.String |
getErrorMessage()
|
long |
getExclusiveSessionLockWaitTime()
|
Session |
getSession()
|
java.lang.String |
getSessionKey()
Return the key carried by the Invocation associating it with server-side state - a Session |
void |
invoke()
Actually make the encapsulated Invocation. |
void |
invoke(InvocationContext context)
|
protected void |
invokeOnEndProcessing()
|
boolean |
isAcquireLockOnInvocationStart()
|
boolean |
isDoNotExecuteOnEndProcessing()
|
boolean |
isErrored()
|
boolean |
isErrorIfSessionNotAcquired()
|
boolean |
isProxiedInvocation()
|
boolean |
isReleaseLockOnInvocationEnd()
|
boolean |
isRelocatable()
Does this Invocation know how to 'relocate' itself to another EndPoint ? |
boolean |
isWithExclusiveLock()
|
InvocationContext |
newContext(Session context)
|
void |
relocate(EndPoint endPoint)
Ask this Invocation to relocate itself to a given EndPoint |
void |
sendError(int code,
java.lang.String message)
Send an error back to the client from which the Invocation originated |
void |
setAcquireLockOnInvocationStart(boolean acquireLockOnInvocationStart)
|
void |
setDoNotExecuteOnEndProcessing(boolean doNotExecuteOnEndProcessing)
|
void |
setErrorIfSessionNotAcquired(boolean errorIfSessionNotAcquired)
|
void |
setInvocationProxy(InvocationProxy proxy)
|
void |
setReleaseLockOnInvocationEnd(boolean releaseLockOnInvocationEnd)
|
void |
setSession(Session session)
Attach the relevant Session to this Invocation for its lifetime |
void |
setWithExclusiveLock(boolean withExclusiveLock)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.lang.String sessionKey
protected Session session
protected long exclusiveSessionLockWaitTime
| Constructor Detail |
|---|
public BasicInvocation(java.lang.String sessionKey,
long exclusiveSessionLockWaitTime)
| Method Detail |
|---|
public Session getSession()
getSession in interface Invocationpublic java.lang.String getSessionKey()
Invocation
getSessionKey in interface Invocation
public void invoke()
throws InvocationException
Invocation
invoke in interface InvocationInvocationException
public void invoke(InvocationContext context)
throws InvocationException
invoke in interface InvocationInvocationExceptionprotected void invokeOnEndProcessing()
protected void doInvoke()
throws InvocationException
InvocationException
protected void doInvoke(InvocationContext context)
throws InvocationException
InvocationExceptionpublic boolean isProxiedInvocation()
isProxiedInvocation in interface Invocationpublic boolean isRelocatable()
Invocation
isRelocatable in interface Invocation
public void relocate(EndPoint endPoint)
throws InvocationException
Invocation
relocate in interface InvocationendPoint - the EndPoint
InvocationException
public void sendError(int code,
java.lang.String message)
throws InvocationException
Invocation
sendError in interface Invocationcode - an error codemessage - an error message
InvocationExceptionpublic void setInvocationProxy(InvocationProxy proxy)
setInvocationProxy in interface Invocationpublic void setSession(Session session)
Invocation
setSession in interface Invocationsession - The Sessionpublic boolean isErrorIfSessionNotAcquired()
isErrorIfSessionNotAcquired in interface Invocationpublic void setErrorIfSessionNotAcquired(boolean errorIfSessionNotAcquired)
setErrorIfSessionNotAcquired in interface Invocationpublic boolean isErrored()
public int getErrorCode()
public java.lang.String getErrorMessage()
public long getExclusiveSessionLockWaitTime()
getExclusiveSessionLockWaitTime in interface Invocationpublic boolean isDoNotExecuteOnEndProcessing()
public void setDoNotExecuteOnEndProcessing(boolean doNotExecuteOnEndProcessing)
public InvocationContext newContext(Session context)
newContext in interface Invocationpublic boolean isWithExclusiveLock()
isWithExclusiveLock in interface Invocationpublic void setWithExclusiveLock(boolean withExclusiveLock)
public void setAcquireLockOnInvocationStart(boolean acquireLockOnInvocationStart)
public boolean isAcquireLockOnInvocationStart()
isAcquireLockOnInvocationStart in interface Invocationpublic void setReleaseLockOnInvocationEnd(boolean releaseLockOnInvocationEnd)
public boolean isReleaseLockOnInvocationEnd()
isReleaseLockOnInvocationEnd in interface Invocation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||