|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.norconex.jef.suite.FileStopRequestHandler
public class FileStopRequestHandler
Listens for STOP requests using a stop file. The stop file file name matches the suite namespace, plus the ".stop" extension. The directory where to locate the file depends on the constructor invoked.
Constructor Summary | |
---|---|
FileStopRequestHandler(String namespace,
String jobDir)
Creates a file-based job stop request advisor storing files in the given job directory. |
Method Summary | |
---|---|
void |
fireStopRequest()
Fires a stop request. |
void |
startListening(ISuiteStopRequestListener listener)
Starts to listen for stop requests. |
void |
stopListening()
Stops listening for stop requests. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileStopRequestHandler(String namespace, String jobDir)
jobDir
- the base directory where to store/read the stop fileMethod Detail |
---|
public void startListening(ISuiteStopRequestListener listener)
IJobSuiteStopRequestHandler
ISuiteStopRequestListener.stopRequestReceived()
method
when a stop request was received.
startListening
in interface IJobSuiteStopRequestHandler
listener
- framework listener for stop signalspublic void stopListening()
IJobSuiteStopRequestHandler
stopListening
in interface IJobSuiteStopRequestHandler
public void fireStopRequest()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |