|
||||||||||
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 Invocation
public java.lang.String getSessionKey()
Invocation
getSessionKey
in interface Invocation
public void invoke() throws InvocationException
Invocation
invoke
in interface Invocation
InvocationException
public void invoke(InvocationContext context) throws InvocationException
invoke
in interface Invocation
InvocationException
protected void invokeOnEndProcessing()
protected void doInvoke() throws InvocationException
InvocationException
protected void doInvoke(InvocationContext context) throws InvocationException
InvocationException
public boolean isProxiedInvocation()
isProxiedInvocation
in interface Invocation
public boolean isRelocatable()
Invocation
isRelocatable
in interface Invocation
public void relocate(EndPoint endPoint) throws InvocationException
Invocation
relocate
in interface Invocation
endPoint
- the EndPoint
InvocationException
public void sendError(int code, java.lang.String message) throws InvocationException
Invocation
sendError
in interface Invocation
code
- an error codemessage
- an error message
InvocationException
public void setInvocationProxy(InvocationProxy proxy)
setInvocationProxy
in interface Invocation
public void setSession(Session session)
Invocation
setSession
in interface Invocation
session
- The Sessionpublic boolean isErrorIfSessionNotAcquired()
isErrorIfSessionNotAcquired
in interface Invocation
public void setErrorIfSessionNotAcquired(boolean errorIfSessionNotAcquired)
setErrorIfSessionNotAcquired
in interface Invocation
public boolean isErrored()
public int getErrorCode()
public java.lang.String getErrorMessage()
public long getExclusiveSessionLockWaitTime()
getExclusiveSessionLockWaitTime
in interface Invocation
public boolean isDoNotExecuteOnEndProcessing()
public void setDoNotExecuteOnEndProcessing(boolean doNotExecuteOnEndProcessing)
public InvocationContext newContext(Session context)
newContext
in interface Invocation
public boolean isWithExclusiveLock()
isWithExclusiveLock
in interface Invocation
public void setWithExclusiveLock(boolean withExclusiveLock)
public void setAcquireLockOnInvocationStart(boolean acquireLockOnInvocationStart)
public boolean isAcquireLockOnInvocationStart()
isAcquireLockOnInvocationStart
in interface Invocation
public 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 |