|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.deployment.DeploymentManager
public class DeploymentManager
Handles the deployment of portal resources.
Constructor Summary | |
---|---|
DeploymentManager()
|
Method Summary | |
---|---|
ModuleType |
detectModuleType(InputStream moduleArchive)
Detects the module type of an archive, based on its contents. |
IModule |
distribute(String moduleId,
InputStream moduleArchive)
Distributes a module archive to the portal servers. |
Class<?> |
getClass(String className)
Returns the Class object associated with the class or
interface with the given string name, within the deployed JAR library
modules or the shared level class loader. |
IModule |
getModule(String moduleId)
Returns the module with the specified identifier. |
Collection<IModule> |
getModules(ModuleType moduleType)
Returns the currently installed modules of the specified type. |
IPortalDeployer |
getPortalDeployer(DeployConfig deployConfig)
Deprecated. |
void |
init()
Initializes the deployment manager. |
void |
registerDeployer(IPortalDeployer deployer)
Deprecated. |
void |
start(IModule module)
Starts the execution of a module. |
void |
stop(IModule module)
Stops the execution of a module. |
void |
undeploy(IModule module)
Undeploys a module from the portal servers. |
boolean |
unregisterDeployer(IPortalDeployer deployer)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeploymentManager()
Method Detail |
---|
@Deprecated public void registerDeployer(IPortalDeployer deployer)
IDeploymentManager
registerDeployer
in interface IDeploymentManager
deployer
- the deployer.@Deprecated public boolean unregisterDeployer(IPortalDeployer deployer)
IDeploymentManager
unregisterDeployer
in interface IDeploymentManager
deployer
- the deployer.
@Deprecated public IPortalDeployer getPortalDeployer(DeployConfig deployConfig) throws PortalException
IDeploymentManager
getPortalDeployer
in interface IDeploymentManager
deployConfig
- the deployment specification.
PortalException
- if there is no deployer that can handle the
specified deployment.public void init()
IDeploymentManager
init
in interface IDeploymentManager
public Class<?> getClass(String className) throws ClassNotFoundException
IDeploymentManager
Class
object associated with the class or
interface with the given string name, within the deployed JAR library
modules or the shared level class loader.
getClass
in interface IDeploymentManager
className
- the fully qualified name of the desired class.
Class
object for the class with the specified name.
ClassNotFoundException
- if the class cannot be located.Class#forName(String)}
public ModuleType detectModuleType(InputStream moduleArchive) throws IOException, IllegalModuleArchiveException
IDeploymentManager
detectModuleType
in interface IDeploymentManager
moduleArchive
- the archive content input stream.
IOException
- if an I/O error occurs.
IllegalModuleArchiveException
- if the archive module type
could not be recognized.public IModule distribute(String moduleId, InputStream moduleArchive) throws IOException, IllegalModuleArchiveException, PortalException
IDeploymentManager
distribute
in interface IDeploymentManager
moduleId
- the identifier for the module being deployed.moduleArchive
- the module archive input stream.
IOException
- if an I/O error occurs.
IllegalModuleArchiveException
- if the archive module type
could not be recognized.
PortalException
public void start(IModule module) throws PortalException
IDeploymentManager
start
in interface IDeploymentManager
module
- the module.
PortalException
public void stop(IModule module) throws PortalException
IDeploymentManager
stop
in interface IDeploymentManager
module
- the module.
PortalException
public void undeploy(IModule module)
IDeploymentManager
undeploy
in interface IDeploymentManager
module
- the module to be undeployed.public Collection<IModule> getModules(ModuleType moduleType) throws PortalException
IDeploymentManager
getModules
in interface IDeploymentManager
moduleType
- the module type.
PortalException
public IModule getModule(String moduleId) throws PortalException
IDeploymentManager
getModule
in interface IDeploymentManager
moduleId
- the module identifier.
PortalObjectNotFoundException
- if no module with the given
identifier was found.
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |