public interface ConnectorControlApi extends ExposedApi
ConnectorControlApi api = ServiceFactoryFactory.get().getService(ConnectorControlApi.class);
// ConnectorControlApi api = ServiceFactoryFactory.get().getService(ConnectorControlApi.class, "nodename", true); // for a specific node
String clientId = api.start("connector1");
api.waitForCompletion(clientId, -1);
| Modifier and Type | Method and Description |
|---|---|
List<IngestDocument> |
debugConnector(String connectorName,
int numDocs)
A method to help with debugging connectors.
|
ConnectorExecutionRecord |
getExecutionInfo(String connectorName)
Gets execution information for the connector.
|
void |
pause(String connectorName)
Pauses the named connector
|
void |
reset(String connectorName)
Resets the incremental state of the named connector
|
void |
resume(String connectorName)
Resumes the named connector if paused
|
UUID |
start(String connectorName)
Starts the named connector
|
void |
stop(String connectorName)
Stops the connector
|
void |
stop(String connectorName,
long shutdownWaitTimeout)
Stops the connector
|
boolean |
waitForCompletion(UUID clientId,
long timeout)
Wait for the connector to complete with an optional timeout.
|
UUID start(String connectorName) throws AttivioException
connectorName - the connector to start crawling onAttivioExceptionvoid stop(String connectorName) throws AttivioException
connectorName - the connector to stopAttivioExceptionvoid stop(String connectorName, long shutdownWaitTimeout) throws AttivioException
connectorName - the connector to stopshutdownWaitTimeout - time in milliseconds to wait for the connector to stop before interrupting itAttivioExceptionConnectorExecutionRecord getExecutionInfo(String connectorName) throws AttivioException
ConnectorHistoryApi.getCurrentExecutionRecord(String). If the
connector is not currently running, then the latest history for the connector is fetched. If the connector has never run then
a default ConnectorExecutionRecord is created with a status of NOT_RUNNING.connectorName - the connector to get execution information forAttivioExceptionboolean waitForCompletion(UUID clientId, long timeout)
true immediately. See the javadoc for this class for details.clientId - client (returned by start method) to wait fortimeout - time to wait in milliseconds for all connectors to complete, -1 will cause the client to wait until complete.List<IngestDocument> debugConnector(String connectorName, int numDocs) throws AttivioException
numDocs
IngestDocuments in a List instead
of forwarding the documents to a downstream workflow.connectorName - The name of the connector to start and capture documents from.numDocs - The maximum number of documents to capture.List of IngestDocumentss
containing the captured documents.AttivioExceptionvoid pause(String connectorName) throws AttivioException
connectorName - AttivioExceptionvoid resume(String connectorName) throws AttivioException
connectorName - AttivioExceptionvoid reset(String connectorName) throws AttivioException
connectorName - AttivioExceptionCopyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.