Class AbstractAsAdmin

    • Constructor Detail

      • AbstractAsAdmin

        public AbstractAsAdmin()
    • Method Detail

      • invokeAsAdmin

        public abstract int invokeAsAdmin​(boolean async,
                                          JvmLauncher java,
                                          String[] args)
                                   throws CargoException
        Invokes asadmin using a Java container.
        Parameters:
        async - Asynchronous invoke?
        java - JVM launcher.
        args - Invoke arguments.
        Returns:
        The exit code from asadmin, always 0 when using asynchronous invocation.
        Throws:
        CargoException - If anything wrong happens.
      • getPasswordFile

        public static File getPasswordFile​(LocalConfiguration configuration)
        Creates and returns the password file that contains admin's password.
        Parameters:
        configuration - local configuration.
        Returns:
        The password file that contains admin's password.