com.ibm.db2.tools.repl.publication
Class HeartbeatMsg

java.lang.Object
  |
  +--com.ibm.db2.tools.repl.publication.Msg
        |
        +--com.ibm.db2.tools.repl.publication.InformationalMsg
              |
              +--com.ibm.db2.tools.repl.publication.HeartbeatMsg

public class HeartbeatMsg
extends InformationalMsg

The HeartbeatMsg is sent by the QCapture program to tell that QCapture is still running. The HeartbeatMsg is optional, and is specified when the capture control tables are defined. The QCaptupre program puts this msg on the queue when the heartbeat interval is reached, and no other messages have been put on the queue.


Field Summary
protected  java.lang.String lastCommitTime
           
protected  java.lang.String sendQueueName
           
 
Fields inherited from class com.ibm.db2.tools.repl.publication.Msg
dbName, jmsMsg, topicHeader
 
Constructor Summary
HeartbeatMsg()
           
 
Method Summary
 java.lang.String getLastCommitTime()
          The timestamp (in GMT) of the last committed transaction.
 java.lang.String getSendQueueName()
          Returns the name of the send queue (the name of the queue on the capture server) that this msg was placed.
 void setLastCommitTime(java.lang.String string)
          This method has no effect when used by a PublicationListener.
 void setSendQueueName(java.lang.String string)
          This method has no effect when used by a PublicationListener.
 
Methods inherited from class com.ibm.db2.tools.repl.publication.Msg
getDbName, getJMSMessage, getObjectProperty, getPropertyNames, getTopic, setDbName, setJMSMessage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sendQueueName

protected java.lang.String sendQueueName

lastCommitTime

protected java.lang.String lastCommitTime
Constructor Detail

HeartbeatMsg

public HeartbeatMsg()
Method Detail

getLastCommitTime

public java.lang.String getLastCommitTime()
The timestamp (in GMT) of the last committed transaction. May be null if no committed transactions.

Returns:
String The timestamp of the last committed transaction (or null if none).

getSendQueueName

public java.lang.String getSendQueueName()
Returns the name of the send queue (the name of the queue on the capture server) that this msg was placed.

Returns:
String The send queue name.

setLastCommitTime

public void setLastCommitTime(java.lang.String string)
This method has no effect when used by a PublicationListener.

Parameters:
string -

setSendQueueName

public void setSendQueueName(java.lang.String string)
This method has no effect when used by a PublicationListener.

Parameters:
string -