public class Extractor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.util.concurrent.ExecutorService |
STE |
Modifier | Constructor and Description |
---|---|
protected |
Extractor(boolean updateExtraction,
ExtractionController controller)
Construct an Extractor.
|
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.Future<java.lang.Object> |
extract(java.util.Collection<Profile> profiles,
boolean isAsync,
boolean partsOnly)
Start an extraction for all profiles in the HashSet.
|
java.util.concurrent.Future<java.lang.Object> |
extractNewParts(Part[] parts,
Profile profile,
boolean isAsync)
|
boolean |
getDaemonsRunning()
Get the status, if the environment monitor daemons are running.
|
boolean |
getUpdateExtraction()
Get the status, if update extractions are enabled or disabled.
|
void |
setUpdateExtraction(boolean updateExtraction)
This method will enable or disable update extractions, if files were
modified.
|
void |
startDaemons()
Starts all daemon modules of all profiles.
|
void |
stopDaemons()
Stops all daemon modules of all profiles.
|
protected Extractor(boolean updateExtraction, ExtractionController controller)
ExtractionController
.updateExtraction
- controller
- public java.util.concurrent.Future<java.lang.Object> extract(java.util.Collection<Profile> profiles, boolean isAsync, boolean partsOnly)
profiles
- set of Profile
s to be extractedisAsync
- flag whether the extraction can be executed asynchronous or
synchronous.partsOnly
- flag whether only file-dependent information should be
extractedpublic java.util.concurrent.Future<java.lang.Object> extractNewParts(Part[] parts, Profile profile, boolean isAsync)
Part
belonging to a Profile
. This
will use all file dependent modules of the profile on the parts file.
This method will be called, if a file has been modified.parts
- the parts to extractprofile
- the profile to extract, null ot extract on all profilesisAsync
- flag whether the extraction can be executed asynchronous or
synchronous.public void setUpdateExtraction(boolean updateExtraction)
updateExtraction
- public boolean getUpdateExtraction()
public boolean getDaemonsRunning()
public void stopDaemons()
public void startDaemons()