HCOLL-134 more work on node discovery

This commit is contained in:
Rob Austin
2014-11-18 15:08:40 +00:00
parent 825668e126
commit 1874c4c127
7 changed files with 134 additions and 38 deletions
@@ -23,6 +23,8 @@ import net.openhft.chronicle.map.ChronicleMap;
import net.openhft.chronicle.set.ChronicleSet;
import org.jetbrains.annotations.NotNull;
import java.util.Arrays;
/**
* This class holds all configurations of <a href="https://github.com/OpenHFT/Chronicle-Map#multiple-chronicle-maps---network-distributed">
* multicontainer replication</a>, which is usable, when you want to replicate several {@linkplain
@@ -68,6 +70,16 @@ public final class ReplicationHub extends AbstractReplication {
channels = new ReplicationChannel[builder.maxNumberOfChannels];
}
@Override
public String toString() {
return "ReplicationHub{" +
"maxEntrySize=" + maxEntrySize +
", channels=" + Arrays.toString(channels) +
super.toString() +
'}';
}
/**
* Returns the maximum {@linkplain ChronicleHashBuilder#entrySize(int) entry size} of {@link
* ChronicleHash}es, replicated by this {@code ReplicationHub}, could have. {@code RuntimeException} is
@@ -173,5 +185,8 @@ public final class ReplicationHub extends AbstractReplication {
check(identifier);
return new ReplicationHub(identifier, this);
}
}
}