org.objectweb.cjdbc.controller.recoverylog
Class BackendRecoveryInfo

java.lang.Object
  extended byorg.objectweb.cjdbc.controller.recoverylog.BackendRecoveryInfo

public final class BackendRecoveryInfo
extends java.lang.Object

A instance of this class gives information on a specific backend state from the recovery log. For a backend, we have its name, the virtual database that owns it, the lastKnownCheckpoint,and the state of the backend ().

Version:
1.0
Author:
Nicolas Modrzyk , Emmanuel Cecchet

Field Summary
private  java.lang.String backendName
           
private  int backendState
          State is defined in BackendState
private  java.lang.String checkpoint
           
private  java.lang.String virtualDatabase
           
 
Constructor Summary
BackendRecoveryInfo(java.lang.String backendName, java.lang.String lastCheckpoint, int backendState, java.lang.String virtualDatabase)
          Creates a new BackendRecoveryInfo object
 
Method Summary
 java.lang.String getBackendName()
          Returns the backendName value.
 int getBackendState()
          Returns the backend state as defined in BackendState.
 java.lang.String getCheckpoint()
          Returns the lastCheckpoint value.
 java.lang.String getVirtualDatabase()
          Returns the virtualDatabase value.
 void setBackendName(java.lang.String backendName)
          Sets the backendName value.
 void setBackendState(int backendState)
          Sets the backend state value.
 void setCheckpoint(java.lang.String lastCheckpoint)
          Sets the lastCheckpoint value.
 void setVirtualDatabase(java.lang.String virtualDatabase)
          Sets the virtualDatabase value.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

backendName

private java.lang.String backendName

checkpoint

private java.lang.String checkpoint

backendState

private int backendState
State is defined in BackendState


virtualDatabase

private java.lang.String virtualDatabase
Constructor Detail

BackendRecoveryInfo

public BackendRecoveryInfo(java.lang.String backendName,
                           java.lang.String lastCheckpoint,
                           int backendState,
                           java.lang.String virtualDatabase)
Creates a new BackendRecoveryInfo object

Parameters:
backendName - backend name
lastCheckpoint - last known checkpoint name
backendState - backend state as defined in BackendState
virtualDatabase - virtual database name
Method Detail

getBackendName

public java.lang.String getBackendName()
Returns the backendName value.

Returns:
Returns the backendName.

setBackendName

public void setBackendName(java.lang.String backendName)
Sets the backendName value.

Parameters:
backendName - The backendName to set.

getBackendState

public int getBackendState()
Returns the backend state as defined in BackendState.

Returns:
Returns the backend state.

setBackendState

public void setBackendState(int backendState)
Sets the backend state value. The value must be defined in BackendState

Parameters:
backendState - The backend state to set.

getCheckpoint

public java.lang.String getCheckpoint()
Returns the lastCheckpoint value.

Returns:
Returns the lastCheckpoint.

setCheckpoint

public void setCheckpoint(java.lang.String lastCheckpoint)
Sets the lastCheckpoint value.

Parameters:
lastCheckpoint - The lastCheckpoint to set.

getVirtualDatabase

public java.lang.String getVirtualDatabase()
Returns the virtualDatabase value.

Returns:
Returns the virtualDatabase.

setVirtualDatabase

public void setVirtualDatabase(java.lang.String virtualDatabase)
Sets the virtualDatabase value.

Parameters:
virtualDatabase - The virtualDatabase to set.

toString

public java.lang.String toString()
See Also:
Object.toString()


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.