public class PepperConfiguration extends Properties
Property, therefore
this class is derived from the general Properties class. It is
enhanced for methods to have an easier access to fields to configure the
Pepper framework, but you can also find anything necessary when treating this
object as a normal Properties object.
| Modifier and Type | Field and Description |
|---|---|
static String[] |
ALL_PROP_NAMES
This array contains all properties, which with the Pepper framework can
be configured.
|
static String |
DEFAULT_WORKSPACE
A sub folder in Pepper directory to be used as workspace (to store jobs
etc.)
|
static String |
EMAIL
pepper-eMail address
|
static String |
ENV_PEPPER_MODULE_RESOURCES |
static String |
FILE_CONF_FILE
Name of the configuration file.
|
static String |
FILE_CONF_FOLDER
Name of the folder containing configuration files.
|
static String |
FILE_CONF_TEST_FILE
Name of the configuration file for testing.
|
static String |
FITNESS_FEATURE_DESC
link to Pepper developers homepage for fitness features
|
static String |
HOMEPAGE
pepper-homepage
|
static String |
PROP_CALL_GC_AFTER_DOCUMENT
Name of property, to determine, if the garbage collector should run after
a
SDocument has been send to sleep when it waits in
DocumentBus between to steps. |
static String |
PROP_COMPUTE_PERFORMANCE
flag if Pepper shall measure and display the performance of the used
PepperModules
|
static String |
PROP_DETAILED_STATUS_REPORT
Name of the property to determine Property to determine whether the
status report should contain a progress for each module or just the
global progress.
|
static String |
PROP_KEEP_TEMP_DOCS
name of the flag to determine whether the temporary created
document-graph files should be preserved or deleted after Pepper
terminates.
|
static String |
PROP_MAX_AMOUNT_OF_SDOCUMENTS
the maximal number of currently processed SDocument-objects
|
static String |
PROP_MEMORY_POLICY
Name of property to set the memory policy, for instance to configure the
behavior of loading documents.
|
static String |
PROP_PEPPER_MODULE_RESOURCES |
static String |
PROP_PREFIX
flag if Pepper shall measure and display the performance of the used
PepperModules
|
static String |
PROP_REPORT_INTERVAL
name of property to determine the time interval of the convert status
report
|
static String |
PROP_TEMP_FOLDER
Name of the property, which determines a temporary folder, where the
framework and all modules can store temporary data.
|
static String |
PROP_WORKSPACE
name of the flag to determine a workspace for pepper, where all jobs are
stored by default.
|
static String |
SOURCES_RESOURCES
Folder where the resources of a bundle is expected to be.
|
defaults| Constructor and Description |
|---|
PepperConfiguration()
Standard constructor which initializes this object with default values:
"pepper.gcAfterDocumentSleep"=
"pepper.memPolicy"=
"pepper.maxAmountOfProcessedSDocuments"= 10
|
PepperConfiguration(Properties properties)
Initializes a new object and copies all properties of the given
Properties object. |
| Modifier and Type | Method and Description |
|---|---|
File |
getConfFolder()
Returns the folder containing the configuration file(s).
|
Boolean |
getDetaialedStatReport()
Property to determine whether the status report should contain a progress
for each module or just the global progress.
|
Boolean |
getGcAfterDocumentSleep() |
Boolean |
getKeepDocuments()
name of the flag to determine whether the temporary created
document-graph files should be preserved or deleted after Pepper
terminates.
|
Integer |
getMaxAmountOfDocuments()
Returns the the maximal number of currently processed SDocument-objects
|
MEMORY_POLICY |
getMemPolicy()
Returns the memory policy for instance to configure the behavior of
loading documents.
|
Integer |
getReportInterval()
Flag to determine the time interval of the convert status report
|
File |
getTempPath()
Returns a temporary path, where the entire system and all modules can
store temp files.
|
File |
getWorkspace()
Returns the default workspace for
PepperJobImpl objects, if one
is given in configuration. |
void |
load(org.osgi.service.component.ComponentContext componentContext)
Resolves the location of the bundle by the given
ComponentContext
and loads the configuration file. |
void |
load(File configurationFile)
Loads the configuration from the passed file location
|
protected void |
setConfFolder(File confFolder)
Sets the folder containing the configuration file(s).
|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNamesclear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, valuespublic static final String EMAIL
public static final String HOMEPAGE
public static final String FITNESS_FEATURE_DESC
public static final String DEFAULT_WORKSPACE
public static final String PROP_PREFIX
public static final String PROP_COMPUTE_PERFORMANCE
public static final String PROP_TEMP_FOLDER
public static final String PROP_MAX_AMOUNT_OF_SDOCUMENTS
public static final String PROP_MEMORY_POLICY
MEMORY_POLICY for more
details.public static final String PROP_CALL_GC_AFTER_DOCUMENT
SDocument has been send to sleep when it waits in
DocumentBus between to steps.public static final String PROP_KEEP_TEMP_DOCS
public static final String PROP_DETAILED_STATUS_REPORT
public static final String PROP_WORKSPACE
public static final String PROP_REPORT_INTERVAL
public static final String[] ALL_PROP_NAMES
public static final String ENV_PEPPER_MODULE_RESOURCES
public static final String PROP_PEPPER_MODULE_RESOURCES
public static final String SOURCES_RESOURCES
public static final String FILE_CONF_FOLDER
public static final String FILE_CONF_FILE
public static final String FILE_CONF_TEST_FILE
public PepperConfiguration()
public PepperConfiguration(Properties properties)
Properties object.properties - public void load(File configurationFile)
configuration - public void load(org.osgi.service.component.ComponentContext componentContext)
ComponentContext
and loads the configuration file. Expects the configuration file to be in
one of the two locations:
componentContext - protected void setConfFolder(File confFolder)
confFolder - public File getConfFolder()
public File getTempPath()
public File getWorkspace()
PepperJobImpl objects, if one
is given in configuration. If no one is given, the temporary folder is
returned.PepperJobImplpublic MEMORY_POLICY getMemPolicy()
MEMORY_POLICY for more details.public Integer getMaxAmountOfDocuments()
public Boolean getGcAfterDocumentSleep()
public Boolean getKeepDocuments()
public Integer getReportInterval()
public Boolean getDetaialedStatReport()
Copyright © 2009–2021 Humboldt-Universität zu Berlin, INRIA. All rights reserved.