Class ImporterConfig
DefaultParser for parse-specific
configuration documentation.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long100 MB.static final long1 GB.static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanlongThe maximum number of bytes used for memory caching of a single documents being processed.longThe maximum number of bytes used for memory caching of data for all documents concurrently being processed.The temporary directory where files can be deleted safely by the OS or any other processes when the Importer is not running.inthashCode()setHandlers(List<DocHandler> handlers) setMaxMemoryInstance(long maxMemoryInstance) The maximum number of bytes used for memory caching of a single documents being processed.setMaxMemoryPool(long maxMemoryPool) The maximum number of bytes used for memory caching of data for all documents concurrently being processed.setResponseProcessors(List<ImporterResponseProcessor> responseProcessors) setTempDir(Path tempDir) The temporary directory where files can be deleted safely by the OS or any other processes when the Importer is not running.toString()
-
Field Details
-
DEFAULT_TEMP_DIR_PATH
-
DEFAULT_MAX_STREAM_CACHE_POOL_SIZE
public static final long DEFAULT_MAX_STREAM_CACHE_POOL_SIZE100 MB. -
DEFAULT_MAX_STREAM_CACHE_SIZE
public static final long DEFAULT_MAX_STREAM_CACHE_SIZE1 GB.
-
-
Constructor Details
-
ImporterConfig
public ImporterConfig()
-
-
Method Details
-
getHandlers
-
setHandlers
-
getResponseProcessors
-
setResponseProcessors
-
getTempDir
The temporary directory where files can be deleted safely by the OS or any other processes when the Importer is not running. When not set, the importer will use the system temporary directory.
This only get used when the Importer launched directly from the command-line or when importing documents via
Importer.importDocument(ImporterRequest). Documents imported viaImporter.importDocument(com.norconex.importer.doc.Doc)already have their temp/cache directory built-in.- Returns:
- path to temporary directory
-
getMaxMemoryInstance
public long getMaxMemoryInstance()The maximum number of bytes used for memory caching of a single documents being processed. Default is
DEFAULT_MAX_STREAM_CACHE_POOL_SIZE.This only get used when the Importer launched directly from the command-line or when importing documents via
Importer.importDocument(ImporterRequest). Documents imported viaImporter.importDocument(com.norconex.importer.doc.Doc)already have their temp/cache directory built-in.- Returns:
- max document memory cache size
-
getMaxMemoryPool
public long getMaxMemoryPool()The maximum number of bytes used for memory caching of data for all documents concurrently being processed. Default is
DEFAULT_MAX_STREAM_CACHE_SIZE.This only get used when the Importer launched directly from the command-line or when importing documents via
Importer.importDocument(ImporterRequest). Documents imported viaImporter.importDocument(com.norconex.importer.doc.Doc)already have their temp/cache directory built-in.- Returns:
- max documents memory pool cache size
-
setTempDir
The temporary directory where files can be deleted safely by the OS or any other processes when the Importer is not running. When not set, the importer will use the system temporary directory.
This only get used when the Importer launched directly from the command-line or when importing documents via
Importer.importDocument(ImporterRequest). Documents imported viaImporter.importDocument(com.norconex.importer.doc.Doc)already have their temp/cache directory built-in.- Parameters:
tempDir- path to temporary directory- Returns:
this.
-
setMaxMemoryInstance
The maximum number of bytes used for memory caching of a single documents being processed. Default is
DEFAULT_MAX_STREAM_CACHE_POOL_SIZE.This only get used when the Importer launched directly from the command-line or when importing documents via
Importer.importDocument(ImporterRequest). Documents imported viaImporter.importDocument(com.norconex.importer.doc.Doc)already have their temp/cache directory built-in.- Parameters:
maxMemoryInstance- max document memory cache size- Returns:
this.
-
setMaxMemoryPool
The maximum number of bytes used for memory caching of data for all documents concurrently being processed. Default is
DEFAULT_MAX_STREAM_CACHE_SIZE.This only get used when the Importer launched directly from the command-line or when importing documents via
Importer.importDocument(ImporterRequest). Documents imported viaImporter.importDocument(com.norconex.importer.doc.Doc)already have their temp/cache directory built-in.- Parameters:
maxMemoryPool- max documents memory pool cache size- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-