Package ru.testit.syncstorage.api
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the API clientregisterPost(RegisterRequest registerRequest) Register a new worker Register a new worker with the sync storage service.registerPostWithHttpInfo(RegisterRequest registerRequest) Register a new worker Register a new worker with the sync storage service.voidsetApiClient(ApiClient apiClient) Set the API clientsetWorkerStatusPost(SetWorkerStatusRequest setWorkerStatusRequest) Set worker status Set the status of a worker by its PID.setWorkerStatusPostWithHttpInfo(SetWorkerStatusRequest setWorkerStatusRequest) Set worker status Set the status of a worker by its PID.
-
Constructor Details
-
WorkersApi
public WorkersApi() -
WorkersApi
-
-
Method Details
-
getApiClient
Get the API client- Returns:
- API client
-
setApiClient
Set the API client- Parameters:
apiClient- an instance of API client
-
registerPost
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
-