Index

A C D E F G I M O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

AsyncRunLevelContext - Class in org.glassfish.hk2.runlevel.internal
 

C

cancel() - Method in class org.glassfish.hk2.runlevel.internal.RunLevelControllerImpl
 
cancel() - Method in interface org.glassfish.hk2.runlevel.RunLevelController
If there is a current procedure in process this method will get it and cancel it
cancel(boolean) - Method in class org.glassfish.hk2.runlevel.internal.CurrentTaskFuture
 
cancel(boolean) - Method in class org.glassfish.hk2.runlevel.internal.CurrentTaskFutureWrapper
 
cancel(boolean) - Method in interface org.glassfish.hk2.runlevel.RunLevelFuture
The cancel method attempts to cancel the current running job (if the job is not already completed or already cancelled).
ChangeableRunLevelFuture - Interface in org.glassfish.hk2.runlevel
 
changeProposedLevel(int) - Method in interface org.glassfish.hk2.runlevel.ChangeableRunLevelFuture
Changes the proposedLevel of this future.
changeProposedLevel(int) - Method in class org.glassfish.hk2.runlevel.internal.CurrentTaskFuture
 
configure() - Method in class org.glassfish.hk2.runlevel.RunLevelServiceModule
 
containsKey(ActiveDescriptor<?>) - Method in class org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext
The Context API for discovering if a descriptor has been created
containsKey(ActiveDescriptor<?>) - Method in class org.glassfish.hk2.runlevel.RunLevelContext
 
CONTEXT_NAME - Static variable in class org.glassfish.hk2.runlevel.RunLevelContext
The name under which this context will be advertised
CurrentlyRunningException - Exception in org.glassfish.hk2.runlevel
This exception is thrown by proceedTo if there is currently a job being run when proceedTo is called
CurrentlyRunningException() - Constructor for exception org.glassfish.hk2.runlevel.CurrentlyRunningException
Basic no-arg constructor
CurrentlyRunningException(RunLevelFuture) - Constructor for exception org.glassfish.hk2.runlevel.CurrentlyRunningException
Constructor with job that is in progress
CurrentTaskFuture - Class in org.glassfish.hk2.runlevel.internal
This is the implementation of RunLevelFuture.
CurrentTaskFutureWrapper - Class in org.glassfish.hk2.runlevel.internal
This object is used to wrap the internal CurrentTaskFuture which is a ChangeableRunLevelFuture.

D

destroyOne(ActiveDescriptor<?>) - Method in class org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext
The Context API.
destroyOne(ActiveDescriptor<?>) - Method in class org.glassfish.hk2.runlevel.RunLevelContext
 

E

enableRunLevelService(ServiceLocator) - Static method in class org.glassfish.hk2.runlevel.RunLevelServiceUtilities
Enables the RunLevelService in the given ServiceLocator.
ErrorInformation - Interface in org.glassfish.hk2.runlevel
 
ErrorInformation.ErrorAction - Enum Class in org.glassfish.hk2.runlevel
The set of actions that the system can perform when an error is detected
ErrorInformationImpl - Class in org.glassfish.hk2.runlevel.internal
 

F

findOrCreate(ActiveDescriptor<U>, ServiceHandle<?>) - Method in class org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext
This is from the Context API, called by the wrapper
findOrCreate(ActiveDescriptor<U>, ServiceHandle<?>) - Method in class org.glassfish.hk2.runlevel.RunLevelContext
 
FULLY_THREADED - Enum constant in enum class org.glassfish.hk2.runlevel.RunLevelController.ThreadingPolicy
The RunLevelController will use as many threads as it needs (but controlled by the MaximumUseableThreads value)

G

get() - Method in class org.glassfish.hk2.runlevel.internal.CurrentTaskFuture
 
get() - Method in class org.glassfish.hk2.runlevel.internal.CurrentTaskFutureWrapper
 
