|
xmlBlaster 2.2.0 client API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xmlBlaster.client.protocol.local.LocalCallbackImpl
public class LocalCallbackImpl
A client callback driver for in jvm calls. the start/invocation sequence for the local protocol is now decoupled. This means that the client can come before the server and the server can come before the client (as would normally be the case when recovering from persistence). This means that even when choosing the local protocol there could be the situation where the client is not (yet/anymore) available, particularly on run level changes.
Constructor Summary | |
---|---|
LocalCallbackImpl()
Called by plugin loader which calls init(Global, PluginInfo) thereafter. |
Method Summary | |
---|---|
java.lang.String |
getCbAddress()
Returns the callback address. |
java.lang.String |
getCbProtocol()
Returns the protocol type. |
java.lang.String |
getType()
Enforced by I_Plugin |
java.lang.String |
getVersion()
Enforced by I_Plugin |
void |
init(Global glob,
PluginInfo pluginInfo)
This method is not used, since callbacks plugins are actually factories. |
void |
initialize(Global glob,
java.lang.String loginName,
CallbackAddress callbackAddress,
I_CallbackExtended cbClient)
Initialize the callback server. |
void |
shutdown()
Shutdown callback, called by LocalConnection on problems |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalCallbackImpl()
Method Detail |
---|
public java.lang.String getType()
getType
in interface I_Plugin
public java.lang.String getVersion()
getVersion
in interface I_Plugin
public void init(Global glob, PluginInfo pluginInfo)
init
in interface I_Plugin
I_Plugin.init(org.xmlBlaster.util.Global,org.xmlBlaster.util.plugin.PluginInfo)
public final void initialize(Global glob, java.lang.String loginName, CallbackAddress callbackAddress, I_CallbackExtended cbClient) throws XmlBlasterException
The server will register itself in the serverside engine global as its raw Address. Any serverside callback driver must use the address to look the object up and invoke it directly.
The given global must contain the serverside org.xmlBlaster.engine.Global in its ObjectEntry "ServerNodeScope"
initialize
in interface I_CallbackServer
glob
- The global handle with your environment settingsloginName
- The login name of the client, for logging onlycallbackAddress
- The address configuration of this callback servercbClient
- Your implementation to receive the callback messages from xmlBlaster
XmlBlasterException
public final java.lang.String getCbProtocol()
getCbProtocol
in interface I_CallbackServer
public java.lang.String getCbAddress() throws XmlBlasterException
getCbAddress
in interface I_CallbackServer
XmlBlasterException
public void shutdown()
shutdown
in interface I_CallbackServer
shutdown
in interface I_Plugin
|
xmlBlaster 2.2.0 client API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |