Class WorkersApi

java.lang.Object
ru.testit.syncstorage.api.WorkersApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.11.0") public class WorkersApi extends Object
  • Constructor Details

    • WorkersApi

      public WorkersApi()
    • WorkersApi

      public WorkersApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
      Get the API client
      Returns:
      API client
    • setApiClient

      public void setApiClient(ApiClient apiClient)
      Set the API client
      Parameters:
      apiClient - an instance of API client
    • registerPost

      public RegisterResponse registerPost(RegisterRequest registerRequest) throws ApiException
      Register a new worker Register a new worker with the sync storage service.
      Parameters:
      registerRequest - (required)
      Returns:
      RegisterResponse
      Throws:
      ApiException - if fails to make API call
    • registerPostWithHttpInfo

      public ApiResponse<RegisterResponse> registerPostWithHttpInfo(RegisterRequest registerRequest) throws ApiException
      Register a new worker Register a new worker with the sync storage service.
      Parameters:
      registerRequest - (required)
      Returns:
      ApiResponse<RegisterResponse>
      Throws:
      ApiException - if fails to make API call
    • setWorkerStatusPost

      public SetWorkerStatusResponse setWorkerStatusPost(SetWorkerStatusRequest setWorkerStatusRequest) throws ApiException
      Set worker status Set the status of a worker by its PID.
      Parameters:
      setWorkerStatusRequest - (required)
      Returns:
      SetWorkerStatusResponse
      Throws:
      ApiException - if fails to make API call
    • setWorkerStatusPostWithHttpInfo

      public ApiResponse<SetWorkerStatusResponse> setWorkerStatusPostWithHttpInfo(SetWorkerStatusRequest setWorkerStatusRequest) throws ApiException
      Set worker status Set the status of a worker by its PID.
      Parameters:
      setWorkerStatusRequest - (required)
      Returns:
      ApiResponse<SetWorkerStatusResponse>
      Throws:
      ApiException - if fails to make API call