|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.replicator.thl.log.LogCursorManager
public class LogCursorManager
Encapsulates management of connections and their log cursors. Log cursors are a position in a particular log file and can only move in a forward direction. If clients move backward in the log we need to allocated a new cursor.
| Constructor Summary | |
|---|---|
LogCursorManager()
Create a new log cursor manager. |
|
| Method Summary | |
|---|---|
LogCursor |
createAndGetLogCursor(LogConnection client,
LogFile logFile,
long lastSeqno)
Sets the log file and last accessed sequence number for this thread. |
LogCursor |
getLogCursor(LogConnection client,
long nextSeqno)
Return a cursor to the log file belonging to this client. |
int |
getSize()
Returns the number of cursors currently managed. |
int |
getTimeoutMillis()
Returns the timeout for idle cursors. |
void |
release()
Releases all cursors. |
void |
releaseConnection(LogConnection client)
Releases log cursor for specific thread ID. |
void |
returnLogCursor(LogCursor logCursor)
Returns a loaned log cursor. |
void |
setTimeoutMillis(int timeoutMillis)
Sets the timeout for idle cursors. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogCursorManager()
throws ReplicatorException
ReplicatorException| Method Detail |
|---|
public int getSize()
public int getTimeoutMillis()
public void setTimeoutMillis(int timeoutMillis)
public LogCursor getLogCursor(LogConnection client,
long nextSeqno)
throws ReplicatorException
ReplicatorException
public LogCursor createAndGetLogCursor(LogConnection client,
LogFile logFile,
long lastSeqno)
throws ReplicatorException
ReplicatorExceptionpublic void returnLogCursor(LogCursor logCursor)
logCursor - public void release()
public void releaseConnection(LogConnection client)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||