Class Jonas4xAdminImpl

  • All Implemented Interfaces:
    Jonas4xAdmin

    public class Jonas4xAdminImpl
    extends Object
    implements Jonas4xAdmin
    JOnAS 4X admin command line utils class.
    • 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 interface Jonas4xAdmin
        Parameters:
        command - Command to execute, for example ping (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 interface Jonas4xAdmin
        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 interface Jonas4xAdmin
        Parameters:
        beanFileName - the bean file name
        Returns:
        true if the bean has been correctly deployed