IndexingApplication

public class IndexingApplication extends Application<IndexingApplication.ApplicationHelper, IndexingConnectorContext>

Main object and access point for the SDK.

Every connector begins execution by creating an instance of this class and calling its start() method. This starts processing, triggering the SDK to begin making connector calls as configured in the configuration file.

Sample usage:

public static void main(String[] args) throws IOException, InterruptedException {
     IndexingApplication application = new IndexingApplication.Builder(
         new MyConnector(new MyRepository()), args).build();
     application.start();
   } 
 

Optional configuration parameter(s):

  • structuredData.localSchema - Specifies the local structured data schema name. It is read from the data source and used for repository structured data.
  • schedule.incrementalTraversalIntervalSecs - Specifies the interval between scheduled incremental traversals (in seconds).
  • schedule.performTraversalOnStart - Specifies whether to run the traversal immediately at start up rather than waiting for the first interval to expire.
  • schedule.pollQueueIntervalSecs - Specifies the interval between scheduled poll queue intervals (in seconds).
  • schedule.traversalIntervalSecs - Specifies the interval between scheduled traversals (in seconds).
  • connector.runOnce - Specifies whether the connector should exit after a single traversal.

Nested Class Summary

class IndexingApplication.Builder  

Constant Summary

String LOCAL_SCHEMA This constant was deprecated. Use LOCAL_SCHEMA

Inherited Constant Summary

Inherited Field Summary

Public Method Summary

synchronized void
shutdown(String event)
void
start()
Begins connector execution by initializing and starting the SDK.

Protected Method Summary

IndexingConnectorContext
buildConnectorContext()
Returns a connector context.

Inherited Method Summary

Constants

public static final String LOCAL_SCHEMA

This constant was deprecated.
Use LOCAL_SCHEMA

Constant Value: "structuredData.localSchema"

Public Methods

public synchronized void shutdown (String event)

Parameters
event

public void start ()

Begins connector execution by initializing and starting the SDK.

This is the main entry point for the SDK. This method initializes all the objects used in traversing a repository and schedules the traversals based on the configuration parameters.

Throws
InterruptedException if aborted during start up

Protected Methods

protected IndexingConnectorContext buildConnectorContext ()

Returns a connector context. Connectors that extend ConnectorContext, should override this method.

Send feedback about...

Cloud Search
Cloud Search