|
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
public class ThreadTransport
The ThreadTransport class is an implementation of the TransportService interface. that handles process input on another thread.
Message,
EscObject,
Transport,
MessageService,
Runnable,
Thread,
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 | |
|---|---|
ThreadTransport()
Constructs a standard ThreadTransport object. |
|
| Method Summary | |
|---|---|
int |
getBufferSize()
Gets the int bufferSize property value. |
long |
getShutdownTimeout()
Gets the shutdown timeout (long) value. |
java.lang.Thread |
getThread()
Gets the Thread thread property value. |
void |
handleNoData()
Perform the handleNoData action method. |
void |
handleNoInput()
Perform the handleNoInput action method. |
boolean |
isRunning()
Gets the boolean running property value. |
protected void |
processInput()
Perform the processInput action method. |
protected int |
processInput(byte[] bytes,
int length)
Process input bytes looking for input message(s). |
protected void |
processInput(int value)
Perform the processInput action method. |
void |
run()
Perform the run action method. |
void |
setRunning(boolean running)
Sets the running property. |
void |
setThread(java.lang.Thread thread)
Sets the thread property. |
void |
shutdown(boolean output)
Perform the shutdown action method. |
void |
start()
Perform the startup action method. |
void |
stop()
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.core.service.ConfigurationService |
|---|
getBoolean, getFloat, getInt, getLong, getObject |
| Constructor Detail |
|---|
public ThreadTransport()
ThreadTransport object.
| Method Detail |
|---|
public int getBufferSize()
int bufferSize property value. The buffer size is
used as the buffer size in the processing input. The buffer size should
be larger than the biggest message that can be received.
int) value.public long getShutdownTimeout()
long) value.public java.lang.Thread getThread()
Thread thread property value.
Thread) value.setThread(Thread)public void handleNoData()
public void handleNoInput()
public boolean isRunning()
boolean running property value.
boolean) value.setRunning(boolean)
protected void processInput()
throws java.lang.Exception
java.lang.ExceptionhandleNoInput(),
processInput(byte[],int),
processInput(int)
protected int processInput(byte[] bytes,
int length)
throws java.lang.Exception
byte[]
int
bytes - The bytes (byte[]) parameter.length - The length (int) parameter.
java.lang.ExceptionhandleNoInput(),
processInput(),
processInput(int)
protected void processInput(int value)
throws java.lang.Exception
int
value - The value (int) parameter.
java.lang.ExceptionhandleNoInput(),
processInput(),
processInput(byte[],int)public void run()
run in interface java.lang.RunnableRunnable.run()public void setRunning(boolean running)
boolean).
running - The running (boolean) parameter.isRunning()public void setThread(java.lang.Thread thread)
java.lang.Thread).
thread - The thread (Thread) parameter.getThread()public void shutdown(boolean output)
boolean) parameter.
shutdown in class Transportoutput - The output (boolean) parameter.public void start()
start in interface TransportServicestart in class TransportTransportService.start(),
Transport.start(boolean)public void stop()
stop in interface TransportServicestop in class TransportTransportService.stop()
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||