db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oyste...@apache.org
Subject svn commit: r601331 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/services/replication/net/ReplicationMessage.java
Date Wed, 05 Dec 2007 13:33:46 GMT
Author: oysteing
Date: Wed Dec  5 05:33:45 2007
New Revision: 601331

URL: http://svn.apache.org/viewvc?rev=601331&view=rev
Log:
Derby-3068: Replication: Add various commands from master to slave using the replication network
connection. Contributed by Narayanan.

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/services/replication/net/ReplicationMessage.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/services/replication/net/ReplicationMessage.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/services/replication/net/ReplicationMessage.java?rev=601331&r1=601330&r2=601331&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/services/replication/net/ReplicationMessage.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/services/replication/net/ReplicationMessage.java
Wed Dec  5 05:33:45 2007
@@ -98,6 +98,18 @@
     public static final int TYPE_INITIATE = 3;
     
     /**
+     * Used to send a stop replication signal to the slave. Since this
+     * is a control signal the object this message contains will be null.
+     */
+    public static final int TYPE_STOP = 4;
+    
+    /**
+     * Used to signal the slave that it must failover. The object associated
+     * with this message will be null.
+     */
+    public static final int TYPE_FAILOVER = 5;
+    
+    /**
      * public No args constructor required with Externalizable.
      */
     public ReplicationMessage() {}



Mime
View raw message