|
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.jdbc.JdbcDriver
public class JdbcDriver
JDBC driver class using the native interface.
The jdbc driver needs to be registered in xmlBlaster.properties and will be started on xmlBlaster startup, for example:ProtocolPlugin[JDBC][1.0]=org.xmlBlaster.protocol.jdbc.JdbcDriver CbProtocolPlugin[JDBC][1.0]=org.xmlBlaster.protocol.jdbc.CallbackJdbcDriverThe interface I_Driver is needed by xmlBlaster to instantiate and shutdown this driver implementation.
Field Summary | |
---|---|
private AddressServer |
addressServer
|
private I_Authenticate |
authenticate
The singleton handle for this xmlBlaster server |
private java.lang.String |
cbRegistrationKey
key under which my callback is registered |
private Global |
glob
|
private static java.util.logging.Logger |
log
|
private java.lang.String |
loginName
|
private java.lang.String |
ME
|
private NamedConnectionPool |
namedPool
JDBC connection pooling, a pool for every user |
private java.lang.String |
passwd
|
private java.lang.String |
sessionId
The authentication session identifier |
private I_XmlBlaster |
xmlBlasterImpl
The singleton handle for this xmlBlaster server |
Constructor Summary | |
---|---|
JdbcDriver()
|
Method Summary | |
---|---|
void |
activate()
Activate xmlBlaster access through this protocol. |
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 jdbc access. |
void |
init(Global glob,
PluginInfo pluginInfo)
Enforced by I_Plugin |
private void |
initDrivers()
Load the JDBC drivers from xmlBlaster.properties. |
java.lang.String |
publish(MsgUnitRaw msgUnit)
Send the XML based result set to the client. |
void |
shutdown()
Instructs jdbc driver to shut down. |
void |
update(java.lang.String sender,
byte[] content)
Callback of xmlBlaster, a client wants to do a query ... |
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
private I_Authenticate authenticate
private I_XmlBlaster xmlBlasterImpl
private java.lang.String sessionId
private NamedConnectionPool namedPool
private java.lang.String cbRegistrationKey
private AddressServer addressServer
private java.lang.String loginName
private java.lang.String passwd
Constructor Detail |
---|
public JdbcDriver()
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
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.public java.lang.String usage()
usage
in interface I_Driver
public void update(java.lang.String sender, byte[] content)
public java.lang.String publish(MsgUnitRaw msgUnit) throws XmlBlasterException
publish
in interface I_Publish
XmlBlasterException
private void initDrivers()
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |