|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.db2.tools.repl.publication.ControlMsg | +--com.ibm.db2.tools.repl.publication.InvalidateSendQueueMsg
The InvalidateSendQueueMsg sends a message to QCapture asking it to invalidate the send queue and perform the error action specified in the publication.
An example of sending a message:
This will send a message on the "AdminQueueName" on queue manager "QueueMgrName" to invalidate the "SendQueueName" at the QCapture program.try { ControlMsg msg = new InvalidateSendQueueMsg("SendQueueName"); msg.send("QueueMgrName", "AdminQueueName"); } catch (Exception e) { System.out.println("Message failed...error " + e); }
Field Summary | |
---|---|
protected java.lang.String |
qName
|
Constructor Summary | |
---|---|
InvalidateSendQueueMsg(java.lang.String qName)
Craste a new InvalidateSendQueueMsg. |
Method Summary | |
---|---|
protected void |
generateXML(java.lang.StringBuffer xmlDocument)
Actually create the xml. |
java.lang.String |
getQueueName()
Get the send queue name. |
void |
setQueueName(java.lang.String qName)
Set the send queue name. |
protected void |
validate()
This will valiadate that everything is present for the xml document to be created. |
Methods inherited from class com.ibm.db2.tools.repl.publication.ControlMsg |
---|
getXML, send, send, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String qName
Constructor Detail |
public InvalidateSendQueueMsg(java.lang.String qName)
qName
- The name of the send queue to invalidate.Method Detail |
public java.lang.String getQueueName()
public void setQueueName(java.lang.String qName)
qName
- The name of the send queue to invalidate.protected void validate() throws java.lang.Exception
validate
in class ControlMsg
java.lang.Exception
protected void generateXML(java.lang.StringBuffer xmlDocument)
generateXML
in class ControlMsg
xmlDocument
- Generate the xml here.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |