|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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)
DeploymentManager
Module.create()
method.
create
in interface DeploymentManager
module
- module whose create method is to be calledpublic void deploy(ModuleId moduleId, Module module)
DeploymentManager
deploy
in interface DeploymentManager
module
- modulepublic void destroy(Module module)
DeploymentManager
Module.destroy()
method.
destroy
in interface DeploymentManager
module
- module whose destroy method is to be calledpublic Module loadAndDeploy(URI uri)
DeploymentManager
loadAndDeploy
in interface DeploymentManager
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 statementpublic EnhancedMap<ModuleId,Module> getDeployedModules()
DeploymentManager
getDeployedModules
in interface DeploymentManager
public Set<ModuleLoader> getModuleLoaders()
DeploymentManager
getModuleLoaders
in interface DeploymentManager
public void redeploy(Module module)
DeploymentManager
redeploy
in interface DeploymentManager
module
- modulepublic void setModuleLoaders(Set<ModuleLoader> moduleLoaders)
DeploymentManager
setModuleLoaders
in interface DeploymentManager
moduleLoaders
- module loaderspublic void start(Module module)
DeploymentManager
Module.start()
method.
start
in interface DeploymentManager
module
- module whose start method is to be calledpublic void stop(Module module)
DeploymentManager
Module.stop()
method.
stop
in interface DeploymentManager
module
- module whose stop method is to be calledpublic void undeploy(Module module)
DeploymentManager
undeploy
in interface DeploymentManager
module
- modulepublic boolean canLoad(URI url)
ModuleLoader
true
if module loader knows how to load (create) module from given URI.
canLoad
in interface ModuleLoader
url
- URI
true
if module loader knows how to load (create) module from given URIpublic ModuleId toModuleId(URI uri)
toModuleId
in interface ModuleLoader
uri
- uri
null
public Module load(URI uri)
ModuleLoader
ModuleLoader.canLoad(URI)
returns false
then this method
will return null
.
load
in interface ModuleLoader
uri
- URI for module to be loaded from
public Module loadAs(URI uri, ModuleId moduleId)
ModuleLoader
ModuleLoader.canLoad(URI)
returns false
then this method
will return null
.
loadAs
in interface ModuleLoader
uri
- 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 |