|
xmlBlaster 1.6.2 client API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This is the client callback interface to xmlBlaster.
All callback protocol drivers are accessed through these methods. We need it to decouple the protocol specific stuff (like RemoteException from RMI or CORBA exceptions) from our java client code. Note that you don't need this code, you can access xmlBlaster with your own lowlevel RMI or CORBA coding as well.
I_XmlBlasterConnection| Method Summary | |
java.lang.String |
getCbAddress()
Returns the current callback address. |
java.lang.String |
getCbProtocol()
Returns the 'well known' protocol type. |
void |
initialize(Global glob,
java.lang.String name,
CallbackAddress callbackAddress,
I_CallbackExtended client)
Initialize and start the callback server. |
void |
shutdown()
Stop the server |
| Methods inherited from interface org.xmlBlaster.util.plugin.I_Plugin |
getType, getVersion, init |
| Method Detail |
public void initialize(Global glob,
java.lang.String name,
CallbackAddress callbackAddress,
I_CallbackExtended client)
throws XmlBlasterException
NOTE: The plugin needs to set callbackAddress.setRawAddress(addr) on success which is for example "et@mars.universe" or "http://myserver:8080/xmlrpc"
glob - The global handle with your environment settingsname - The login name of the client, for logging onlycallbackAddress - The address configuration of this callback serverclient - Your implementation to receive the callback messages from xmlBlaster
XmlBlasterExceptionpublic java.lang.String getCbProtocol()
public java.lang.String getCbAddress()
throws XmlBlasterException
XmlBlasterException
public void shutdown()
throws XmlBlasterException
shutdown in interface I_PluginXmlBlasterException - if an exception occurs. The exception is
handled by the RunLevelManager depending on how the plugin has been
configured with the action:
<action do='STOP' onShutdownRunlevel='2' sequence='5'
onFail='resource.configuration.pluginFailed'>
If onFail is defined to something, the RunLevelManager will stop.
|
xmlBlaster 1.6.2 client API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||