Search in sources :

Example 6 with MemberGroupFactory

use of com.hazelcast.internal.partition.membergroup.MemberGroupFactory in project hazelcast by hazelcast.

the class DiscoverySpiTest method testSPIAwareMemberGroupFactoryInvalidConfig.

@Test(expected = RuntimeException.class)
public void testSPIAwareMemberGroupFactoryInvalidConfig() throws Exception {
    HazelcastInstance hazelcastInstance = Hazelcast.newHazelcastInstance();
    try {
        MemberGroupFactory groupFactory = new SPIAwareMemberGroupFactory(getNode(hazelcastInstance).getDiscoveryService());
        Collection<Member> members = createMembers();
        groupFactory.createMemberGroups(members);
    } finally {
        hazelcastInstance.shutdown();
    }
}
Also used : HazelcastInstance(com.hazelcast.core.HazelcastInstance) SPIAwareMemberGroupFactory(com.hazelcast.internal.partition.membergroup.SPIAwareMemberGroupFactory) Member(com.hazelcast.cluster.Member) SPIAwareMemberGroupFactory(com.hazelcast.internal.partition.membergroup.SPIAwareMemberGroupFactory) MemberGroupFactory(com.hazelcast.internal.partition.membergroup.MemberGroupFactory) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test)

Aggregations

MemberGroupFactory (com.hazelcast.internal.partition.membergroup.MemberGroupFactory)6 QuickTest (com.hazelcast.test.annotation.QuickTest)6 Test (org.junit.Test)6 Member (com.hazelcast.cluster.Member)5 DefaultMemberGroup (com.hazelcast.internal.partition.membergroup.DefaultMemberGroup)4 MemberGroup (com.hazelcast.spi.partitiongroup.MemberGroup)4 HazelcastInstance (com.hazelcast.core.HazelcastInstance)3 ConfigMemberGroupFactory (com.hazelcast.internal.partition.membergroup.ConfigMemberGroupFactory)3 HostAwareMemberGroupFactory (com.hazelcast.internal.partition.membergroup.HostAwareMemberGroupFactory)3 SPIAwareMemberGroupFactory (com.hazelcast.internal.partition.membergroup.SPIAwareMemberGroupFactory)3 SingleMemberGroupFactory (com.hazelcast.internal.partition.membergroup.SingleMemberGroupFactory)3 ParallelJVMTest (com.hazelcast.test.annotation.ParallelJVMTest)3 AwsConfig (com.hazelcast.config.AwsConfig)2 Config (com.hazelcast.config.Config)2 DiscoveryConfig (com.hazelcast.config.DiscoveryConfig)2 DiscoveryStrategyConfig (com.hazelcast.config.DiscoveryStrategyConfig)2 InterfacesConfig (com.hazelcast.config.InterfacesConfig)2 JoinConfig (com.hazelcast.config.JoinConfig)2 MulticastConfig (com.hazelcast.config.MulticastConfig)2 TcpIpConfig (com.hazelcast.config.TcpIpConfig)2