Search in sources :

Example 21 with GMSMember

use of org.apache.geode.distributed.internal.membership.gms.GMSMember in project geode by apache.

the class GMSHealthMonitorJUnitTest method createGMSMember.

private GMSMember createGMSMember(short version, int viewId, long msb, long lsb) throws UnknownHostException {
    GMSMember gmsMember = new GMSMember();
    gmsMember.setVersionOrdinal(version);
    gmsMember.setBirthViewId(viewId);
    gmsMember.setUUID(new UUID(msb, lsb));
    gmsMember.setInetAddr(InetAddress.getLocalHost());
    return gmsMember;
}
Also used : GMSMember(org.apache.geode.distributed.internal.membership.gms.GMSMember) UUID(org.jgroups.util.UUID)

Aggregations

GMSMember (org.apache.geode.distributed.internal.membership.gms.GMSMember)21 InternalDistributedMember (org.apache.geode.distributed.internal.membership.InternalDistributedMember)12 IntegrationTest (org.apache.geode.test.junit.categories.IntegrationTest)8 Test (org.junit.Test)8 MembershipTest (org.apache.geode.test.junit.categories.MembershipTest)7 NetView (org.apache.geode.distributed.internal.membership.NetView)4 FlakyTest (org.apache.geode.test.junit.categories.FlakyTest)4 UUID (org.jgroups.util.UUID)4 DataInputStream (java.io.DataInputStream)3 HashSet (java.util.HashSet)3 DistributionMessage (org.apache.geode.distributed.internal.DistributionMessage)3 ByteArrayInputStream (java.io.ByteArrayInputStream)2 IOException (java.io.IOException)2 InvocationTargetException (java.lang.reflect.InvocationTargetException)2 LinkedList (java.util.LinkedList)2 HighPriorityDistributionMessage (org.apache.geode.distributed.internal.HighPriorityDistributionMessage)2 InstallViewMessage (org.apache.geode.distributed.internal.membership.gms.messages.InstallViewMessage)2 JoinRequestMessage (org.apache.geode.distributed.internal.membership.gms.messages.JoinRequestMessage)2 HeapDataOutputStream (org.apache.geode.internal.HeapDataOutputStream)2 Int2ObjectOpenHashMap (it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap)1