| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | backingMap
The backing maps for this context. |
| private long | |
| private final HashMap | creatingDescriptors
The set of services currently being created |
| private int | |
| private CurrentTaskFutureWrapper | |
| private static final boolean | |
| private static final String | |
| private static final Executor | |
| private Executor | |
| private final HashSet | hardCancelledDescriptors
The set of descriptors that have been hard cancelled |
| private final Logger | |
| private final Map | |
| private final ServiceLocator | |
| pack-priv final ReentrantLock | |
| private static final Logger | |
| private int | |
| private Integer | |
| private final Condition | |
| private final LinkedList | |
| private RunLevelController. | |
| private static final ThreadFactory | |
| private static final Timer | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| private | AsyncRunLevelContext(ServiceLocator
The locator to use locator)Constructor for the guy who does the work |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public boolean | Returns: true if already created, false otherwiseThe descriptor to find descriptor)The |
| public void | |
| public <U> U | Returns: The object createdthe descriptor to create activeDescriptor, ServiceHandle<?> The root descriptor root)This is from the |
| pack-priv long | |
| public RunLevelFuture | Returns: The current task, may be null if there is no current taskGets the current task |
| pack-priv int | |
| pack-priv Executor | |
| pack-priv int | |
| pack-priv Integer | |
| pack-priv List | |
| pack-priv RunLevelController. | |
| pack-priv void | hardCancelOne(ActiveDescriptor<?>
the non-null descriptor to hard cancel descriptor)No need to lock this, it is called with the lock already held |
| pack-priv void | |
| pack-priv void | |
| private static String | |
| private static String | |
| public RunLevelFuture | Returns: A non-null RunLevelFuture that is the handle to give the callerThe level to change to level)This method is called to change the proceedTo level of the system |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| private void | validate(ActiveDescriptor<?>
the descriptor of the service being activated descriptor, int currentLevel)Verifies that the run level value of the |
| pack-priv boolean |
| backingMap | back to summary |
|---|---|
| private final Map<ActiveDescriptor<?>, Object> backingMap The backing maps for this context. | |
| cancelTimeout | back to summary |
|---|---|
| private long cancelTimeout | |
| creatingDescriptors | back to summary |
|---|---|
| private final HashMap<ActiveDescriptor<?>, Long> creatingDescriptors The set of services currently being created | |
| currentLevel | back to summary |
|---|---|
| private int currentLevel | |
| currentTask | back to summary |
|---|---|
| private CurrentTaskFutureWrapper currentTask | |
| DEBUG_CONTEXT | back to summary |
|---|---|
| private static final boolean DEBUG_CONTEXT | |
| DEBUG_CONTEXT_PROPERTY | back to summary |
|---|---|
| private static final String DEBUG_CONTEXT_PROPERTY | |
| DEFAULT_EXECUTOR | back to summary |
|---|---|
| private static final Executor DEFAULT_EXECUTOR | |
| executor | back to summary |
|---|---|
| private Executor executor | |
| hardCancelledDescriptors | back to summary |
|---|---|
| private final HashSet<ActiveDescriptor<?>> hardCancelledDescriptors The set of descriptors that have been hard cancelled | |
| hk2Logger | back to summary |
|---|---|
| private final Logger hk2Logger | |
| levelErrorMap | back to summary |
|---|---|
| private final Map<ActiveDescriptor<?>, Throwable> levelErrorMap | |
| locator | back to summary |
|---|---|
| private final ServiceLocator locator | |
| lock | back to summary |
|---|---|
| pack-priv final ReentrantLock lock | |
| logger | back to summary |
|---|---|
| private static final Logger logger | |
| maxThreads | back to summary |
|---|---|
| private int maxThreads | |
| modeOverride | back to summary |
|---|---|
| private Integer modeOverride | |
| notEmpty | back to summary |
|---|---|
| private final Condition notEmpty | |
| orderedCreationList | back to summary |
|---|---|
| private final LinkedList<ActiveDescriptor<?>> orderedCreationList | |
| policy | back to summary |
|---|---|
| private RunLevelController. | |
| THREAD_FACTORY | back to summary |
|---|---|
| private static final ThreadFactory THREAD_FACTORY | |
| TIMER | back to summary |
|---|---|
| private static final Timer TIMER | |
| wasCancelled | back to summary |
|---|---|
| private boolean wasCancelled | |
| AsyncRunLevelContext | back to summary |
|---|---|
| private AsyncRunLevelContext(ServiceLocator locator) Constructor for the guy who does the work
| |
| clearErrors | back to summary |
|---|---|
| pack-priv void clearErrors() | |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(ActiveDescriptor<?> descriptor) The
| |
| destroyOne | back to summary |
|---|---|
| public void destroyOne(ActiveDescriptor<?> descriptor) The
| |
| findOrCreate | back to summary |
|---|---|
| public <U> U findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root) This is from the
| |
| getCancelTimeout | back to summary |
|---|---|
| pack-priv long getCancelTimeout() | |
| getCurrentFuture | back to summary |
|---|---|
| public RunLevelFuture getCurrentFuture() Gets the current task
| |
| getCurrentLevel | back to summary |
|---|---|
| pack-priv int getCurrentLevel() | |
| getExecutor | back to summary |
|---|---|
| pack-priv Executor getExecutor() | |
| getMaximumThreads | back to summary |
|---|---|
| pack-priv int getMaximumThreads() | |
| getModeOverride | back to summary |
|---|---|
| pack-priv Integer getModeOverride() | |
| getOrderedListOfServicesAtLevel | back to summary |
|---|---|
| pack-priv List | |
| getPolicy | back to summary |
|---|---|
| pack-priv RunLevelController. | |
| hardCancelOne | back to summary |
|---|---|
| pack-priv void hardCancelOne(ActiveDescriptor<?> descriptor) No need to lock this, it is called with the lock already held
| |
| jobDone | back to summary |
|---|---|
| pack-priv void jobDone() | |
| levelCancelled | back to summary |
|---|---|
| pack-priv void levelCancelled() | |
| oneLineDescriptor | back to summary |
|---|---|
| private static String oneLineDescriptor(ActiveDescriptor<?> descriptor) | |
| oneLineRoot | back to summary |
|---|---|
| private static String oneLineRoot(ServiceHandle<?> root) | |
| proceedTo | back to summary |
|---|---|
| public RunLevelFuture proceedTo(int level) throws CurrentlyRunningException This method is called to change the proceedTo level of the system
| |
| setCancelTimeout | back to summary |
|---|---|
| pack-priv void setCancelTimeout(long cancelTimeout) | |
| setCurrentLevel | back to summary |
|---|---|
| pack-priv void setCurrentLevel(int currentLevel) | |
| setExecutor | back to summary |
|---|---|
| pack-priv void setExecutor(Executor executor) | |
| setMaximumThreads | back to summary |
|---|---|
| pack-priv void setMaximumThreads(int maximum) | |
| setModeOverride | back to summary |
|---|---|
| pack-priv void setModeOverride(Integer modeOverride) | |
| setPolicy | back to summary |
|---|---|
| pack-priv void setPolicy(RunLevelController. | |
| validate | back to summary |
|---|---|
| private void validate(ActiveDescriptor<?> descriptor, int currentLevel) throws IllegalStateException Verifies that the run level value of the
| |
| wouldBlockRightNow | back to summary |
|---|---|
| pack-priv boolean wouldBlockRightNow(ActiveDescriptor<?> desc) | |
| Access | Constructor and Description |
|---|---|
| private |
| RunLevelControllerThread | back to summary |
|---|---|
| private RunLevelControllerThread(Runnable r) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Thread | newThread(Runnable runnable)
Implements java. Constructs a new unstarted |
| RunLevelThreadFactory | back to summary |
|---|---|
| private RunLevelThreadFactory() | |
| newThread | back to summary |
|---|---|
| public Thread newThread(Runnable runnable) Implements java. Doc from java. Constructs a new unstarted
| |