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

java.lang.Object
  extended by com.sun.enterprise.util.cluster.windows.process.WindowsRemoteScripter
      extended by 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
WindowsRemoteAsadmin(java.lang.String remoteInstallRoot, WindowsCredentials bonafides)
           
 
Method Summary
 java.lang.String run(java.util.Collection<java.lang.String> cmdArgs)
          Run a remote asadmin script command
 java.lang.String run(java.lang.String cmd)
          Run a remote asadmin script command
 
Methods inherited from class com.sun.enterprise.util.cluster.windows.process.WindowsRemoteScripter
wantStdErr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowsRemoteAsadmin

public WindowsRemoteAsadmin(java.lang.String remoteInstallRoot,
                            WindowsCredentials bonafides)
Method Detail

run

public java.lang.String run(java.util.Collection<java.lang.String> cmdArgs)
                     throws WindowsException
Run a remote asadmin script command

Overrides:
run in class WindowsRemoteScripter
Parameters:
cmdArgs - e.g. "start-local-instance", "i1"
Returns:
the stdout from the asadmin command
Throws:
WindowsException

run

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

Overrides:
run in class WindowsRemoteScripter
Parameters:
cmd - e.g. "start-local-instance i1"
Returns:
the stdout from the asadmin command
Throws:
WindowsException


Copyright © 2012 GlassFish Community. All Rights Reserved.