public abstract class AbstractJonas5xRemoteDeployer extends AbstractJonasRemoteDeployer
AbstractJonasRemoteDeployer.ActionType, AbstractJonasRemoteDeployer.RemoteDeployerConfig, AbstractJonasRemoteDeployer.TargetTypeconfiguration| Constructor and Description |
|---|
AbstractJonas5xRemoteDeployer(RemoteContainer container)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deploy(Deployable deployable)
Deploy a
Deployable to the running container and make it available for requests. |
protected String |
findRemoteFileName(Deployable deployable,
String deployableIdentifier,
boolean askFromServer)
Finds a deployable file on the remote server.
|
protected String |
getDeploymentAttributeName(ObjectName depmonitor,
MBeanServerConnection mbsc)
Get the attribute name for the "development" attribute.
|
protected ObjectName |
getDepmonitorServiceMBeanName(String domainName)
Get the depmonitor service MBean.
|
protected String |
getOperationName(AbstractJonasRemoteDeployer.ActionType actionType,
DeployableType deployableType,
AbstractJonasRemoteDeployer.TargetType targetType)
Returns the operation name for the given deployable and action type.
|
protected String |
getRemoteFileName(Deployable deployable,
String deployableIdentifier,
boolean askFromServer)
Get the remote file name.
|
void |
redeploy(Deployable deployable)
Redeploy a
Deployable already deployed to the running container. |
void |
redeploy(Deployable deployable,
DeployableMonitor monitor)
Redeploy a
Deployable already deployed to the running container. |
void |
undeploy(Deployable deployable)
Undeploy a
Deployable from the running container. |
getConfig, getDomainMBeanName, getMBeanServerConnectionFactory, getServerMBeanNamegetTypedeploy, deploy, start, start, stop, stop, undeploygetLogger, setLoggerpublic AbstractJonas5xRemoteDeployer(RemoteContainer container)
container - the remote containerprotected String getOperationName(AbstractJonasRemoteDeployer.ActionType actionType, DeployableType deployableType, AbstractJonasRemoteDeployer.TargetType targetType)
getOperationName in class AbstractJonasRemoteDeployeractionType - Action type.deployableType - Deployable type.targetType - Target type.AbstractJonasRemoteDeployer.getOperationName(ActionType, DeployableType, TargetType)public void deploy(Deployable deployable)
Deployable to the running container and make it available for requests.deploy in interface Deployerdeploy in class AbstractJonasRemoteDeployerdeployable - the Deployable to deployAbstractJonasRemoteDeployer.deploy(Deployable)public void undeploy(Deployable deployable)
Deployable from the running container. The service becomes unavailable for
requests.undeploy in interface Deployerundeploy in class AbstractJonasRemoteDeployerdeployable - the Deployable to undeployAbstractJonasRemoteDeployer.undeploy(Deployable)protected ObjectName getDepmonitorServiceMBeanName(String domainName) throws MalformedObjectNameException
domainName - domain NameMalformedObjectNameException - throwing when object name is wrongprotected String getDeploymentAttributeName(ObjectName depmonitor, MBeanServerConnection mbsc) throws Throwable
developmentMode on JonAS 5.0.x and 5.1.x, development on
JOnAS 5.2.x and afterwards).depmonitor - Object name of the depmonitor service.mbsc - MBean server connection.Throwable - If anything fails.protected String findRemoteFileName(Deployable deployable, String deployableIdentifier, boolean askFromServer)
deployable - Deployable to look for.deployableIdentifier - Deployable identifier.askFromServer - Whether to ask from server, only false during tests.null if nothing found.protected String getRemoteFileName(Deployable deployable, String deployableIdentifier, boolean askFromServer)
getRemoteFileName in class AbstractJonasRemoteDeployerdeployable - the deployable Object.deployableIdentifier - the deployable object ID.askFromServer - whether to ask from server (in order to have a full path).AbstractJonasRemoteDeployer.getRemoteFileName(Deployable, String, boolean)public void redeploy(Deployable deployable, DeployableMonitor monitor)
Redeploy a Deployable already deployed to the running container. The service becomes
available for requests.
Note that this method will be unsupported by the Deployers based on the
AbstractCopyingInstalledLocalDeployer.
redeploy in interface Deployerredeploy in class AbstractDeployerdeployable - the Deployable to redeploymonitor - the monitor that checks for deployment statusDeployer.redeploy(Deployable, DeployableMonitor)public void redeploy(Deployable deployable)
Redeploy a Deployable already deployed to the running container. The service becomes
available for requests.
Note that this method will be unsupported by the Deployers based on the
AbstractCopyingInstalledLocalDeployer.
redeploy in interface Deployerredeploy in class AbstractDeployerdeployable - the Deployable to redeployDeployer.redeploy(Deployable)Copyright © 2004-2013 Codehaus. All Rights Reserved.