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

Field Summary
private  java.lang.String backendName
           
private  int backendState
           
private  java.lang.String lastCheckpoint
           
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 backendState value.
 java.lang.String getLastCheckpoint()
          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 backendState value.
 void setLastCheckpoint(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

lastCheckpoint

private java.lang.String lastCheckpoint

backendState

private int 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
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 backendState value.

Returns:
Returns the backendState.

setBackendState

public void setBackendState(int backendState)
Sets the backendState value.

Parameters:
backendState - The backendState to set.

getLastCheckpoint

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

Returns:
Returns the lastCheckpoint.

setLastCheckpoint

public void setLastCheckpoint(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.