Class JerseyProcessGroupClient
java.lang.Object
org.apache.nifi.toolkit.client.impl.AbstractJerseyClient
org.apache.nifi.toolkit.client.impl.JerseyProcessGroupClient
- All Implemented Interfaces:
ProcessGroupClient
Jersey implementation of ProcessGroupClient.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.nifi.toolkit.client.impl.AbstractJerseyClient
AbstractJerseyClient.NiFiAction<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final jakarta.ws.rs.client.WebTarget -
Constructor Summary
ConstructorsConstructorDescriptionJerseyProcessGroupClient(jakarta.ws.rs.client.WebTarget baseTarget) JerseyProcessGroupClient(jakarta.ws.rs.client.WebTarget baseTarget, RequestConfig requestConfig) -
Method Summary
Modifier and TypeMethodDescriptioncopy(String processGroupId, CopyRequestEntity copyRequestEntity) copySnippet(String processGroupId, CopySnippetRequestEntity copySnippetRequestEntity) createControllerService(String processGroupId, ControllerServiceEntity controllerService) createProcessGroup(String parentGroupdId, ProcessGroupEntity entity) createProcessGroup(String parentGroupdId, ProcessGroupEntity entity, boolean keepExisting) deleteProcessGroup(ProcessGroupEntity entity) deleteProcessGroupReplaceRequest(String processGroupId, String requestId) emptyQueues(String processGroupId) exportProcessGroup(String processGroupId, boolean includeReferencedServices, File outputFile) getEmptyQueuesRequest(String processGroupId, String requestId) private FilegetFileContent(jakarta.ws.rs.core.Response response, File outputFile) getLocalModifications(String processGroupId) getProcessGroup(String processGroupId) getProcessGroupReplaceRequest(String processGroupId, String requestId) paste(String processGroupId, PasteRequestEntity pasteRequestEntity) replaceProcessGroup(String processGroupId, ProcessGroupImportEntity importEntity) updateProcessGroup(ProcessGroupEntity entity) Methods inherited from class org.apache.nifi.toolkit.client.impl.AbstractJerseyClient
executeAction, getContentDispositionFilename, getIOExceptionCause, getRequestBuilder, getRequestConfig
-
Field Details
-
processGroupsTarget
private final jakarta.ws.rs.client.WebTarget processGroupsTarget
-
-
Constructor Details
-
JerseyProcessGroupClient
public JerseyProcessGroupClient(jakarta.ws.rs.client.WebTarget baseTarget) -
JerseyProcessGroupClient
public JerseyProcessGroupClient(jakarta.ws.rs.client.WebTarget baseTarget, RequestConfig requestConfig)
-
-
Method Details
-
createProcessGroup
public ProcessGroupEntity createProcessGroup(String parentGroupdId, ProcessGroupEntity entity) throws NiFiClientException, IOException - Specified by:
createProcessGroupin interfaceProcessGroupClient- Throws:
NiFiClientExceptionIOException
-
createProcessGroup
public ProcessGroupEntity createProcessGroup(String parentGroupdId, ProcessGroupEntity entity, boolean keepExisting) throws NiFiClientException, IOException - Specified by:
createProcessGroupin interfaceProcessGroupClient- Throws:
NiFiClientExceptionIOException
-
getProcessGroup
public ProcessGroupEntity getProcessGroup(String processGroupId) throws NiFiClientException, IOException - Specified by:
getProcessGroupin interfaceProcessGroupClient- Throws:
NiFiClientExceptionIOException
-
updateProcessGroup
public ProcessGroupEntity updateProcessGroup(ProcessGroupEntity entity) throws NiFiClientException, IOException - Specified by:
updateProcessGroupin interfaceProcessGroupClient- Throws:
NiFiClientExceptionIOException
-
deleteProcessGroup
public ProcessGroupEntity deleteProcessGroup(ProcessGroupEntity entity) throws NiFiClientException, IOException - Specified by:
deleteProcessGroupin interfaceProcessGroupClient- Throws:
NiFiClientExceptionIOException
-
createControllerService
public ControllerServiceEntity createControllerService(String processGroupId, ControllerServiceEntity controllerService) throws NiFiClientException, IOException - Specified by:
createControllerServicein interfaceProcessGroupClient- Throws:
NiFiClientExceptionIOException
-
replaceProcessGroup
public ProcessGroupReplaceRequestEntity replaceProcessGroup(String processGroupId, ProcessGroupImportEntity importEntity) throws NiFiClientException, IOException - Specified by:
replaceProcessGroupin interfaceProcessGroupClient- Throws:
NiFiClientExceptionIOException
-
getProcessGroupReplaceRequest
public ProcessGroupReplaceRequestEntity getProcessGroupReplaceRequest(String processGroupId, String requestId) throws NiFiClientException, IOException - Specified by:
getProcessGroupReplaceRequestin interfaceProcessGroupClient- Throws:
NiFiClientExceptionIOException
-
deleteProcessGroupReplaceRequest
public ProcessGroupReplaceRequestEntity deleteProcessGroupReplaceRequest(String processGroupId, String requestId) throws NiFiClientException, IOException - Specified by:
deleteProcessGroupReplaceRequestin interfaceProcessGroupClient- Throws:
NiFiClientExceptionIOException
-
copySnippet
public FlowEntity copySnippet(String processGroupId, CopySnippetRequestEntity copySnippetRequestEntity) throws NiFiClientException, IOException - Specified by:
copySnippetin interfaceProcessGroupClient- Throws:
NiFiClientExceptionIOException
-
getLocalModifications
public FlowComparisonEntity getLocalModifications(String processGroupId) throws NiFiClientException, IOException - Specified by:
getLocalModificationsin interfaceProcessGroupClient- Throws:
NiFiClientExceptionIOException
-
exportProcessGroup
public File exportProcessGroup(String processGroupId, boolean includeReferencedServices, File outputFile) throws NiFiClientException, IOException - Specified by:
exportProcessGroupin interfaceProcessGroupClient- Throws:
NiFiClientExceptionIOException
-
emptyQueues
- Specified by:
emptyQueuesin interfaceProcessGroupClient- Throws:
NiFiClientExceptionIOException
-
getEmptyQueuesRequest
public DropRequestEntity getEmptyQueuesRequest(String processGroupId, String requestId) throws NiFiClientException, IOException - Specified by:
getEmptyQueuesRequestin interfaceProcessGroupClient- Throws:
NiFiClientExceptionIOException
-
getFileContent
-
copy
public CopyResponseEntity copy(String processGroupId, CopyRequestEntity copyRequestEntity) throws NiFiClientException, IOException - Specified by:
copyin interfaceProcessGroupClient- Throws:
NiFiClientExceptionIOException
-
paste
public PasteResponseEntity paste(String processGroupId, PasteRequestEntity pasteRequestEntity) throws NiFiClientException, IOException - Specified by:
pastein interfaceProcessGroupClient- Throws:
NiFiClientExceptionIOException
-
upload
public ProcessGroupEntity upload(String parentPgId, File file, String pgName, Double posX, Double posY) throws NiFiClientException, IOException - Specified by:
uploadin interfaceProcessGroupClient- Throws:
NiFiClientExceptionIOException
-