|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.core.service.transport.tcp.TCPMessageTransportService
public class TCPMessageTransportService
Field Summary | |
---|---|
static java.lang.String |
DIRECTORY_HOST
|
static java.lang.String |
DIRECTORY_NAME
|
static java.lang.String |
DIRECTORY_PORT
|
static java.lang.String |
DIRECTORY_SERVICE_LOCATOR
|
static java.lang.String |
HOST
|
static java.lang.String |
NAME
|
static java.lang.String |
PORT
|
static java.lang.String |
TRANSPORT_SERVICE_HOST
|
static java.lang.String |
TRANSPORT_SERVICE_PORT
|
Constructor Summary | |
---|---|
TCPMessageTransportService()
|
|
TCPMessageTransportService(ServiceProperties env)
|
Method Summary | |
---|---|
TransportMessage |
createTransportMessage()
Create an empty TransportMessage suitable for attribute population and use. |
ServiceProperties |
getServiceProperties()
Returns the service properties associated with the transport service. |
boolean |
isSupported(Locator l)
Determines if the specified locator is supported by the transport service. |
static void |
main(java.lang.String[] args)
|
Locator |
newLocalLocator()
Returns a new local locator whose transport type is supported by the transport service. |
Locator |
newLocalLocator(JasBean env)
Returns a new local locator whose transport type is supported by the transport service and has the provided environment properties. |
MessageReceiver |
newMessageReceiver()
Returns a new MessageReceiver suitable for local binding. |
MessageReceiver |
newMessageReceiver(JasBean env)
Returns a new MessageReceiver suitable for local binding having the specified properties. |
MessageSender |
newMessageSender()
Returns a new MessageSender capable of binding to message receivers supported by this transport service. |
MessageSender |
newMessageSender(JasBean env)
Returns a new MessageSender capable of binding to message receivers supported by this transport service and having the specified properties. |
void |
sendMessage(TransportMessage msg)
A convenience method directed to a message sending endpoint specified by the message receiver's locator. |
void |
sendMessage(TransportMessage msg,
Locator l)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TRANSPORT_SERVICE_HOST
public static final java.lang.String TRANSPORT_SERVICE_PORT
public static final java.lang.String DIRECTORY_NAME
public static final java.lang.String DIRECTORY_HOST
public static final java.lang.String DIRECTORY_PORT
public static final java.lang.String DIRECTORY_SERVICE_LOCATOR
public static final java.lang.String HOST
public static final java.lang.String PORT
public static final java.lang.String NAME
Constructor Detail |
---|
public TCPMessageTransportService() throws TransportFailure
TransportFailure
public TCPMessageTransportService(ServiceProperties env) throws TransportFailure
TransportFailure
Method Detail |
---|
public ServiceProperties getServiceProperties() throws TransportFailure
TransportFailure
- if any transport related failure occurs.public boolean isSupported(Locator l) throws TransportFailure
l
- the locator to test for supportability.
TransportFailure
- if any transport related failure occurs.public Locator newLocalLocator() throws TransportFailure
TransportFailure
- if any transport related failure occurs.public Locator newLocalLocator(JasBean env) throws TransportFailure
env
- The jasbean object whose properties will be used to set
this locator's corresponding properties.
TransportFailure
- if any transport related failure occurs.public MessageSender newMessageSender() throws TransportFailure
TransportFailure
- if any transport related failure occurs.public MessageSender newMessageSender(JasBean env) throws TransportFailure
env
- specific attributes required of the returned message
sender.
TransportFailure
- if any transport related failure occurs.public MessageReceiver newMessageReceiver() throws TransportFailure
TransportFailure
- if any transport related failure occurs.public MessageReceiver newMessageReceiver(JasBean env) throws TransportFailure
env
- specific attributes required of the returned message
receiver.
TransportFailure
- if any transport related failure occurs.public void sendMessage(TransportMessage msg) throws NotLocatableException, TransportFailure
msg
- the message to send to the receiving agent.
NotLocatableException
- if a message transport service
is not available supporting the specified environment.
TransportFailure
- if any transport related failure occurs.public void sendMessage(TransportMessage msg, Locator l) throws NotLocatableException, TransportFailure
NotLocatableException
TransportFailure
public TransportMessage createTransportMessage()
null
.
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |