mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-134 added a node discovery test
This commit is contained in:
@@ -87,4 +87,25 @@ public class MapByNameTest {
|
||||
|
||||
}
|
||||
|
||||
public static void main(String... args) throws IOException, InterruptedException {
|
||||
NodeDiscovery nodeDiscovery = new NodeDiscovery();
|
||||
|
||||
ChronicleMapBuilder<CharSequence, CharSequence> builder = ChronicleMapBuilder.of(CharSequence
|
||||
.class, CharSequence.class)
|
||||
.minSegments(2)
|
||||
.name("myMap")
|
||||
.removeReturnsNull(true);
|
||||
|
||||
|
||||
FindFindByName mapByName = nodeDiscovery.mapByName();
|
||||
mapByName.add(builder);
|
||||
|
||||
|
||||
// wait for ever
|
||||
for (; ; ) {
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user