Package org.apache.dubbo.common.deploy
Class AbstractDeployer<E extends ScopeModel>
java.lang.Object
org.apache.dubbo.common.deploy.AbstractDeployer<E>
- All Implemented Interfaces:
Deployer<E>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDeployListener(DeployListener<E> listener) getError()getState()booleanbooleanisFailed()booleanbooleanbooleanbooleanbooleanbooleanbooleanvoidremoveDeployListener(DeployListener<E> listener) voidMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.dubbo.common.deploy.Deployer
initialize, start, stop
-
Constructor Details
-
AbstractDeployer
-
-
Method Details
-
isPending
public boolean isPending()- Specified by:
isPendingin interfaceDeployer<E extends ScopeModel>- Returns:
- true if the component is added and waiting to start
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceDeployer<E extends ScopeModel>- Returns:
- true if the component is starting or has been started.
-
isStarted
public boolean isStarted()- Specified by:
isStartedin interfaceDeployer<E extends ScopeModel>- Returns:
- true if the component has been started.
- See Also:
-
isCompletion
public boolean isCompletion()- Specified by:
isCompletionin interfaceDeployer<E extends ScopeModel>
-
isStarting
public boolean isStarting()- Specified by:
isStartingin interfaceDeployer<E extends ScopeModel>- Returns:
- true if the component is starting.
- See Also:
-
isStopping
public boolean isStopping()- Specified by:
isStoppingin interfaceDeployer<E extends ScopeModel>- Returns:
- true if the component is stopping.
- See Also:
-
isStopped
public boolean isStopped()- Specified by:
isStoppedin interfaceDeployer<E extends ScopeModel>- Returns:
- true if the component is stopping.
- See Also:
-
isFailed
public boolean isFailed()- Specified by:
isFailedin interfaceDeployer<E extends ScopeModel>- Returns:
- true if the component has failed to start or has failed to stop.
-
getState
- Specified by:
getStatein interfaceDeployer<E extends ScopeModel>- Returns:
- current state
-
addDeployListener
- Specified by:
addDeployListenerin interfaceDeployer<E extends ScopeModel>
-
removeDeployListener
- Specified by:
removeDeployListenerin interfaceDeployer<E extends ScopeModel>
-
setPending
public void setPending() -
getError
- Specified by:
getErrorin interfaceDeployer<E extends ScopeModel>
-
isInitialized
public boolean isInitialized()
-