public interface DataProvider
| Modifier and Type | Method and Description |
|---|---|
boolean |
configValidator(ProviderConfig providerConfig)
Provider configuration validator.
|
DataSetMetadata |
dataSetMetadata()
Get the data provider meta data object.
|
DataProvider |
init(String topic,
String sessionId,
com.google.gson.JsonElement jsonElement)
Initialize the instance with the session id.
|
String |
providerConfig()
Get the data provider configuration.
|
String |
providerName()
Get the data provider name.
|
void |
start()
Start pushing data to the client from the data sources.
|
void |
stop()
Stop pushing data to the client and disconnect.
|
DataProvider init(String topic, String sessionId, com.google.gson.JsonElement jsonElement) throws DataProviderException
topic - to receive topic messages, data provider send event with this topic.sessionId - data provider send event for this session.jsonElement - provider configuration message in json format.DataProviderException - if there any initialization failures.void start()
void stop()
boolean configValidator(ProviderConfig providerConfig) throws DataProviderException
providerConfig - provider configuration get from the client.DataProviderException - if the validation failed due to exception.String providerName()
DataSetMetadata dataSetMetadata()
String providerConfig()
Copyright © 2018 WSO2. All rights reserved.