Class JerseyConnectionClient
java.lang.Object
org.apache.nifi.toolkit.client.impl.AbstractJerseyClient
org.apache.nifi.toolkit.client.impl.JerseyConnectionClient
- All Implemented Interfaces:
ConnectionClient
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.nifi.toolkit.client.impl.AbstractJerseyClient
AbstractJerseyClient.NiFiAction<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate jakarta.ws.rs.client.WebTargetprivate jakarta.ws.rs.client.WebTargetprivate jakarta.ws.rs.client.WebTarget -
Constructor Summary
ConstructorsConstructorDescriptionJerseyConnectionClient(jakarta.ws.rs.client.WebTarget baseTarget) JerseyConnectionClient(jakarta.ws.rs.client.WebTarget baseTarget, RequestConfig requestConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoidIndicates that mutable requests should indicate that the client has acknowledged that the node is disconnected.createConnection(String parentGroupdId, ConnectionEntity connectionEntity) deleteConnection(String id, String clientId, long version) deleteConnection(String id, String clientId, long version, Boolean nodeDisconnectionAcknowledged) deleteConnection(ConnectionEntity connectionEntity) deleteDropRequest(String connectionId, String dropRequestId) deleteListingRequest(String connectionId, String listingRequestId) emptyQueue(String connectionId) getConnection(String id) getDropRequest(String connectionId, String dropRequestId) getFlowFile(String connectionId, String flowFileUuid) getFlowFile(String connectionId, String flowFileUuid, String nodeId) getFlowFileContent(String connectionId, String flowFileUuid, String nodeId) getListingRequest(String connectionId, String listingRequestId) updateConnection(ConnectionEntity connectionEntity) Methods inherited from class org.apache.nifi.toolkit.client.impl.AbstractJerseyClient
executeAction, getContentDispositionFilename, getIOExceptionCause, getRequestBuilder, getRequestConfig
-
Field Details
-
connectionTarget
private volatile jakarta.ws.rs.client.WebTarget connectionTarget -
processGroupTarget
private volatile jakarta.ws.rs.client.WebTarget processGroupTarget -
flowFileQueueTarget
private volatile jakarta.ws.rs.client.WebTarget flowFileQueueTarget
-
-
Constructor Details
-
JerseyConnectionClient
public JerseyConnectionClient(jakarta.ws.rs.client.WebTarget baseTarget) -
JerseyConnectionClient
public JerseyConnectionClient(jakarta.ws.rs.client.WebTarget baseTarget, RequestConfig requestConfig)
-
-
Method Details
-
acknowledgeDisconnectedNode
public void acknowledgeDisconnectedNode()Description copied from interface:ConnectionClientIndicates that mutable requests should indicate that the client has acknowledged that the node is disconnected.- Specified by:
acknowledgeDisconnectedNodein interfaceConnectionClient
-
getConnection
- Specified by:
getConnectionin interfaceConnectionClient- Throws:
NiFiClientExceptionIOException
-
deleteConnection
public ConnectionEntity deleteConnection(String id, String clientId, long version) throws NiFiClientException, IOException - Specified by:
deleteConnectionin interfaceConnectionClient- Throws:
NiFiClientExceptionIOException
-
deleteConnection
public ConnectionEntity deleteConnection(String id, String clientId, long version, Boolean nodeDisconnectionAcknowledged) throws NiFiClientException, IOException - Throws:
NiFiClientExceptionIOException
-
deleteConnection
public ConnectionEntity deleteConnection(ConnectionEntity connectionEntity) throws NiFiClientException, IOException - Specified by:
deleteConnectionin interfaceConnectionClient- Throws:
NiFiClientExceptionIOException
-
createConnection
public ConnectionEntity createConnection(String parentGroupdId, ConnectionEntity connectionEntity) throws NiFiClientException, IOException - Specified by:
createConnectionin interfaceConnectionClient- Throws:
NiFiClientExceptionIOException
-
updateConnection
public ConnectionEntity updateConnection(ConnectionEntity connectionEntity) throws NiFiClientException, IOException - Specified by:
updateConnectionin interfaceConnectionClient- Throws:
NiFiClientExceptionIOException
-
emptyQueue
- Specified by:
emptyQueuein interfaceConnectionClient- Throws:
NiFiClientExceptionIOException
-
getDropRequest
public DropRequestEntity getDropRequest(String connectionId, String dropRequestId) throws NiFiClientException, IOException - Specified by:
getDropRequestin interfaceConnectionClient- Throws:
NiFiClientExceptionIOException
-
deleteDropRequest
public DropRequestEntity deleteDropRequest(String connectionId, String dropRequestId) throws NiFiClientException, IOException - Specified by:
deleteDropRequestin interfaceConnectionClient- Throws:
NiFiClientExceptionIOException
-
listQueue
- Specified by:
listQueuein interfaceConnectionClient- Throws:
NiFiClientExceptionIOException
-
getListingRequest
public ListingRequestEntity getListingRequest(String connectionId, String listingRequestId) throws NiFiClientException, IOException - Specified by:
getListingRequestin interfaceConnectionClient- Throws:
NiFiClientExceptionIOException
-
deleteListingRequest
public ListingRequestEntity deleteListingRequest(String connectionId, String listingRequestId) throws NiFiClientException, IOException - Specified by:
deleteListingRequestin interfaceConnectionClient- Throws:
NiFiClientExceptionIOException
-
getFlowFile
public FlowFileEntity getFlowFile(String connectionId, String flowFileUuid) throws NiFiClientException, IOException - Specified by:
getFlowFilein interfaceConnectionClient- Throws:
NiFiClientExceptionIOException
-
getFlowFile
public FlowFileEntity getFlowFile(String connectionId, String flowFileUuid, String nodeId) throws NiFiClientException, IOException - Specified by:
getFlowFilein interfaceConnectionClient- Throws:
NiFiClientExceptionIOException
-
getFlowFileContent
public InputStream getFlowFileContent(String connectionId, String flowFileUuid, String nodeId) throws NiFiClientException, IOException - Specified by:
getFlowFileContentin interfaceConnectionClient- Throws:
NiFiClientExceptionIOException
-