@@ -22,7 +22,6 @@ package org.sonar.process.cluster.hz; | |||
import com.hazelcast.core.Cluster; | |||
import com.hazelcast.core.IAtomicReference; | |||
import com.hazelcast.core.MemberSelector; | |||
import java.util.List; | |||
import java.util.Map; | |||
import java.util.Set; | |||
import java.util.concurrent.locks.Lock; | |||
@@ -53,21 +52,6 @@ public interface HazelcastMember extends AutoCloseable { | |||
<E> IAtomicReference<E> getAtomicReference(String name); | |||
/** | |||
* Gets the set shared by the cluster and identified by name | |||
*/ | |||
<E> Set<E> getSet(String name); | |||
/** | |||
* Gets the list shared by the cluster and identified by name | |||
*/ | |||
<E> List<E> getList(String name); | |||
/** | |||
* Gets the map shared by the cluster and identified by name | |||
*/ | |||
<K, V> Map<K, V> getMap(String name); | |||
/** | |||
* Gets the replicated map shared by the cluster and identified by name. | |||
* Result can be casted to {@link com.hazelcast.core.ReplicatedMap} if needed to |
@@ -26,7 +26,6 @@ import com.hazelcast.core.IAtomicReference; | |||
import com.hazelcast.core.IExecutorService; | |||
import com.hazelcast.core.Member; | |||
import com.hazelcast.core.MemberSelector; | |||
import java.util.List; | |||
import java.util.Map; | |||
import java.util.Set; | |||
import java.util.concurrent.ExecutionException; | |||
@@ -50,21 +49,6 @@ class HazelcastMemberImpl implements HazelcastMember { | |||
return hzInstance.getAtomicReference(name); | |||
} | |||
@Override | |||
public <E> Set<E> getSet(String s) { | |||
return hzInstance.getSet(s); | |||
} | |||
@Override | |||
public <E> List<E> getList(String s) { | |||
return hzInstance.getList(s); | |||
} | |||
@Override | |||
public <K, V> Map<K, V> getMap(String s) { | |||
return hzInstance.getMap(s); | |||
} | |||
@Override | |||
public <K, V> Map<K, V> getReplicatedMap(String s) { | |||
return hzInstance.getReplicatedMap(s); |
@@ -61,9 +61,6 @@ public class HazelcastMemberBuilderTest { | |||
assertThat(member.getAtomicReference("baz")).isNotNull(); | |||
assertThat(member.getLock("baz")).isNotNull(); | |||
assertThat(member.getReplicatedMap("baz")).isNotNull(); | |||
assertThat(member.getList("baz")).isNotNull(); | |||
assertThat(member.getMap("baz")).isNotNull(); | |||
assertThat(member.getSet("baz")).isNotNull(); | |||
member.close(); | |||
} |