get(long, TimeUnit) - Method in class org.glassfish.hk2.runlevel.internal.CurrentTaskFuture
 
get(long, TimeUnit) - Method in class org.glassfish.hk2.runlevel.internal.CurrentTaskFutureWrapper
 
getAction() - Method in interface org.glassfish.hk2.runlevel.ErrorInformation
Returns the action the system will take
getAction() - Method in class org.glassfish.hk2.runlevel.internal.ErrorInformationImpl
 
getCancelTimeoutMilliseconds() - Method in class org.glassfish.hk2.runlevel.internal.RunLevelControllerImpl
 
getCancelTimeoutMilliseconds() - Method in interface org.glassfish.hk2.runlevel.RunLevelController
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
getCurrentFuture() - Method in class org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext
Gets the current task
getCurrentJob() - Method in exception org.glassfish.hk2.runlevel.CurrentlyRunningException
Gets the job current in progress
getCurrentProceeding() - Method in class org.glassfish.hk2.runlevel.internal.RunLevelControllerImpl
 
getCurrentProceeding() - Method in interface org.glassfish.hk2.runlevel.RunLevelController
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() - Method in class org.glassfish.hk2.runlevel.internal.RunLevelControllerImpl
 
getCurrentRunLevel() - Method in interface org.glassfish.hk2.runlevel.RunLevelController
The current run level state.
getError() - Method in interface org.glassfish.hk2.runlevel.ErrorInformation
Returns the throwable that caused the error
getError() - Method in class org.glassfish.hk2.runlevel.internal.ErrorInformationImpl
 
getExecutor() - Method in class org.glassfish.hk2.runlevel.internal.RunLevelControllerImpl
 
getExecutor() - Method in interface org.glassfish.hk2.runlevel.RunLevelController
Gets the executor that will be used by the system when executing tasks.
getFailedDescriptor() - Method in interface org.glassfish.hk2.runlevel.ErrorInformation
Returns the descriptor associated with this failure, or null if the descriptor could not be determined
getFailedDescriptor() - Method in class org.glassfish.hk2.runlevel.internal.ErrorInformationImpl
 
getMaximumUseableThreads() - Method in class org.glassfish.hk2.runlevel.internal.RunLevelControllerImpl
 
getMaximumUseableThreads() - Method in interface org.glassfish.hk2.runlevel.RunLevelController
Returns the current number of maximum useable threads
getProposedLevel() - Method in class org.glassfish.hk2.runlevel.internal.CurrentTaskFuture
 
getProposedLevel() - Method in class org.glassfish.hk2.runlevel.internal.CurrentTaskFutureWrapper
 
getProposedLevel() - Method in interface org.glassfish.hk2.runlevel.RunLevelFuture
This gets the level that this future job is attempting to get to
getRunLevelAnnotation(int) - Static method in class org.glassfish.hk2.runlevel.RunLevelServiceUtilities
Returns a RunLevel scope annotation with the given value and RUNLEVEL_MODE_VALIDATING as the mode
getRunLevelAnnotation(int, int) - Static method in class org.glassfish.hk2.runlevel.RunLevelServiceUtilities
Returns a RunLevel scope annotation with the given value and mode
getRunLevelMode(ServiceLocator, Descriptor, Integer) - Static method in class org.glassfish.hk2.runlevel.utilities.Utilities
Get the run level mode from the metadata of the given descriptor.
getRunLevelValue(ServiceLocator, Descriptor) - Static method in class org.glassfish.hk2.runlevel.utilities.Utilities
Get the run level value from the metadata of the given descriptor.
getScope() - Method in class org.glassfish.hk2.runlevel.RunLevelContext
 
getThreadingPolicy() - Method in class org.glassfish.hk2.runlevel.internal.RunLevelControllerImpl
 
getThreadingPolicy() - Method in interface org.glassfish.hk2.runlevel.RunLevelController
Returns the threading policy currently being used by this controller
getValidationOverride() - Method in class org.glassfish.hk2.runlevel.internal.RunLevelControllerImpl
 
getValidationOverride() - Method in interface org.glassfish.hk2.runlevel.RunLevelController
Returns the override value for the RunLevel.mode() field in RunLevel services.
GO_TO_NEXT_LOWER_LEVEL_AND_STOP - Enum constant in enum class org.glassfish.hk2.runlevel.ErrorInformation.ErrorAction
Tells the RunLevelController to halt progress in the level and proceed to the next lowest level and stop the proceeding at that level.

I

IGNORE - Enum constant in enum class org.glassfish.hk2.runlevel.ErrorInformation.ErrorAction
Tells the RunLevelController to disregard the error and continue its progress as if the error never happened.
isActive() - Method in class org.glassfish.hk2.runlevel.RunLevelContext
 
isCancelled() - Method in class org.glassfish.hk2.runlevel.internal.CurrentTaskFuture
 
isCancelled() - Method in class org.glassfish.hk2.runlevel.internal.CurrentTaskFutureWrapper
 
isDone() - Method in class org.glassfish.hk2.runlevel.internal.CurrentTaskFuture
 
isDone() - Method in class org.glassfish.hk2.runlevel.internal.CurrentTaskFutureWrapper
 
isDown() - Method in class org.glassfish.hk2.runlevel.internal.CurrentTaskFuture
 
isDown() - Method in class org.glassfish.hk2.runlevel.internal.CurrentTaskFutureWrapper
 
isDown() - Method in interface org.glassfish.hk2.runlevel.RunLevelFuture
Returns true if this job represents the system going from a higher level to a lower level.
isUp() - Method in class org.glassfish.hk2.runlevel.internal.CurrentTaskFuture
 
isUp() - Method in class org.glassfish.hk2.runlevel.internal.CurrentTaskFutureWrapper
 
isUp() - Method in interface org.glassfish.hk2.runlevel.RunLevelFuture
Returns true if this job represents the system going from a lower level to a higher level.

M

mode() - Element in annotation interface org.glassfish.hk2.runlevel.RunLevel
Defines the run level mode.

O

onCancelled(RunLevelFuture, int) - Method in interface org.glassfish.hk2.runlevel.RunLevelListener
Called when an RunLevelController implementation's proceedTo() operation has been canceled for some reason.
onError(RunLevelFuture, ErrorInformation) - Method in interface org.glassfish.hk2.runlevel.RunLevelListener
Called when a service throws an exception during a proceedTo operation
onProgress(ChangeableRunLevelFuture, int) - Method in interface org.glassfish.hk2.runlevel.RunLevelListener
Called when the RunLevelController advances to the next level
onProgressStarting(ChangeableRunLevelFuture, int) - Method in interface org.glassfish.hk2.runlevel.ProgressStartedListener
Called when the RunLevelController starts progressing to a new level but before any work has been done yet
org.glassfish.hk2.runlevel - module org.glassfish.hk2.runlevel
 
org.glassfish.hk2.runlevel - package org.glassfish.hk2.runlevel
 
org.glassfish.hk2.runlevel.internal - package org.glassfish.hk2.runlevel.internal
 
org.glassfish.hk2.runlevel.utilities - package org.glassfish.hk2.runlevel.utilities
 

P

proceedTo(int) - Method in class org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext
This method is called to change the proceedTo level of the system
proceedTo(int) - Method in class org.glassfish.hk2.runlevel.internal.RunLevelControllerImpl
 
proceedTo(int) - Method in interface org.glassfish.hk2.runlevel.RunLevelController
This method will move to the given run level synchronously as per RunLevelController.proceedToAsync(int).
proceedToAsync(int) - Method in class org.glassfish.hk2.runlevel.internal.RunLevelControllerImpl
 
