public static enum Layout.ReplicationMode extends Enum<Layout.ReplicationMode>
Enum Constant and Description |
---|
CHAIN_REPLICATION |
NO_REPLICATION |
QUORUM_REPLICATION |
Modifier and Type | Method and Description |
---|---|
abstract ClusterStatusReport.ClusterStatus |
getClusterHealthForSegment(Layout.LayoutSegment layoutSegment,
Set<String> responsiveNodes)
Returns the health of the cluster for a given segment.
|
abstract int |
getMinReplicationFactor(Layout layout,
Layout.LayoutStripe stripe)
Compute the min replication factor for the log unit servers in the replication protocol
for a specific stripe.
|
IReplicationProtocol |
getReplicationProtocol(CorfuRuntime r) |
abstract IStreamView |
getStreamView(CorfuRuntime r,
UUID streamId,
StreamOptions options) |
abstract IStreamView |
getUnsafeStreamView(CorfuRuntime r,
UUID streamId,
StreamOptions options) |
abstract void |
validateSegmentSeal(Layout.LayoutSegment layoutSegment,
Map<String,CompletableFuture<Boolean>> completableFutureMap)
Seals the layout segment.
|
static Layout.ReplicationMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Layout.ReplicationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Layout.ReplicationMode CHAIN_REPLICATION
public static final Layout.ReplicationMode QUORUM_REPLICATION
public static final Layout.ReplicationMode NO_REPLICATION
public static Layout.ReplicationMode[] values()
for (Layout.ReplicationMode c : Layout.ReplicationMode.values()) System.out.println(c);
public static Layout.ReplicationMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract void validateSegmentSeal(Layout.LayoutSegment layoutSegment, Map<String,CompletableFuture<Boolean>> completableFutureMap) throws QuorumUnreachableException
QuorumUnreachableException
public abstract int getMinReplicationFactor(Layout layout, Layout.LayoutStripe stripe)
layout
- the layout to compute the min replication factor for.stripe
- The stripe for which the minimum replication factor is needed.public abstract IStreamView getStreamView(CorfuRuntime r, UUID streamId, StreamOptions options)
public abstract IStreamView getUnsafeStreamView(CorfuRuntime r, UUID streamId, StreamOptions options)
public IReplicationProtocol getReplicationProtocol(CorfuRuntime r)
public abstract ClusterStatusReport.ClusterStatus getClusterHealthForSegment(Layout.LayoutSegment layoutSegment, Set<String> responsiveNodes)
layoutSegment
- Layout SegmentresponsiveNodes
- Set of all responsive nodes.Copyright © 2019 CorfuDB. All rights reserved.