com.sun.enterprise.util.cluster.windows.process
Class WindowsRemoteScripter

java.lang.Object
  extended by com.sun.enterprise.util.cluster.windows.process.WindowsRemoteScripter
Direct Known Subclasses:
WindowsRemoteAsadmin

public class WindowsRemoteScripter
extends java.lang.Object

Call a script on a remote Windows system

Author:
bnevins

Constructor Summary
WindowsRemoteScripter(WindowsCredentials bonafides)
           
 
Method Summary
 java.lang.String run(java.util.Collection<java.lang.String> cmdArgs)
          Run a remote script command.
 java.lang.String run(java.lang.String cmd)
          Run a remote script command
 void wantStdErr()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowsRemoteScripter

public WindowsRemoteScripter(WindowsCredentials bonafides)
Method Detail

wantStdErr

public final void wantStdErr()

run

public java.lang.String run(java.util.Collection<java.lang.String> cmdArgs)
                     throws WindowsException
Run a remote script command. Convenience method which creates one big String from the substrings

Parameters:
cmd - e.g. "C:/glassfish3/bin/asadmin" "start-local-instance" "i1"
Returns:
The stdout of the command
Throws:
WindowsException

run

public java.lang.String run(java.lang.String cmd)
                     throws WindowsException
Run a remote script command

Parameters:
cmd - e.g. "C:/glassfish3/bin/asadmin start-local-instance i1"
Returns:
The stdout of the command
Throws:
WindowsException


Copyright © 2012 GlassFish Community. All Rights Reserved.