| Modifier and Type | Field and Description |
|---|---|
| private AsyncRunLevelContext |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | cancel()
Implements org. If there is a current procedure in process this method will get it and cancel it |
| public long | getCancelTimeoutMilliseconds()
Implements org. Returns the amount of time in milliseconds the run level service will wait after a cancel call before orphaning services that have not yet completed execution |
| public RunLevelFuture | getCurrentProceeding()
Implements org. This method will return the current proceedTo that the RunLevelController is working on, or it will return null if the controller is not currently moving up or down |
| public int | getCurrentRunLevel()
Implements org. The current run level state. |
| public Executor | getExecutor()
Implements org. Gets the executor that will be used by the system when executing tasks. |
| public int | getMaximumUseableThreads()
Implements org. Returns the current number of maximum useable threads |
| public RunLevelController. | getThreadingPolicy()
Implements org. Returns the threading policy currently being used by this controller |
| public Integer | getValidationOverride()
Implements org. Returns the override value for the |
| public void | proceedTo(int runLevel)
Implements org. This method will move to the given run level synchronously as per
|
| public RunLevelFuture | proceedToAsync(int runLevel)
Implements org. Causes this RunLevelController to move to the specified run level for
all |
| public void | setCancelTimeoutMilliseconds(long cancelTimeout)
Implements org. Sets the amount of time in milliseconds the run level service will wait after a cancel call before orphaning services that have not yet completed execution The default value is 5000 (5 seconds). |
| public void | setExecutor(Executor executor)
Implements org. Sets the executor to use for the next job. |
| public void | setMaximumUseableThreads(int maximumThreads)
Implements org. This sets the maximum number of threads that the system can create for creation and/or destruction of threads. |
| public void | setThreadingPolicy(RunLevelController.
Implements org. Sets the threading policy that will be used by this controller. |
| public void | setValidationOverride(Integer validationMode)
Implements org. Sets the override value for the |
| context | back to summary |
|---|---|
| private AsyncRunLevelContext context
| |
| RunLevelControllerImpl | back to summary |
|---|---|
| public RunLevelControllerImpl() | |
| cancel | back to summary |
|---|---|
| public void cancel() Implements org. Doc from org. If there is a current procedure in process this method will get it and cancel it
| |
| getCancelTimeoutMilliseconds | back to summary |
|---|---|
| public long getCancelTimeoutMilliseconds() Implements org. Doc from org. Returns the amount of time in milliseconds the run level service will wait after a cancel call before orphaning services that have not yet completed execution
| |
| getCurrentProceeding | back to summary |
|---|---|
| public RunLevelFuture getCurrentProceeding() Implements org. Doc from org. This method will return the current proceedTo that the RunLevelController is working on, or it will return null if the controller is not currently moving up or down
| |
| getCurrentRunLevel | back to summary |
|---|---|
| public int getCurrentRunLevel() Implements org. Doc from org. The current run level state. This represents the last run level successfully achieved by the underlying RunLevelController responsible for this scope.
| |
| getExecutor | back to summary |
|---|---|
| public Executor getExecutor() Implements org. Doc from org. Gets the executor that will be used by the system when executing tasks. This value will be used even if the policy is USE_NO_THREADS in order to support canceling hung threads
| |
| getMaximumUseableThreads | back to summary |
|---|---|
| public int getMaximumUseableThreads() Implements org. Doc from org. Returns the current number of maximum useable threads
| |
| getThreadingPolicy | back to summary |
|---|---|
| public RunLevelController. Implements org. Doc from org. Returns the threading policy currently being used by this controller
| |
| getValidationOverride | back to summary |
|---|---|
| public Integer getValidationOverride() Implements org. Doc from org. Returns the override value for the
| |
| proceedTo | back to summary |
|---|---|
| public void proceedTo(int runLevel) Implements org. Doc from org. This method will move to the given run level synchronously as per
| |
| proceedToAsync | back to summary |
|---|---|
| public RunLevelFuture proceedToAsync(int runLevel) throws CurrentlyRunningException, IllegalStateException Implements org. Doc from org. Causes this RunLevelController to move to the specified run level for
all If the run level specified is the same as the current run level then the RunLevelController may return immediately
| |
| setCancelTimeoutMilliseconds | back to summary |
|---|---|
| public void setCancelTimeoutMilliseconds(long cancelTimeout) Implements org. Doc from org. Sets the amount of time in milliseconds the run level service will wait after a cancel call before orphaning services that have not yet completed execution The default value is 5000 (5 seconds). In general this value should be set to be longer than than the running time of the longest service that may be cancelled
| |
| setExecutor | back to summary |
|---|---|
| public void setExecutor(Executor executor) Implements org. Doc from org. Sets the executor to use for the next job. This value will be used even if the policy is USE_NO_THREADS in order to support canceling hung threads
| |
| setMaximumUseableThreads | back to summary |
|---|---|
| public void setMaximumUseableThreads(int maximumThreads) Implements org. Doc from org. This sets the maximum number of threads that the system can create for creation and/or destruction of threads. This number must be one or greater
| |
| setThreadingPolicy | back to summary |
|---|---|
| public void setThreadingPolicy(RunLevelController. Implements org. Doc from org. Sets the threading policy that will be used by this controller. The values can be:
| |
| setValidationOverride | back to summary |
|---|---|
| public void setValidationOverride(Integer validationMode) Implements org. Doc from org. Sets the override value for the
| |