Class NuxeoStandbyFilter.Controller
- java.lang.Object
- 
- org.nuxeo.ecm.platform.web.common.requestcontroller.filter.NuxeoStandbyFilter.Controller
 
- 
- Enclosing class:
- NuxeoStandbyFilter
 
 protected static class NuxeoStandbyFilter.Controller extends Object 
- 
- 
Field SummaryFields Modifier and Type Field Description protected ConditioncanProceedprotected ConditioncanStandbyprotected ThreadLocal<Boolean>hasBeenFilteredThis variable is used to determine if the Thread wanting to shutdown/standby the server has gone through this filter.protected AtomicIntegerinProgressprotected booleanisStandbyprotected Locklock
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedController()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidawaitCanProceed()protected voidawaitCanStandby()voidonNewRequest()voidonRequestEnd()voidonResumed()voidonStandby()protected voidsignalBlockedToProceed()protected voidsignalBlockedToStandby()
 
- 
- 
- 
Field Detail- 
canStandbyprotected final Condition canStandby 
 - 
canProceedprotected final Condition canProceed 
 - 
isStandbyprotected volatile boolean isStandby 
 - 
inProgressprotected final AtomicInteger inProgress 
 - 
hasBeenFilteredprotected final ThreadLocal<Boolean> hasBeenFiltered This variable is used to determine if the Thread wanting to shutdown/standby the server has gone through this filter. We need this variable in order to not wait for ourself to end.Calls relying on this variable: - org.nuxeo.runtime.reload.NuxeoRestart#restart()
- org.nuxeo.ecm.admin.operation.HotReloadStudioSnapshot#run()
- org.nuxeo.connect.client.jsf.AppCenterViewsManager#installStudioSnapshotAndRedirect()
 
 
- 
 - 
Constructor Detail- 
Controllerprotected Controller() 
 
- 
 - 
Method Detail- 
onNewRequestpublic void onNewRequest() 
 - 
onRequestEndpublic void onRequestEnd() 
 - 
onStandbypublic void onStandby() throws RuntimeException - Throws:
- RuntimeException
 
 - 
onResumedpublic void onResumed() 
 - 
awaitCanProceedprotected void awaitCanProceed() throws RuntimeException - Throws:
- RuntimeException
 
 - 
awaitCanStandbyprotected void awaitCanStandby() throws RuntimeException - Throws:
- RuntimeException
 
 - 
signalBlockedToProceedprotected void signalBlockedToProceed() 
 - 
signalBlockedToStandbyprotected void signalBlockedToStandby() 
 
- 
 
-