|
||||||||||
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.ActivateSubscriptionMsg
The ActivateSubscriptionMsg 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 activate the subscription "SubscriptionName" at the QCapture program.try { ControlMsg msg = new ActivateSubscriptionMsg("SubscriptionName"); msg.send("QueueMgrName", "AdminQueueName"); } catch (Exception e) { System.out.println("Message failed...error " + e); }
Field Summary | |
---|---|
protected java.lang.String |
subscriptionName
|
Constructor Summary | |
---|---|
ActivateSubscriptionMsg(java.lang.String subscriptionName)
Craste a new ActivateSubscriptionMsg. |
Method Summary | |
---|---|
protected void |
generateXML(java.lang.StringBuffer xmlDocument)
Actually create the xml. |
java.lang.String |
getSubscriptionName()
Get the subscription name. |
void |
setSubscriptionName(java.lang.String subscriptionName)
Set the subscription 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 subscriptionName
Constructor Detail |
public ActivateSubscriptionMsg(java.lang.String subscriptionName)
subscriptionName
- The name of the subscription.Method Detail |
public java.lang.String getSubscriptionName()
public void setSubscriptionName(java.lang.String subscriptionName)
subscriptionName
- The name of the subscription to activate.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 |