|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkaos.core.service.transport.cougaar.CougaarTransportSystem
public class CougaarTransportSystem
| Constructor Summary | |
|---|---|
CougaarTransportSystem(CougaarServiceRoot sr)
|
|
| Method Summary | |
|---|---|
MessageTransportService |
getMessageTransportService(Locator l)
Returns a message transport service capable of supporting the locators underlying message transport type. |
MessageTransportService[] |
getMessageTransportServices()
Returns an myEnumeration of the available underlying message transport services. |
ServiceProperties |
getServiceProperties()
Allows getter access to the services properties. |
MessageReceiver |
newMessageReceiver(JasBean env)
A convenience method directed to a transport service specified by the provided environment returning a new message receiving endpoint. |
MessageSender |
newMessageSender(JasBean env)
A convenience method directed to a transport service specified by the provided environment returning a new message sending endpoint. |
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 loc)
A convenience method directed to a message sending endpoint specified by the provided locator. |
void |
setServiceProperties(ServiceProperties props)
Allows setter access to the services properties. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CougaarTransportSystem(CougaarServiceRoot sr)
| Method Detail |
|---|
public ServiceProperties getServiceProperties()
throws ServiceException,
ServiceFailure
ServiceException
ServiceFailure
public void setServiceProperties(ServiceProperties props)
throws ServiceException,
ServiceFailure
props - setting a set of properties for the service.
ServiceException
ServiceFailure
public MessageTransportService[] getMessageTransportServices()
throws TransportFailure
TransportFailure - if any transport related failure occurs.
public MessageTransportService getMessageTransportService(Locator l)
throws NotLocatableException,
TransportFailure
l - specifies the transport service required.
NotLocatableException - if a message transport service
is not available supporting the specified locator.
TransportFailure - if any transport related failure occurs.
public MessageSender newMessageSender(JasBean env)
throws NotLocatableException,
TransportFailure
env - the environment specifing a particular transport service.
NotLocatableException - if a message transport service
is not available supporting the specified environment.
TransportFailure - if any transport related failure occurs.
public MessageReceiver newMessageReceiver(JasBean env)
throws NotLocatableException,
TransportFailure
env - the environment specifing a particular transport service.
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)
throws NotLocatableException,
NoSuchTransportException,
TransportFailure
msg - the message to send to the receiving agent.
NotLocatableException - if the receiver's implicit
Locator does not correspond to a remote endpoint.
NoSuchTransportException - if a message transport service
is not available to support the specified environment
TransportFailure - if any transport related failure occurs.
public void sendMessage(TransportMessage msg,
Locator loc)
throws NotLocatableException,
NoSuchTransportException,
TransportFailure
msg - the message to send to the receiving agent.loc - the Locator of the receiving agent.
NotLocatableException - if loc does
not correspond to a remote endpoint.
NoSuchTransportException - if a message transport service
is not available to support the specified environment
TransportFailure - if any transport related failure occurs.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||