com.myJava.configuration
Class FrameworkConfiguration

java.lang.Object
  extended by com.myJava.configuration.FrameworkConfiguration
Direct Known Subclasses:
ArecaTechnicalConfiguration

public class FrameworkConfiguration
extends java.lang.Object

Framework configuration keys and default values.

Author:
Olivier PETRUCCI

Areca Build ID : 7299034069467778562

Field Summary
static int DEF_DEFAULT_LOG_HISTORY
           
static boolean DEF_DELTA_DEBUG
           
static int DEF_DELTA_HASHMAP_SIZE
           
static int DEF_DELTA_LINKEDLIST_BUFFER_SIZE
           
static int DEF_DELTA_QUICKHASH_MODULUS
           
static int DEF_DELTA_QUICKHASH_MULTIPLIER
           
static java.lang.String DEF_ENCRYPTION_KG_ALG
           
static int DEF_ENCRYPTION_KG_ITER
           
static java.lang.String DEF_ENCRYPTION_KG_SALT
           
static java.lang.String DEF_ENCRYPTION_KG_SALT_ENC
           
static java.lang.String DEF_FILE_CONTENT_HASH_ALGORITHM
           
static java.lang.String DEF_FILESYSTEM_ACCESSOR
           
static int DEF_FORCE_FILEPATH_LENGTH_CHECK
           
static int DEF_FS_BUFFER_SIZE
           
static boolean DEF_FS_CACHE_DEBUG
           
static int DEF_FS_MAX_MOUNT_POINTS
           
static boolean DEF_FS_USE_BUFFER
           
static int DEF_FT_BUFFER_SIZE
           
static int DEF_FT_DELAY
           
static int DEF_FTP_CACHE_SIZE
           
static boolean DEF_FTP_DEBUG
           
static int DEF_FTP_MAX_PROXIES
           
static long DEF_FTP_NOOP_DELAY
           
static boolean DEF_FTP_USE_CACHE
           
static int DEF_HASH_CACHE_SIZE
           
static boolean DEF_HASH_USE_CACHE
           
static int DEF_LOG_LEVEL
           
static long DEF_MAX_FILEPATH_LENGTH
           
static java.lang.String[] DEF_OS_BROWSERS
           
static java.lang.String[] DEF_SSE_PROTOCOLS
           
static java.lang.String DEF_TMP_DIRECTORY
           
static java.lang.String[] DEF_WRITABLE_DIRECTORIES
           
static int DEF_ZIP_BUFFER
           
static boolean DEF_ZIP_ENTRY_CHECK_ENABLE
           
static int DEF_ZIP_MV_DIGITS
           
static java.lang.String KEY_DEFAULT_LOG_HISTORY
          Number of days the log files are kept before being deleted
static java.lang.String KEY_DELTA_DEBUG
          Activate verbose mode for filediff tools
static java.lang.String KEY_DELTA_HASHMAP_SIZE
          Size of the hashmap used by the "filediff" classes
static java.lang.String KEY_DELTA_LINKEDLIST_BUFFER_SIZE
          Size of the buffer used by the "filediff" classes
static java.lang.String KEY_DELTA_QUICKHASH_MODULUS
          Modulus used by the "filediff" classes to product the quickHash value
static java.lang.String KEY_DELTA_QUICKHASH_MULTIPLIER
          Multiplier used by the "filediff" classes to product the quickHash value
static java.lang.String KEY_ENCRYPTION_KG_ALG
          Algorithm used during the key derivation process
static java.lang.String KEY_ENCRYPTION_KG_ITER
          Number of iterations used during the key derivation process
static java.lang.String KEY_ENCRYPTION_KG_SALT
          Static salt added during the key derivation process
static java.lang.String KEY_ENCRYPTION_KG_SALT_ENC
          Static salt encoding
static java.lang.String KEY_FILE_CONTENT_HASH_ALGORITHM
          Algorithm that is used to generate file's hashcode
static java.lang.String KEY_FILESYSTEM_ACCESSOR
          Filesystem accessor used to read/write file attributes (permissions, owner, group, ACL, extended attributes)
The current accessors are :
- com.myJava.file.metadata.windows.WindowsMetaDataAccessor on Windows
- com.myJava.file.metadata.posix.basic.DefaultMetaDataAccessor on Posix systems (only handles basic attributes, permissions, owner and group)
- com.myJava.file.metadata.posix.jni.JNIMetaDataAccessor : This advanced accessor uses JNI and native C code to access permissions, owner, group, ACL and extended attributes.
static java.lang.String KEY_FORCE_FILEPATH_LENGTH_CHECK
          Tells whether file path length must be checked and explicit errors raised.
static java.lang.String KEY_FS_BUFFER_SIZE
          I/O buffer size
static java.lang.String KEY_FS_CACHE_DEBUG
          Verbose cache access
static java.lang.String KEY_FS_MAX_MOUNT_POINTS
          Maximum number of cached mount points
static java.lang.String KEY_FS_USE_BUFFER
          Always use a buffered for I/O
static java.lang.String KEY_FT_BUFFER_SIZE
          Buffer size for the filetool class
static java.lang.String KEY_FT_DELAY
          Tchnical delay - used by the filetool class
static java.lang.String KEY_FTP_CACHE_SIZE
          Local cache size for ftp files' data
static java.lang.String KEY_FTP_DEBUG
          Activate FTP verbose mode
static java.lang.String KEY_FTP_MAX_PROXIES
          Maximum number of FTP connections on a remote server
static java.lang.String KEY_FTP_NOOP_DELAY
          Number of ms before Areca will send a "noop" instruction to the ftp server
static java.lang.String KEY_FTP_USE_CACHE
          Use (or not) a local cache for ftp files' data
static java.lang.String KEY_HASH_CACHE_SIZE
          Used by the HashFileSystemDriver class
static java.lang.String KEY_HASH_USE_CACHE
          Used by the HashFileSystemDriver class
static java.lang.String KEY_LOG_LEVEL
          Log level (1=error; 8=finest)
static java.lang.String KEY_MAX_FILEPATH_LENGTH
          Maximum file path length
static java.lang.String KEY_OS_BROWSERS
          Browser list (used to display the online help)
static java.lang.String KEY_SSE_PROTOCOLS
          Available SSE protocols
