Package com.attivio.sdk.scanner
Interface TestScannerRunner
-
- All Known Implementing Classes:
TestScannerRunnerImpl
public interface TestScannerRunner
Supports 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()
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.void
start()
Runs the scanner.void
stop()
Test the stopping of the scanner.
-
-
-
Method Detail
-
start
void start() throws AttivioException
Runs 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
-
-
-