Interface Jonas4xAdmin

  • All Known Implementing Classes:
    Jonas4xAdminImpl

    public interface Jonas4xAdmin
    JOnAS 4X admin command line utils interface.
    • Method Detail

      • isServerRunning

        boolean isServerRunning​(String command,
                                int expectedReturnCode)
        Look if a local server instance is running.
        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

        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