|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--AbstractLogEnabled
|
+--org.apache.avalon.phoenix.components.deployer.DefaultDeployer
Deploy .sar files into a kernel using this class.
| Field Summary |
| Fields inherited from interface org.apache.avalon.phoenix.interfaces.Deployer |
ROLE |
| Fields inherited from interface org.apache.avalon.phoenix.interfaces.DeployerMBean |
ROLE |
| Constructor Summary | |
DefaultDeployer()
|
|
| Method Summary | |
void |
deploy(String name,
String sarURL)
Deploy an application from an installation. |
void |
deploy(String name,
URL location)
Deploy an application from an installation. |
void |
dispose()
Dispose the dpeloyer which effectively means undeploying all the currently deployed apps. |
void |
initialize()
|
void |
parameterize(Parameters parameters)
Retrieve parameter that specifies work directory. |
void |
service(ServiceManager serviceManager)
Retrieve relevant services needed to deploy. |
void |
undeploy(String name)
Undeploy an application. |
protected void |
verify(SarMetaData metaData,
ClassLoader classLoader)
Verify that the application conforms to our requirements. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultDeployer()
| Method Detail |
public void parameterize(Parameters parameters)
throws ParameterException
parameters - the parameters to read
ParameterException - if invlaid work directory
public void service(ServiceManager serviceManager)
throws ServiceException
serviceManager - the ComponentManager
ServiceException - if an error occurs
public void initialize()
throws Exception
Exceptionpublic void dispose()
public void undeploy(String name)
throws DeploymentException
undeploy in interface Deployername - the name of deployment
DeploymentException - if an error occurs
public void deploy(String name,
String sarURL)
throws DeploymentException
deploy in interface DeployerMBeanname - the name of applicationsarURL - the location to deploy from represented as String
DeploymentException - if an error occursDeployerMBean.deploy(String,String),
DeployerMBean.undeploy(String)
public void deploy(String name,
URL location)
throws DeploymentException
deploy in interface Deployername - the name of applicationlocation - the location to deploy from
DeploymentException - if an error occurs
protected void verify(SarMetaData metaData,
ClassLoader classLoader)
throws VerifyException
metaData - the application metaDataclassLoader - the ClassLoader associated with app
VerifyException - on error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||