|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.services.hotstandby.HotStandbyController
The HotStandbyController is the main class responsible for keeping the HotStandby connected and up-to-date. When the database is in Hot Standby Mode it is responsible for redoing incoming log records. During takeover it is also responsible for aborting running transactions and ensure that the database is in a consistent state before it goes Primary.
Field Summary | |
static int |
ONE_SAFE
|
static int |
TWO_SAFE
|
Method Summary | |
java.lang.String |
getHotStandbyUrl()
Get the url for the HoStandby |
static HotStandbyController |
getInstance()
Get the running instance of the HotStandbyController |
int |
getReplicationMode()
Get the replication mode |
void |
handleIncomingLogs(LogicalLog log)
Handle incoming logs from the LogReceiver. |
static void |
init(boolean isInHotStandbyMode)
Initialize the HotStandbyController and the LogicalServer |
boolean |
isHotStandByAlive()
Is the HotStandby alive? |
boolean |
isInHotStandbyMode()
Is the database in HotStandbyMode ? |
void |
setHotStandByAlive(boolean hotStandByAlive)
Set the HotStandby alive or not |
void |
setHotStandbyMode(boolean toggle)
Set the databases HotStandbyMode. |
void |
setHotStandbyUrl(java.lang.String hotStandbyUrl)
Set the HotStandby url |
void |
setReplicationMode(int replicationMode)
Set the replication mode |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ONE_SAFE
public static final int TWO_SAFE
Method Detail |
public static void init(boolean isInHotStandbyMode)
isInHotStandbyMode
- Is the database in HotStandbyMode?public static HotStandbyController getInstance()
public boolean isInHotStandbyMode()
public void setHotStandbyMode(boolean toggle)
toggle
- The mode to be setpublic void handleIncomingLogs(LogicalLog log)
log
- The incoming log to be redonepublic java.lang.String getHotStandbyUrl()
public void setHotStandbyUrl(java.lang.String hotStandbyUrl)
hotStandbyUrl
- public boolean isHotStandByAlive()
public void setHotStandByAlive(boolean hotStandByAlive)
hotStandByAlive
- Is the HotStandby alive?public int getReplicationMode()
public void setReplicationMode(int replicationMode)
replicationMode
- The mode to be set, must be either ONE_SAFE or TWO_SAFE
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |