Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*-
   * See the file LICENSE for redistribution information.
   *
   * Copyright (c) 2004, 2010 Oracle and/or its affiliates.  All rights reserved.
   *
   */
  
  package com.sleepycat.je.rep.util.ldiff;
  
 public class LDiffConfig {
     private static final int DEFAULT_BLOCK_SIZE = 1 << 13; // 8k
     private static final int DEFAULT_MAX_ERRORS = 0;
 
     private int maxErrors = ;
     private boolean diffAnalysis = false;
     private int blockSize = ;
     private boolean waitIfBusy = false;
     private int maxConnectionAttempts = 1;
     private int reconnectDelay = 0;
     public boolean verbose = false;

    
Return the maximum number of errors to analyze before ending the LDiff operation.

Returns:
the maximum number of errors to analyze before throwing MismatchException.
 
     public int getMaxErrors() {
         return ;
     }

    
Configure the maximum number of errors to be analyzed before ending the LDiff operation. A value of zero forces the algorithm to run to completion. The default value is 0.

Parameters:
max the maximum number of errors to be analyzed before ending the LDiff operation.
 
     public LDiffConfig setMaxErrors(int max) {
         setMaxErrorsVoid(max);
         return this;
     }
    
    

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

    
Return whether an LDiff object will provide detailed analysis about diff failures.

Returns:
true if an LDiff object will provide detailed analysis about diff failures.
 
     public boolean getDiffAnalysis() {
         return ;
     }

    
Configure an LDiff object to provide detailed analysis about diff failures. The default value is false.

Parameters:
analysis if true, provides detailed analysis about the reason why the diff failed. The detailed analysis can be time consuming.
 
     public LDiffConfig setDiffAnalysis(boolean analysis) {
         setDiffAnalysisVoid(analysis);
         return this;
     }
    
    

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

    
Return the number of records to include in each block analyzed by the LDiff operation.

Returns:
the number of records to include in each block analyzed by the LDiff operation.
 
     public int getBlockSize() {
         return ;
     }

    
Configure the number of records to include in each block analyzed by the LDiff operation. The default is 10240.

Parameters:
size the number of records to include in each block analyzed by the LDiff operation.
    public LDiffConfig setBlockSize(int size) {
        setBlockSizeVoid(size);
        return this;
    }
    
    

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

    
Return whether or not the operation will wait for the remote service to become available if the remote service is busy.

Returns:
true if the LDiff operation will block until the remote service becomes available
    public boolean getWaitIfBusy() {
        return ;
    }

    
Return the maximum number of times the operation will attempt to connect to the remote service before aborting. A value of -1 means the operation will never abort.

Returns:
the maximum number of times the operation will attempt to connect to the remote service before aborting.
    public int getMaxConnectionAttempts() {
        return ;
    }

    
Return the delay, in milliseconds, between reconnect attempts.

Returns:
the amount of time, in milliseconds, between reconnection attempts
    public int getReconnectDelay() {
        return ;
    }

    
Configure whether or not the operation should wait for the remote service to become available, if the remote service is busy.

Parameters:
wait if true, the LDiff operation will block until the remote node is available
maxAttempts the number of times to attempt connecting to the service before aborting. Pass -1 to never abort.
delay the number of milliseconds to wait between connection attempts.
    public LDiffConfig setWaitIfBusy(boolean waitint maxAttemptsint delay) {
         = wait;
         = maxAttempts;
         = delay;
        return this;
    }
    
    

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

Hidden:
For the completement of setter methods.
    public LDiffConfig setMaxConnectionAttempts(int maxAttempts) {
        setMaxConnectionAttemptsVoid(maxAttempts);
        return this;
    }
    
    

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

Hidden:
For the completement of setter methods.
    public LDiffConfig setReconnectDelay(int delay) {
        setReconnectDelayVoid(delay);
        return this;
    }
    
    

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

    
Return whether or not the operation will output information on its success or failure.

Returns:
true if the operation will output information
    public boolean getVerbose() {
        return ;
    }

    
Configure whether or not the operation will output information on its success or failure.

Parameters:
verbose if true, the LDiff operation will output information as it compares databases
    public LDiffConfig setVerbose(boolean verbose) {
        this. = verbose;
        return this;
    }
    
    

Hidden:
The void return setter for use by Bean editors.
    public void setVerboseVoid(boolean verbose) {
        this. = verbose;
    }
New to GrepCode? Check out our FAQ X