Class AbstractAsAdmin
- java.lang.Object
-
- org.codehaus.cargo.container.glassfish.internal.AbstractAsAdmin
-
- Direct Known Subclasses:
GlassFish2xAsAdmin
,GlassFish3xAsAdmin
public abstract class AbstractAsAdmin extends Object
Implements an GlassFish AsAdmin command.
-
-
Constructor Summary
Constructors Constructor Description AbstractAsAdmin()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static File
getPasswordFile(LocalConfiguration configuration)
Creates and returns the password file that contains admin's password.abstract int
invokeAsAdmin(boolean async, JvmLauncher java, String[] args)
Invokes asadmin using a Java container.
-
-
-
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.
-
-