Class AbstractRestHeritrixController.LaunchResultHandler
- java.lang.Object
-
- dk.netarkivet.harvester.heritrix3.controller.AbstractRestHeritrixController.LaunchResultHandler
-
- All Implemented Interfaces:
org.netarchivesuite.heritrix3wrapper.LaunchResultHandlerAbstract
- Enclosing class:
- AbstractRestHeritrixController
public static class AbstractRestHeritrixController.LaunchResultHandler extends Object implements org.netarchivesuite.heritrix3wrapper.LaunchResultHandlerAbstract
Implementation of a LaunchResultHandler for Heritrix3.
-
-
Field Summary
Fields Modifier and Type Field Description protected PrintWriter
errorPrinter
protected PrintWriter
outputPrinter
protected Semaphore
semaphore
-
Constructor Summary
Constructors Constructor Description LaunchResultHandler(PrintWriter outputPrinter, PrintWriter errorPrinter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeError()
void
closeOutput()
void
error(String line)
void
exitValue(int exitValue)
void
output(String line)
-
-
-
Field Detail
-
semaphore
protected Semaphore semaphore
-
outputPrinter
protected PrintWriter outputPrinter
-
errorPrinter
protected PrintWriter errorPrinter
-
-
Constructor Detail
-
LaunchResultHandler
public LaunchResultHandler(PrintWriter outputPrinter, PrintWriter errorPrinter)
-
-
Method Detail
-
exitValue
public void exitValue(int exitValue)
- Specified by:
exitValue
in interfaceorg.netarchivesuite.heritrix3wrapper.LaunchResultHandlerAbstract
-
output
public void output(String line)
- Specified by:
output
in interfaceorg.netarchivesuite.heritrix3wrapper.LaunchResultHandlerAbstract
-
closeOutput
public void closeOutput()
- Specified by:
closeOutput
in interfaceorg.netarchivesuite.heritrix3wrapper.LaunchResultHandlerAbstract
-
error
public void error(String line)
- Specified by:
error
in interfaceorg.netarchivesuite.heritrix3wrapper.LaunchResultHandlerAbstract
-
closeError
public void closeError()
- Specified by:
closeError
in interfaceorg.netarchivesuite.heritrix3wrapper.LaunchResultHandlerAbstract
-
-