| |
|
| org.jboss.ejb.plugins.CleanShutdownInterceptor
CleanShutdownInterceptor | public class CleanShutdownInterceptor extends AbstractInterceptor (Code) | | Track the incoming invocations and when shuting down a container (stop or
destroy), waits for current invocations to finish before returning the
stop or destroy call. This interceptor can be important in clustered environment
where shuting down a node doesn't necessarly mean that an application cannot
be reached: other nodes may still be servicing. Consequently, it is important
to have a clean shutdown to keep a coherent behaviour cluster-wide.
To avoid strange or inefficient behaviour, the facade session bean (if any)
should be stopped first thus not blocking invocations in a middle-step (i.e.
facade making multiple invocations to "sub-beans": if a "sub-bean" is
shut down, the facade will get an exception in the middle of its activity)
See Also: author: Sacha Labourey. version: $Revision: 57188 $ version: Revisions: version: 14 avril 2002 Sacha Labourey: version: version: - First implementation
version:
|
allowInvocations | protected boolean allowInvocations(Code) | | |
allowRemoteInvocations | protected boolean allowRemoteInvocations(Code) | | |
container | protected Container container(Code) | | |
ejbModule | protected EjbModule ejbModule(Code) | | |
isDebugEnabled | protected boolean isDebugEnabled(Code) | | |
readAcquireTimeMs | public long readAcquireTimeMs(Code) | | |
runningHomeInvocations | public long runningHomeInvocations(Code) | | |
runningInvocations | public long runningInvocations(Code) | | |
rwLock | protected ReentrantWriterPreferenceReadWriteLock rwLock(Code) | | |
shutdownTimeout | public long shutdownTimeout(Code) | | |
CleanShutdownInterceptor | public CleanShutdownInterceptor()(Code) | | |
containerIsAboutToStop | protected void containerIsAboutToStop()(Code) | | |
destroy | public void destroy()(Code) | | |
forbidInvocations | protected void forbidInvocations()(Code) | | |
getContainer | public Container getContainer()(Code) | | |
onlyAllowLocalInvocations | public void onlyAllowLocalInvocations()(Code) | | |
purgeRunningInvocations | protected void purgeRunningInvocations()(Code) | | |
revertOrigin | protected void revertOrigin(Invocation mi, String origin)(Code) | | |
setContainer | public void setContainer(Container con)(Code) | | This callback is set by the container so that the plugin may access it
Parameters: con - The container using this plugin. |
setOrigin | protected void setOrigin(Invocation mi)(Code) | | |
waitForNoMoreInvocations | public void waitForNoMoreInvocations()(Code) | | |
|
|
|