public class ReconfigurationEventHandler extends Object
Created by zlokhandwala on 11/18/16.
Constructor and Description |
---|
ReconfigurationEventHandler() |
Modifier and Type | Method and Description |
---|---|
static boolean |
handleFailure(IReconfigurationHandlerPolicy failureHandlerPolicy,
Layout currentLayout,
CorfuRuntime corfuRuntime,
Set<String> failedServers)
Takes in the existing layout and a set of failed nodes.
|
static boolean |
handleHealing(CorfuRuntime runtime,
Set<String> healedServers,
Duration retryQueryTimeout)
Takes in the existing layout and a set of healed nodes.
|
static boolean |
handleMergeSegments(CorfuRuntime runtime,
Layout layout,
Duration retryQueryTimeout)
Launches a workflow to restore redundancy and merge all segments.
|
public static boolean handleFailure(@Nonnull IReconfigurationHandlerPolicy failureHandlerPolicy, @Nonnull Layout currentLayout, @Nonnull CorfuRuntime corfuRuntime, @Nonnull Set<String> failedServers)
currentLayout
- The current layoutcorfuRuntime
- Connected corfu runtime instancefailedServers
- Set of failed server addressespublic static boolean handleHealing(@Nonnull CorfuRuntime runtime, @Nonnull Set<String> healedServers, @Nonnull Duration retryQueryTimeout)
runtime
- Connected corfu runtime instancehealedServers
- Set of healed server addressesretryQueryTimeout
- Timeout to poll for workflow status.public static boolean handleMergeSegments(@Nonnull CorfuRuntime runtime, @Nonnull Layout layout, @Nonnull Duration retryQueryTimeout)
runtime
- Connected corfu runtime instance.layout
- Latest known layout.retryQueryTimeout
- Timeout to poll for workflow status.Copyright © 2019 CorfuDB. All rights reserved.