|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TransportService
The TransportService interface defines the TransportService concept. A TransportService is the mechanism for sending and receiving messages. A TransportService may be started and stopped, as well as Listened to using the TransportListener Interface.
Transport,
ErrorListener,
MessageService,
ParameterService,
TransportListener| Field Summary | |
|---|---|
static int |
ACTIVE
The ACTIVE state is when the transport is attempting to start but is not yet started. |
static int |
ALIVE
The ALIVE state is when the transport has been told to start. |
static java.lang.String |
CONFIGURATION_DATA_KEY
Define the configuration data key (String) constant. |
static int |
CONNECTED
The CONNECTED state is when the tranport is connected to the hardware device. |
static java.lang.String |
CONNECTION_KEY
Define the connection key (String) constant. |
static int |
CREATED
The CREATED state is when the transport has been created or stopped. |
static int |
DEAD
The DEAD state is when the transport has exited and can not be restarted. |
static java.lang.String |
DEFAULT_CONNECTION
Define the default connection (String) constant. |
static java.lang.String |
ERROR_COUNT_DATA_KEY
Define the error count data key (String) constant. |
static java.lang.String |
ID_KEY
Define the id key (String) constant. |
static java.lang.String |
INPUT_MESSAGE_COUNT_DATA_KEY
Define the input message count data key (String) constant. |
static short |
NULL
Define the NULL transport style. |
static java.lang.String |
SERVICE_NAME
Define the OSGi service name. |
static java.lang.String |
SOURCE_DATA_KEY
Define the source data key (String) constant. |
static int |
STARTED
The STARTED state is when the transport has started and should be processing messages. |
static java.lang.String |
STATE_DATA_KEY
Define the state data key (String) constant. |
static java.lang.String |
STATE_OLD_DATA_KEY
Define the state old data key (String) constant. |
static java.lang.String |
STATUS_EXTERNAL_KEY
Define the status external key (String) constant. |
static java.lang.String |
TIMESTAMP_DATA_KEY
Define the timestamp data key (String) constant. |
static java.lang.String |
VALUE_DATA_KEY
Define the value data key (String) constant. |
static java.lang.String |
VALUE_OLD_DATA_KEY
Define the value old data key (String) constant. |
| Method Summary | |
|---|---|
void |
addInterest(InterestService interest)
Add an interest object to the transport. |
void |
addTransportListener(TransportListener transportListener)
Adds the specified transport listener to receive listener notification. |
void |
exit()
Request the transport to exit. |
java.util.Dictionary |
getConfigurationInformation()
Gets the configuration information. |
NotificationService |
getNotificationService()
Gets the notification service value. |
int |
getState()
Gets the int state property value. |
void |
removeInterest(InterestService interest)
Remove an interest object from the transport. |
void |
removeTransportListener(TransportListener transportListener)
Removes the specified transport listener from receiving listener notification. |
void |
send(MessageService message)
Send the specified message. |
void |
setConfigurationInformation(java.util.Dictionary configurationInformation)
Set the configuration information. |
void |
setNotificationService(NotificationService notificationService)
Sets the notification service value. |
void |
start()
Request the transport to start. |
void |
stop()
Request the transport to stop. |
void |
write(byte[] messageBytes)
Write the message bytes. |
| Field Detail |
|---|
static final java.lang.String SERVICE_NAME
static final java.lang.String ID_KEY
static final java.lang.String CONNECTION_KEY
static final java.lang.String DEFAULT_CONNECTION
static final short NULL
static final int DEAD
static final int CREATED
static final int ALIVE
static final int CONNECTED
static final int ACTIVE
static final int STARTED
static final java.lang.String STATUS_EXTERNAL_KEY
static final java.lang.String VALUE_DATA_KEY
static final java.lang.String VALUE_OLD_DATA_KEY
static final java.lang.String STATE_DATA_KEY
static final java.lang.String STATE_OLD_DATA_KEY
static final java.lang.String TIMESTAMP_DATA_KEY
static final java.lang.String SOURCE_DATA_KEY
static final java.lang.String CONFIGURATION_DATA_KEY
static final java.lang.String ERROR_COUNT_DATA_KEY
static final java.lang.String INPUT_MESSAGE_COUNT_DATA_KEY
| Method Detail |
|---|
void addInterest(InterestService interest)
interest - The interest (InterestService) parameter.removeInterest(InterestService)void addTransportListener(TransportListener transportListener)
org.eclipse.soda.dk.transport.service.TransportServiceListener
listener to be added.
transportListener - The transport listener (TransportListener) parameter.removeTransportListener(TransportListener)void exit()
java.util.Dictionary getConfigurationInformation()
setConfigurationInformation(Dictionary)NotificationService getNotificationService()
NotificationService)
value.setNotificationService(NotificationService)int getState()
int state property value. A TransportService may
be queried for its current running status.
int) value.void removeInterest(InterestService interest)
interest - The interest (InterestService) parameter.addInterest(InterestService)void removeTransportListener(TransportListener transportListener)
org.eclipse.soda.dk.transport.service.TransportServiceListener
listener to be removed.
transportListener - The transport listener (TransportListener) parameter.addTransportListener(TransportListener)void send(MessageService message)
org.eclipse.soda.dk.message.service.MessageService
message - The message (MessageService) parameter.void setConfigurationInformation(java.util.Dictionary configurationInformation)
configurationInformation - The configuration information (Dictionary) parameter.getConfigurationInformation()void setNotificationService(NotificationService notificationService)
NotificationService)
parameter.
The notification service (NotificationService).
notificationService - The notification service (NotificationService) parameter.getNotificationService()void start()
void stop()
void write(byte[] messageBytes)
throws java.lang.Exception
byte[]
messageBytes - The message bytes (byte[]) parameter.
java.lang.Exception
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||