Class NuxeoStandbyFilter.Controller
java.lang.Object
org.nuxeo.ecm.platform.web.common.requestcontroller.filter.NuxeoStandbyFilter.Controller
- Enclosing class:
- NuxeoStandbyFilter
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Condition
protected final Condition
protected final ThreadLocal<Boolean>
This variable is used to determine if the Thread wanting to shutdown/standby the server has gone through this filter.protected final AtomicInteger
protected boolean
protected final Lock
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
void
void
void
void
protected void
protected void
-
Field Details
-
lock
-
canStandby
-
canProceed
-
isStandby
protected volatile boolean isStandby -
inProgress
-
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 Details
-
Controller
protected Controller()
-
-
Method Details
-
onNewRequest
public void onNewRequest() -
onRequestEnd
public void onRequestEnd() -
onStandby
- Throws:
RuntimeException
-
onResumed
public void onResumed() -
awaitCanProceed
- Throws:
RuntimeException
-
awaitCanStandby
- Throws:
RuntimeException
-
signalBlockedToProceed
protected void signalBlockedToProceed() -
signalBlockedToStandby
protected void signalBlockedToStandby()
-