@Internal public class CustomConnectorDescriptor extends ConnectorDescriptor
Constructor and Description |
---|
CustomConnectorDescriptor(String type,
int version,
boolean formatNeeded)
Constructs a
CustomConnectorDescriptor . |
Modifier and Type | Method and Description |
---|---|
CustomConnectorDescriptor |
properties(Map<String,String> properties)
Adds a set of properties for the connector.
|
CustomConnectorDescriptor |
property(String key,
String value)
Adds a configuration property for the connector.
|
protected Map<String,String> |
toConnectorProperties()
Converts this descriptor into a set of connector properties.
|
isFormatNeeded, toProperties
toString
public CustomConnectorDescriptor(String type, int version, boolean formatNeeded)
CustomConnectorDescriptor
.type
- String that identifies this connector.version
- Property version for backwards compatibility.formatNeeded
- Flag for basic validation of a needed format descriptor.public CustomConnectorDescriptor property(String key, String value)
key
- The property key to be set.value
- The property value to be set.public CustomConnectorDescriptor properties(Map<String,String> properties)
properties
- The properties to add.protected Map<String,String> toConnectorProperties()
ConnectorDescriptor
ConnectorDescriptorValidator.CONNECTOR
.toConnectorProperties
in class ConnectorDescriptor
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.