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.
 void setBlockSize(int size)
          Configure the number of records to include in each block analyzed by the LDiff operation.
 void setDiffAnalysis(boolean analysis)
          Configure an LDiff object to provide detailed analysis about diff failures.
 void setMaxErrors(int max)
          Configure the maximum number of errors to be analyzed before ending the LDiff operation.
 void setVerbose(boolean verbose)
          Configure whether or not the operation will output information on its success or failure.
 void 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.
 
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 void 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.

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 void 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.

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 void 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.

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 void 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.

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 void 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


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