Release connections and partitions owned by this server instance
Change-Id: I293705b0d212fcba7e6f80678dee70130a8abe25
Issue-ID: MUSIC-361
Signed-off-by: Tschaen, Brendan <ctschaen@att.com>
public void stop() {
if (null != server) {
+ meta.getStateManager().releaseAllPartitions();
server.stop();
server = null;
}
public OwnershipAndCheckpoint getOwnAndCheck() {
return ownAndCheck;
}
+
+ /**
+ * Close all connections for this server, relinquishing any locks/partitions owned by this server
+ */
+ public void releaseAllPartitions() {
+ for(String connection: this.connectionRanges.keySet()) {
+ closeConnection(connection);
+ }
+ }
}