com.waveset.adapter.ScriptedConnection
Class SSHConnection

java.lang.Object
  extended bycom.waveset.adapter.ResourceConnection
      extended bycom.waveset.adapter.ScriptedConnection.ScriptedConnection
          extended bycom.waveset.adapter.ScriptedConnection.SSHConnection

public class SSHConnection
extends ScriptedConnection

Implementation of ScriptedConnection supporting a ssh connection to a resource.


Field Summary
static java.lang.String code_id
           
protected static java.lang.String TYPE_NAME
          The type name, used by the ScriptedConnectionFactory.
 
Fields inherited from class com.waveset.adapter.ScriptedConnection.ScriptedConnection
_err, _host, _in, _out, _password, _port, _term, _type, _user, HOST, MAX_WAIT_MILLISECONDS, PASSWORD, PORT, READ_BUFFER_SIZE, READ_CHECK_FREQUENCY, TERM, TYPE, USER
 
Fields inherited from class com.waveset.adapter.ResourceConnection
_args, _connected, _pooled, _timeIdled, _trace
 
Constructor Summary
SSHConnection()
          Constructor with no arguments.
SSHConnection(java.util.HashMap args)
          Constructor takes arguments.
SSHConnection(java.util.HashMap args, boolean pooled)
           
 
Method Summary
 void connect()
          Connects to the SSH server on the resource.
 void disconnect()
          Disconnect from the SSH server.
 void disConnect()
          Says goodbye and disconnects from the resource.
static java.lang.String getType()
          Returns the type name of the ScriptedConnection.
 boolean selfAuthenticates()
          Returns an indication of whether the connection will authenticate itself.
 void testConnection(java.util.HashMap args)
           
 
Methods inherited from class com.waveset.adapter.ScriptedConnection.ScriptedConnection
argsEqual, flushInputStream, getHost, getPort, isLoggedIn, runScript, saneFrequency, setArgs, setDecoder, setEncoder, setLineTermination, setLoggedIn
 
Methods inherited from class com.waveset.adapter.ResourceConnection
getArgsType, getTimeIdled, isConnected, isPooled, setConnected, setPooled, setTimeIdled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values

TYPE_NAME

protected static final java.lang.String TYPE_NAME
The type name, used by the ScriptedConnectionFactory.

See Also:
Constant Field Values
Constructor Detail

SSHConnection

public SSHConnection()
              throws WavesetException
Constructor with no arguments.


SSHConnection

public SSHConnection(java.util.HashMap args)
              throws WavesetException
Constructor takes arguments. Should be a host, port, userid and password in there at least.


SSHConnection

public SSHConnection(java.util.HashMap args,
                     boolean pooled)
              throws WavesetException
Method Detail

getType

public static java.lang.String getType()
Returns the type name of the ScriptedConnection.


selfAuthenticates

public boolean selfAuthenticates()
Returns an indication of whether the connection will authenticate itself. For an SSH connection, the authentication is part of the protocol.

Overrides:
selfAuthenticates in class ScriptedConnection

connect

public void connect()
             throws WavesetException
Connects to the SSH server on the resource.

Overrides:
connect in class ResourceConnection
Throws:
WavesetException

disconnect

public void disconnect()
                throws WavesetException
Disconnect from the SSH server. Just closes the streams.

Overrides:
disconnect in class ResourceConnection
Throws:
WavesetException

disConnect

public void disConnect()
                throws WavesetException
Deprecated. since 3.1. Use disconnect() instead.

Description copied from class: ScriptedConnection
Says goodbye and disconnects from the resource.

Specified by:
disConnect in class ScriptedConnection
Throws:
WavesetException

testConnection

public void testConnection(java.util.HashMap args)
                    throws WavesetException
Specified by:
testConnection in class ResourceConnection
Throws:
WavesetException