use of org.corfudb.runtime.view.Layout.LayoutSegment in project CorfuDB by CorfuDB.
the class LayoutServer method getSingleNodeLayout.
private void getSingleNodeLayout() {
String localAddress = opts.get("--address") + ":" + opts.get("<port>");
setCurrentLayout(new Layout(Collections.singletonList(localAddress), Collections.singletonList(localAddress), Collections.singletonList(new LayoutSegment(Layout.ReplicationMode.CHAIN_REPLICATION, 0L, -1L, Collections.singletonList(new Layout.LayoutStripe(Collections.singletonList(localAddress))))), 0L));
}
Aggregations