@Private
@Evolving
public class FailoverController
extends java.lang.Object
| Constructor | Description |
|---|---|
FailoverController(Configuration conf,
HAServiceProtocol.RequestSource source) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
failover(HAServiceTarget fromSvc,
HAServiceTarget toSvc,
boolean forceFence,
boolean forceActive) |
Failover from service 1 to service 2.
|
public FailoverController(Configuration conf, HAServiceProtocol.RequestSource source)
public void failover(HAServiceTarget fromSvc, HAServiceTarget toSvc, boolean forceFence, boolean forceActive) throws FailoverFailedException
fromSvc - currently active servicetoSvc - service to make activeforceFence - to fence fromSvc even if not strictly necessaryforceActive - try to make toSvc active even if it is not readyFailoverFailedException - if the failover failsCopyright © 2008–2025 Apache Software Foundation. All rights reserved.