Use this API to Force hafailover.
517544
public static base_response Force(nitro_service client, hafailover resource) throws Exception {
		hafailover Forceresource = new hafailover();
		Forceresource.force = resource.force;
		return Forceresource.perform_operation(client,"Force");
	}
1233818
private boolean forceQuitActiveAction(final Long actionId) {
        if (actionId != null) {
            try {
                deploymentManagement.forceQuitAction(actionId);
                return true;
            } catch (final CancelActionNotAllowedException e) {
                LOG.info("Force Cancel action not allowed exception :{}", e);
                return false;
            }
        }
        return false;
    }
306405
def requires_api_auth(fn):
    """"""
    def wrapper(self, *args, **kwargs):
        self.auth_context = HAPI.auth_context_hapi
        return fn(self, *args, **kwargs)
    return wrapper
1053041
def force_horizontal_padding_after(
            self, index: int, padding: Union[int, float]) -> None:
        """"""
        self.horizontal_padding[index] = padding
634240
public void setMFAOptions(java.util.Collection<MFAOptionType> mFAOptions) {
        if (mFAOptions == null) {
            this.mFAOptions = null;
            return;
        }

        this.mFAOptions = new java.util.ArrayList<MFAOptionType>(mFAOptions);
    }
44602
def force
      if finalised?
        get
      elsif (dimension > 0 and Thread.current[:lazy]) or not variables.empty?
        self
      elsif compilable?
        retval = allocate
        GCCFunction.run Store.new(retval, self)
        retval.demand.get
      else
        retval = allocate
        Store.new(retval, self).demand
        retval.demand.get
      end
    end
37211
public static base_response Force(nitro_service client, hasync resource) throws Exception {
		hasync Forceresource = new hasync();
		Forceresource.force = resource.force;
		Forceresource.save = resource.save;
		return Forceresource.perform_operation(client,"Force");
	}
586363
function forceNew(ctor) {
        // create object with correct prototype using a do-nothing
        // constructor
        xtor.prototype = ctor.prototype;
        var t = new xtor;
        xtor.prototype = null;    // clean up
        return t;
    }
1068296
def force_start(self, infohash_list, value=True):
        
        data = self._process_infohash_list(infohash_list)
        data.update({'value': json.dumps(value)})
        return self._post('command/setForceStart', data=data)
393357
def force_sync(self):
        
        try:
            self.send(self.get_resource_endpoint(), "put")
        except Exception as e:
            raise CartoException(e)
927589
void force()
                    throws ObjectManagerException
    {
        final String methodName = "force";
        if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
            trace.entry(this,
                        cclass,
                        methodName);

        try {
            storeChannel.force(false); // Force buffered records and not metadata to disk.

        } catch (java.io.IOException exception) {
            // No FFDC Code Needed.
            ObjectManager.ffdc.processException(this, cclass, methodName, exception, "1:923:1.39");

            if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
                trace.exit(this,
                           cclass,
                           methodName);

            // cannot continue
            objectManagerState.requestShutdown();
            throw new PermanentIOException(this,
                                           exception);
        } // catch.
        if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
            trace.exit(this,
                       cclass,
                       methodName);
    }
2045
public function forceBinary()
    {
        $this->_filter = $this->_filterParams();
        $this->_filter->binary = true;
        $this->_filter->literal = true;
        $this->_filter->quoted = false;
    }
355306
def force_flush(
            self):
        
        self.debug_log('force flush requested')
        self.perform_work(
            self.queue,
            self.shutdown_event,
            self.shutdown_ack,
            self.already_done)
812879
function forceRelayout(elem) {
  const originalStyle = elem.style.display;
  elem.style.display = 'none';
  elem.offsetHeight; // eslint-disable-line
  elem.style.display = originalStyle;
}
868646
def force(self,c):
        ''''''
        
        # bring instance variables into local scope
        x = self.x
        v = self.v
        b = self.b
        k = self.k
        x0 = self.x0
        
        F = self.control_force(c)
        
        return F - b*v - k*(x - x0)
597575
public Promise<Void> forceAndClose(boolean forceMetadata) {
		if (!isOpen()) return Promise.ofException(FILE_CLOSED);
		return ofBlockingRunnable(executor, () -> {
			try {
				channel.force(forceMetadata);
				channel.close();
			} catch (IOException e) {
				throw new UncheckedException(e);
			}
		});
	}
1075520
function Polling(opts) {
  var forceBase64 = opts && opts.forceBase64;
  if (!hasXHR2 || forceBase64) {
    this.supportsBinary = false;
  }
  transport.call(this, opts);
}