public interface DataSource extends ServiceType
| Modifier and Type | Field and Description |
|---|---|
static String |
DS_TYPE |
static String |
TYPE |
UNKNOWN| Modifier and Type | Method and Description |
|---|---|
static Record |
createRecord(String name,
String type,
JsonObject location,
JsonObject metadata)
Create a record representing a data source.
|
static void |
getDataSourceMetadata(ServiceDiscovery discovery,
JsonObject filter,
Handler<AsyncResult<JsonObject>> resultHandler)
Gets the metadata of a data source service.
|
get, namestatic final String DS_TYPE
static final String TYPE
static void getDataSourceMetadata(ServiceDiscovery discovery, JsonObject filter, Handler<AsyncResult<JsonObject>> resultHandler)
discovery - the service discovery instancefilter - the filterresultHandler - the result handler, called with a failed result if no service matches.static Record createRecord(String name, String type, JsonObject location, JsonObject metadata)
name - the name of the servicetype - the type of data source (MySQL, Redis, Mongo...)location - the location of the data sourcemetadata - additional metadataCopyright © 2016. All rights reserved.