public abstract class AbstractKafkaMigrator extends Object implements Migrator
| Modifier and Type | Field and Description |
|---|---|
private static String |
ARTIFACT |
(package private) Map<String,String> |
controllerServices |
(package private) boolean |
isKafkaBrokersPresent |
(package private) boolean |
isVersion8Processor |
(package private) Map<String,String> |
kafkaProcessorProperties |
private static String |
NEW_KAFKA_PROCESSOR_VERSION |
private static String |
PATH_FOR_ARTIFACT |
(package private) Map<String,String> |
propertiesToBeSaved |
(package private) String |
propertyKeyTagName |
(package private) String |
propertyTagName |
(package private) boolean |
transaction |
(package private) String |
transactionTagName |
(package private) static XPath |
XPATH |
(package private) String |
xpathForProperties |
(package private) String |
xpathForTransactionProperty |
| Constructor and Description |
|---|
AbstractKafkaMigrator(MigratorConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
private void |
addNewDescriptors(Node node) |
private void |
addNewProperties(Node node) |
private void |
addNewProperty(Node node,
String key,
String value) |
void |
configureComponentSpecificSteps(Node node) |
void |
configureDescriptors(Node node) |
void |
configureProperties(Node node) |
private String |
convert(String propertyValue) |
private void |
removeElement(Node node,
Node element) |
void |
replaceArtifact(Node processor) |
void |
replaceClassName(Element className) |
private static String |
replaceClassNameWithNewProcessorName(String className,
String processorName) |
private void |
saveRequiredProperties(Node property) |
static final XPath XPATH
private static final String NEW_KAFKA_PROCESSOR_VERSION
private static final String ARTIFACT
private static final String PATH_FOR_ARTIFACT
final boolean isVersion8Processor
final boolean isKafkaBrokersPresent
final String xpathForProperties
final String propertyKeyTagName
final String propertyTagName
final String xpathForTransactionProperty
final String transactionTagName
final boolean transaction
public AbstractKafkaMigrator(MigratorConfiguration configuration)
public void configureProperties(Node node) throws XPathExpressionException
configureProperties in interface MigratorXPathExpressionExceptionpublic void configureDescriptors(Node node) throws XPathExpressionException
configureDescriptors in interface MigratorXPathExpressionExceptionpublic void configureComponentSpecificSteps(Node node) throws XPathExpressionException
configureComponentSpecificSteps in interface MigratorXPathExpressionExceptionpublic void replaceClassName(Element className)
public void replaceArtifact(Node processor) throws XPathExpressionException
XPathExpressionExceptionprivate static String replaceClassNameWithNewProcessorName(String className, String processorName)
private void addNewDescriptors(Node node)
private void saveRequiredProperties(Node property) throws XPathExpressionException
XPathExpressionExceptionprivate void addNewProperties(Node node)
Copyright © 2023 Apache NiFi Project. All rights reserved.