|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ie.nuigalway.ecrg.jade.jmsmtp.MtpBoot
Nested Class Summary |
Nested classes inherited from class jade.mtp.InChannel |
jade.mtp.InChannel.Dispatcher |
Field Summary | |
private static JMSMTP |
mtp
|
Constructor Summary | |
MtpBoot()
|
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 |
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 |
private static java.net.URL[] |
getLibJars(java.lang.String lib)
Reads a given directory and returns the contents as a URL [] |
java.lang.String |
getName()
Return the name of this MTP |
java.lang.String[] |
getSupportedProtocols()
Get prtocols supported by this MTP |
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 JMSMTP mtp
Constructor Detail |
public MtpBoot()
Method Detail |
public jade.mtp.TransportAddress activate(jade.mtp.InChannel.Dispatcher disp) throws jade.mtp.MTPException
disp
- Passed messages to the platform
jade.mtp.MTPException
- Error during address activationpublic void activate(jade.mtp.InChannel.Dispatcher disp, jade.mtp.TransportAddress ta) throws jade.mtp.MTPException
disp
- Used to pass messages to the platformta
- Address to activate
jade.mtp.MTPException
- Error during address activationpublic jade.mtp.TransportAddress activate(jade.mtp.InChannel.Dispatcher disp, jade.core.Profile p) throws jade.mtp.MTPException
activate
in interface jade.mtp.InChannel
disp
- Passed messages to the platformp
- 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, jade.core.Profile p) throws jade.mtp.MTPException
activate
in interface jade.mtp.InChannel
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 deactivate(jade.mtp.TransportAddress ta) throws jade.mtp.MTPException
deactivate
in interface jade.mtp.InChannel
ta
- Address to deactivate
jade.mtp.MTPException
- Error during address deactivationpublic void deactivate() throws jade.mtp.MTPException
deactivate
in interface jade.mtp.InChannel
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 jade.mtp.OutChannel
addr
- Address to deliver tooenv
- Envelope of messagepayload
- Message payload
jade.mtp.MTPException
- Error during message sendpublic jade.mtp.TransportAddress strToAddr(java.lang.String rep) throws jade.mtp.MTPException
strToAddr
in interface jade.mtp.MTP
rep
- Contains the address as a string
jade.mtp.MTPException
- Error During Address conversionpublic java.lang.String addrToStr(jade.mtp.TransportAddress ta) throws jade.mtp.MTPException
addrToStr
in interface jade.mtp.MTP
ta
- The Address as a TransportAddress object
jade.mtp.MTPException
- Error during Address conversionpublic java.lang.String getName()
getName
in interface jade.mtp.MTP
public java.lang.String[] getSupportedProtocols()
getSupportedProtocols
in interface jade.mtp.MTP
private static java.net.URL[] getLibJars(java.lang.String lib) throws java.lang.Exception
lib
- JMS Provider Type to learn
java.lang.Exception
- Error reading in Librarys
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |