Interface Jonas4xAdmin
-
- All Known Implementing Classes:
Jonas4xAdminImpl
public interface Jonas4xAdminJOnAS 4X admin command line utils interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandeploy(String beanFileName)deploys the given bean name.booleanisServerRunning(String command, int expectedReturnCode)Look if a local server instance is running.booleanunDeploy(String beanFileName)Undeploys the given bean name.
-
-
-
Method Detail
-
isServerRunning
boolean isServerRunning(String command, int expectedReturnCode)
Look if a local server instance is running.- 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
boolean unDeploy(String beanFileName)
Undeploys the given bean name.- Parameters:
beanFileName- the bean file name- Returns:
- true if the bean has been correctly undeployed
-
deploy
boolean deploy(String beanFileName)
deploys the given bean name.- Parameters:
beanFileName- the bean file name- Returns:
- true if the bean has been correctly deployed
-
-