Class GlassFish2xAsAdmin
- java.lang.Object
-
- org.codehaus.cargo.container.glassfish.internal.AbstractAsAdmin
-
- org.codehaus.cargo.container.glassfish.internal.GlassFish2xAsAdmin
-
public class GlassFish2xAsAdmin extends AbstractAsAdmin
Implements an GlassFish 2.x AsAdmin command.
-
-
Constructor Summary
Constructors Constructor Description GlassFish2xAsAdmin(String home)
Saves the GlassFish home directory and the timeout.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
invokeAsAdmin(boolean async, JvmLauncher java, String[] args)
Invokes asadmin using a Java container.-
Methods inherited from class org.codehaus.cargo.container.glassfish.internal.AbstractAsAdmin
getPasswordFile
-
-
-
-
Constructor Detail
-
GlassFish2xAsAdmin
public GlassFish2xAsAdmin(String home)
Saves the GlassFish home directory and the timeout.- Parameters:
home
- GlassFish home directory.
-
-
Method Detail
-
invokeAsAdmin
public int invokeAsAdmin(boolean async, JvmLauncher java, String[] args)
Invokes asadmin using a Java container.- Specified by:
invokeAsAdmin
in classAbstractAsAdmin
- Parameters:
async
- Asynchronous invoke?java
- JVM launcher.args
- Invoke arguments.- Returns:
- The exit code from asadmin, always
0
when using asynchronous invocation.
-
-