Class JerseyControllerClient
java.lang.Object
org.apache.nifi.toolkit.client.impl.AbstractJerseyClient
org.apache.nifi.toolkit.client.impl.JerseyControllerClient
- All Implemented Interfaces:
ControllerClient
Jersey implementation of ControllerClient.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.nifi.toolkit.client.impl.AbstractJerseyClient
AbstractJerseyClient.NiFiAction<T> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJerseyControllerClient(jakarta.ws.rs.client.WebTarget baseTarget) JerseyControllerClient(jakarta.ws.rs.client.WebTarget baseTarget, RequestConfig requestConfig) -
Method Summary
Modifier and TypeMethodDescriptionactivateFlowAnalysisRule(String id, FlowAnalysisRuleRunStatusEntity runStatusEntity) connectNode(String nodeId, NodeEntity nodeEntity) createControllerService(ControllerServiceEntity controllerService) createFlowAnalysisRule(FlowAnalysisRuleEntity flowAnalysisRule) createParamProvider(ParameterProviderEntity paramProvider) createRegistryClient(FlowRegistryClientEntity registryClient) createReportingTask(ReportingTaskEntity reportingTask) deleteFlowAnalysisRule(FlowAnalysisRuleEntity flowAnalysisRule) deleteFlowAnalysisRuleConfigVerificationRequest(String taskId, String verificationRequestId) deleteNode(String nodeId) disconnectNode(String nodeId, NodeEntity nodeEntity) downloadNar(String identifier, File outputDirectory) 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 registryClient) uploadNar(String filename, InputStream narContentStream) Methods inherited from class org.apache.nifi.toolkit.client.impl.AbstractJerseyClient
executeAction, getContentDispositionFilename, getIOExceptionCause, getRequestBuilder, getRequestConfig
-
Field Details
-
NAR_MANAGER_PATH
- See Also:
-
NARS_PATH
- See Also:
-
NAR_UPLOAD_PATH
- See Also:
-
controllerTarget
private final jakarta.ws.rs.client.WebTarget controllerTarget
-
-
Constructor Details
-
JerseyControllerClient
public JerseyControllerClient(jakarta.ws.rs.client.WebTarget baseTarget) -
JerseyControllerClient
public JerseyControllerClient(jakarta.ws.rs.client.WebTarget baseTarget, RequestConfig requestConfig)
-
-
Method Details
-
getRegistryClients
- Specified by:
getRegistryClientsin interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
getRegistryClient
public FlowRegistryClientEntity getRegistryClient(String id) throws NiFiClientException, IOException - Specified by:
getRegistryClientin interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
createRegistryClient
public FlowRegistryClientEntity createRegistryClient(FlowRegistryClientEntity registryClient) throws NiFiClientException, IOException - Specified by:
createRegistryClientin interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
updateRegistryClient
public FlowRegistryClientEntity updateRegistryClient(FlowRegistryClientEntity registryClient) throws NiFiClientException, IOException - Specified by:
updateRegistryClientin interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
deleteNode
- Specified by:
deleteNodein interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
connectNode
public NodeEntity connectNode(String nodeId, NodeEntity nodeEntity) throws NiFiClientException, IOException - Specified by:
connectNodein interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
offloadNode
public NodeEntity offloadNode(String nodeId, NodeEntity nodeEntity) throws NiFiClientException, IOException - Specified by:
offloadNodein interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
disconnectNode
public NodeEntity disconnectNode(String nodeId, NodeEntity nodeEntity) throws NiFiClientException, IOException - Specified by:
disconnectNodein interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
getNode
- Specified by:
getNodein interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
getNodes
- Specified by:
getNodesin interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
createControllerService
public ControllerServiceEntity createControllerService(ControllerServiceEntity controllerService) throws NiFiClientException, IOException - Specified by:
createControllerServicein interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
createReportingTask
public ReportingTaskEntity createReportingTask(ReportingTaskEntity reportingTask) throws NiFiClientException, IOException - Specified by:
createReportingTaskin interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
importReportingTasks
public VersionedReportingTaskImportResponseEntity importReportingTasks(VersionedReportingTaskImportRequestEntity importRequestEntity) throws NiFiClientException, IOException - Specified by:
importReportingTasksin interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
getFlowAnalysisRules
- Specified by:
getFlowAnalysisRulesin interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
getFlowAnalysisRule
public FlowAnalysisRuleEntity getFlowAnalysisRule(String id) throws NiFiClientException, IOException - Specified by:
getFlowAnalysisRulein interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
getFlowAnalysisRulePropertyDescriptor
public PropertyDescriptorEntity getFlowAnalysisRulePropertyDescriptor(String componentId, String propertyName, Boolean sensitive) throws NiFiClientException, IOException - Specified by:
getFlowAnalysisRulePropertyDescriptorin interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
createFlowAnalysisRule
public FlowAnalysisRuleEntity createFlowAnalysisRule(FlowAnalysisRuleEntity flowAnalysisRule) throws NiFiClientException, IOException - Specified by:
createFlowAnalysisRulein interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
updateFlowAnalysisRule
public FlowAnalysisRuleEntity updateFlowAnalysisRule(FlowAnalysisRuleEntity flowAnalysisRuleEntity) throws NiFiClientException, IOException - Specified by:
updateFlowAnalysisRulein interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
activateFlowAnalysisRule
public FlowAnalysisRuleEntity activateFlowAnalysisRule(String id, FlowAnalysisRuleRunStatusEntity runStatusEntity) throws NiFiClientException, IOException - Specified by:
activateFlowAnalysisRulein interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
deleteFlowAnalysisRule
public FlowAnalysisRuleEntity deleteFlowAnalysisRule(FlowAnalysisRuleEntity flowAnalysisRule) throws NiFiClientException, IOException - Specified by:
deleteFlowAnalysisRulein interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
submitFlowAnalysisRuleConfigVerificationRequest
public VerifyConfigRequestEntity submitFlowAnalysisRuleConfigVerificationRequest(VerifyConfigRequestEntity configRequestEntity) throws NiFiClientException, IOException - Specified by:
submitFlowAnalysisRuleConfigVerificationRequestin interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
getFlowAnalysisRuleConfigVerificationRequest
public VerifyConfigRequestEntity getFlowAnalysisRuleConfigVerificationRequest(String taskId, String verificationRequestId) throws NiFiClientException, IOException - Specified by:
getFlowAnalysisRuleConfigVerificationRequestin interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
deleteFlowAnalysisRuleConfigVerificationRequest
public VerifyConfigRequestEntity deleteFlowAnalysisRuleConfigVerificationRequest(String taskId, String verificationRequestId) throws NiFiClientException, IOException - Specified by:
deleteFlowAnalysisRuleConfigVerificationRequestin interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
createParamProvider
public ParameterProviderEntity createParamProvider(ParameterProviderEntity paramProvider) throws NiFiClientException, IOException - Specified by:
createParamProviderin interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
getControllerConfiguration
public ControllerConfigurationEntity getControllerConfiguration() throws NiFiClientException, IOException- Specified by:
getControllerConfigurationin interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
updateControllerConfiguration
public ControllerConfigurationEntity updateControllerConfiguration(ControllerConfigurationEntity controllerConfiguration) throws NiFiClientException, IOException - Specified by:
updateControllerConfigurationin interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
uploadNar
public NarSummaryEntity uploadNar(String filename, InputStream narContentStream) throws NiFiClientException, IOException - Specified by:
uploadNarin interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
getNarSummaries
- Specified by:
getNarSummariesin interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
getNarSummary
- Specified by:
getNarSummaryin interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
deleteNar
public NarSummaryEntity deleteNar(String identifier, boolean forceDelete) throws NiFiClientException, IOException - Specified by:
deleteNarin interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
getNarDetails
- Specified by:
getNarDetailsin interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-
downloadNar
public File downloadNar(String identifier, File outputDirectory) throws NiFiClientException, IOException - Specified by:
downloadNarin interfaceControllerClient- Throws:
NiFiClientExceptionIOException
-