I want to know what is the difference between the
scraper.exitExecution() and
scraper.stopExecution() and
scraper.finishExecutingProcessor()
I have tried looking in to the java doc, I could not find anything over there. There seems to be no proper documentation for this. Please help.
I need a method to stop the execution of the scraper after some timeout, How can I do this?
Why not just download
soursesof the library and look inside it?Source code analyze shows, that the difference is only in statuses which these functions are set.
STATUS_STOPPEDis interpreted as that configuration was aborted by user.STATUS_EXITis interpreted as configuration was just exited.I.e. they are almost equal.
Let's do it together:
One:
Two:
Next, going to
BaseProcessorclass, this is one of the two places whereSTATUS_EXITorSTATUS_STOPPEDstatuses are used:Another one in class
ConfigPanel: