|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.services.net.shipper.LogShipper
The log shipper is a class that is responsible for shipping the shared log between the primary database and the backup. It initiates a connection on startup, gets the next Lsn for the logical logger and keeps the connection up for the duration of the database. The log is shipped to the backup on either timeout, the log exceeding a size limit or on demand.
Method Summary | |
static LogShipper |
getInstance()
|
static LogShipper |
getInstance(LogicalLog logBuffer)
Get the instance of the LogShipper, ther should not exist any more than one shipper at one time. |
int |
getNextLsn()
Get the next lsn. |
boolean |
prepareTwoSafe(int transId)
|
void |
provideCatchUp()
Provide catchup for newly discovered HotStandby |
void |
run()
Runs the LogShipper. |
void |
setMaxQueueSize(int size)
Set the max queue size |
void |
setTimeOutInterval(long interval)
Set the timeout interval |
boolean |
shipNow()
Try to ship the log right now. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static LogShipper getInstance(LogicalLog logBuffer)
logBuffer
- The shared log
public static LogShipper getInstance()
public void run()
run
in interface java.lang.Runnable
public int getNextLsn()
public boolean shipNow()
public boolean prepareTwoSafe(int transId)
public void provideCatchUp()
public void setMaxQueueSize(int size)
size
- The new max size for the queuepublic void setTimeOutInterval(long interval)
interval
- The new timeout interval value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |