diff --git a/cluster-quorum/pom.xml b/cluster-quorum/pom.xml
index 82385d952..f650ecc78 100644
--- a/cluster-quorum/pom.xml
+++ b/cluster-quorum/pom.xml
@@ -4,6 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
+
cluster-quorum
Cluster Quorum
0.1-SNAPSHOT
@@ -18,8 +19,10 @@
com.hazelcast
- hazelcast
+ hazelcast-all
${hazelcast.version}
-
+
+
+
\ No newline at end of file
diff --git a/cluster/pom.xml b/cluster/pom.xml
deleted file mode 100644
index e2795912f..000000000
--- a/cluster/pom.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
- 4.0.0
-
- cluster
- Cluster
-
-
- com.hazelcast.samples
- code-samples
- 0.1-SNAPSHOT
- ../pom.xml
-
-
-
-
- com.hazelcast
- hazelcast-all
- ${hazelcast.version}
-
-
-
-
diff --git a/cluster/src/main/java/ClusterFrozenState.java b/cluster/src/main/java/ClusterFrozenState.java
deleted file mode 100644
index 1320983a0..000000000
--- a/cluster/src/main/java/ClusterFrozenState.java
+++ /dev/null
@@ -1,40 +0,0 @@
-import com.hazelcast.cluster.ClusterState;
-import com.hazelcast.core.Hazelcast;
-import com.hazelcast.core.HazelcastInstance;
-import com.hazelcast.instance.GroupProperty;
-
-public class ClusterFrozenState {
-
- public static void main(String[] args) {
- System.setProperty(GroupProperty.PHONE_HOME_ENABLED.getName(), "false");
-
- HazelcastInstance instance1 = Hazelcast.newHazelcastInstance();
- HazelcastInstance instance2 = Hazelcast.newHazelcastInstance();
-
- System.out.println("Instance-1 Cluster State: " + instance1.getCluster().getClusterState());
- System.out.println("Instance-2 Cluster State: " + instance2.getCluster().getClusterState());
-
- instance2.getCluster().changeClusterState(ClusterState.FROZEN);
- System.out.println("Instance-1 Cluster State: " + instance1.getCluster().getClusterState());
- System.out.println("Instance-2 Cluster State: " + instance2.getCluster().getClusterState());
-
- // shutdown 1st instance and start it back
- // it should re-join to the 2nd node
- instance1.shutdown();
- instance1 = Hazelcast.newHazelcastInstance();
-
- System.out.println("Instance-1 Members: " + instance1.getCluster().getMembers());
- System.out.println("Instance-2 Members: " + instance2.getCluster().getMembers());
- System.out.println("Instance-1 Cluster State: " + instance1.getCluster().getClusterState());
- System.out.println("Instance-2 Cluster State: " + instance2.getCluster().getClusterState());
-
- // a new instance cannot join to a frozen cluster
- try {
- Hazelcast.newHazelcastInstance();
- } catch (IllegalStateException expected) {
- System.err.println("New node cannot join to the cluster: " + expected);
- }
-
- Hazelcast.shutdownAll();
- }
-}
diff --git a/cluster/src/main/java/ClusterPassiveState.java b/cluster/src/main/java/ClusterPassiveState.java
deleted file mode 100644
index df3fa305a..000000000
--- a/cluster/src/main/java/ClusterPassiveState.java
+++ /dev/null
@@ -1,46 +0,0 @@
-import com.hazelcast.cluster.ClusterState;
-import com.hazelcast.core.Hazelcast;
-import com.hazelcast.core.HazelcastInstance;
-import com.hazelcast.core.IMap;
-
-public class ClusterPassiveState {
-
- public static void main(String[] args) {
- HazelcastInstance instance1 = Hazelcast.newHazelcastInstance();
- HazelcastInstance instance2 = Hazelcast.newHazelcastInstance();
-
- System.out.println("Instance-1 Cluster State: " + instance1.getCluster().getClusterState());
- System.out.println("Instance-2 Cluster State: " + instance2.getCluster().getClusterState());
-
- IMap