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 class
AbstractJonasRemoteDeployer.ActionType
Action types.protected class
AbstractJonasRemoteDeployer.RemoteDeployerConfig
This class represents the Remote Deployer Configuration.protected static class
AbstractJonasRemoteDeployer.TargetType
Target types.
-
Field Summary
Fields Modifier and Type Field Description protected RuntimeConfiguration
configuration
The 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 void
deploy(Deployable deployable)
Deploy aDeployable
to the running container and make it available for requests.protected AbstractJonasRemoteDeployer.RemoteDeployerConfig
getConfig()
Get the Deployer configuration.protected ObjectName
getDomainMBeanName(String domainName)
Get the Domain MBean.abstract MBeanServerConnectionFactory
getMBeanServerConnectionFactory()
Get the MBean Connection factory.protected abstract String
getOperationName(AbstractJonasRemoteDeployer.ActionType actionType, DeployableType deployableType, AbstractJonasRemoteDeployer.TargetType targetType)
Returns the operation name for the given deployable and action type.protected abstract String
getRemoteFileName(Deployable deployable, String deployableIdentifier, boolean askFromServer)
Get the remote file name.protected ObjectName
getServerMBeanName(String domainName, String serverName)
Get the server MBean.void
undeploy(Deployable deployable)
Undeploy aDeployable
from 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 aDeployable
to the running container and make it available for requests.- Specified by:
deploy
in interfaceDeployer
- Overrides:
deploy
in classAbstractDeployer
- Parameters:
deployable
- theDeployable
to 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 aDeployable
from the running container. The service becomes unavailable for requests.- Specified by:
undeploy
in interfaceDeployer
- Overrides:
undeploy
in classAbstractDeployer
- Parameters:
deployable
- theDeployable
to 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
-
-