|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.soda.dk.core.EscObject
org.eclipse.soda.dk.transport.Transport
org.eclipse.soda.dk.transport.ThreadTransport
org.eclipse.soda.dk.transport.ConnectionTransport
public abstract class ConnectionTransport
The ConnectionTransport class implements the TransportService interface.
Message,
EscObject,
ThreadTransport,
Transport,
ConnectionService,
Runnable,
TransportService| Field Summary |
|---|
| Fields inherited from class org.eclipse.soda.dk.core.EscObject |
|---|
EMPTY_BYTES, EMPTY_STRING, ID_FILTER_KEY, ID_KEY, ID_KEY_ANY, INTEGER_TABLE, KEY_KEY, LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_TRACE, LOG_WARNING, PREFIX_KEY, RESOURCE_BUNDLE, SLEEP_EXCEPTION_RESOURCE, SYSTEM_INFO_RESOURCE, TO_STRING_CONFIGURATION_KEYS, TRACE_LEVEL_HIGH, TRACE_LEVEL_LOW, TRACE_LEVEL_MAX, TRACE_LEVEL_MIN, TRACE_LEVEL_NONE, TRACE_LEVEL_NORMAL, TRACELEVEL_KEY, UNKNOWN_ERROR_RESOURCE |
| Fields inherited from interface org.eclipse.soda.dk.transport.service.TransportService |
|---|
ACTIVE, ALIVE, CONFIGURATION_DATA_KEY, CONNECTED, CONNECTION_KEY, CREATED, DEAD, DEFAULT_CONNECTION, ERROR_COUNT_DATA_KEY, ID_KEY, INPUT_MESSAGE_COUNT_DATA_KEY, NULL, SERVICE_NAME, SOURCE_DATA_KEY, STARTED, STATE_DATA_KEY, STATE_OLD_DATA_KEY, STATUS_EXTERNAL_KEY, TIMESTAMP_DATA_KEY, VALUE_DATA_KEY, VALUE_OLD_DATA_KEY |
| Constructor Summary | |
|---|---|
ConnectionTransport()
Constructs an ConnectionTransport object. |
|
| Method Summary | |
|---|---|
void |
close()
Perform the close action method. |
void |
connect()
Perform the connect action method. |
void |
exit()
Exit. |
ConnectionService |
getConnection()
Gets the ConnectionService connection property value. |
abstract ConnectionService |
getDefaultConnection()
Gets the default connection (ConnectionService) value. |
int |
read(byte[] buffer,
int offset,
int length)
Perform the read method and return the int result. |
void |
setConnection(ConnectionService connection)
Sets the connection property. |
void |
setup()
Setup the transport. |
void |
write(byte[] sendBytes)
Perform the send action method. |
| Methods inherited from class org.eclipse.soda.dk.transport.ThreadTransport |
|---|
getBufferSize, getShutdownTimeout, getThread, handleNoData, handleNoInput, isRunning, processInput, processInput, processInput, run, setRunning, setThread, shutdown, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.soda.dk.transport.service.TransportService |
|---|
addInterest, addTransportListener, getConfigurationInformation, getNotificationService, getState, removeInterest, removeTransportListener, send, setConfigurationInformation, setNotificationService, start, stop |
| Methods inherited from interface org.eclipse.soda.dk.core.service.ConfigurationService |
|---|
getBoolean, getFloat, getInt, getLong, getObject |
| Constructor Detail |
|---|
public ConnectionTransport()
ConnectionTransport object.
| Method Detail |
|---|
public void close()
close in class Transport
public void connect()
throws java.lang.Exception
connect in class Transportjava.lang.Exceptionpublic void exit()
exit in interface TransportServiceexit in class Transportpublic ConnectionService getConnection()
ConnectionService connection property value.
getConnection in interface ConnectionTransportServicegetConnection in class TransportConnectionService)
value.getDefaultConnection(),
setConnection(ConnectionService)public abstract ConnectionService getDefaultConnection()
ConnectionService)
value.
public int read(byte[] buffer,
int offset,
int length)
throws java.io.IOException
int result.
byte[]
href="java.io.IOException.html">IOException Thrown if
the IOException exception condition occurs.
The offset (int) parameter.
The length (int) parameter.
read in class Transportbuffer - The buffer (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
int) value.
java.io.IOException
public void setConnection(ConnectionService connection)
throws java.lang.IllegalArgumentException
org.eclipse.soda.dk.tk.ConnectionService).
href="java.lang.IllegalArgumentException.html">IllegalArgumentException
Thrown if the IllegalArgumentException exception condition
occurs.
setConnection in interface ConnectionTransportServiceconnection - The connection (ConnectionService) parameter.
java.lang.IllegalArgumentException - Illegal Argument Exception.getConnection(),
getDefaultConnection()public void setup()
Transport
setup in class TransportTransport.setup()
public void write(byte[] sendBytes)
throws java.lang.Exception
byte[]
href="java.io.IOException.html">IOException Thrown if
the IOException exception condition occurs.
write in interface TransportServicewrite in class TransportsendBytes - The send bytes (byte[]) parameter.
java.lang.ExceptionTransport.write(MessageService)
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||