@InterfaceAudience.Private @InterfaceStability.Evolving public class FailoverController extends Object
| Constructor and Description |
|---|
FailoverController(Configuration conf,
HAServiceProtocol.RequestSource source) |
| Modifier and Type | Method and 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 © 2013 Apache Software Foundation. All rights reserved.