proceedToAsync(int) - Method in interface org.glassfish.hk2.runlevel.RunLevelController
Causes this RunLevelController to move to the specified run level for all RunLevel instances, orchestrating the appropriate lifecycle events.
ProgressStartedListener - Interface in org.glassfish.hk2.runlevel
Instances of classes implementing this contract can be registered with HK2 to be informed when the system starts progressing to a new level, either upward or downward

R

RunLevel - Annotation Interface in org.glassfish.hk2.runlevel
Defines a run/start level.
RUNLEVEL_MODE_META_TAG - Static variable in annotation interface org.glassfish.hk2.runlevel.RunLevel
The metadata key for run level mode.
RUNLEVEL_MODE_NON_VALIDATING - Static variable in annotation interface org.glassfish.hk2.runlevel.RunLevel
Services set to have a non-validating run level mode will be activated by their associated run level service or through injection into another service.
RUNLEVEL_MODE_VALIDATING - Static variable in annotation interface org.glassfish.hk2.runlevel.RunLevel
Services set to have a validating run level mode will be activated and deactivated by their associated run level service but may also be activated through injection into another service.
RUNLEVEL_VAL_IMMEDIATE - Static variable in annotation interface org.glassfish.hk2.runlevel.RunLevel
The immediate run level.
RUNLEVEL_VAL_INITIAL - Static variable in annotation interface org.glassfish.hk2.runlevel.RunLevel
The initial run level.
RUNLEVEL_VAL_META_TAG - Static variable in annotation interface org.glassfish.hk2.runlevel.RunLevel
The metadata key for run level value.
RunLevelContext - Class in org.glassfish.hk2.runlevel
This is the implementation of the Context for the RunLevel scope
RunLevelController - Interface in org.glassfish.hk2.runlevel
A RunLevelContoller controls the current state of services registered in the RunLevel scope.
RunLevelController.ThreadingPolicy - Enum Class in org.glassfish.hk2.runlevel
These are the policies for how the RunLevelController will use threads
RunLevelControllerImpl - Class in org.glassfish.hk2.runlevel.internal
This is the implementation of the RunLevelController
RunLevelControllerImpl() - Constructor for class org.glassfish.hk2.runlevel.internal.RunLevelControllerImpl
 
RunLevelException - Exception in org.glassfish.hk2.runlevel
Exception related to the operations of the RunLevelController.
RunLevelException() - Constructor for exception org.glassfish.hk2.runlevel.RunLevelException
Basic no-args constructor
RunLevelException(String) - Constructor for exception org.glassfish.hk2.runlevel.RunLevelException
Exception with message
RunLevelException(String, Throwable) - Constructor for exception org.glassfish.hk2.runlevel.RunLevelException
Exception with message and origin
RunLevelException(Throwable) - Constructor for exception org.glassfish.hk2.runlevel.RunLevelException
Exception with origin
RunLevelFuture - Interface in org.glassfish.hk2.runlevel
This is the Future object that will be returned by the RunLevelController and it contains extra information about the job being done
RunLevelListener - Interface in org.glassfish.hk2.runlevel
Instances of classes implementing this contract can be registered with HK2 to be informed of events of RunLevelControllers.
RunLevelServiceModule - Class in org.glassfish.hk2.runlevel
This module can be used to enable the RunLevelService in a system not using automatic service discovery.
RunLevelServiceModule() - Constructor for class org.glassfish.hk2.runlevel.RunLevelServiceModule
 
RunLevelServiceUtilities - Class in org.glassfish.hk2.runlevel
Utilities for using the RunLevelService
RunLevelServiceUtilities() - Constructor for class org.glassfish.hk2.runlevel.RunLevelServiceUtilities
 

S

setAction(ErrorInformation.ErrorAction) - Method in interface org.glassfish.hk2.runlevel.ErrorInformation
Sets the action the system should take
setAction(ErrorInformation.ErrorAction) - Method in class org.glassfish.hk2.runlevel.internal.ErrorInformationImpl
 
