@PublicEvolving public abstract class ConnectorDescriptor extends DescriptorBase implements Descriptor
Constructor and Description |
---|
ConnectorDescriptor(String type,
int version,
boolean formatNeeded)
Constructs a
ConnectorDescriptor . |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isFormatNeeded()
Returns if this connector requires a format descriptor.
|
protected abstract Map<String,String> |
toConnectorProperties()
Converts this descriptor into a set of connector properties.
|
Map<String,String> |
toProperties()
Converts this descriptor into a set of properties.
|
toString
public ConnectorDescriptor(String type, int version, boolean formatNeeded)
ConnectorDescriptor
.type
- string that identifies this connectorversion
- property version for backwards compatibilityformatNeeded
- flag for basic validation of a needed format descriptorpublic final Map<String,String> toProperties()
Descriptor
toProperties
in interface Descriptor
protected final boolean isFormatNeeded()
protected abstract Map<String,String> toConnectorProperties()
ConnectorDescriptorValidator.CONNECTOR
.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.