接口 Deployer<E extends ScopeModel>
-
- 所有已知子接口:
ApplicationDeployer,ModuleDeployer
- 所有已知实现类:
AbstractDeployer
public interface Deployer<E extends ScopeModel>
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidaddDeployListener(DeployListener<E> listener)ThrowablegetError()DeployStategetState()voidinitialize()Initialize the componentbooleanisFailed()booleanisPending()booleanisRunning()booleanisStarted()booleanisStarting()booleanisStopped()booleanisStopping()voidremoveDeployListener(DeployListener<E> listener)Futurestart()Starts the component.voidstop()Stops the component.
-
-
-
方法详细资料
-
initialize
void initialize() throws IllegalStateExceptionInitialize the component
-
start
Future start() throws IllegalStateException
Starts the component.- 返回:
- 抛出:
IllegalStateException
-
stop
void stop() throws IllegalStateException
Stops the component.
-
isPending
boolean isPending()
- 返回:
- true if the component is added and waiting to start
-
isRunning
boolean isRunning()
- 返回:
- true if the component is starting or has been started.
-
isStarted
boolean isStarted()
- 返回:
- true if the component has been started.
- 另请参阅:
start(),isStarting()
-
isStarting
boolean isStarting()
- 返回:
- true if the component is starting.
- 另请参阅:
isStarted()
-
isStopping
boolean isStopping()
- 返回:
- true if the component is stopping.
- 另请参阅:
isStopped()
-
isStopped
boolean isStopped()
- 返回:
- true if the component is stopping.
- 另请参阅:
isStopped()
-
isFailed
boolean isFailed()
- 返回:
- true if the component has failed to start or has failed to stop.
-
getState
DeployState getState()
- 返回:
- current state
-
addDeployListener
void addDeployListener(DeployListener<E> listener)
-
removeDeployListener
void removeDeployListener(DeployListener<E> listener)
-
getError
Throwable getError()
-
-