|
2009-01-09 1.2.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.
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 |
CHANNEL_EXTERNAL_ID_DATA_KEY
Define the channel external id data key (String) constant. |
static java.lang.String |
CHANNEL_ID_DATA_KEY
Define the channel id data key (String) constant. |
static java.lang.String |
CONFIGURATION_DATA_KEY
Define the configuration data key (String) constant. |
static int |
CONNECTED
The CONNECTED state is when the transport is connected to the hardware device. |
static java.lang.String |
CONNECTION_DEFAULT
Define the connection default (String) constant. |
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 java.lang.String |
METRICS_EXTERNAL_KEY
Define the metrics external 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 |
closeChannel(ChannelService channel)
Close channel with the specified channel parameter. |
void |
exit()
Request the transport to exit. |
java.util.Map |
getChannels()
Gets the channels (Map) value. |
java.util.Dictionary |
getConfigurationInformation()
Gets the configuration information (Dictionary) value. |
org.eclipse.soda.dk.notification.service.NotificationService |
getNotificationService()
Gets the notification service value. |
int |
getState()
Gets the int state property value. |
boolean |
isMultiplexing()
Gets the multiplexing (boolean) value. |
ChannelService |
openChannel(java.util.Map parameters)
Open channel with the specified parameters parameter and return the ChannelService result. |
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(ChannelService channel,
MessageService message)
Send with the specified channel and message parameters. |
void |
send(ChannelService channel,
MessageService message,
ResponseListener responseListener)
Send with the specified channel and message parameters. |
void |
send(MessageService message)
Send the specified message. |
void |
send(MessageService message,
ResponseListener responseListener)
Send the specified message. |
void |
setConfigurationInformation(java.util.Dictionary configurationInformation)
Set the configuration information. |
void |
setNotificationService(org.eclipse.soda.dk.notification.service.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. |
void |
write(ChannelService channel,
byte[] messageBytes)
Write with the specified channel and message bytes parameters. |
| Field Detail |
|---|
static final java.lang.String SERVICE_NAME
static final java.lang.String CONNECTION_DEFAULT
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 CHANNEL_ID_DATA_KEY
static final java.lang.String CHANNEL_EXTERNAL_ID_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
static final java.lang.String METRICS_EXTERNAL_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 closeChannel(ChannelService channel)
channel - The channel (ChannelService) parameter.openChannel(Map)void exit()
java.util.Map getChannels()
Map) value.java.util.Dictionary getConfigurationInformation()
setConfigurationInformation(Dictionary)org.eclipse.soda.dk.notification.service.NotificationService getNotificationService()
NotificationService) value.setNotificationService(NotificationService)int getState()
int state property value. A TransportService may be queried for its current running status.
int) value.boolean isMultiplexing()
boolean) value.
ChannelService openChannel(java.util.Map parameters)
throws java.io.IOException
parameters - The parameters (Map) parameter.
ChannelService) value.
java.io.IOException - IOException.closeChannel(ChannelService)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(ChannelService channel,
MessageService message)
channel - The channel (ChannelService) parameter.message - The message (MessageService) parameter.send(MessageService),
send(ChannelService,MessageService,ResponseListener),
send(MessageService,ResponseListener)void send(MessageService message)
org.eclipse.soda.dk.message.service.MessageService
message - The message (MessageService) parameter.send(ChannelService,MessageService),
send(ChannelService,MessageService,ResponseListener),
send(MessageService,ResponseListener)
void send(ChannelService channel,
MessageService message,
ResponseListener responseListener)
channel - The channel (ChannelService) parameter.message - The message (MessageService) parameter.responseListener - The response listener (ResponseListener) parameter.send(ChannelService,MessageService),
send(MessageService),
send(MessageService,ResponseListener)
void send(MessageService message,
ResponseListener responseListener)
org.eclipse.soda.dk.message.service.MessageService
message - The message (MessageService) parameter.responseListener - The response listener (ResponseListener) parameter.send(ChannelService,MessageService),
send(MessageService),
send(ChannelService,MessageService,ResponseListener)void setConfigurationInformation(java.util.Dictionary configurationInformation)
configurationInformation - The configuration information (Dictionary) parameter.getConfigurationInformation()void setNotificationService(org.eclipse.soda.dk.notification.service.NotificationService 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 - Exception.write(ChannelService,byte[])
void write(ChannelService channel,
byte[] messageBytes)
throws java.lang.Exception
channel - The channel (ChannelService) parameter.messageBytes - The message bytes (byte[]) parameter.
java.lang.Exception - Exception.write(byte[])
|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||