|
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.TunnelTransport
public class TunnelTransport
The TunnelTransport class implements the TransportService interface.
Message,
EscObject,
Transport,
ErrorListener,
TransportService,
TransportListener| 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 | |
|---|---|
TunnelTransport(TransportService transport,
short style)
Constructs an TunnelTransport object using the input
parameter(s). |
|
| Method Summary | |
|---|---|
void |
errorOccurred(java.lang.Object source,
java.lang.Object timestamp,
java.lang.Object data)
The errorOccurred method is called when an error has occurred. |
void |
fireTransportChanged(TransportService source,
java.lang.Object timestamp,
int newState,
int oldState)
This method will be called when the state of the TransportService changes to notify listeners of the changes. |
int |
getCombinedState()
Gets the combined state (int) value. |
TransportService |
getTransport()
Returns the target transport. |
void |
getTransport(TransportService transport)
Get transport with the specified transport parameter. |
boolean |
isActive()
Return true if the transport is active. |
void |
messageReceived(TransportService transportService,
java.lang.Object timestamp,
MessageService message)
This API will be called each time the TransportService receives a valid message. |
void |
register(TransportService transport)
Register the target transport. |
void |
setTransport(TransportService transport)
Sets the transport property. |
void |
start()
Start the transport. |
void |
stop()
Stop the transport. |
void |
transportChanged(TransportService transportService,
java.lang.Object timestamp,
int newState,
int oldState)
This method will be called when the state of the TransportService changes. |
void |
unregister(TransportService transport)
Unregister the target transport. |
void |
write(byte[] bytes)
Write bytes to the target transport. |
protected void |
write(MessageService message)
Write method will send the message to the target transport. |
| 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, exit, getConfigurationInformation, getNotificationService, getState, removeInterest, removeTransportListener, send, setConfigurationInformation, setNotificationService |
| Methods inherited from interface org.eclipse.soda.dk.core.service.ConfigurationService |
|---|
getBoolean, getFloat, getInt, getLong, getObject |
| Constructor Detail |
|---|
public TunnelTransport(TransportService transport,
short style)
TunnelTransport object using the input
parameter(s).
org.eclipse.soda.dk.transport.service.TransportService
The style (short) parameter.
transport - The transport (TransportService) parameter.style - The style (short) parameter.| Method Detail |
|---|
public void errorOccurred(java.lang.Object source,
java.lang.Object timestamp,
java.lang.Object data)
errorOccurred in interface ErrorListenersource - The source (Object) parameter.timestamp - The timestamp (Object) parameter.data - The data (Object) parameter.
public void fireTransportChanged(TransportService source,
java.lang.Object timestamp,
int newState,
int oldState)
Transportorg.eclipse.soda.dk.transport.service.TransportService
java.lang.Object
The new state of the TransportService. The old state of the
TransportService.
fireTransportChanged in class Transportsource - The source (TransportService) parameter.timestamp - The timestamp (Object) parameter.newState - The new state (int) parameter.oldState - The old state (int) parameter.The source (TransportService) parameter.
The timestamp (Object) parameter.
The new state (int) parameter.
The old state (int) parameter.public int getCombinedState()
int) value.public TransportService getTransport()
getTransport in interface TunnelTransportServiceTransportService)
value.TunnelTransport(TransportService,short),
getTransport(TransportService),
setTransport(TransportService)public void getTransport(TransportService transport)
TransportService) parameter.
transport - The transport (TransportService) parameter.TunnelTransport(TransportService,short),
getTransport(),
setTransport(TransportService)public boolean isActive()
isActive in class Transportboolean) value.Transport.setActive(boolean)
public void messageReceived(TransportService transportService,
java.lang.Object timestamp,
MessageService message)
messageReceived in interface MessageListenertransportService - The transport service (TransportService) parameter.timestamp - The timestamp (Object) parameter.message - The message (MessageService) parameter.public void register(TransportService transport)
TransportService) parameter.
transport - The transport (TransportService) parameter.public void setTransport(TransportService transport)
org.eclipse.soda.dk.transport.service.TransportService).
setTransport in interface TunnelTransportServicetransport - The transport (TransportService) parameter.TunnelTransport(TransportService,short),
getTransport(),
getTransport(TransportService)public void start()
start in interface TransportServicestart in class TransportTransportService.start()public void stop()
stop in interface TransportServicestop in class TransportTransportService.stop()
public void transportChanged(TransportService transportService,
java.lang.Object timestamp,
int newState,
int oldState)
org.eclipse.soda.dk.transport.service.TransportService
java.lang.Object
The new state of the TransportService when the notification
process started.
The old state of the TransportService.
transportChanged in interface TransportListenertransportService - The transport service (TransportService) parameter.timestamp - The timestamp (Object) parameter.newState - The new state (int) parameter.oldState - The old state (int) parameter.fireTransportChanged(TransportService,Object,int,int)public void unregister(TransportService transport)
TransportService) parameter.
transport - The transport (TransportService) parameter.
public void write(byte[] bytes)
throws java.lang.Exception
write in interface TransportServicewrite in class Transportbytes - The bytes (byte[]) parameter.
java.lang.ExceptionThe bytes (byte[]) parameter.,
write(MessageService)
protected void write(MessageService message)
throws java.lang.Exception
write in class Transportmessage - The message (MessageService) parameter.
java.lang.ExceptionThe message (MessageService) parameter.,
write(byte[])
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||