Search in sources :

Example 1 with LayoutSegment

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));
}
Also used : Layout(org.corfudb.runtime.view.Layout) LayoutSegment(org.corfudb.runtime.view.Layout.LayoutSegment)

Aggregations

Layout (org.corfudb.runtime.view.Layout)1 LayoutSegment (org.corfudb.runtime.view.Layout.LayoutSegment)1