@Test
 public void testDestroy() throws Exception {
   HazelcastInstance instance = createHazelcastInstance();
   ReplicatedMap<Object, Object> replicatedMap = instance.getReplicatedMap(randomName());
   replicatedMap.put(1, 1);
   replicatedMap.destroy();
   Collection<DistributedObject> objects = instance.getDistributedObjects();
   assertEquals(0, objects.size());
 }
Exemple #2
0
 protected void handleInstances(String[] args) {
   Collection<DistributedObject> distributedObjects = hazelcast.getDistributedObjects();
   for (DistributedObject distributedObject : distributedObjects) {
     println(distributedObject);
   }
 }