Class WindowsRemoteScripter
- java.lang.Object
-
- com.sun.enterprise.util.cluster.windows.process.WindowsRemoteScripter
-
- Direct Known Subclasses:
WindowsRemoteAsadmin
public class WindowsRemoteScripter extends Object
Call a script on a remote Windows system- Author:
- bnevins
-
-
Constructor Summary
Constructors Constructor Description WindowsRemoteScripter(WindowsCredentials bonafides)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
run(String cmd)
Run a remote script commandString
run(Collection<String> cmdArgs)
Run a remote script command.void
wantStdErr()
-
-
-
Constructor Detail
-
WindowsRemoteScripter
public WindowsRemoteScripter(WindowsCredentials bonafides)
-
-
Method Detail
-
wantStdErr
public final void wantStdErr()
-
run
public String run(Collection<String> cmdArgs) throws WindowsException
Run a remote script command. Convenience method which creates one big String from the substrings- Parameters:
cmd
- e.g. "C:/glassfish4/bin/asadmin" "start-local-instance" "i1"- Returns:
- The stdout of the command
- Throws:
WindowsException
-
run
public String run(String cmd) throws WindowsException
Run a remote script command- Parameters:
cmd
- e.g. "C:/glassfish4/bin/asadmin start-local-instance i1"- Returns:
- The stdout of the command
- Throws:
WindowsException
-
-