Exemplo n.º 1
0
 @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());
 }
Exemplo n.º 2
0
 protected void handleInstances(String[] args) {
   Collection<DistributedObject> distributedObjects = hazelcast.getDistributedObjects();
   for (DistributedObject distributedObject : distributedObjects) {
     println(distributedObject);
   }
 }