Package org.apache.dubbo.common.deploy
Interface Deployer<E extends ScopeModel>
- All Known Subinterfaces:
ApplicationDeployer,ModuleDeployer
- All Known Implementing Classes:
AbstractDeployer
public interface Deployer<E extends ScopeModel>
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddDeployListener(DeployListener<E> listener) getError()getState()voidInitialize the componentbooleanisFailed()booleanbooleanbooleanbooleanbooleanbooleanvoidremoveDeployListener(DeployListener<E> listener) start()Starts the component.voidstop()Stops the component.
-
Method Details
-
initialize
Initialize the component- Throws:
IllegalStateException
-
start
Starts the component.- Returns:
- Throws:
IllegalStateException
-
stop
Stops the component.- Throws:
IllegalStateException
-
isPending
boolean isPending()- Returns:
- true if the component is added and waiting to start
-
isRunning
boolean isRunning()- Returns:
- true if the component is starting or has been started.
-
isStarted
boolean isStarted()- Returns:
- true if the component has been started.
- See Also:
-
isStarting
boolean isStarting()- Returns:
- true if the component is starting.
- See Also:
-
isStopping
boolean isStopping()- Returns:
- true if the component is stopping.
- See Also:
-
isStopped
boolean isStopped()- Returns:
- true if the component is stopping.
- See Also:
-
isFailed
boolean isFailed()- Returns:
- true if the component has failed to start or has failed to stop.
-
getState
DeployState getState()- Returns:
- current state
-
addDeployListener
-
removeDeployListener
-
getError
Throwable getError()
-