edu.harvard.mgh.purcell.gCLINE.data
Class RunCommand

java.lang.Object
  extended by edu.harvard.mgh.purcell.gCLINE.data.RunCommand
All Implemented Interfaces:
java.lang.Runnable

public class RunCommand
extends java.lang.Object
implements java.lang.Runnable


Field Summary
 java.lang.String command
           
private  SshClient conn
           
private  Record data
           
 java.util.Vector<java.lang.String> errorLines
           
private static org.apache.log4j.Logger logger
          Define a static logger variable
 java.util.Vector<java.lang.String> outputLines
           
 
Constructor Summary
RunCommand(java.lang.String cmd, Record d)
           
RunCommand(java.lang.String cmd, Record d, boolean forceLocal)
           
RunCommand(java.lang.String cmd, SshClient c)
           
 
Method Summary
 void run()
           
static java.lang.String[] stripAndSplit(java.lang.String given)
          Split a given strip up into an array based on the spaces outside of "".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static org.apache.log4j.Logger logger
Define a static logger variable


conn

private SshClient conn

outputLines

public java.util.Vector<java.lang.String> outputLines

errorLines

public java.util.Vector<java.lang.String> errorLines

command

public java.lang.String command

data

private Record data
Constructor Detail

RunCommand

public RunCommand(java.lang.String cmd,
                  Record d)

RunCommand

public RunCommand(java.lang.String cmd,
                  Record d,
                  boolean forceLocal)

RunCommand

public RunCommand(java.lang.String cmd,
                  SshClient c)
Method Detail

stripAndSplit

public static java.lang.String[] stripAndSplit(java.lang.String given)
Split a given strip up into an array based on the spaces outside of "".

Parameters:
given - a string that we wish to split
Returns:
an array of strings that contains the same contains the split input string.

run

public void run()
Specified by:
run in interface java.lang.Runnable