public class RuntimeLayout extends Object
Created by zlokhandwala on 3/8/18.
Constructor and Description |
---|
RuntimeLayout(Layout layout,
CorfuRuntime corfuRuntime)
Constructor taking a reference of the layout to stamp the clients.
|
Modifier and Type | Method and Description |
---|---|
BaseClient |
getBaseClient(String endpoint) |
LayoutClient |
getLayoutClient(String endpoint) |
LogUnitClient |
getLogUnitClient(long address,
int index) |
LogUnitClient |
getLogUnitClient(String endpoint) |
ManagementClient |
getManagementClient(String endpoint) |
SequencerClient |
getPrimarySequencerClient() |
SequencerClient |
getSequencerClient(String endpoint) |
void |
sealMinServerSet()
Attempts to move all servers in the system to the epoch of this layout.
|
public RuntimeLayout(@Nonnull Layout layout, @Nonnull CorfuRuntime corfuRuntime)
public void sealMinServerSet() throws WrongEpochException, QuorumUnreachableException
WrongEpochException
- If any server is in a higher epoch.QuorumUnreachableException
- If enough number of servers cannot be sealed.public BaseClient getBaseClient(String endpoint)
public LayoutClient getLayoutClient(String endpoint)
public SequencerClient getPrimarySequencerClient()
public SequencerClient getSequencerClient(String endpoint)
public LogUnitClient getLogUnitClient(long address, int index)
public LogUnitClient getLogUnitClient(String endpoint)
public ManagementClient getManagementClient(String endpoint)
Copyright © 2019 CorfuDB. All rights reserved.