|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xmlBlaster.protocol.rmi.RmiDriver
RmiDriver class to invoke the xmlBlaster server using RMI.
Design issues: How to identify the calling client. How does RMI handle incoming requests?
-plugin/rmi/registryPort Specify a port number where rmiregistry listens.
Default is port 1099, the port 0 switches this feature off.
-plugin/rmi/hostname Specify a hostname where rmiregistry runs.
Default is the localhost.
Invoke options:
java -Djava.rmi.server.codebase=file:///${XMLBLASTER_HOME}/classes/ \
-Djava.security.policy=${XMLBLASTER_HOME}/config/xmlBlaster.policy \
-Djava.rmi.server.hostname=hostname.domainname
MyApp -plugin/rmi/registryPort 2078
Another option is to include the directory of xmlBlaster.policy into
your CLASSPATH.
| Field Summary | |
private AddressServer |
addressServer
The protocol plugin configuration |
private java.lang.String |
authBindName
The name for the RMI registry |
private I_Authenticate |
authenticate
The singleton handle for this xmlBlaster server |
private AuthServerImpl |
authRmiServer
The RMI implementation, which delegates to authenticate |
static int |
DEFAULT_REGISTRY_PORT
XmlBlaster RMI registry listen port is 1099, to access for bootstrapping |
private Global |
glob
|
private boolean |
isActive
|
private static java.util.logging.Logger |
log
|
private java.lang.String |
ME
|
private java.lang.String |
xmlBlasterBindName
The name for the RMI registry |
private I_XmlBlaster |
xmlBlasterImpl
The singleton handle for this xmlBlaster server |
private XmlBlasterImpl |
xmlBlasterRmiServer
The RMI implementation, which delegates to xmlBlaster server |
| Constructor Summary | |
RmiDriver()
|
|
| Method Summary | |
void |
activate()
Activate xmlBlaster access through this protocol. |
private void |
bindToRegistry()
Publish the RMI xmlBlaster server to rmi registry. |
void |
deActivate()
Deactivate xmlBlaster access (standby), no clients can connect. |
java.lang.String |
getName()
Get a human readable name of this driver |
java.lang.String |
getProtocolId()
Access the xmlBlaster internal name of the protocol driver. |
java.lang.String |
getRawAddress()
Get the address how to access this driver. |
java.lang.String |
getType()
Enforced by I_Plugin |
java.lang.String |
getVersion()
Enforced by I_Plugin |
private void |
init(Global glob,
AddressServer addressServer,
I_Authenticate authenticate,
I_XmlBlaster xmlBlasterImpl)
Start xmlBlaster RMI access. |
void |
init(Global glob,
PluginInfo pluginInfo)
This method is called by the PluginManager (enforced by I_Plugin). |
void |
shutdown()
Instructs RMI to shut down. |
java.lang.String |
usage()
Command line usage. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.lang.String ME
private Global glob
private static java.util.logging.Logger log
public static final int DEFAULT_REGISTRY_PORT
private I_Authenticate authenticate
private I_XmlBlaster xmlBlasterImpl
private AuthServerImpl authRmiServer
private java.lang.String authBindName
private XmlBlasterImpl xmlBlasterRmiServer
private java.lang.String xmlBlasterBindName
private boolean isActive
private AddressServer addressServer
| Constructor Detail |
public RmiDriver()
| Method Detail |
public java.lang.String getName()
getName in interface I_Driverpublic java.lang.String getProtocolId()
getProtocolId in interface I_Driverpublic java.lang.String getType()
getType in interface I_Pluginpublic java.lang.String getVersion()
getVersion in interface I_Plugin
public void init(Global glob,
PluginInfo pluginInfo)
throws XmlBlasterException
init in interface I_PluginXmlBlasterExceptionI_Plugin.init(org.xmlBlaster.util.Global,org.xmlBlaster.util.plugin.PluginInfo)public java.lang.String getRawAddress()
getRawAddress in interface I_Driver
private void init(Global glob,
AddressServer addressServer,
I_Authenticate authenticate,
I_XmlBlaster xmlBlasterImpl)
throws XmlBlasterException
glob - Global handle to access logging, property and commandline args
XmlBlasterException
public void activate()
throws XmlBlasterException
activate in interface I_DriverXmlBlasterException
public void deActivate()
throws XmlBlasterException
deActivate in interface I_DriverXmlBlasterException
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.
private void bindToRegistry()
throws XmlBlasterException
XmlBlasterException - RMI registry error handlingpublic java.lang.String usage()
usage in interface I_Driver
|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||