/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2009, 2015 Oracle and/or its affiliates. All rights reserved.
*
*/
using System;
using System.Collections.Generic;
using System.Text;
namespace BerkeleyDB {
///
/// A class representing configuration parameters for log verification.
///
public class LogVerifyConfig {
private String envhome;
///
/// The home directory of the Berkeley DB environment to be used
/// internally during log verification.
///
public String EnvHome {
get { return envhome; }
set {
envhome = value;
}
}
private uint cachesz;
///
/// The cache size for the internal database environment.
///
public uint CacheSize {
get { return cachesz; }
set {
cachesz = value;
}
}
private String dbfile;
///
/// The database file name whose logs are to be verified.
///
public String DbFile {
get { return dbfile; }
set {
dbfile = value;
}
}
private String dbname;
///
/// The database name whose logs are to be verified.
///
public String DbName {
get { return dbname; }
set {
dbname = value;
}
}
private LSN startlsn;
///
/// The starting lsn to verify.
///
public LSN StartLsn {
get { return startlsn; }
set {
startlsn.LogFileNumber = value.LogFileNumber;
startlsn.Offset = value.Offset;
}
}
private LSN endlsn;
///
/// The ending lsn to verify.
///
public LSN EndLsn {
get { return endlsn; }
set {
endlsn.LogFileNumber = value.LogFileNumber;
endlsn.Offset = value.Offset;
}
}
private DateTime stime;
///
/// The starting time to verify.
///
public DateTime StartTime {
get { return stime; }
set {
stime = value;
}
}
private DateTime etime;
///
/// The ending time to verify.
///
public DateTime EndTime {
get { return etime; }
set {
etime = value;
}
}
private bool caf;
///
/// Whether continue verifying after a failed check.
///
public bool ContinueAfterFail {
get { return caf; }
set {
caf = value;
}
}
private bool verbose;
///
/// Whether output verbose information.
///
public bool Verbose {
get { return verbose; }
set {
verbose = value;
}
}
///
/// Instantiate a new LogVerifyConfig object, with the default
/// configuration settings.
///
public LogVerifyConfig() {
envhome = null;
dbfile = null;
dbname = null;
caf = true;
verbose = false;
startlsn = new LSN(0, 0);
endlsn = new LSN(0, 0);
cachesz = 0;
}
}
}