com.zeroturnaround.liverebel.api
Interface FailoverOperations

All Known Implementing Classes:
FailoverOperationsImpl

public interface FailoverOperations

Operations related to Failover Command Center (some of them expect that this LiveRebel is failover, some of them expect that it is primary)

Author:
Ats Uiboupin

Method Summary
 boolean checkPrimaryAlive()
           
 Date getLastFailoverSyncTime()
           
 boolean isAcceptingPushes()
           
 boolean registerAsFailover(String primaryHost, int primaryPort, String authToken)
          Registers this Command Center as a Failover Command Center to Primary Command Center that runs on
 void startAcceptingPushes()
           
 void syncWithFailover()
          If this server has failover slave, this will schedule synchronizing in 3s.
 

Method Detail

registerAsFailover

boolean registerAsFailover(String primaryHost,
                           int primaryPort,
                           String authToken)
Registers this Command Center as a Failover Command Center to Primary Command Center that runs on

Parameters:
primaryHost - - primary server host
primaryPort - - primary server port
authToken - - primary server user auth-token that will be used for initial authentication
Returns:
true is registration was successful.

checkPrimaryAlive

boolean checkPrimaryAlive()
Returns:
true if primary is alive or this server is not configured as failover

syncWithFailover

void syncWithFailover()
If this server has failover slave, this will schedule synchronizing in 3s. Otherwise it has no effect.


getLastFailoverSyncTime

Date getLastFailoverSyncTime()
Returns:
date of last time when this servers synced with failover server

isAcceptingPushes

boolean isAcceptingPushes()

startAcceptingPushes

void startAcceptingPushes()


Copyright © 2013. All Rights Reserved.