Package fr.gouv.vitam.worker.client

# Interface WorkerClient

All Superinterfaces:
  `AutoCloseable`, `MockOrRestClient`, `VitamAutoCloseable`

public interface WorkerClient extends MockOrRestClient
Worker Client interface

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ItemStatus`
  `submitStep(DescriptionStep step)`
  add a step to the worker

  ### Methods inherited from interface fr.gouv.vitam.common.client.MockOrRestClient

  `checkStatus, checkStatus, close, consumeAnyEntityAndClose, getResourcePath, getServiceUrl`

- ## Method Details

  - ### submitStep

    ItemStatus submitStep(DescriptionStep step) throws WorkerNotFoundClientException, WorkerServerClientException, ProcessingRetryAsyncException
    add a step to the worker
    Parameters:
      `step` - the new step
    Returns:
      List of EngineResponse `EngineResponse` : list of action response {OK,KO,FATAL...}
    Throws:
      `WorkerNotFoundClientException` - if the Server got a NotFound result
      `WorkerServerClientException` - if the Server got an internal error
      `ProcessingRetryAsyncException` - if the server asked for an asynchronous resource should execution should be retried when the resource is available