|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jlab.coda.cMsg.cMsgSubdomainAdapter
org.jlab.coda.cMsg.subdomains.Database
public class Database
cMsg subdomain handler for database subdomain. Executes sql statement from msg payload. Gets database parameters from UDL. UDL: cMsg:cMsg://host:port/Database?driver=myDriver&url=myURL&account=myAccount&password=myPassword
Constructor Summary | |
---|---|
Database()
|
Method Summary | |
---|---|
void |
handleClientShutdown()
Method to handle a client shutdown. |
void |
handleSendRequest(cMsgMessageFull msg)
Executes sql insert or update statement from message payload. |
int |
handleSyncSendRequest(cMsgMessageFull msg)
Method to handle message sent by domain client in synchronous mode. |
boolean |
hasSend()
Method to tell if the "send" cMsg API function is implemented by this interface implementation in the handleSendRequest(org.jlab.coda.cMsg.cMsgMessageFull)
method. |
boolean |
hasSyncSend()
Method to tell if the "syncSend" cMsg API function is implemented by this interface implementation in the handleSyncSendRequest(org.jlab.coda.cMsg.cMsgMessageFull)
method. |
void |
registerClient(cMsgClientInfo info)
Method to register domain client. |
void |
setUDLRemainder(java.lang.String UDLRemainder)
Method to give the subdomain handler the appropriate part of the UDL the client used to talk to the domain server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Database()
Method Detail |
---|
public boolean hasSend()
handleSendRequest(org.jlab.coda.cMsg.cMsgMessageFull)
method.
hasSend
in interface cMsgSubdomainInterface
hasSend
in class cMsgSubdomainAdapter
handleSendRequest(org.jlab.coda.cMsg.cMsgMessageFull)
public boolean hasSyncSend()
handleSyncSendRequest(org.jlab.coda.cMsg.cMsgMessageFull)
method.
hasSyncSend
in interface cMsgSubdomainInterface
hasSyncSend
in class cMsgSubdomainAdapter
handleSyncSendRequest(org.jlab.coda.cMsg.cMsgMessageFull)
public void setUDLRemainder(java.lang.String UDLRemainder) throws cMsgException
setUDLRemainder
in interface cMsgSubdomainInterface
setUDLRemainder
in class cMsgSubdomainAdapter
UDLRemainder
- last part of the UDL appropriate to the subdomain handler
cMsgException
public void registerClient(cMsgClientInfo info) throws cMsgException
registerClient
in interface cMsgSubdomainInterface
registerClient
in class cMsgSubdomainAdapter
info
- information about client
cMsgException
- upon errorpublic void handleSendRequest(cMsgMessageFull msg) throws cMsgException
handleSendRequest
in interface cMsgSubdomainInterface
handleSendRequest
in class cMsgSubdomainAdapter
msg
- message from sender.
cMsgException
public int handleSyncSendRequest(cMsgMessageFull msg) throws cMsgException
handleSyncSendRequest
in interface cMsgSubdomainInterface
handleSyncSendRequest
in class cMsgSubdomainAdapter
msg
- message from sender
cMsgException
public void handleClientShutdown() throws cMsgException
handleClientShutdown
in interface cMsgSubdomainInterface
handleClientShutdown
in class cMsgSubdomainAdapter
cMsgException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |