Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

org.objectweb.cjdbc.common.jmx.mbeans.AbstractRecoveryLogMBean Interface Reference

List of all members.

Public Member Functions

void cleanRecoveryLog () throws SQLException

Package Functions

BackendRecoveryInfo getBackendRecoveryInfo (String databaseName, String backendName) throws SQLException
ArrayList getCheckpointNames () throws SQLException
long getCheckpointRequestId (String checkpointName) throws SQLException
long getRecoveringNb ()
long getLastTransactionId () throws SQLException
boolean isRecovering ()
void removeCheckpoint (String checkpointName) throws SQLException
void storeBackendRecoveryInfo (String databaseName, BackendRecoveryInfo backendRecoveryInfo) throws SQLException
void storeCheckpoint (String checkpointName) throws SQLException
void storeCheckpoint (String checkpointName, long requestId) throws SQLException

Detailed Description

This class defines a AbstractRecoveryLogMBean

Author:
Nicolas Modrzyk

Emmanuel Cecchet

Version:
1.0

Definition at line 39 of file AbstractRecoveryLogMBean.java.


Member Function Documentation

void org.objectweb.cjdbc.common.jmx.mbeans.AbstractRecoveryLogMBean.cleanRecoveryLog  )  throws SQLException
 

Possibly clean the recovery log after all recovery process are done.

Exceptions:
SQLException if an error occurs

BackendRecoveryInfo org.objectweb.cjdbc.common.jmx.mbeans.AbstractRecoveryLogMBean.getBackendRecoveryInfo String  databaseName,
String  backendName
throws SQLException [package]
 

Retrieve recovery information on a backend. This includes, the last known state of the backend, and the last known checkpoint

Parameters:
databaseName the virtual database name
backendName the backend name
Returns:
BackendRecoveryInfo instance or null if the backend does not exist
Exceptions:
SQLException if cannot proceed

ArrayList org.objectweb.cjdbc.common.jmx.mbeans.AbstractRecoveryLogMBean.getCheckpointNames  )  throws SQLException [package]
 

Returns an array of names of all the checkpoint available in the recovery log

Returns:
ArrayList of String checkpoint names
Exceptions:
SQLException if fails

long org.objectweb.cjdbc.common.jmx.mbeans.AbstractRecoveryLogMBean.getCheckpointRequestId String  checkpointName  )  throws SQLException [package]
 

Get the request id corresponding to a given checkpoint. This is the first step in a recovery process. Following steps consist in calling recoverNextRequest.

Parameters:
checkpointName Name of the checkpoint
Returns:
int the request identifier corresponding to this checkpoint.
Exceptions:
SQLException if an error occurs

long org.objectweb.cjdbc.common.jmx.mbeans.AbstractRecoveryLogMBean.getLastTransactionId  )  throws SQLException [package]
 

Get the id of the last transaction logged in the recovery log.

Returns:
the last transaction id.
Exceptions:
SQLException if an error occurs

long org.objectweb.cjdbc.common.jmx.mbeans.AbstractRecoveryLogMBean.getRecoveringNb  )  [package]
 

Returns the recoveringNb value.

Returns:
Returns the recoveringNb.

boolean org.objectweb.cjdbc.common.jmx.mbeans.AbstractRecoveryLogMBean.isRecovering  )  [package]
 

Returns true if at least one backend has started a recover process.

Returns:
boolean

void org.objectweb.cjdbc.common.jmx.mbeans.AbstractRecoveryLogMBean.removeCheckpoint String  checkpointName  )  throws SQLException [package]
 

Remove a checkpoint from the recovery. This is useful for recovery maintenant

Parameters:
checkpointName to remove
Exceptions:
SQLException if an error occurs

void org.objectweb.cjdbc.common.jmx.mbeans.AbstractRecoveryLogMBean.storeBackendRecoveryInfo String  databaseName,
BackendRecoveryInfo  backendRecoveryInfo
throws SQLException [package]
 

Store the state of the backend in the recovery log

Parameters:
databaseName the virtual database name
backendRecoveryInfo the backend recovery information to store
Exceptions:
SQLException if cannot proceed

void org.objectweb.cjdbc.common.jmx.mbeans.AbstractRecoveryLogMBean.storeCheckpoint String  checkpointName,
long  requestId
throws SQLException [package]
 

Store a Checkpoint using the given request id.

Parameters:
checkpointName Name of the checkpoint
requestId request identifier
Exceptions:
SQLException if an error occurs

void org.objectweb.cjdbc.common.jmx.mbeans.AbstractRecoveryLogMBean.storeCheckpoint String  checkpointName  )  throws SQLException [package]
 

Store a Checkpoint using the current log state.

Parameters:
checkpointName Name of the checkpoint
Exceptions:
SQLException if an error occurs


The documentation for this interface was generated from the following file:
Generated on Mon Apr 11 22:01:42 2005 for C-JDBC by  doxygen 1.3.9.1