public class MemoryConnectorDataStore extends Object implements ConnectorDataStore
ConnectorDataStore| Constructor and Description |
|---|
MemoryConnectorDataStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnector(ConnectorDto dto,
String connectorJson,
String connectorSchemaJson,
String componentSchemaJson)
Adds or updates the connector to the catalog
|
String |
componentSchemaJSon(ConnectorDto dto)
Returns the camel-component-schema json file for the given connector with the Maven coordinate
|
String |
connectorJSon(ConnectorDto dto)
Returns the camel-connector json file for the given connector with the Maven coordinate
|
String |
connectorSchemaJSon(ConnectorDto dto)
Returns the camel-connector-schema json file for the given connector with the Maven coordinate
|
List<ConnectorDto> |
findConnector(String filter,
boolean latestVersionOnly)
Find all the connectors that matches the maven coordinate, name, label or description from the catalog
|
boolean |
hasConnector(ConnectorDto dto)
Is the connector already registered in the catalog
|
void |
removeConnector(ConnectorDto dto)
Removes the connector from the catalog
|
public void addConnector(ConnectorDto dto, String connectorJson, String connectorSchemaJson, String componentSchemaJson)
ConnectorDataStoreaddConnector in interface ConnectorDataStoredto - the connector dtoconnectorJson - the camel-connector json fileconnectorSchemaJson - the camel-connector-schema json filecomponentSchemaJson - the camel-component-schema json filepublic boolean hasConnector(ConnectorDto dto)
ConnectorDataStorehasConnector in interface ConnectorDataStoredto - the connector dtopublic void removeConnector(ConnectorDto dto)
ConnectorDataStoreremoveConnector in interface ConnectorDataStoredto - the connector dtopublic List<ConnectorDto> findConnector(String filter, boolean latestVersionOnly)
ConnectorDataStorefindConnector in interface ConnectorDataStorefilter - filter textlatestVersionOnly - whether to include only latest version of the connectorspublic String connectorJSon(ConnectorDto dto)
ConnectorDataStoreconnectorJSon in interface ConnectorDataStoredto - the connector dtopublic String connectorSchemaJSon(ConnectorDto dto)
ConnectorDataStoreconnectorSchemaJSon in interface ConnectorDataStoredto - the connector dtopublic String componentSchemaJSon(ConnectorDto dto)
ConnectorDataStorecomponentSchemaJSon in interface ConnectorDataStoredto - the connector dtoApache Camel