Class AbstractJonasRemoteDeployer
- java.lang.Object
-
- org.codehaus.cargo.util.log.LoggedObject
-
- org.codehaus.cargo.container.spi.deployer.AbstractDeployer
-
- org.codehaus.cargo.container.spi.deployer.AbstractRemoteDeployer
-
- org.codehaus.cargo.container.jonas.internal.AbstractJonasRemoteDeployer
-
- Direct Known Subclasses:
AbstractJonas4xRemoteDeployer,AbstractJonas5xRemoteDeployer
public abstract class AbstractJonasRemoteDeployer extends AbstractRemoteDeployer
Abstract base class for JOnAS remote deployment.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classAbstractJonasRemoteDeployer.ActionTypeAction types.protected classAbstractJonasRemoteDeployer.RemoteDeployerConfigThis class represents the Remote Deployer Configuration.protected static classAbstractJonasRemoteDeployer.TargetTypeTarget types.
-
Field Summary
Fields Modifier and Type Field Description protected RuntimeConfigurationconfigurationThe run time configuration.
-
Constructor Summary
Constructors Constructor Description AbstractJonasRemoteDeployer(RemoteContainer container)Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddeploy(Deployable deployable)Deploy aDeployableto the running container and make it available for requests.protected AbstractJonasRemoteDeployer.RemoteDeployerConfiggetConfig()Get the Deployer configuration.protected ObjectNamegetDomainMBeanName(String domainName)Get the Domain MBean.abstract MBeanServerConnectionFactorygetMBeanServerConnectionFactory()Get the MBean Connection factory.protected abstract StringgetOperationName(AbstractJonasRemoteDeployer.ActionType actionType, DeployableType deployableType, AbstractJonasRemoteDeployer.TargetType targetType)Returns the operation name for the given deployable and action type.protected abstract StringgetRemoteFileName(Deployable deployable, String deployableIdentifier, boolean askFromServer)Get the remote file name.protected ObjectNamegetServerMBeanName(String domainName, String serverName)Get the server MBean.voidundeploy(Deployable deployable)Undeploy aDeployablefrom the running container.-
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractRemoteDeployer
getContainer, getType
-
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractDeployer
deploy, deploy, redeploy, redeploy, redeploy, start, start, stop, stop, undeploy
-
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger, setLogger
-
-
-
-
Field Detail
-
configuration
protected RuntimeConfiguration configuration
The run time configuration.
-
-
Constructor Detail
-
AbstractJonasRemoteDeployer
public AbstractJonasRemoteDeployer(RemoteContainer container)
Constructor.- Parameters:
container- the remote container
-
-
Method Detail
-
getMBeanServerConnectionFactory
public abstract MBeanServerConnectionFactory getMBeanServerConnectionFactory()
Get the MBean Connection factory.- Returns:
- the MBean Connection factory
-
deploy
public void deploy(Deployable deployable)
Deploy aDeployableto the running container and make it available for requests.- Specified by:
deployin interfaceDeployer- Overrides:
deployin classAbstractDeployer- Parameters:
deployable- theDeployableto deploy
-
getOperationName
protected abstract String getOperationName(AbstractJonasRemoteDeployer.ActionType actionType, DeployableType deployableType, AbstractJonasRemoteDeployer.TargetType targetType)
Returns the operation name for the given deployable and action type.- Parameters:
actionType- Action type.deployableType- Deployable type.targetType- Target type.- Returns:
- Operation name.
-
undeploy
public void undeploy(Deployable deployable)
Undeploy aDeployablefrom the running container. The service becomes unavailable for requests.- Specified by:
undeployin interfaceDeployer- Overrides:
undeployin classAbstractDeployer- Parameters:
deployable- theDeployableto undeploy
-
getRemoteFileName
protected abstract String getRemoteFileName(Deployable deployable, String deployableIdentifier, boolean askFromServer)
Get the remote file name.- Parameters:
deployable- the deployable Object.deployableIdentifier- the deployable object ID.askFromServer- whether to ask from server (in order to have a full path).- Returns:
- the remote file Name.
-
getServerMBeanName
protected ObjectName getServerMBeanName(String domainName, String serverName) throws MalformedObjectNameException
Get the server MBean.- Parameters:
domainName- domain NameserverName- Server Name- Returns:
- the server Mbean Name
- Throws:
MalformedObjectNameException- throwing when object name is wrong
-
getDomainMBeanName
protected ObjectName getDomainMBeanName(String domainName) throws MalformedObjectNameException
Get the Domain MBean.- Parameters:
domainName- domain Name- Returns:
- the server Mbean Name
- Throws:
MalformedObjectNameException- throwing when object name is wrong
-
getConfig
protected AbstractJonasRemoteDeployer.RemoteDeployerConfig getConfig()
Get the Deployer configuration.- Returns:
- the Deployer configuration
-
-