|
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
org.eclipse.soda.dk.transport.ResponseTransport
public abstract class ResponseTransport
The ResponseTransport class implements the TransportService interface.
ConnectionTransport,
Message,
EscObject,
ThreadTransport,
Transport,
Runnable,
String,
TransportService| Field Summary | |
|---|---|
protected java.lang.Object |
readBlock
Define the read block (Object) field. |
protected MessageService |
sentMessage
Define the sent message (MessageService) field. |
protected java.lang.Object |
writeBlock
Define the write block (Object) field. |
| 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 | |
|---|---|
ResponseTransport()
Constructs an ResponseTransport object. |
|
| Method Summary | |
|---|---|
void |
fireMessageReceived(java.lang.Object timestamp,
MessageService message)
Perform the fireMessageReceived action method. |
void |
fireMessageReceivedNoResponse(java.lang.Object timestamp,
MessageService message)
Fire message received no response with the specified timestamp and message parameters. |
long |
getDefaultResponseTimeout()
Gets the long defaultResponseTimeout property value. |
protected byte[] |
getLastWriteBytes()
Gets the byte[] last bytes written. |
long |
getResponseMessageCount()
Gets the response message count (long) value. |
long |
getResponseTimeout()
Gets the long responseTimeout property value. |
MessageService |
getSentMessage()
Gets the sent message (MessageService) value. |
long |
getShutdownTimeout()
Gets the shutdown timeout (long) value. |
void |
responseReceived()
Response received. |
protected void |
setLastWriteBytes(byte[] lastWriteBytes)
Sets the byte[] last bytes written. |
void |
setResponseMessageCount(long responseMessageCount)
Sets the response message count value. |
void |
setResponseTimeout(long responseTimeout)
Sets the responseTimeout property. |
void |
setSentMessage(MessageService sentMessage)
Sets the sent message value. |
void |
setup()
Setup the transport. |
long |
updateResponseMessageCount()
Update response message count and return the long result. |
void |
write(byte[] sendBytes)
Perform the write bytes method. |
protected void |
write(byte[] bytes,
long responseTimeout)
Perform the write method. |
protected void |
write(MessageService message)
Write with the specified message parameter. |
| Methods inherited from class org.eclipse.soda.dk.transport.ConnectionTransport |
|---|
close, connect, exit, getConnection, getDefaultConnection, read, setConnection |
| Methods inherited from class org.eclipse.soda.dk.transport.ThreadTransport |
|---|
getBufferSize, 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 |
| Field Detail |
|---|
protected final java.lang.Object writeBlock
protected final java.lang.Object readBlock
protected MessageService sentMessage
| Constructor Detail |
|---|
public ResponseTransport()
ResponseTransport object.
| Method Detail |
|---|
public void fireMessageReceived(java.lang.Object timestamp,
MessageService message)
Transportjava.lang.Object
org.eclipse.soda.dk.message.service.MessageService
fireMessageReceived in class Transporttimestamp - The timestamp (Object) parameter.message - The message (MessageService) parameter.The timestamp (Object) parameter.
The message (MessageService) parameter.
public void fireMessageReceivedNoResponse(java.lang.Object timestamp,
MessageService message)
Object) parameter.
The message (MessageService) parameter.
timestamp - The timestamp (Object) parameter.message - The message (MessageService) parameter.public long getDefaultResponseTimeout()
long defaultResponseTimeout property value.
long)
value.protected byte[] getLastWriteBytes()
byte[] last bytes written.
byte[])
value.setLastWriteBytes(byte[])public long getResponseMessageCount()
long) value.setResponseMessageCount(long),
updateResponseMessageCount()public long getResponseTimeout()
long responseTimeout property value.
long)
value.getDefaultResponseTimeout(),
setResponseTimeout(long)public MessageService getSentMessage()
MessageService) value.setSentMessage(MessageService)public long getShutdownTimeout()
getShutdownTimeout in class ThreadTransportlong) value.public void responseReceived()
fireMessageReceived(Object,MessageService)protected void setLastWriteBytes(byte[] lastWriteBytes)
byte[] last bytes written.
The last write bytes (byte[]) parameter.
lastWriteBytes - The last write bytes (byte[]) parameter.getLastWriteBytes()public void setResponseMessageCount(long responseMessageCount)
long) parameter.
responseMessageCount - The response message count (long) parameter.getResponseMessageCount(),
updateResponseMessageCount()public void setResponseTimeout(long responseTimeout)
long).
responseTimeout - The response timeout (long) parameter.getDefaultResponseTimeout(),
getResponseTimeout()public void setSentMessage(MessageService sentMessage)
MessageService) parameter.
sentMessage - The sent message (MessageService) parameter.getSentMessage()public void setup()
Transport
setup in class ConnectionTransportTransport.setup()public long updateResponseMessageCount()
long)
value.getResponseMessageCount(),
setResponseMessageCount(long)
public void write(byte[] sendBytes)
throws java.lang.Exception
byte[]) parameter.
write in interface TransportServicewrite in class ConnectionTransportsendBytes - The send bytes (byte[]) parameter.
java.lang.Exceptionwrite(MessageService),
write(byte[],long)
protected void write(MessageService message)
throws java.lang.Exception
MessageService) parameter.
write in class Transportmessage - The message (MessageService) parameter.
Exception.
java.lang.Exceptionwrite(byte[]),
write(byte[],long)
protected void write(byte[] bytes,
long responseTimeout)
throws java.lang.Exception
byte[]
The response timeout (long) parameter.
bytes - The bytes (byte[]) parameter.responseTimeout - The response timeout (long) parameter.
java.lang.Exceptionwrite(byte[]),
write(MessageService)
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||