|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ie.nuigalway.ecrg.jade.jmsmtp.common.MessageTransportProtocol
Field Summary | |
private static org.apache.log4j.Category |
log
|
private static java.util.HashMap |
providerManagers
|
Constructor Summary | |
MessageTransportProtocol()
|
Method Summary | |
jade.mtp.TransportAddress |
activate(jade.mtp.InChannel.Dispatcher disp)
Activate a default Address |
jade.mtp.TransportAddress |
activate(jade.mtp.InChannel.Dispatcher disp,
jade.core.Profile p)
Activate a default Address |
void |
activate(jade.mtp.InChannel.Dispatcher disp,
jade.mtp.TransportAddress ta)
Activate a specific TransportAddress |
void |
activate(jade.mtp.InChannel.Dispatcher disp,
jade.mtp.TransportAddress ta,
jade.core.Profile p)
Activate a specific TransportAddress |
java.lang.String |
addrToStr(jade.mtp.TransportAddress ta)
Given a TransportAddress convert it to a string |
private void |
closeProviderManagers()
Close all connections in the hashmap |
void |
deactivate()
Deactivate the MTP |
void |
deactivate(jade.mtp.TransportAddress ta)
Deactivate a specific address |
void |
deliver(java.lang.String addr,
jade.domain.FIPAAgentManagement.Envelope env,
byte[] payload)
Deliver a message to a jmsTA |
java.lang.String |
getName()
Return the name of this MTP |
JmsProviderManager |
getProviderManager(JMSAddress jmsTA)
Used to create a new broker connection or to retrive one from the hashmap |
java.lang.String[] |
getSupportedProtocols()
Get prtocols supported by this MTP |
private void |
setupProviderManager(JMSAddress jmsTA)
Create a QueueConnection to a specified broker and place it in the hashmap |
jade.mtp.TransportAddress |
strToAddr(java.lang.String rep)
Converts a string to a JMS Transport address |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static org.apache.log4j.Category log
private static java.util.HashMap providerManagers
Constructor Detail |
public MessageTransportProtocol()
Method Detail |
public jade.mtp.TransportAddress activate(jade.mtp.InChannel.Dispatcher disp, jade.core.Profile p) throws jade.mtp.MTPException
activate
in interface JMSMTP
disp
- Passed messages to the platformp
- Description of the Parameter
jade.mtp.MTPException
- Error during address activationpublic jade.mtp.TransportAddress activate(jade.mtp.InChannel.Dispatcher disp) throws jade.mtp.MTPException
activate
in interface JMSMTP
disp
- Passed messages to the platform
jade.mtp.MTPException
- Error during address activationpublic void activate(jade.mtp.InChannel.Dispatcher disp, jade.mtp.TransportAddress ta, jade.core.Profile p) throws jade.mtp.MTPException
activate
in interface JMSMTP
disp
- Used to pass messages to the platformta
- Address to activatep
- is the Profile from which the configuration
parameters for this instance of JADE container can be retrieved
jade.mtp.MTPException
- Error during address activationpublic void activate(jade.mtp.InChannel.Dispatcher disp, jade.mtp.TransportAddress ta) throws jade.mtp.MTPException
activate
in interface JMSMTP
disp
- Used to pass messages to the platformta
- Address to activate
jade.mtp.MTPException
- Error during address activationpublic void deactivate(jade.mtp.TransportAddress ta) throws jade.mtp.MTPException
deactivate
in interface JMSMTP
ta
- Address to deactivate
jade.mtp.MTPException
- Error during address deactivationpublic void deactivate() throws jade.mtp.MTPException
deactivate
in interface JMSMTP
jade.mtp.MTPException
- Error with MTP deactivationpublic void deliver(java.lang.String addr, jade.domain.FIPAAgentManagement.Envelope env, byte[] payload) throws jade.mtp.MTPException
deliver
in interface JMSMTP
addr
- Address to deliver tooenv
- Envelope of messagepayload
- Message payload
jade.mtp.MTPException
- Error during message sendpublic JmsProviderManager getProviderManager(JMSAddress jmsTA) throws java.lang.Exception
jmsTA
- Address of the Broker
java.lang.Exception
- Error during manager creationprivate void setupProviderManager(JMSAddress jmsTA) throws jade.mtp.MTPException
jmsTA
- Contains details of the broker
jade.mtp.MTPException
- Description of the Exception
java.lang.Exception
- Error during provider setupprivate void closeProviderManagers()
public jade.mtp.TransportAddress strToAddr(java.lang.String rep) throws jade.mtp.MTPException
strToAddr
in interface JMSMTP
rep
- Contains the address as a string
jade.mtp.MTPException
- Error in Address conversionpublic java.lang.String addrToStr(jade.mtp.TransportAddress ta) throws jade.mtp.MTPException
addrToStr
in interface JMSMTP
ta
- The Address as a TransportAddress object
jade.mtp.MTPException
- Error in Address conversionpublic java.lang.String getName()
getName
in interface JMSMTP
public java.lang.String[] getSupportedProtocols()
getSupportedProtocols
in interface JMSMTP
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |