com.waveset.adapter.ScriptedConnection
Class TelnetConnection
java.lang.Object
com.waveset.adapter.ResourceConnection
com.waveset.adapter.ScriptedConnection.ScriptedConnection
com.waveset.adapter.ScriptedConnection.TelnetConnection
- public class TelnetConnection
- extends ScriptedConnection
Implementation of ScriptedConnection supporting a telnet connection
to a resource.
Field Summary |
static java.lang.String |
code_id
|
protected static java.lang.String |
TYPE_NAME
|
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 |
Method Summary |
void |
connect()
Connects to the telnet server on the resource. |
void |
disconnect()
Disconnect from the telnet server. |
void |
disConnect()
Says goodbye and disconnects from the resource. |
static java.lang.String |
getType()
Returns the type name of the ScriptedConnection. |
void |
testConnection(java.util.HashMap args)
|
Methods inherited from class com.waveset.adapter.ScriptedConnection.ScriptedConnection |
argsEqual, flushInputStream, getHost, getPort, isLoggedIn, runScript, saneFrequency, selfAuthenticates, setArgs, setDecoder, setEncoder, setLineTermination, setLoggedIn |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
- See Also:
- Constant Field Values
TelnetConnection
public TelnetConnection()
throws WavesetException
- Constructor takes arguments. Should be a host and a port in
there at least.
TelnetConnection
public TelnetConnection(java.util.HashMap args)
throws WavesetException
TelnetConnection
public TelnetConnection(java.util.HashMap args,
boolean pooled)
throws WavesetException
getType
public static java.lang.String getType()
- Returns the type name of the ScriptedConnection.
connect
public void connect()
throws WavesetException
- Connects to the telnet server on the resource.
- Overrides:
connect
in class ResourceConnection
- Throws:
WavesetException
disconnect
public void disconnect()
throws WavesetException
- Disconnect from the telnet server.
- 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