com.sleepycat.je.rep.util.ldiff
Class LDiffConfig

java.lang.Object
  extended by com.sleepycat.je.rep.util.ldiff.LDiffConfig

public class LDiffConfig
extends Object


Field Summary
 boolean verbose
           
 
Constructor Summary
LDiffConfig()
           
 
Method Summary
 int getBlockSize()
          Return the number of records to include in each block analyzed by the LDiff operation.
 boolean getDiffAnalysis()
          Return whether an LDiff object will provide detailed analysis about diff failures.
 int getMaxConnectionAttempts()
          Return the maximum number of times the operation will attempt to connect to the remote service before aborting.
 int getMaxErrors()
          Return the maximum number of errors to analyze before ending the LDiff operation.
 int getReconnectDelay()
          Return the delay, in milliseconds, between reconnect attempts.
 boolean getVerbose()
          Return whether or not the operation will output information on its success or failure.
 boolean getWaitIfBusy()
          Return whether or not the operation will wait for the remote service to become available if the remote service is busy.
 LDiffConfig setBlockSize(int size)
          Configure the number of records to include in each block analyzed by the LDiff operation.
 void setBlockSizeVoid(int size)
           
 LDiffConfig setDiffAnalysis(boolean analysis)
          Configure an LDiff object to provide detailed analysis about diff failures.
 void setDiffAnalysisVoid(boolean analysis)
           
 LDiffConfig setMaxConnectionAttempts(int maxAttempts)
           
 void setMaxConnectionAttemptsVoid(int maxAttempts)
           
 LDiffConfig setMaxErrors(int max)
          Configure the maximum number of errors to be analyzed before ending the LDiff operation.
 void setMaxErrorsVoid(int max)
           
 LDiffConfig setReconnectDelay(int delay)
           
 void setReconnectDelayVoid(int delay)
           
 LDiffConfig setVerbose(boolean verbose)
          Configure whether or not the operation will output information on its success or failure.
 void setVerboseVoid(boolean verbose)
           
 LDiffConfig setWaitIfBusy(boolean wait, int maxAttempts, int delay)
          Configure whether or not the operation should wait for the remote service to become available, if the remote service is busy.
 void setWaitIfBusyVoid(boolean wait)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

verbose

public boolean verbose
Constructor Detail

LDiffConfig

public LDiffConfig()
Method Detail

getMaxErrors

public int getMaxErrors()
Return the maximum number of errors to analyze before ending the LDiff operation.

Returns:
the maximum number of errors to analyze before throwing MismatchException.

setMaxErrors

public LDiffConfig setMaxErrors(int max)
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.

setMaxErrorsVoid

public void setMaxErrorsVoid(int max)

getDiffAnalysis

public boolean getDiffAnalysis()
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.

setDiffAnalysis

public LDiffConfig setDiffAnalysis(boolean analysis)
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.

setDiffAnalysisVoid

public void setDiffAnalysisVoid(boolean analysis)

getBlockSize

public int getBlockSize()
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.

setBlockSize

public LDiffConfig setBlockSize(int size)
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.

setBlockSizeVoid

public void setBlockSizeVoid(int size)

getWaitIfBusy

public boolean getWaitIfBusy()
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

getMaxConnectionAttempts

public int getMaxConnectionAttempts()
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.

getReconnectDelay

public int getReconnectDelay()
Return the delay, in milliseconds, between reconnect attempts.

Returns:
the amount of time, in milliseconds, between reconnection attempts

setWaitIfBusy

public LDiffConfig setWaitIfBusy(boolean wait,
                                 int maxAttempts,
                                 int delay)
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.

setWaitIfBusyVoid

public void setWaitIfBusyVoid(boolean wait)

setMaxConnectionAttempts

public LDiffConfig setMaxConnectionAttempts(int maxAttempts)

setMaxConnectionAttemptsVoid

public void setMaxConnectionAttemptsVoid(int maxAttempts)

setReconnectDelay

public LDiffConfig setReconnectDelay(int delay)

setReconnectDelayVoid

public void setReconnectDelayVoid(int delay)

getVerbose

public boolean getVerbose()
Return whether or not the operation will output information on its success or failure.

Returns:
true if the operation will output information

setVerbose

public LDiffConfig setVerbose(boolean verbose)
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

setVerboseVoid

public void setVerboseVoid(boolean verbose)


Copyright (c) 2004-2012 Oracle. All rights reserved.