Package com.attivio.sdk.scanner
Interface TestScannerRunner
-
- All Known Implementing Classes:
TestScannerRunnerImpl
public interface TestScannerRunnerSupports the starting and the stopping of a scanner.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<PlatformMessage>getSentMessages()voidsetMaxDocs(long maxDocs)Should be set before calling start to test that the scanner doen't publish more documents than directed by the publisher.voidstart()Runs the scanner.voidstop()Test the stopping of the scanner.
-
-
-
Method Detail
-
start
void start() throws AttivioExceptionRuns the scanner.- Throws:
AttivioException- - if error occurred or the scan was stopped.
-
getSentMessages
java.util.List<PlatformMessage> getSentMessages() throws AttivioException
- Returns:
- the documents and other messages sent from the publisher.
- Throws:
AttivioException
-
stop
void stop()
Test the stopping of the scanner. Should be called from a thread different from the one which called the start method.
-
setMaxDocs
void setMaxDocs(long maxDocs)
Should be set before calling start to test that the scanner doen't publish more documents than directed by the publisher.- Parameters:
maxDocs-
-
-