Platform SDK
5.6
5.6
  • Attivio Platform SDK 5.6.3
  • Module SDK
  • Service Factory
    • Creating a Custom Service
    • Testing with the ServiceFactory
  • Custom Executables
  • Components
    • Writing Components
    • Testing Components
  • Scanners
    • Basic Custom Scanner Example
    • Incremental Scanner Example
    • Principal Scanner Example
    • Glossary
  • License
Powered by GitBook
On this page
  • Usage
  • When running in an Attivio component:
  • When running in a separate process (such as in an AttivioRunnable):
  • List of Attivio services accessible through the Service Factory

Was this helpful?

Service Factory

Usage

The Service Factory can be accessed in a variety of ways using a ServiceFactoryFactory. Below are some examples of how to gain access to the ContentStoreProvider

When running in an Attivio component:

ServiceFactory serviceFactory = ServiceFactoryFactory.get();
serviceFactory.getService(ContentStoreProvider.class)
ContentStoreProvider storeProvider = serviceFactory.getService(ContentStoreProvider.class)

When running in a separate process (such as in an AttivioRunnable):

String projectName = "myProject";
String environment = "production";
String zookeeperConnectionString = "localhost:16980";
ServiceFactory serviceFactory = ServiceFactoryFactory.getRemote(projectName, environment, zookeeperConnectionString);
ContentStoreProvider storeProvider = serviceFactory.getService(ContentStoreProvider.class)

List of Attivio services accessible through the Service Factory

  • IngestClient

  • EventStoreApi

  • IngestionHistoryApi

  • SearchClient

  • SignalTrackingApi

  • RelevancyModelApi

  • AuditWriterApi

  • AuditReaderApi

  • DocumentStoreApi

  • ConnectorHistoryApi

  • ContentStoreProvider

  • AutoCompleteApi

PreviousModule SDKNextCreating a Custom Service

Last updated 5 years ago

Was this helpful?