pub struct ControllerServicesStateApi<'a> { /* private fields */ }Implementations§
Source§impl<'a> ControllerServicesStateApi<'a>
impl<'a> ControllerServicesStateApi<'a>
Sourcepub async fn get_state(&self) -> Result<ComponentStateDto, NifiError>
pub async fn get_state(&self) -> Result<ComponentStateDto, NifiError>
Gets the state for a controller service
Calls GET /nifi-api/controller-services/{id}/state.
§Errors
400: NiFi was unable to complete the request because it was invalid. The request should not be retried without modification.401: Client could not be authenticated.403: Client is not authorized to make this request.404: The specified resource could not be found.409: The request was valid but NiFi was not in the appropriate state to process it.
§Permissions
Requires Write - /controller-services/{uuid}.
Sourcepub async fn clear_state_1(
&self,
body: &ComponentStateEntity,
) -> Result<ComponentStateDto, NifiError>
pub async fn clear_state_1( &self, body: &ComponentStateEntity, ) -> Result<ComponentStateDto, NifiError>
Clears the state for a controller service
Calls POST /nifi-api/controller-services/{id}/state/clear-requests.
§Parameters
body: Optional component state to perform a selective key removal. If omitted, clears all state.
§Errors
400: NiFi was unable to complete the request because it was invalid. The request should not be retried without modification.401: Client could not be authenticated.403: Client is not authorized to make this request.404: The specified resource could not be found.409: The request was valid but NiFi was not in the appropriate state to process it.
§Permissions
Requires Write - /controller-services/{uuid}.
Trait Implementations§
Source§impl ControllerServicesStateApi for ControllerServicesStateApi<'_>
impl ControllerServicesStateApi for ControllerServicesStateApi<'_>
Source§async fn get_state(&self) -> Result<ComponentStateDto, NifiError>
async fn get_state(&self) -> Result<ComponentStateDto, NifiError>
Gets the state for a controller service
Source§async fn clear_state_1(
&self,
body: &ComponentStateEntity,
) -> Result<ComponentStateDto, NifiError>
async fn clear_state_1( &self, body: &ComponentStateEntity, ) -> Result<ComponentStateDto, NifiError>
Clears the state for a controller service
Auto Trait Implementations§
impl<'a> Freeze for ControllerServicesStateApi<'a>
impl<'a> !RefUnwindSafe for ControllerServicesStateApi<'a>
impl<'a> Send for ControllerServicesStateApi<'a>
impl<'a> Sync for ControllerServicesStateApi<'a>
impl<'a> Unpin for ControllerServicesStateApi<'a>
impl<'a> UnsafeUnpin for ControllerServicesStateApi<'a>
impl<'a> !UnwindSafe for ControllerServicesStateApi<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more