Package org.apache.nifi.toolkit.client
Interface ControllerClient
- All Known Implementing Classes:
JerseyControllerClient
public interface ControllerClient
Client for interacting with NiFi's Controller Resource.
-
Method Summary
Modifier and TypeMethodDescriptionactivateFlowAnalysisRule(String id, FlowAnalysisRuleRunStatusEntity runStatusEntity) connectNode(String nodeId, NodeEntity nodeEntity) createControllerService(ControllerServiceEntity controllerService) createFlowAnalysisRule(FlowAnalysisRuleEntity reportingTask) createParamProvider(ParameterProviderEntity paramProvider) createRegistryClient(FlowRegistryClientEntity flowRegistryClientEntity) createReportingTask(ReportingTaskEntity reportingTask) deleteFlowAnalysisRule(FlowAnalysisRuleEntity flowAnalysisRule) deleteFlowAnalysisRuleConfigVerificationRequest(String taskId, String verificationRequestId) deleteNode(String nodeId) disconnectNode(String nodeId, NodeEntity nodeEntity) downloadNar(String identifier, File outputDir) getFlowAnalysisRuleConfigVerificationRequest(String taskId, String verificationRequestId) getFlowAnalysisRulePropertyDescriptor(String componentId, String propertyName, Boolean sensitive) getNarDetails(String identifier) getNarSummary(String identifier) getNodes()importReportingTasks(VersionedReportingTaskImportRequestEntity importRequestEntity) offloadNode(String nodeId, NodeEntity nodeEntity) submitFlowAnalysisRuleConfigVerificationRequest(VerifyConfigRequestEntity configRequestEntity) updateControllerConfiguration(ControllerConfigurationEntity controllerConfiguration) updateFlowAnalysisRule(FlowAnalysisRuleEntity flowAnalysisRuleEntity) updateRegistryClient(FlowRegistryClientEntity flowRegistryClientEntity) uploadNar(String filename, InputStream narContentStream)
-
Method Details
-
getRegistryClients
- Throws:
NiFiClientExceptionIOException
-
getRegistryClient
- Throws:
NiFiClientExceptionIOException
-
createRegistryClient
FlowRegistryClientEntity createRegistryClient(FlowRegistryClientEntity flowRegistryClientEntity) throws NiFiClientException, IOException - Throws:
NiFiClientExceptionIOException
-
updateRegistryClient
FlowRegistryClientEntity updateRegistryClient(FlowRegistryClientEntity flowRegistryClientEntity) throws NiFiClientException, IOException - Throws:
NiFiClientExceptionIOException
-
connectNode
NodeEntity connectNode(String nodeId, NodeEntity nodeEntity) throws NiFiClientException, IOException - Throws:
NiFiClientExceptionIOException
-
deleteNode
- Throws:
NiFiClientExceptionIOException
-
disconnectNode
NodeEntity disconnectNode(String nodeId, NodeEntity nodeEntity) throws NiFiClientException, IOException - Throws:
NiFiClientExceptionIOException
-
getNode
- Throws:
NiFiClientExceptionIOException
-
getNodes
- Throws:
NiFiClientExceptionIOException
-
offloadNode
NodeEntity offloadNode(String nodeId, NodeEntity nodeEntity) throws NiFiClientException, IOException - Throws:
NiFiClientExceptionIOException
-
createControllerService
ControllerServiceEntity createControllerService(ControllerServiceEntity controllerService) throws NiFiClientException, IOException - Throws:
NiFiClientExceptionIOException
-
createReportingTask
ReportingTaskEntity createReportingTask(ReportingTaskEntity reportingTask) throws NiFiClientException, IOException - Throws:
NiFiClientExceptionIOException
-
importReportingTasks
VersionedReportingTaskImportResponseEntity importReportingTasks(VersionedReportingTaskImportRequestEntity importRequestEntity) throws NiFiClientException, IOException - Throws:
NiFiClientExceptionIOException
-
getFlowAnalysisRules
- Throws:
NiFiClientExceptionIOException
-
getFlowAnalysisRule
- Throws:
NiFiClientExceptionIOException
-
getFlowAnalysisRulePropertyDescriptor
PropertyDescriptorEntity getFlowAnalysisRulePropertyDescriptor(String componentId, String propertyName, Boolean sensitive) throws NiFiClientException, IOException - Throws:
NiFiClientExceptionIOException
-
createFlowAnalysisRule
FlowAnalysisRuleEntity createFlowAnalysisRule(FlowAnalysisRuleEntity reportingTask) throws NiFiClientException, IOException - Throws:
NiFiClientExceptionIOException
-
updateFlowAnalysisRule
FlowAnalysisRuleEntity updateFlowAnalysisRule(FlowAnalysisRuleEntity flowAnalysisRuleEntity) throws NiFiClientException, IOException - Throws:
NiFiClientExceptionIOException
-
activateFlowAnalysisRule
FlowAnalysisRuleEntity activateFlowAnalysisRule(String id, FlowAnalysisRuleRunStatusEntity runStatusEntity) throws NiFiClientException, IOException - Throws:
NiFiClientExceptionIOException
-
deleteFlowAnalysisRule
FlowAnalysisRuleEntity deleteFlowAnalysisRule(FlowAnalysisRuleEntity flowAnalysisRule) throws NiFiClientException, IOException - Throws:
NiFiClientExceptionIOException
-
submitFlowAnalysisRuleConfigVerificationRequest
VerifyConfigRequestEntity submitFlowAnalysisRuleConfigVerificationRequest(VerifyConfigRequestEntity configRequestEntity) throws NiFiClientException, IOException - Throws:
NiFiClientExceptionIOException
-
getFlowAnalysisRuleConfigVerificationRequest
VerifyConfigRequestEntity getFlowAnalysisRuleConfigVerificationRequest(String taskId, String verificationRequestId) throws NiFiClientException, IOException - Throws:
NiFiClientExceptionIOException
-
deleteFlowAnalysisRuleConfigVerificationRequest
VerifyConfigRequestEntity deleteFlowAnalysisRuleConfigVerificationRequest(String taskId, String verificationRequestId) throws NiFiClientException, IOException - Throws:
NiFiClientExceptionIOException
-
createParamProvider
ParameterProviderEntity createParamProvider(ParameterProviderEntity paramProvider) throws NiFiClientException, IOException - Throws:
NiFiClientExceptionIOException
-
getControllerConfiguration
- Throws:
NiFiClientExceptionIOException
-
updateControllerConfiguration
ControllerConfigurationEntity updateControllerConfiguration(ControllerConfigurationEntity controllerConfiguration) throws NiFiClientException, IOException - Throws:
NiFiClientExceptionIOException
-
uploadNar
NarSummaryEntity uploadNar(String filename, InputStream narContentStream) throws NiFiClientException, IOException - Throws:
NiFiClientExceptionIOException
-
getNarSummaries
- Throws:
NiFiClientExceptionIOException
-
getNarSummary
- Throws:
NiFiClientExceptionIOException
-
deleteNar
NarSummaryEntity deleteNar(String identifier, boolean forceDelete) throws NiFiClientException, IOException - Throws:
NiFiClientExceptionIOException
-
getNarDetails
- Throws:
NiFiClientExceptionIOException
-
downloadNar
- Throws:
NiFiClientExceptionIOException
-