static java.lang.String KEY_TMP_DIRECTORY
          Temporary directory (defaults to the platform's standard temporary directory)
static java.lang.String KEY_WRITABLE_DIRECTORIES
          List of directories on which Areca is allowed to write.
static java.lang.String KEY_ZIP_BUFFER
          Buffer size used for zip classes
static java.lang.String KEY_ZIP_ENTRY_CHECK_ENABLE
          Activate or not zip CRC checks
static java.lang.String KEY_ZIP_MV_DIGITS
          Number of digits for multivolume zip files
 
Constructor Summary
FrameworkConfiguration()
           
FrameworkConfiguration(java.lang.String url)
           
 
Method Summary
 java.util.Properties getAll()
           
 int getDefaultLogHistory()
           
static java.util.Properties getDefaults(java.lang.Class cls)
           
 int getDeltaHashMapSize()
           
 int getDeltaLinkedListBufferSize()
           
 int getDeltaQuickHashModulus()
           
 int getDeltaQuickHashMultiplier()
           
 java.lang.String getEncryptionKGAlg()
           
 int getEncryptionKGIters()
           
 java.lang.String getEncryptionKGSalt()
           
 java.lang.String getEncryptionKGSaltEncoding()
           
 java.lang.String getFileHashAlgorithm()
           
 java.lang.String getFileSystemAccessorImpl()
           
 int getFileSystemBufferSize()
           
 int getFileToolBufferSize()
           
 int getFileToolDelay()
           
 int getForceMaxFilePathCheck()
           
 int getFTPCacheSize()
           
 long getFTPNoopDelay()
           
 int getHashCacheSize()
           
static FrameworkConfiguration getInstance()
           
 java.util.Map getJavaProperties()
           
 int getLogLevel()
           
 int getMaxCachedMountPoints()
           
 long getMaxFilePath()
           
 int getMaxFTPProxies()
           
 java.lang.String[] getOSBrowsers()
           
 java.util.Properties getProperties()
           
protected  boolean getProperty(java.lang.String key, boolean defaultValue)
           
protected  double getProperty(java.lang.String key, double defaultValue)
           
protected  int getProperty(java.lang.String key, int defaultValue)
           
protected  long getProperty(java.lang.String key, long defaultValue)
           
protected  java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
           
protected  java.lang.String[] getProperty(java.lang.String key, java.lang.String[] defaultValue)
           
 java.lang.String[] getSSEProtocols()
           
 java.lang.String getTemporaryDirectory()
           
 java.lang.String[] getWritableDirectories()
           
 int getZipBufferSize()
           
 int getZipMvDigits()
           
protected  void init()
           
 boolean isDeltaDebugMode()
           
 boolean isFSCacheDebug()
           
 boolean isFTPDebugMode()
           
 boolean isHashCacheMode()
           
 boolean isRemoteCacheMode()
           
 boolean isZipEntryCheckEnabled()
           
static void setInstance(FrameworkConfiguration i)
           
 java.lang.String toFullString(java.lang.Class cls)
           
 java.lang.String toString()
           
 boolean useFileSystemBuffer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

KEY_ENCRYPTION_KG_ITER

public static java.lang.String KEY_ENCRYPTION_KG_ITER
Number of iterations used during the key derivation process


KEY_ENCRYPTION_KG_SALT

public static java.lang.String KEY_ENCRYPTION_KG_SALT
Static salt added during the key derivation process


KEY_ENCRYPTION_KG_SALT_ENC

public static java.lang.String KEY_ENCRYPTION_KG_SALT_ENC
Static salt encoding


KEY_ENCRYPTION_KG_ALG

public static java.lang.String KEY_ENCRYPTION_KG_ALG
Algorithm used during the key derivation process


KEY_DELTA_DEBUG

public static java.lang.String KEY_DELTA_DEBUG
Activate verbose mode for filediff tools


KEY_FTP_MAX_PROXIES

public static java.lang.String KEY_FTP_MAX_PROXIES
Maximum number of FTP connections on a remote server


KEY_FTP_DEBUG

public static java.lang.String KEY_FTP_DEBUG
Activate FTP verbose mode


KEY_FT_DELAY

public static java.lang.String KEY_FT_DELAY
Tchnical delay - used by the filetool class


KEY_FT_BUFFER_SIZE

public static java.lang.String KEY_FT_BUFFER_SIZE
Buffer size for the filetool class


KEY_FTP_NOOP_DELAY

public static java.lang.String KEY_FTP_NOOP_DELAY
Number of ms before Areca will send a "noop" instruction to the ftp server


KEY_FTP_CACHE_SIZE

public static java.lang.String KEY_FTP_CACHE_SIZE
Local cache size for ftp files' data


KEY_FTP_USE_CACHE

public static java.lang.String KEY_FTP_USE_CACHE
Use (or not) a local cache for ftp files' data


KEY_HASH_CACHE_SIZE

public static java.lang.String KEY_HASH_CACHE_SIZE
Used by the HashFileSystemDriver class


KEY_HASH_USE_CACHE

public static java.lang.String KEY_HASH_USE_CACHE
Used by the HashFileSystemDriver class


KEY_OS_BROWSERS

public static java.lang.String KEY_OS_BROWSERS
Browser list (used to display the online help)


KEY_SSE_PROTOCOLS

public static java.lang.String KEY_SSE_PROTOCOLS
Available SSE protocols


KEY_ZIP_BUFFER

public static java.lang.String KEY_ZIP_BUFFER
Buffer size used for zip classes


KEY_ZIP_MV_DIGITS

public static java.lang.String KEY_ZIP_MV_DIGITS
Number of digits for multivolume zip files


KEY_LOG_LEVEL

public static java.lang.String KEY_LOG_LEVEL
Log level (1=error; 8=finest)


KEY_FS_USE_BUFFER

public static java.lang.String KEY_FS_USE_BUFFER
Always use a buffered for I/O


KEY_FS_BUFFER_SIZE

public static java.lang.String KEY_FS_BUFFER_SIZE
I/O buffer size


KEY_FS_CACHE_DEBUG

public static java.lang.String KEY_FS_CACHE_DEBUG
Verbose cache access


KEY_ZIP_ENTRY_CHECK_ENABLE

public static java.lang.String KEY_ZIP_ENTRY_CHECK_ENABLE
Activate or not zip CRC checks


KEY_MAX_FILEPATH_LENGTH

public static java.lang.String KEY_MAX_FILEPATH_LENGTH
Maximum file path length


KEY_FORCE_FILEPATH_LENGTH_CHECK

public static java.lang.String KEY_FORCE_FILEPATH_LENGTH_CHECK
Tells whether file path length must be checked and explicit errors raised.
If value = -1 : Areca will check on windows and ignore on other operating systems
If value = 0 : Areca won't check, regardless to the operating system
If value = 1 : Areca will check, regardless to the operating system


KEY_DEFAULT_LOG_HISTORY

public static java.lang.String KEY_DEFAULT_LOG_HISTORY
Number of days the log files are kept before being deleted


KEY_WRITABLE_DIRECTORIES

public static java.lang.String KEY_WRITABLE_DIRECTORIES
List of directories on which Areca is allowed to write.
If left empty, Areca will be able to write anywhere


KEY_DELTA_LINKEDLIST_BUFFER_SIZE

public static java.lang.String KEY_DELTA_LINKEDLIST_BUFFER_SIZE
Size of the buffer used by the "filediff" classes


KEY_DELTA_HASHMAP_SIZE

public static java.lang.String KEY_DELTA_HASHMAP_SIZE
Size of the hashmap used by the "filediff" classes


KEY_DELTA_QUICKHASH_MULTIPLIER

public static java.lang.String KEY_DELTA_QUICKHASH_MULTIPLIER
Multiplier used by the "filediff" classes to product the quickHash value


KEY_DELTA_QUICKHASH_MODULUS

public static java.lang.String KEY_DELTA_QUICKHASH_MODULUS
Modulus used by the "filediff" classes to product the quickHash value


KEY_FILESYSTEM_ACCESSOR

public static java.lang.String KEY_FILESYSTEM_ACCESSOR
Filesystem accessor used to read/write file attributes (permissions, owner, group, ACL, extended attributes)
The current accessors are :
- com.myJava.file.metadata.windows.WindowsMetaDataAccessor on Windows
- com.myJava.file.metadata.posix.basic.DefaultMetaDataAccessor on Posix systems (only handles basic attributes, permissions, owner and group)
- com.myJava.file.metadata.posix.jni.JNIMetaDataAccessor : This advanced accessor uses JNI and native C code to access permissions, owner, group, ACL and extended attributes. It is only available for the systems the C code has been compiled for. Check Areca's website.


KEY_FILE_CONTENT_HASH_ALGORITHM

public static java.lang.String KEY_FILE_CONTENT_HASH_ALGORITHM
Algorithm that is used to generate file's hashcode


KEY_FS_MAX_MOUNT_POINTS

public static java.lang.String KEY_FS_MAX_MOUNT_POINTS
Maximum number of cached mount points


KEY_TMP_DIRECTORY

public static java.lang.String KEY_TMP_DIRECTORY
Temporary directory (defaults to the platform's standard temporary directory)


DEF_ENCRYPTION_KG_ITER

public static int DEF_ENCRYPTION_KG_ITER

DEF_ENCRYPTION_KG_SALT

public static java.lang.String DEF_ENCRYPTION_KG_SALT

DEF_ENCRYPTION_KG_SALT_ENC

public static java.lang.String DEF_ENCRYPTION_KG_SALT_ENC

DEF_ENCRYPTION_KG_ALG

public static java.lang.String DEF_ENCRYPTION_KG_ALG

DEF_DELTA_DEBUG

public static boolean DEF_DELTA_DEBUG

DEF_FTP_MAX_PROXIES

public static int DEF_FTP_MAX_PROXIES

DEF_FTP_NOOP_DELAY

public static long DEF_FTP_NOOP_DELAY

DEF_FTP_DEBUG

public static boolean DEF_FTP_DEBUG

DEF_FT_DELAY

public static int DEF_FT_DELAY

DEF_FT_BUFFER_SIZE

public static int DEF_FT_BUFFER_SIZE

DEF_FTP_CACHE_SIZE

public static int DEF_FTP_CACHE_SIZE

DEF_FTP_USE_CACHE

public static boolean DEF_FTP_USE_CACHE

DEF_HASH_CACHE_SIZE

public static int DEF_HASH_CACHE_SIZE

DEF_HASH_USE_CACHE

public static boolean DEF_HASH_USE_CACHE

DEF_OS_BROWSERS

public static java.lang.String[] DEF_OS_BROWSERS

DEF_SSE_PROTOCOLS

public static java.lang.String[] DEF_SSE_PROTOCOLS

DEF_ZIP_BUFFER

public static int DEF_ZIP_BUFFER

DEF_ZIP_MV_DIGITS

public static int DEF_ZIP_MV_DIGITS

DEF_LOG_LEVEL

public static int DEF_LOG_LEVEL

DEF_FS_USE_BUFFER

public static boolean DEF_FS_USE_BUFFER

DEF_FS_BUFFER_SIZE

public static int DEF_FS_BUFFER_SIZE

DEF_FS_CACHE_DEBUG

public static boolean DEF_FS_CACHE_DEBUG

DEF_ZIP_ENTRY_CHECK_ENABLE

public static boolean DEF_ZIP_ENTRY_CHECK_ENABLE

DEF_MAX_FILEPATH_LENGTH

public static long DEF_MAX_FILEPATH_LENGTH

DEF_FORCE_FILEPATH_LENGTH_CHECK

public static int DEF_FORCE_FILEPATH_LENGTH_CHECK

DEF_DEFAULT_LOG_HISTORY

public static int DEF_DEFAULT_LOG_HISTORY

DEF_WRITABLE_DIRECTORIES

public static java.lang.String[] DEF_WRITABLE_DIRECTORIES

DEF_DELTA_LINKEDLIST_BUFFER_SIZE

public static int DEF_DELTA_LINKEDLIST_BUFFER_SIZE

DEF_DELTA_HASHMAP_SIZE

public static int DEF_DELTA_HASHMAP_SIZE

DEF_DELTA_QUICKHASH_MULTIPLIER

public static int DEF_DELTA_QUICKHASH_MULTIPLIER

DEF_DELTA_QUICKHASH_MODULUS

public static int DEF_DELTA_QUICKHASH_MODULUS

DEF_FILESYSTEM_ACCESSOR

public static java.lang.String DEF_FILESYSTEM_ACCESSOR

DEF_FILE_CONTENT_HASH_ALGORITHM

public static java.lang.String DEF_FILE_CONTENT_HASH_ALGORITHM

DEF_FS_MAX_MOUNT_POINTS

public static int DEF_FS_MAX_MOUNT_POINTS

DEF_TMP_DIRECTORY

public static java.lang.String DEF_TMP_DIRECTORY
Constructor Detail

FrameworkConfiguration

public FrameworkConfiguration()

FrameworkConfiguration

public FrameworkConfiguration(java.lang.String url)
Method Detail

getInstance

public static FrameworkConfiguration getInstance()

setInstance

public static void setInstance(FrameworkConfiguration i)

getProperties

public java.util.Properties getProperties()

init

protected void init()

getMaxCachedMountPoints

public int getMaxCachedMountPoints()

getEncryptionKGIters

public int getEncryptionKGIters()

getTemporaryDirectory

public java.lang.String getTemporaryDirectory()

getFileSystemAccessorImpl

public java.lang.String getFileSystemAccessorImpl()

getEncryptionKGAlg

public java.lang.String getEncryptionKGAlg()

getEncryptionKGSalt

public java.lang.String getEncryptionKGSalt()

getEncryptionKGSaltEncoding

public java.lang.String getEncryptionKGSaltEncoding()

getJavaProperties

public java.util.Map getJavaProperties()

isDeltaDebugMode

public boolean isDeltaDebugMode()

getFileHashAlgorithm

public java.lang.String getFileHashAlgorithm()

getFileToolDelay

public int getFileToolDelay()

getDeltaQuickHashModulus

public int getDeltaQuickHashModulus()

getDeltaQuickHashMultiplier

public int getDeltaQuickHashMultiplier()

getDeltaHashMapSize

public int getDeltaHashMapSize()

isFTPDebugMode

public boolean isFTPDebugMode()

isRemoteCacheMode

public boolean isRemoteCacheMode()

isFSCacheDebug

public boolean isFSCacheDebug()

getMaxFilePath

public long getMaxFilePath()

getForceMaxFilePathCheck

public int getForceMaxFilePathCheck()

getDefaultLogHistory

public int getDefaultLogHistory()

isHashCacheMode

public boolean isHashCacheMode()

isZipEntryCheckEnabled

public boolean isZipEntryCheckEnabled()

getZipMvDigits

public int getZipMvDigits()

getHashCacheSize

public int getHashCacheSize()

getFTPNoopDelay

public long getFTPNoopDelay()

getFTPCacheSize

public int getFTPCacheSize()

getLogLevel

public int getLogLevel()

getMaxFTPProxies

public int getMaxFTPProxies()

getFileToolBufferSize

public int getFileToolBufferSize()

getWritableDirectories

public java.lang.String[] getWritableDirectories()

getOSBrowsers

public java.lang.String[] getOSBrowsers()

getZipBufferSize

public int getZipBufferSize()

useFileSystemBuffer

public boolean useFileSystemBuffer()

getFileSystemBufferSize

public int getFileSystemBufferSize()

getSSEProtocols

public java.lang.String[] getSSEProtocols()

getProperty

protected java.lang.String getProperty(java.lang.String key,
                                       java.lang.String defaultValue)

getDeltaLinkedListBufferSize

public int getDeltaLinkedListBufferSize()

getProperty

protected boolean getProperty(java.lang.String key,
                              boolean defaultValue)

getProperty

protected int getProperty(java.lang.String key,
                          int defaultValue)

getProperty

protected long getProperty(java.lang.String key,
                           long defaultValue)

getProperty

protected double getProperty(java.lang.String key,
                             double defaultValue)

getProperty

protected java.lang.String[] getProperty(java.lang.String key,
                                         java.lang.String[] defaultValue)

getDefaults

public static java.util.Properties getDefaults(java.lang.Class cls)

getAll

public java.util.Properties getAll()

toFullString

public java.lang.String toFullString(java.lang.Class cls)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object