Re: [jgroups-dev] Continuous heartbeat messages without View change
Development issues <[email protected]> Fri, 21 Jul 2017 03:49:58 -0700 (MST)
| Newsgroups | gmane.comp.java.javagroups.devel |
|---|---|
| Message-ID | <mailman.779.1500652485.9844.javagroups-development@lists.sourceforge.net> |
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.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Javagroups-development mailing list