Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*-
   * See the file LICENSE for redistribution information.
   *
   * Copyright (c) 2002, 2013 Oracle and/or its affiliates.  All rights reserved.
   *
   */
  
  package com.sleepycat.je;
  
Specifies the attributes of a verification operation.
 
 public class VerifyConfig implements Cloneable {
 
     /*
      * For internal use, to allow null as a valid value for the config
      * parameter.
      */
     public static final VerifyConfig DEFAULT = new VerifyConfig();
 
     private boolean propagateExceptions = false;
     private boolean aggressive = false;
     private boolean printInfo = false;
     private PrintStream showProgressStream = null;
     private int showProgressInterval = 0;

    
An instance created using the default constructor is initialized with the system's default settings.
 
     public VerifyConfig() {
     }

    
Configures Environment.verify and Database.verify to propagate exceptions found during verification.

By default this is false and exception information is printed to System.out for notification but does not stop the verification activity, which continues on for as long as possible.

Parameters:
propagate If set to true, configure Environment.verify(com.sleepycat.je.VerifyConfig,java.io.PrintStream) and Database.verify(com.sleepycat.je.VerifyConfig) to propagate exceptions found during verification.
Returns:
this
 
     public VerifyConfig setPropagateExceptions(boolean propagate) {
         setPropagateExceptionsVoid(propagate);
         return this;
     }
    
    

Hidden:
The void return setter for use by Bean editors.
 
     public void setPropagateExceptionsVoid(boolean propagate) {
          = propagate;
     }

    
Returns true if the Environment.verify and Database.verify are configured to propagate exceptions found during verification.

This method may be called at any time during the life of the application.

Returns:
true if the Environment.verify and Database.verify are configured to propagate exceptions found during verification.
 
     public boolean getPropagateExceptions() {
         return ;
     }

    
Configures Environment.verify and Database.verify to perform fine granularity consistency checking that includes verifying in memory constructs.

This level of checking should only be performed while the database environment is quiescent.

By default this is false.

Parameters:
aggressive If set to true, configure Environment.verify(com.sleepycat.je.VerifyConfig,java.io.PrintStream) and Database.verify(com.sleepycat.je.VerifyConfig) to perform fine granularity consistency checking that includes verifying in memory constructs.
Returns:
this
    public VerifyConfig setAggressive(boolean aggressive) {
        setAggressiveVoid(aggressive);
        return this;
    }
    
    

Hidden:
The void return setter for use by Bean editors.
    public void setAggressiveVoid(boolean aggressive) {
        this. = aggressive;
    }

    
Returns true if the Environment.verify and Database.verify are configured to perform fine granularity consistency checking that includes verifying in memory constructs.

This method may be called at any time during the life of the application.

Returns:
true if the Environment.verify and Database.verify are configured to perform fine granularity consistency checking that includes verifying in memory constructs.
    public boolean getAggressive() {
        return ;
    }

    
Configures Environment.verify and Database.verify to print basic verification information to System.out.

By default this is false.

Parameters:
printInfo If set to true, configure Environment.verify(com.sleepycat.je.VerifyConfig,java.io.PrintStream) and Database.verify(com.sleepycat.je.VerifyConfig) to print basic verification information to System.out.
Returns:
this
    public VerifyConfig setPrintInfo(boolean printInfo) {
        setPrintInfoVoid(printInfo);
        return this;
    }
    
    

Hidden:
The void return setter for use by Bean editors.
    public void setPrintInfoVoid(boolean printInfo) {
        this. = printInfo;
    }

    
Returns true if the Environment.verify and Database.verify are configured to print basic verification information to System.out.

This method may be called at any time during the life of the application.

Returns:
true if the Environment.verify and Database.verify are configured to print basic verification information to System.out.
    public boolean getPrintInfo() {
        return ;
    }

    
Configures the verify operation to display progress to the PrintStream argument. The accumulated statistics will be displayed every N records, where N is the value of showProgressInterval.

Returns:
this
    public VerifyConfig setShowProgressStream(PrintStream showProgressStream) {
        setShowProgressStreamVoid(showProgressStream);
        return this;
    }
    
    

Hidden:
The void return setter for use by Bean editors.
    public void setShowProgressStreamVoid(PrintStream showProgressStream) {
        this. = showProgressStream;
    }

    
Returns the PrintStream on which the progress messages will be displayed during long running verify operations.
        return ;
    }

    
When the verify operation is configured to display progress the showProgressInterval is the number of LNs between each progress report.

Returns:
this
    public VerifyConfig setShowProgressInterval(int showProgressInterval) {
        setShowProgressIntervalVoid(showProgressInterval);
        return this;
    }
    
    

Hidden:
The void return setter for use by Bean editors.
    public void setShowProgressIntervalVoid(int showProgressInterval) {
        this. = showProgressInterval;
    }

    
Returns the showProgressInterval value, if set.
    public int getShowProgressInterval() {
        return ;
    }

    
Returns a copy of this configuration object.
    @Override
    public VerifyConfig clone() {
        try {
            return (VerifyConfigsuper.clone();
        } catch (CloneNotSupportedException willNeverOccur) {
            return null;
        }
    }

    
Returns the values for each configuration attribute.

Returns:
the values for each configuration attribute.
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("propagateExceptions=").append();
        return sb.toString();
    }
New to GrepCode? Check out our FAQ X