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)
ConnectorDataStore
addConnector
in interface ConnectorDataStore
dto
- the connector dtoconnectorJson
- the camel-connector json fileconnectorSchemaJson
- the camel-connector-schema json filecomponentSchemaJson
- the camel-component-schema json filepublic boolean hasConnector(ConnectorDto dto)
ConnectorDataStore
hasConnector
in interface ConnectorDataStore
dto
- the connector dtopublic void removeConnector(ConnectorDto dto)
ConnectorDataStore
removeConnector
in interface ConnectorDataStore
dto
- the connector dtopublic List<ConnectorDto> findConnector(String filter, boolean latestVersionOnly)
ConnectorDataStore
findConnector
in interface ConnectorDataStore
filter
- filter textlatestVersionOnly
- whether to include only latest version of the connectorspublic String connectorJSon(ConnectorDto dto)
ConnectorDataStore
connectorJSon
in interface ConnectorDataStore
dto
- the connector dtopublic String connectorSchemaJSon(ConnectorDto dto)
ConnectorDataStore
connectorSchemaJSon
in interface ConnectorDataStore
dto
- the connector dtopublic String componentSchemaJSon(ConnectorDto dto)
ConnectorDataStore
componentSchemaJSon
in interface ConnectorDataStore
dto
- the connector dtoApache Camel