org.browsecode.helpers.controlcomputer.ssh
Class SSHInterface
java.lang.Object
org.browsecode.helpers.controlcomputer.ssh.SSHInterface
- All Implemented Interfaces:
- ControlComputerInterface
- Direct Known Subclasses:
- J2SSHInterface
public abstract class SSHInterface
- extends java.lang.Object
- implements ControlComputerInterface
Method Summary |
abstract boolean |
authenticateOnly(java.lang.String host,
java.lang.String userID,
java.lang.String password,
SSHProgressListener listenToProgress)
|
abstract boolean |
copyTo(java.io.File[] files,
java.lang.String toDir)
|
abstract boolean |
didLastMySQLCommandInclude(java.lang.String name)
|
abstract java.lang.String |
getAllOutput()
|
abstract java.util.Vector |
getAllOutputAsVector()
|
java.lang.String |
getLastErrorMessage()
|
abstract boolean |
isDoneCopying()
|
abstract boolean |
runCommand(java.lang.String line)
|
boolean |
runCommand(java.lang.String[] line)
|
boolean |
runCommand(java.lang.String[] line,
boolean waitForResponse)
|
int |
runCommand(java.lang.String[] line,
java.lang.String[] phrasesToWaitFor)
|
boolean |
runCommand(java.lang.String line,
boolean waitForFinish)
|
int |
runCommand(java.lang.String line,
java.lang.String[] phrasesToWaitFor)
|
abstract java.lang.String |
start(java.lang.String host,
java.lang.String userID,
java.lang.String password,
SSHProgressListener listenToProgress)
|
abstract int |
waitForResponse(java.lang.String[] waitFor)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.browsecode.helpers.controlcomputer.ControlComputerInterface |
dispose, getDirectorySeparator, getHostname, getOperatingSystem, getOSVersion, getTempDirectory, getUnixVariant, isStillRunningLastCommand, restart, searchForFile, willSpecialUnixCharactersBeConverted |
CANNOTHANDLESERVER
public static final java.lang.String CANNOTHANDLESERVER
- See Also:
- Constant Field Values
SSHInterface
public SSHInterface()
start
public abstract java.lang.String start(java.lang.String host,
java.lang.String userID,
java.lang.String password,
SSHProgressListener listenToProgress)
authenticateOnly
public abstract boolean authenticateOnly(java.lang.String host,
java.lang.String userID,
java.lang.String password,
SSHProgressListener listenToProgress)
runCommand
public abstract boolean runCommand(java.lang.String line)
- Specified by:
runCommand
in interface ControlComputerInterface
getLastErrorMessage
public java.lang.String getLastErrorMessage()
- Specified by:
getLastErrorMessage
in interface ControlComputerInterface
runCommand
public boolean runCommand(java.lang.String[] line,
boolean waitForResponse)
- Specified by:
runCommand
in interface ControlComputerInterface
runCommand
public boolean runCommand(java.lang.String[] line)
- Specified by:
runCommand
in interface ControlComputerInterface
runCommand
public int runCommand(java.lang.String[] line,
java.lang.String[] phrasesToWaitFor)
- Specified by:
runCommand
in interface ControlComputerInterface
runCommand
public int runCommand(java.lang.String line,
java.lang.String[] phrasesToWaitFor)
- Specified by:
runCommand
in interface ControlComputerInterface
runCommand
public boolean runCommand(java.lang.String line,
boolean waitForFinish)
- Specified by:
runCommand
in interface ControlComputerInterface
waitForResponse
public abstract int waitForResponse(java.lang.String[] waitFor)
- Specified by:
waitForResponse
in interface ControlComputerInterface
didLastMySQLCommandInclude
public abstract boolean didLastMySQLCommandInclude(java.lang.String name)
copyTo
public abstract boolean copyTo(java.io.File[] files,
java.lang.String toDir)
- Specified by:
copyTo
in interface ControlComputerInterface
isDoneCopying
public abstract boolean isDoneCopying()
getAllOutput
public abstract java.lang.String getAllOutput()
- Specified by:
getAllOutput
in interface ControlComputerInterface
getAllOutputAsVector
public abstract java.util.Vector getAllOutputAsVector()