|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class defines a AbstractRecoveryLogMBean
Method Summary | |
void |
cleanRecoveryLog()
Possibly clean the recovery log after all recovery process are done. |
BackendRecoveryInfo |
getBackendInfo(java.lang.String databaseName,
java.lang.String backendName)
Retrieve recovery information on a backend. |
java.util.ArrayList |
getCheckpointNames()
Returns an array of names of all the checkpoint available in the recovery log |
long |
getCheckpointRequestId(java.lang.String checkpointName)
Get the request id corresponding to a given checkpoint. |
long |
getLastTransactionId()
Get the id of the last transaction logged in the recovery log. |
long |
getRecoveringNb()
Returns the recoveringNb value. |
boolean |
isRecovering()
Returns true if at least one backend has started a recover
process. |
void |
removeCheckpoint(java.lang.String checkpointName)
Remove a checkpoint from the recovery. |
void |
storeBackendInfo(java.lang.String databaseName,
java.lang.String backendName,
java.lang.String checkpoint,
int backendState)
Store the state of the backend in the recovery log |
void |
storeCheckpoint(java.lang.String checkpointName)
Store a Checkpoint using the current log state. |
void |
storeCheckpoint(java.lang.String checkpointName,
long requestId)
Store a Checkpoint using the given request id. |
Method Detail |
public long getRecoveringNb()
public long getLastTransactionId() throws java.sql.SQLException
java.sql.SQLException
- if an error occurspublic void storeCheckpoint(java.lang.String checkpointName) throws java.sql.SQLException
checkpointName
- Name of the checkpoint
java.sql.SQLException
- if an error occurspublic void storeCheckpoint(java.lang.String checkpointName, long requestId) throws java.sql.SQLException
checkpointName
- Name of the checkpointrequestId
- request identifier
java.sql.SQLException
- if an error occurspublic void removeCheckpoint(java.lang.String checkpointName) throws java.sql.SQLException
checkpointName
- to remove
java.sql.SQLException
- if an error occurspublic long getCheckpointRequestId(java.lang.String checkpointName) throws java.sql.SQLException
checkpointName
- Name of the checkpoint
java.sql.SQLException
- if an error occurs#recoverNextRequest(long)
public boolean isRecovering()
true
if at least one backend has started a recover
process.
boolean
public void cleanRecoveryLog() throws java.sql.SQLException
java.sql.SQLException
- if an error occurspublic java.util.ArrayList getCheckpointNames() throws java.sql.SQLException
ArrayList
of String
checkpoint names
java.sql.SQLException
- if failspublic void storeBackendInfo(java.lang.String databaseName, java.lang.String backendName, java.lang.String checkpoint, int backendState) throws java.sql.SQLException
databaseName
- name of the virtual databasebackendName
- name of the backendcheckpoint
- lastknown check point for this backendbackendState
- the state of the backend
java.sql.SQLException
- if cannot proceedpublic BackendRecoveryInfo getBackendInfo(java.lang.String databaseName, java.lang.String backendName) throws java.sql.SQLException
databaseName
- the virtual database namebackendName
- the backend name
BackendRecoveryInfo instance or null
if the backend does not exist
- Throws:
java.sql.SQLException
- if cannot proceed
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |