|
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.corba.CorbaDriver
public class CorbaDriver
CorbaDriver class to invoke the xmlBlaster server using CORBA. Note the IANA assigned official CORBA ports:
corba-iiop 683/tcp CORBA IIOP corba-iiop 683/udp CORBA IIOP corba-iiop-ssl 684/tcp CORBA IIOP SSL corba-iiop-ssl 684/udp CORBA IIOP SSL corbaloc 2809/tcp CORBA LOC corbaloc 2809/udp CORBA LOCWe use the following CORBA specific ports:
7608 as the default port to look for a naming service 3412 is the xmlBlaster assigned port, used for bootstrapping (optional)JacORB CORBA socket:
Field Summary | |
---|---|
private AddressServer |
addressServer
|
private I_Authenticate |
authenticate
The singleton handle for this xmlBlaster server |
private org.omg.CORBA.Object |
authRef
|
private AuthServerImpl |
authServer
The singleton handle for this xmlBlaster server |
protected ContextNode |
contextNode
|
private Global |
glob
|
private java.lang.String |
iorFile
|
protected boolean |
isActive
|
private static java.util.logging.Logger |
log
|
protected java.lang.Object |
mbeanHandle
My JMX registration, can be done optionally by implementing classes |
private java.lang.String |
ME
|
private org.omg.CosNaming.NameComponent[] |
nameNode
|
private org.omg.CosNaming.NameComponent[] |
nameXmlBlaster
|
private org.omg.CosNaming.NamingContextExt |
namingContextExt
|
private org.omg.CORBA.ORB |
orb
|
private org.omg.PortableServer.POA |
rootPOA
|
private java.lang.String |
urlPath
The URL path over which the IOR can be accessed (via our http bootstrap server) |
private I_XmlBlaster |
xmlBlasterImpl
The singleton handle for this xmlBlaster server |
Constructor Summary | |
---|---|
CorbaDriver()
|
Method Summary | |
---|---|
void |
activate()
Activate xmlBlaster access through this protocol. |
void |
deActivate()
JMX Deactivate xmlBlaster access (standby), no clients can connect. |
java.lang.String |
getName()
Get a human readable name of this driver |
private org.omg.CosNaming.NamingContextExt |
getNamingService()
Locate the CORBA Naming Service. |
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 |
getUsageUrl()
|
java.lang.String |
getVersion()
Enforced by I_Plugin |
private void |
init(Global glob,
AddressServer addressServer,
I_Authenticate authenticate,
I_XmlBlaster xmlBlasterImpl)
Start xmlBlaster CORBA access. |
void |
init(Global glob,
PluginInfo pluginInfo)
This method is called by the PluginManager (enforced by I_Plugin). |
boolean |
isActive()
JMX |
boolean |
isShutdown()
Check status |
void |
setUsageUrl(java.lang.String url)
|
void |
shutdown()
Instructs the ORB to shut down, which causes all object adapters 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 org.omg.CORBA.ORB orb
private Global glob
private static java.util.logging.Logger log
private org.omg.CosNaming.NamingContextExt namingContextExt
private org.omg.CosNaming.NameComponent[] nameXmlBlaster
private org.omg.CosNaming.NameComponent[] nameNode
private java.lang.String iorFile
private AuthServerImpl authServer
private I_Authenticate authenticate
private I_XmlBlaster xmlBlasterImpl
private org.omg.PortableServer.POA rootPOA
private org.omg.CORBA.Object authRef
private final java.lang.String urlPath
private AddressServer addressServer
protected java.lang.Object mbeanHandle
protected ContextNode contextNode
protected boolean isActive
Constructor Detail |
---|
public CorbaDriver()
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_AdminPlugin
getType
in interface I_Plugin
public java.lang.String getVersion()
getVersion
in interface I_AdminPlugin
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 CorbaDriverMBean
getRawAddress
in interface I_Driver
private void init(Global glob, AddressServer addressServer, I_Authenticate authenticate, I_XmlBlaster xmlBlasterImpl) throws XmlBlasterException
args
- The command line parameters
XmlBlasterException
public void activate() throws XmlBlasterException
activate
in interface I_Driver
activate
in interface I_AdminService
XmlBlasterException
public void deActivate()
deActivate
in interface I_Driver
deActivate
in interface I_AdminService
public void shutdown() throws XmlBlasterException
shutdown
in interface I_AdminPlugin
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.public boolean isShutdown()
I_AdminPlugin
isShutdown
in interface I_AdminPlugin
private org.omg.CosNaming.NamingContextExt getNamingService() throws XmlBlasterException
XmlBlasterException
- CORBA error handling if no naming service is foundpublic java.lang.String usage()
usage
in interface I_Driver
usage
in interface I_AdminUsage
public java.lang.String getUsageUrl()
getUsageUrl
in interface I_AdminUsage
public void setUsageUrl(java.lang.String url)
setUsageUrl
in interface I_AdminUsage
public boolean isActive()
isActive
in interface I_AdminService
I_AdminService.isActive()
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |