Re: [jgroups-dev] Continuous heartbeat messages without View change
Brought to you by:
belaban
|
From: Development i. <jav...@li...> - 2017-07-21 10:50:06
|
Custom address looks like:
import java.util.function.Supplier;
import org.jgroups.Address;
import org.jgroups.conf.ClassConfigurator;
import org.jgroups.stack.AddressGenerator;
import org.jgroups.util.NameCache;
import org.jgroups.util.UUID;
public class CustomAddress extends UUID implements AddressGenerator {
/**
*
*/
static {
ClassConfigurator.add((short) 12545, CustomAddress.class);
}
public CustomAddress() {
super();
}
public CustomAddress(long mostSigBits, long leastSigBits) {
super(mostSigBits, leastSigBits);
}
protected CustomAddress(byte[] data) {
super(data);
}
public static CustomAddress randomUUID(String name) {
CustomAddress retval=new CustomAddress(generateRandomBytes());
if(name != null)
NameCache.add(retval, name);
return retval;
}
@Override
public Supplier<? extends UUID> create() {
return CustomAddress::new;
}
@Override
public Address generateAddress() {
return CustomAddress.randomUUID("master");
}
}
This issue is not reproducible always. My config and custom membership
policy works fine and no problem with the view generation.
Thanks in advance :-)
--
View this message in context: http://jgroups.1086181.n5.nabble.com/Continuous-heartbeat-messages-without-View-change-tp11352p11367.html
Sent from the JGroups - Dev mailing list archive at Nabble.com.
|