setCancelTimeoutMilliseconds(long) - Method in class org.glassfish.hk2.runlevel.internal.RunLevelControllerImpl
 
setCancelTimeoutMilliseconds(long) - Method in interface org.glassfish.hk2.runlevel.RunLevelController
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
setExecutor(Executor) - Method in class org.glassfish.hk2.runlevel.internal.RunLevelControllerImpl
 
setExecutor(Executor) - Method in interface org.glassfish.hk2.runlevel.RunLevelController
Sets the executor to use for the next job.
setMaximumUseableThreads(int) - Method in class org.glassfish.hk2.runlevel.internal.RunLevelControllerImpl
 
setMaximumUseableThreads(int) - Method in interface org.glassfish.hk2.runlevel.RunLevelController
This sets the maximum number of threads that the system can create for creation and/or destruction of threads.
setThreadingPolicy(RunLevelController.ThreadingPolicy) - Method in class org.glassfish.hk2.runlevel.internal.RunLevelControllerImpl
 
setThreadingPolicy(RunLevelController.ThreadingPolicy) - Method in interface org.glassfish.hk2.runlevel.RunLevelController
Sets the threading policy that will be used by this controller.
setValidationOverride(Integer) - Method in class org.glassfish.hk2.runlevel.internal.RunLevelControllerImpl
 
setValidationOverride(Integer) - Method in interface org.glassfish.hk2.runlevel.RunLevelController
Sets the override value for the RunLevel.mode() field in RunLevel services.
shutdown() - Method in class org.glassfish.hk2.runlevel.RunLevelContext
 
sort(List<ServiceHandle<?>>) - Method in interface org.glassfish.hk2.runlevel.Sorter
Sort the given list of run level service handles.
Sorter - Interface in org.glassfish.hk2.runlevel
Contract for sorting descriptors for run level services.
supportsNullCreation() - Method in class org.glassfish.hk2.runlevel.RunLevelContext
 

T

toString() - Method in class org.glassfish.hk2.runlevel.internal.CurrentTaskFuture
 
toString() - Method in class org.glassfish.hk2.runlevel.internal.CurrentTaskFutureWrapper
 
toString() - Method in class org.glassfish.hk2.runlevel.internal.ErrorInformationImpl
 

U

USE_NO_THREADS - Enum constant in enum class org.glassfish.hk2.runlevel.RunLevelController.ThreadingPolicy
The RunLevelController will use a minimal number of threads.
Utilities - Class in org.glassfish.hk2.runlevel.utilities
Run level service related utilities.
Utilities() - Constructor for class org.glassfish.hk2.runlevel.utilities.Utilities
 

V

value() - Element in annotation interface org.glassfish.hk2.runlevel.RunLevel
Defines the run level.
valueOf(String) - Static method in enum class org.glassfish.hk2.runlevel.ErrorInformation.ErrorAction
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.glassfish.hk2.runlevel.RunLevelController.ThreadingPolicy
Returns the enum constant of this class with the specified name.
values() - Static method in enum class org.glassfish.hk2.runlevel.ErrorInformation.ErrorAction
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.glassfish.hk2.runlevel.RunLevelController.ThreadingPolicy
Returns an array containing the constants of this enum class, in the order they are declared.

W

WasCancelledException - Exception in org.glassfish.hk2.runlevel.internal
A Marker or tag exception for services caught by a cancellation
WasCancelledException(Descriptor) - Constructor for exception org.glassfish.hk2.runlevel.internal.WasCancelledException
The given descriptor was processing during a cancellation of the job
WouldBlockException - Exception in org.glassfish.hk2.runlevel.internal
 
WouldBlockException(Descriptor) - Constructor for exception org.glassfish.hk2.runlevel.internal.WouldBlockException
This indicates a blocking condition on a given descriptor
A C D E F G I M O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form