Class WindowsRemoteAsadmin
- java.lang.Object
-
- com.sun.enterprise.util.cluster.windows.process.WindowsRemoteScripter
-
- com.sun.enterprise.util.cluster.windows.process.WindowsRemoteAsadmin
-
public class WindowsRemoteAsadmin extends WindowsRemoteScripter
Wrapper for calling asadmin -- since it is done all the time, this convenience class was created- Author:
- Byron Nevins
-
-
Constructor Summary
Constructors Constructor Description WindowsRemoteAsadmin(String remoteInstallRoot, WindowsCredentials bonafides)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringrun(String cmd)Run a remote asadmin script commandStringrun(Collection<String> cmdArgs)Run a remote asadmin script command-
Methods inherited from class com.sun.enterprise.util.cluster.windows.process.WindowsRemoteScripter
wantStdErr
-
-
-
-
Constructor Detail
-
WindowsRemoteAsadmin
public WindowsRemoteAsadmin(String remoteInstallRoot, WindowsCredentials bonafides)
-
-
Method Detail
-
run
public String run(Collection<String> cmdArgs) throws WindowsException
Run a remote asadmin script command- Overrides:
runin classWindowsRemoteScripter- Parameters:
cmdArgs- e.g. "start-local-instance", "i1"- Returns:
- the stdout from the asadmin command
- Throws:
WindowsException
-
run
public final String run(String cmd) throws WindowsException
Run a remote asadmin script command- Overrides:
runin classWindowsRemoteScripter- Parameters:
cmd- e.g. "start-local-instance i1"- Returns:
- the stdout from the asadmin command
- Throws:
WindowsException
-
-