Service class

The Service class is the main class in the API. It establishes a connection with Refinery and exposes methods for pulling data from, and pushing data to, Refinery.

The library’s core functionality and components are accessed through the IDeltaService interface, implemented by the DefaultDeltaService type, which is part of the DeltaApiCore library. The interface includes the Start and Stop methods that will start and stop each configured component appropriately.

Note: The three underlying core components listed below are not visible outside of the DaaSCsAPICore code, and therefore not visible to the Client API user/code. This is for background information only.

  • DefaultDeltaService contains a default implementation for all core components.

The underlying core components include:

  • DcConnection: Core connectivity to Delta Control. Why is this needed? What is Delta Control? As a user I want to connect to Refinery.
  • DeltaApiService: Managed calling of public analytics.
  • StreamingQmConnection: For receiving data from streaming analytics.

Access has been limited to using the following methods on the Service class:

Methods

  • Start: Start the Refinery service.
  • Stop: Stop the Refinery service.
  • RegisterLogger: Register a logger with the Refinery service.
  • RunQuery: Run a Refinery query.
  • RegisterPublisher: Register a publisher with Refinery.
  • UnregisterPublisher: Unregister a publisher with Refinery.
  • SubscribeToStreamingAnalytic: Subscribe to a streaming analytic
  • UnsubscribeFromStreamingAnalytic: Unsubscribe from a streaming analytic