org.glassfish.paas.gfplugin
Class RemoteCommandRunnerClient

java.lang.Object
  extended by org.glassfish.paas.gfplugin.RemoteCommandRunnerClient
All Implemented Interfaces:
CommandRunner

public class RemoteCommandRunnerClient
extends Object
implements CommandRunner

Until the CommandRunnerClient supports connecting to remote DAS having secure-admin enabled, this class can be used to execute the commands directly in the remote machine via SSH.

In general, this can also be used to execute local commands in the remote DAS eg., start-database, start-domain are local commands.

Author:
Bhavanishankar S

Constructor Summary
RemoteCommandRunnerClient(Properties glassfishProperties)
           
 
Method Summary
 CommandResult run(String command, String... args)
          
 void setTerse(boolean terse)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteCommandRunnerClient

public RemoteCommandRunnerClient(Properties glassfishProperties)
Method Detail

run

public CommandResult run(String command,
                         String... args)

Specified by:
run in interface CommandRunner

setTerse

public void setTerse(boolean terse)

Specified by:
setTerse in interface CommandRunner


Copyright © 2012. All Rights Reserved.