|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.abstracthorizon.extend.server.dynamic.Bootstrap.DeploymentManagerStub
public static class Bootstrap.DeploymentManagerStub
| Field Summary | |
|---|---|
protected EnhancedMap<ModuleId,Module> |
deployedModules
|
protected LinkedHashSet<ModuleLoader> |
moduleLoaders
|
| Fields inherited from interface org.abstracthorizon.extend.server.deployment.DeploymentManager |
|---|
DEPLOYMENT_MANAGER_DEFAULT_NAME |
| Constructor Summary | |
|---|---|
Bootstrap.DeploymentManagerStub()
|
|
| Method Summary | |
|---|---|
boolean |
canLoad(URI url)
Returns true if module loader knows how to load (create) module from given URI. |
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 |
load(URI uri)
Loads module from given URI. |
Module |
loadAndDeploy(URI uri)
This method loads module and deploys it before returning it to the caller. |
Module |
loadAs(URI uri,
ModuleId moduleId)
Loads module from given URI. |
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. |
ModuleId |
toModuleId(URI uri)
Translates URI to moduleId |
void |
undeploy(Module module)
Undeploys given module. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected EnhancedMap<ModuleId,Module> deployedModules
protected LinkedHashSet<ModuleLoader> moduleLoaders
| Constructor Detail |
|---|
public Bootstrap.DeploymentManagerStub()
| Method Detail |
|---|
public void create(Module module)
DeploymentManagerModule.create() method.
create in interface DeploymentManagermodule - module whose create method is to be called
public void deploy(ModuleId moduleId,
Module module)
DeploymentManager
deploy in interface DeploymentManagermodule - modulepublic void destroy(Module module)
DeploymentManagerModule.destroy() method.
destroy in interface DeploymentManagermodule - module whose destroy method is to be calledpublic Module loadAndDeploy(URI uri)
DeploymentManager
loadAndDeploy in interface DeploymentManageruri - 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 statementpublic EnhancedMap<ModuleId,Module> getDeployedModules()
DeploymentManager
getDeployedModules in interface DeploymentManagerpublic Set<ModuleLoader> getModuleLoaders()
DeploymentManager
getModuleLoaders in interface DeploymentManagerpublic void redeploy(Module module)
DeploymentManager
redeploy in interface DeploymentManagermodule - modulepublic void setModuleLoaders(Set<ModuleLoader> moduleLoaders)
DeploymentManager
setModuleLoaders in interface DeploymentManagermoduleLoaders - module loaderspublic void start(Module module)
DeploymentManagerModule.start() method.
start in interface DeploymentManagermodule - module whose start method is to be calledpublic void stop(Module module)
DeploymentManagerModule.stop() method.
stop in interface DeploymentManagermodule - module whose stop method is to be calledpublic void undeploy(Module module)
DeploymentManager
undeploy in interface DeploymentManagermodule - modulepublic boolean canLoad(URI url)
ModuleLoadertrue if module loader knows how to load (create) module from given URI.
canLoad in interface ModuleLoaderurl - URI
true if module loader knows how to load (create) module from given URIpublic ModuleId toModuleId(URI uri)
toModuleId in interface ModuleLoaderuri - uri
nullpublic Module load(URI uri)
ModuleLoaderModuleLoader.canLoad(URI) returns false then this method
will return null.
load in interface ModuleLoaderuri - URI for module to be loaded from
public Module loadAs(URI uri,
ModuleId moduleId)
ModuleLoaderModuleLoader.canLoad(URI) returns false then this method
will return null.
loadAs in interface ModuleLoaderuri - URI for module to be loaded frommoduleId - module id to be used while creating module
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||