edu.harvard.mgh.purcell.gCLINE.data
Class RunCommand
java.lang.Object
edu.harvard.mgh.purcell.gCLINE.data.RunCommand
- All Implemented Interfaces:
- java.lang.Runnable
public class RunCommand
- extends java.lang.Object
- implements java.lang.Runnable
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 |
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
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)
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