Pepper 3.7.0
A highly extensible plattform for conversion and
|
The class PepperMapperControllerImpl
is a communicator class between a PepperModule
and a PepperMapper
object.
More...
Inherits Thread, and PepperMapperController.
Public Member Functions | |
PepperMapperControllerImpl (ThreadGroup threadGroup, String threadName) | |
Initializes this object and sets its ThreadGroup and the name of the thread. | |
void | setPepperMapper (PepperMapper pepperMapper) |
Sets the mapper, controlled by this object. | |
PepperMapper | getPepperMapper () |
Returns the PepperMapper , controlled by this object. | |
List< MappingSubject > | getMappingSubjects () |
Returns a list of all subjects (SDocument or SCorpus ) to be merged. | |
DOCUMENT_STATUS | getMappingResult () |
{@inheritDoc PepperMapperController::getMappingResult()} | |
Identifier | getIdentifier () |
{@inheritDoc PepperMapperController::getIdentifier()} | |
void | setIdentifier (Identifier sElementId) |
{@inheritDoc PepperMapperController::setIdentifier(Identifier)} | |
Double | getProgress () |
{@inheritDoc PepperMapperController::getProgress()} | |
void | run () |
This method starts the PepperMapper object in a thread. | |
void | map () |
{@inheritDoc PepperMapper::map()} | |
void | setPepperModule (PepperModule pepperModule) |
{@inheritDoc PepperMapperController::setPepperModule(PepperModule)} | |
PepperModule | getPepperModule () |
Returns PepperModule object containing this object. | |
boolean | getPermissionForProcessDoument (DocumentController controller) |
Public Attributes | |
Logger | logger = LoggerFactory.getLogger("Pepper") |
Protected Attributes | |
volatile Double | progress = 0d |
when getPepperMapper() is set to null, in map() , the progress value has to be stored here. | |
PepperModule | pepperModule = null |
PepperModule containing this object | |
The class PepperMapperControllerImpl
is a communicator class between a PepperModule
and a PepperMapper
object.
The aim of this class is to provide some fields, which can be set by the PepperMapper
and be read by the PepperModule
object. The PepperModule
object should not contain any static or object references to the PepperMapper
object. This mechanism is used, to make sure that in case of a forgotten clean up, the PepperMapper
object can be removed by the java garbage collector and does not overfill the main memory.
org.corpus_tools.pepper.impl.PepperMapperControllerImpl.PepperMapperControllerImpl | ( | ThreadGroup | threadGroup, |
String | threadName | ||
) |
Initializes this object and sets its ThreadGroup
and the name of the thread.
threadGroup | |
threadName |
List< MappingSubject > org.corpus_tools.pepper.impl.PepperMapperControllerImpl.getMappingSubjects | ( | ) |
Returns a list of all subjects (SDocument
or SCorpus
) to be merged.
MappingSubject
PepperMapper org.corpus_tools.pepper.impl.PepperMapperControllerImpl.getPepperMapper | ( | ) |
Returns the PepperMapper
, controlled by this object.
PepperModule org.corpus_tools.pepper.impl.PepperMapperControllerImpl.getPepperModule | ( | ) |
Returns PepperModule
object containing this object.
void org.corpus_tools.pepper.impl.PepperMapperControllerImpl.run | ( | ) |
This method starts the PepperMapper
object in a thread.
If getCorpus()
is not null, mapSCorpus()
is called, if getDocument()
is not null, mapSDocument()
is called.
If an exception occurs in this method, it will be caught by PepperManipulatorImpl#uncaughtException(Thread, Throwable)
.
void org.corpus_tools.pepper.impl.PepperMapperControllerImpl.setPepperMapper | ( | PepperMapper | pepperMapper | ) |
Sets the mapper, controlled by this object.
pepperMapper |