@Service @Visibility(value=LOCAL) public class AsyncRunLevelContext extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(ActiveDescriptor<?> descriptor)
The
Context API for discovering if a descriptor has been created |
void |
destroyOne(ActiveDescriptor<?> descriptor)
The
Context API. |
<U> U |
findOrCreate(ActiveDescriptor<U> activeDescriptor,
ServiceHandle<?> root)
This is from the
Context API, called by the wrapper |
RunLevelFuture |
getCurrentFuture()
Gets the current task
|
RunLevelFuture |
proceedTo(int level)
This method is called to change the proceedTo level of the system
|
public <U> U findOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root)
Context
API, called by the wrapperactiveDescriptor
- the descriptor to createroot
- The root descriptorpublic boolean containsKey(ActiveDescriptor<?> descriptor)
Context
API for discovering if a descriptor has been createddescriptor
- The descriptor to findpublic void destroyOne(ActiveDescriptor<?> descriptor)
Context
API. Removes a descriptor from the setdescriptor
- The descriptor to destroypublic RunLevelFuture proceedTo(int level) throws CurrentlyRunningException
level
- The level to change toCurrentlyRunningException
- If there is already a running jobpublic RunLevelFuture getCurrentFuture()
Copyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.