ConnectorContext Class
ConnectorContext
The ConnectorContext class is a part of the org.sunbird.obsrv.connector.model
package. It encapsulates the context information for a connector instance, including its configuration, state, and statistics. This class is essential for managing the lifecycle and execution of connector instances within the Obsrv platform.
Class Definition
Fields
connectorId: String
connectorId: String
Description: The unique identifier for the connector.
Annotations:
@JsonProperty("connector_id")
datasetId: String
datasetId: String
Description: The unique identifier for the dataset associated with the connector.
Annotations:
@JsonProperty("dataset_id")
connectorInstanceId: String
connectorInstanceId: String
Description: The unique identifier for the specific instance of the connector.
Annotations:
@JsonProperty("connector_instance_id")
connectorType: String
connectorType: String
Description: The type of the connector (e.g., source, sink).
Annotations:
@JsonProperty("connector_type")
entryTopic: String
entryTopic: String
Description: The entry topic for the connector. This field is ignored during JSON serialization.
Annotations:
@JsonIgnore
Description: The state of the connector instance, encapsulated in a ConnectorState object. This field is ignored during JSON serialization.
Annotations:
@JsonIgnore
Description: The statistics of the connector instance, encapsulated in a ConnectorStats object. This field is ignored during JSON serialization.
Annotations:
@JsonIgnore
Usage
The ConnectorContext class is used to manage and track the state and statistics of a connector instance. It provides a structured way to access and manipulate the context information required for the execution of connectors.
Example
See Also
Last updated