Class Jonas4xAdminImpl
- java.lang.Object
-
- org.codehaus.cargo.container.jonas.internal.Jonas4xAdminImpl
-
- All Implemented Interfaces:
Jonas4xAdmin
public class Jonas4xAdminImpl extends Object implements Jonas4xAdmin
JOnAS 4X admin command line utils class.
-
-
Constructor Summary
Constructors Constructor Description Jonas4xAdminImpl(Jonas4xInstalledLocalContainer targetContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
deploy(String beanFileName)
deploys the given bean name.boolean
isServerRunning(String command, int expectedReturnCode)
Look if a local server instance is running.boolean
unDeploy(String beanFileName)
Undeploys the given bean name.
-
-
-
Constructor Detail
-
Jonas4xAdminImpl
public Jonas4xAdminImpl(Jonas4xInstalledLocalContainer targetContainer)
- Parameters:
targetContainer
- the JOnAS target container
-
-
Method Detail
-
isServerRunning
public boolean isServerRunning(String command, int expectedReturnCode)
Look if a local server instance is running.- Specified by:
isServerRunning
in interfaceJonas4xAdmin
- Parameters:
command
- Command to execute, for exampleping
(to check if server is started),j
(to check if JNDI is accessible), etc.expectedReturnCode
- Expected return code.- Returns:
- true if the command matches the result
-
unDeploy
public boolean unDeploy(String beanFileName)
Undeploys the given bean name.- Specified by:
unDeploy
in interfaceJonas4xAdmin
- Parameters:
beanFileName
- the bean file name- Returns:
- true if the bean has been correctly undeployed
-
deploy
public boolean deploy(String beanFileName)
deploys the given bean name.- Specified by:
deploy
in interfaceJonas4xAdmin
- Parameters:
beanFileName
- the bean file name- Returns:
- true if the bean has been correctly deployed
-
-