|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DeploymentManager
This interface defines behaviour of main deployment manager. It handles module loaders and deployment cycle of modules.
Field Summary | |
---|---|
static String |
DEPLOYMENT_MANAGER_DEFAULT_NAME
Default name DeploymentManager can be found in a context |
Method Summary | |
---|---|
void |
create(Module module)
Calls Module.create() method. |
void |
deploy(ModuleId moduleId,
Module module)
Deploys given module. |
void |
destroy(Module module)
Calls Module.destroy() method. |
EnhancedMap<ModuleId,Module> |
getDeployedModules()
Returns map of deployed modules. |
Set<ModuleLoader> |
getModuleLoaders()
Returns set of module loaders |
Module |
loadAndDeploy(URI uri)
This method loads module and deploys it before returning it to the caller. |
void |
redeploy(Module module)
Re-deploys given module. |
void |
setModuleLoaders(Set<ModuleLoader> moduleLoaders)
Sets module loaders |
void |
start(Module module)
Calls Module.start() method. |
void |
stop(Module module)
Calls Module.stop() method. |
void |
undeploy(Module module)
Undeploys given module. |
Methods inherited from interface org.abstracthorizon.extend.server.deployment.ModuleLoader |
---|
canLoad, load, loadAs, toModuleId |
Field Detail |
---|
static final String DEPLOYMENT_MANAGER_DEFAULT_NAME
Method Detail |
---|
void deploy(ModuleId moduleId, Module module)
module
- modulevoid undeploy(Module module)
module
- modulevoid redeploy(Module module)
module
- modulevoid create(Module module)
Module.create()
method.
module
- module whose create method is to be calledvoid start(Module module)
Module.start()
method.
module
- module whose start method is to be calledvoid stop(Module module)
Module.stop()
method.
module
- module whose stop method is to be calledvoid destroy(Module module)
Module.destroy()
method.
module
- module whose destroy method is to be calledModule loadAndDeploy(URI uri)
uri
- uri of the module as it is going to be passed to ModuleLoader.load(URI)
method and #deploy(URI, Module)
method
null
if module cannot be loaded
TODO check return statementEnhancedMap<ModuleId,Module> getDeployedModules()
Set<ModuleLoader> getModuleLoaders()
void setModuleLoaders(Set<ModuleLoader> moduleLoaders)
moduleLoaders
- module loaders
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |