cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From slebre...@apache.org
Subject [4/6] git commit: Add stop method to EmbeddedCassandraService
Date Wed, 06 Aug 2014 10:13:32 GMT
Add stop method to EmbeddedCassandraService

patch by lyubent; reviewed by slebresne for CASSANDRA-7595


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/266f6b7b
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/266f6b7b
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/266f6b7b

Branch: refs/heads/cassandra-2.1.0
Commit: 266f6b7b50b1ee9b13d533af9e3406f8797c4af5
Parents: 73eb68c
Author: Sylvain Lebresne <sylvain@datastax.com>
Authored: Wed Aug 6 12:10:53 2014 +0200
Committer: Sylvain Lebresne <sylvain@datastax.com>
Committed: Wed Aug 6 12:10:53 2014 +0200

----------------------------------------------------------------------
 CHANGES.txt                                                     | 1 +
 .../org/apache/cassandra/service/EmbeddedCassandraService.java  | 5 +++++
 2 files changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/266f6b7b/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index ed04b63..2c95a52 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 1.2.19
+ * Add stop method to EmbeddedCassandraService (CASSANDRA-7595)
  * Support connecting to ipv6 jmx with nodetool (CASSANDRA-7669)
  * Set gc_grace_seconds to seven days for system schema tables (CASSANDRA-7668)
  * SimpleSeedProvider no longer caches seeds forever (CASSANDRA-7663)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/266f6b7b/src/java/org/apache/cassandra/service/EmbeddedCassandraService.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/service/EmbeddedCassandraService.java b/src/java/org/apache/cassandra/service/EmbeddedCassandraService.java
index 659d851..8993900 100644
--- a/src/java/org/apache/cassandra/service/EmbeddedCassandraService.java
+++ b/src/java/org/apache/cassandra/service/EmbeddedCassandraService.java
@@ -52,4 +52,9 @@ public class EmbeddedCassandraService
         cassandraDaemon.init(null);
         cassandraDaemon.start();
     }
+
+    public void stop() throws IOException
+    {
+        cassandraDaemon.deactivate();
+    }
 }


Mime
View raw message