|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xmlBlaster.protocol.rmi.RmiDriver
public class 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 2078Another 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_Driver
public java.lang.String getProtocolId()
getProtocolId
in interface I_Driver
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) throws XmlBlasterException
init
in interface I_Plugin
XmlBlasterException
I_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_Driver
XmlBlasterException
public void deActivate() throws XmlBlasterException
deActivate
in interface I_Driver
XmlBlasterException
public void shutdown() throws XmlBlasterException
shutdown
in interface I_Plugin
XmlBlasterException
- 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 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |