All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.nem.sdk.openapi.jersey2.api.NodeRoutesApi Maven / Gradle / Ivy

There is a newer version: 0.8.4
Show newest version
package io.nem.sdk.openapi.jersey2.api;

import io.nem.sdk.openapi.jersey2.invoker.ApiException;
import io.nem.sdk.openapi.jersey2.invoker.ApiClient;
import io.nem.sdk.openapi.jersey2.invoker.ApiResponse;
import io.nem.sdk.openapi.jersey2.invoker.Configuration;
import io.nem.sdk.openapi.jersey2.invoker.Pair;

import javax.ws.rs.core.GenericType;

import io.nem.sdk.openapi.jersey2.model.NodeHealthInfoDTO;
import io.nem.sdk.openapi.jersey2.model.NodeInfoDTO;
import io.nem.sdk.openapi.jersey2.model.NodeTimeDTO;
import io.nem.sdk.openapi.jersey2.model.ServerInfoDTO;
import io.nem.sdk.openapi.jersey2.model.StorageInfoDTO;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-02-07T22:44:38.001Z[UTC]")
public class NodeRoutesApi {
  private ApiClient apiClient;

  public NodeRoutesApi() {
    this(Configuration.getDefaultApiClient());
  }

  public NodeRoutesApi(ApiClient apiClient) {
    this.apiClient = apiClient;
  }

  public ApiClient getApiClient() {
    return apiClient;
  }

  public void setApiClient(ApiClient apiClient) {
    this.apiClient = apiClient;
  }

  /**
   * Get the node health information
   * Supplies information regarding the connection and services status.
   * @return NodeHealthInfoDTO
   * @throws ApiException if fails to make API call
   * @http.response.details
     
Status Code Description Response Headers
200 Both API node and database services are reachable from REST server. -
503 Either API node or database service is unavailable or unreachable from REST server. -
*/ public NodeHealthInfoDTO getNodeHealth() throws ApiException { return getNodeHealthWithHttpInfo().getData(); } /** * Get the node health information * Supplies information regarding the connection and services status. * @return ApiResponse<NodeHealthInfoDTO> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Both API node and database services are reachable from REST server. -
503 Either API node or database service is unavailable or unreachable from REST server. -
*/ public ApiResponse getNodeHealthWithHttpInfo() throws ApiException { Object localVarPostBody = new Object(); // create path and map variables String localVarPath = "/node/health"; // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { }; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Get the node information * Supplies additional information about the application running on a node. * @return NodeInfoDTO * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 success -
*/ public NodeInfoDTO getNodeInfo() throws ApiException { return getNodeInfoWithHttpInfo().getData(); } /** * Get the node information * Supplies additional information about the application running on a node. * @return ApiResponse<NodeInfoDTO> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 success -
*/ public ApiResponse getNodeInfoWithHttpInfo() throws ApiException { Object localVarPostBody = new Object(); // create path and map variables String localVarPath = "/node/info"; // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { }; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Get the storage information of the node * Returns storage information about the node. * @return StorageInfoDTO * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 success -
*/ public StorageInfoDTO getNodeStorage() throws ApiException { return getNodeStorageWithHttpInfo().getData(); } /** * Get the storage information of the node * Returns storage information about the node. * @return ApiResponse<StorageInfoDTO> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 success -
*/ public ApiResponse getNodeStorageWithHttpInfo() throws ApiException { Object localVarPostBody = new Object(); // create path and map variables String localVarPath = "/node/storage"; // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { }; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Get the node time * Gets the node time at the moment the reply was sent and received. * @return NodeTimeDTO * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 success -
*/ public NodeTimeDTO getNodeTime() throws ApiException { return getNodeTimeWithHttpInfo().getData(); } /** * Get the node time * Gets the node time at the moment the reply was sent and received. * @return ApiResponse<NodeTimeDTO> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 success -
*/ public ApiResponse getNodeTimeWithHttpInfo() throws ApiException { Object localVarPostBody = new Object(); // create path and map variables String localVarPath = "/node/time"; // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { }; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** * Get the version of the running REST component * Returns the version of the running catapult-rest component. * @return ServerInfoDTO * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 success -
*/ public ServerInfoDTO getServerInfo() throws ApiException { return getServerInfoWithHttpInfo().getData(); } /** * Get the version of the running REST component * Returns the version of the running catapult-rest component. * @return ApiResponse<ServerInfoDTO> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 success -
*/ public ApiResponse getServerInfoWithHttpInfo() throws ApiException { Object localVarPostBody = new Object(); // create path and map variables String localVarPath = "/node/server"; // query params List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { }; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy