Package org.apache.dubbo.common.deploy
Interface ApplicationDeployer
- All Superinterfaces:
Deployer<ApplicationModel>
initialize and start application instance
-
Method Summary
Modifier and TypeMethodDescriptionvoidcheckState(ModuleModel moduleModel, DeployState moduleState) check all module state and update application statevoidDecrease the count of service update threadsvoidvoidIncrease the count of service update threads.voidInitialize the componentbooleanWhether start in background, do not await finishbooleanIndicates that the Application is initialized or not.voidnotifyModuleChanged(ModuleModel moduleModel, DeployState state) module state changed callbacksvoidPost-processing after destroy modelvoidPre-processing before destroy modelvoidprepareApplicationInstance(ModuleModel moduleModel) Register application instance and start internal servicesvoidRegister application instance and start internal servicesvoidrefresh service instancevoidstart()Starts the component.voidstop()Stops the component.Methods inherited from interface org.apache.dubbo.common.deploy.Deployer
addDeployListener, getError, getState, isCompletion, isFailed, isPending, isRunning, isStarted, isStarting, isStopped, isStopping, removeDeployListener
-
Method Details
-
initialize
Initialize the component- Specified by:
initializein interfaceDeployer<ApplicationModel>- Throws:
IllegalStateException
-
start
Starts the component.- Specified by:
startin interfaceDeployer<ApplicationModel>- Returns:
- Throws:
IllegalStateException
-
stop
Stops the component.- Specified by:
stopin interfaceDeployer<ApplicationModel>- Throws:
IllegalStateException
-
getStartFuture
Future getStartFuture() -
prepareApplicationInstance
Register application instance and start internal services -
exportMetadataService
void exportMetadataService() -
registerServiceInstance
void registerServiceInstance() -
prepareInternalModule
void prepareInternalModule()Register application instance and start internal services -
preDestroy
void preDestroy()Pre-processing before destroy model -
postDestroy
void postDestroy()Post-processing after destroy model -
isInitialized
boolean isInitialized()Indicates that the Application is initialized or not. -
getApplicationModel
ApplicationModel getApplicationModel() -
getReferenceCache
ReferenceCache getReferenceCache() -
isBackground
boolean isBackground()Whether start in background, do not await finish -
checkState
check all module state and update application state -
notifyModuleChanged
module state changed callbacks -
refreshServiceInstance
void refreshServiceInstance()refresh service instance -
increaseServiceRefreshCount
void increaseServiceRefreshCount()Increase the count of service update threads. NOTE: should call $decreaseServiceRefreshCount()after update finished -
decreaseServiceRefreshCount
void decreaseServiceRefreshCount()Decrease the count of service update threads
-