Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package com.seeq.api;
import com.seeq.ApiException;
import com.seeq.ApiClient;
import com.seeq.Configuration;
import com.seeq.model.*;
import com.seeq.Pair;
import javax.ws.rs.core.GenericType;
import javax.ws.rs.ProcessingException;
import com.seeq.model.AddOnToolInputV1;
import com.seeq.model.AddOnToolOutputV1;
import com.seeq.model.AdministratorContactInformationV1;
import com.seeq.model.AgentKeyOutputV1;
import com.seeq.model.ConfigurationInputV1;
import com.seeq.model.ConfigurationOutputV1;
import com.seeq.model.GetAddOnToolsOutputV1;
import com.seeq.model.LicenseImporterOutputV1;
import com.seeq.model.LicenseStatusOutputV1;
import com.seeq.model.ServerBuildInfoOutputV1;
import com.seeq.model.ServerLoadOutputV1;
import com.seeq.model.ServerStatusOutputV1;
import com.seeq.model.StatusMessageBase;
import com.seeq.model.SupportedUnitsOutputV1;
import com.seeq.model.UnitsOfMeasureBatchInputV1;
import com.seeq.model.UnitsOfMeasureOutputV1;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class SystemApi {
private ApiClient apiClient;
private long retryTimeout = 5_000; // Default of 5 seconds
public SystemApi() {
this(Configuration.getDefaultApiClient());
}
public SystemApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
public void setRetryTimeout(long retryTimeout) {
this.retryTimeout = retryTimeout;
}
public long getRetryTimeout() {
return this.retryTimeout;
}
public ApiClient getApiClient() {
return apiClient;
}
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Create an add-on tool
*
* @param body Add-on tool information (required)
* @return AddOnToolOutputV1
* @throws ApiException if fails to make API call
*/
public AddOnToolOutputV1 createAddOnTool(AddOnToolInputV1 body) throws ApiException {
ApiClient.ApiResponse localVarResponse = createAddOnToolWithHttpInfo(body);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Create an add-on tool
*
* @param body Add-on tool information (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse createAddOnToolWithHttpInfo(AddOnToolInputV1 body) throws ApiException {
Map localVarHeaderParams = new HashMap();
return createAddOnToolWithHeadersAndHttpInfo(body, localVarHeaderParams);
}
/**
* Create an add-on tool
*
* @param body Add-on tool information (required)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse createAddOnToolWithHeadersAndHttpInfo(AddOnToolInputV1 body, Map customHeaders) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required parameter 'body' when calling createAddOnTool");
}
// create path and map variables
String localVarPath = "/system/configuration/addOnTools";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/vnd.seeq.v1+json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
localVarHeaderParams.putAll(customHeaders);
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPIWithHttpInfo(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Delete an add-on tool
*
* @param id ID of the add-on to delete (required)
* @return StatusMessageBase
* @throws ApiException if fails to make API call
*/
public StatusMessageBase deleteAddOnTool(String id) throws ApiException {
ApiClient.ApiResponse localVarResponse = deleteAddOnToolWithHttpInfo(id);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Delete an add-on tool
*
* @param id ID of the add-on to delete (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse deleteAddOnToolWithHttpInfo(String id) throws ApiException {
Map localVarHeaderParams = new HashMap();
return deleteAddOnToolWithHeadersAndHttpInfo(id, localVarHeaderParams);
}
/**
* Delete an add-on tool
*
* @param id ID of the add-on to delete (required)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse deleteAddOnToolWithHeadersAndHttpInfo(String id, Map customHeaders) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required parameter 'id' when calling deleteAddOnTool");
}
// create path and map variables
String localVarPath = "/system/configuration/addOnTools/{id}"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
localVarHeaderParams.putAll(customHeaders);
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPIWithHttpInfo(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Disable a licensed feature until the next server shutdown.
*
* @param name The name of the licensed feature (required)
* @throws ApiException if fails to make API call
*/
public void disableLicensedFeature(String name) throws ApiException {
disableLicensedFeatureWithHttpInfo(name);
}
/**
* Disable a licensed feature until the next server shutdown.
*
* @param name The name of the licensed feature (required)
* @throws ApiException if fails to make API call
*/
public void disableLicensedFeatureWithHttpInfo(String name) throws ApiException {
Map localVarHeaderParams = new HashMap();
disableLicensedFeatureWithHeadersAndHttpInfo(name, localVarHeaderParams);
}
/**
* Disable a licensed feature until the next server shutdown.
*
* @param name The name of the licensed feature (required)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public void disableLicensedFeatureWithHeadersAndHttpInfo(String name, Map customHeaders) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'name' is set
if (name == null) {
throw new ApiException(400, "Missing the required parameter 'name' when calling disableLicensedFeature");
}
// create path and map variables
String localVarPath = "/system/license/features/{name}"
.replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
localVarHeaderParams.putAll(customHeaders);
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
apiClient.invokeAPIWithHttpInfo(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
return;
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Re-enable a licensed feature that was previously disabled. If the feature does not have a valid license or was not previously disabled, this will do nothing.
*
* @param name The name of the licensed feature (required)
* @throws ApiException if fails to make API call
*/
public void enableLicensedFeature(String name) throws ApiException {
enableLicensedFeatureWithHttpInfo(name);
}
/**
* Re-enable a licensed feature that was previously disabled. If the feature does not have a valid license or was not previously disabled, this will do nothing.
*
* @param name The name of the licensed feature (required)
* @throws ApiException if fails to make API call
*/
public void enableLicensedFeatureWithHttpInfo(String name) throws ApiException {
Map localVarHeaderParams = new HashMap();
enableLicensedFeatureWithHeadersAndHttpInfo(name, localVarHeaderParams);
}
/**
* Re-enable a licensed feature that was previously disabled. If the feature does not have a valid license or was not previously disabled, this will do nothing.
*
* @param name The name of the licensed feature (required)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public void enableLicensedFeatureWithHeadersAndHttpInfo(String name, Map customHeaders) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'name' is set
if (name == null) {
throw new ApiException(400, "Missing the required parameter 'name' when calling enableLicensedFeature");
}
// create path and map variables
String localVarPath = "/system/license/features/{name}"
.replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/vnd.seeq.v1+json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
localVarHeaderParams.putAll(customHeaders);
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
apiClient.invokeAPIWithHttpInfo(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
return;
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Gets a list of all add-on tools.
*
* @return GetAddOnToolsOutputV1
* @throws ApiException if fails to make API call
*/
public GetAddOnToolsOutputV1 getAddOnTools() throws ApiException {
ApiClient.ApiResponse localVarResponse = getAddOnToolsWithHttpInfo();
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Gets a list of all add-on tools.
*
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getAddOnToolsWithHttpInfo() throws ApiException {
Map localVarHeaderParams = new HashMap();
return getAddOnToolsWithHeadersAndHttpInfo(localVarHeaderParams);
}
/**
* Gets a list of all add-on tools.
*
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getAddOnToolsWithHeadersAndHttpInfo(Map customHeaders) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/system/configuration/addOnTools";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
localVarHeaderParams.putAll(customHeaders);
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPIWithHttpInfo(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Get the system administrator's contact information
*
* @return AdministratorContactInformationV1
* @throws ApiException if fails to make API call
*/
public AdministratorContactInformationV1 getAdministratorContactInformation() throws ApiException {
ApiClient.ApiResponse localVarResponse = getAdministratorContactInformationWithHttpInfo();
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Get the system administrator's contact information
*
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getAdministratorContactInformationWithHttpInfo() throws ApiException {
Map localVarHeaderParams = new HashMap();
return getAdministratorContactInformationWithHeadersAndHttpInfo(localVarHeaderParams);
}
/**
* Get the system administrator's contact information
*
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getAdministratorContactInformationWithHeadersAndHttpInfo(Map customHeaders) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/system/contactInformation";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
localVarHeaderParams.putAll(customHeaders);
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPIWithHttpInfo(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Used to retrieve the value of the Seeq server agent.key
*
* @return AgentKeyOutputV1
* @throws ApiException if fails to make API call
*/
public AgentKeyOutputV1 getAgentKey() throws ApiException {
ApiClient.ApiResponse localVarResponse = getAgentKeyWithHttpInfo();
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Used to retrieve the value of the Seeq server agent.key
*
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getAgentKeyWithHttpInfo() throws ApiException {
Map localVarHeaderParams = new HashMap();
return getAgentKeyWithHeadersAndHttpInfo(localVarHeaderParams);
}
/**
* Used to retrieve the value of the Seeq server agent.key
*
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getAgentKeyWithHeadersAndHttpInfo(Map customHeaders) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/system/agentKey";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
localVarHeaderParams.putAll(customHeaders);
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPIWithHttpInfo(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Used to determine the precise revision of this Seeq build
*
* @return ServerBuildInfoOutputV1
* @throws ApiException if fails to make API call
*/
public ServerBuildInfoOutputV1 getBuildInfo() throws ApiException {
ApiClient.ApiResponse localVarResponse = getBuildInfoWithHttpInfo();
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Used to determine the precise revision of this Seeq build
*
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getBuildInfoWithHttpInfo() throws ApiException {
Map localVarHeaderParams = new HashMap();
return getBuildInfoWithHeadersAndHttpInfo(localVarHeaderParams);
}
/**
* Used to determine the precise revision of this Seeq build
*
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getBuildInfoWithHeadersAndHttpInfo(Map customHeaders) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/system/build-info";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
localVarHeaderParams.putAll(customHeaders);
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPIWithHttpInfo(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Get the list of configuration options and their details, including the current and default value
*
* @param offset The pagination offset, the index of the first collection item that will be returned in this page of results (optional, default to 0)
* @param limit The pagination limit, the total number of collection items that will be returned in this page of results (optional, default to 40)
* @return ConfigurationOutputV1
* @throws ApiException if fails to make API call
*/
public ConfigurationOutputV1 getConfigurationOptions(Integer offset, Integer limit) throws ApiException {
ApiClient.ApiResponse localVarResponse = getConfigurationOptionsWithHttpInfo(offset, limit);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Get the list of configuration options and their details, including the current and default value
*
* @param offset The pagination offset, the index of the first collection item that will be returned in this page of results (optional, default to 0)
* @param limit The pagination limit, the total number of collection items that will be returned in this page of results (optional, default to 40)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getConfigurationOptionsWithHttpInfo(Integer offset, Integer limit) throws ApiException {
Map localVarHeaderParams = new HashMap();
return getConfigurationOptionsWithHeadersAndHttpInfo(offset, limit, localVarHeaderParams);
}
/**
* Get the list of configuration options and their details, including the current and default value
*
* @param offset The pagination offset, the index of the first collection item that will be returned in this page of results (optional, default to 0)
* @param limit The pagination limit, the total number of collection items that will be returned in this page of results (optional, default to 40)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getConfigurationOptionsWithHeadersAndHttpInfo(Integer offset, Integer limit, Map customHeaders) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/system/configuration/options";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "offset", offset));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "limit", limit));
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
localVarHeaderParams.putAll(customHeaders);
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPIWithHttpInfo(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Download installer images
*
* @param fileName The name of the installation image (required)
* @return byte[]
* @throws ApiException if fails to make API call
*/
public byte[] getInstallerFile(String fileName) throws ApiException {
ApiClient.ApiResponse localVarResponse = getInstallerFileWithHttpInfo(fileName);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Download installer images
*
* @param fileName The name of the installation image (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getInstallerFileWithHttpInfo(String fileName) throws ApiException {
Map localVarHeaderParams = new HashMap();
return getInstallerFileWithHeadersAndHttpInfo(fileName, localVarHeaderParams);
}
/**
* Download installer images
*
* @param fileName The name of the installation image (required)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getInstallerFileWithHeadersAndHttpInfo(String fileName, Map customHeaders) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'fileName' is set
if (fileName == null) {
throw new ApiException(400, "Missing the required parameter 'fileName' when calling getInstallerFile");
}
// create path and map variables
String localVarPath = "/system/installer/{fileName}"
.replaceAll("\\{" + "fileName" + "\\}", apiClient.escapeString(fileName.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/gzip", "application/octet-stream", "application/vnd.seeq.v1+json", "application/x-7z-compressed"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
localVarHeaderParams.putAll(customHeaders);
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPIWithHttpInfo(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Get the current server license, if any
*
* @return LicenseStatusOutputV1
* @throws ApiException if fails to make API call
*/
public LicenseStatusOutputV1 getLicense() throws ApiException {
ApiClient.ApiResponse localVarResponse = getLicenseWithHttpInfo();
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Get the current server license, if any
*
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getLicenseWithHttpInfo() throws ApiException {
Map localVarHeaderParams = new HashMap();
return getLicenseWithHeadersAndHttpInfo(localVarHeaderParams);
}
/**
* Get the current server license, if any
*
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getLicenseWithHeadersAndHttpInfo(Map customHeaders) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/system/license";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
localVarHeaderParams.putAll(customHeaders);
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPIWithHttpInfo(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Used to determine server readiness; available without authentication
*
* @return StatusMessageBase
* @throws ApiException if fails to make API call
*/
public StatusMessageBase getOpenPing() throws ApiException {
ApiClient.ApiResponse localVarResponse = getOpenPingWithHttpInfo();
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Used to determine server readiness; available without authentication
*
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getOpenPingWithHttpInfo() throws ApiException {
Map localVarHeaderParams = new HashMap();
return getOpenPingWithHeadersAndHttpInfo(localVarHeaderParams);
}
/**
* Used to determine server readiness; available without authentication
*
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getOpenPingWithHeadersAndHttpInfo(Map customHeaders) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/system/open-ping";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
localVarHeaderParams.putAll(customHeaders);
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPIWithHttpInfo(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Used to determine server readiness, but only available with authentication
*
* @return StatusMessageBase
* @throws ApiException if fails to make API call
*/
public StatusMessageBase getPing() throws ApiException {
ApiClient.ApiResponse localVarResponse = getPingWithHttpInfo();
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Used to determine server readiness, but only available with authentication
*
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getPingWithHttpInfo() throws ApiException {
Map localVarHeaderParams = new HashMap();
return getPingWithHeadersAndHttpInfo(localVarHeaderParams);
}
/**
* Used to determine server readiness, but only available with authentication
*
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getPingWithHeadersAndHttpInfo(Map customHeaders) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/system/ping";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
localVarHeaderParams.putAll(customHeaders);
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPIWithHttpInfo(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Used to determine the current load the server is experiencing, where a high load indicates a lot of concurrent activity within the server.
*
* @return ServerLoadOutputV1
* @throws ApiException if fails to make API call
*/
public ServerLoadOutputV1 getServerLoad() throws ApiException {
ApiClient.ApiResponse localVarResponse = getServerLoadWithHttpInfo();
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Used to determine the current load the server is experiencing, where a high load indicates a lot of concurrent activity within the server.
*
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getServerLoadWithHttpInfo() throws ApiException {
Map localVarHeaderParams = new HashMap();
return getServerLoadWithHeadersAndHttpInfo(localVarHeaderParams);
}
/**
* Used to determine the current load the server is experiencing, where a high load indicates a lot of concurrent activity within the server.
*
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getServerLoadWithHeadersAndHttpInfo(Map customHeaders) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/system/server-load";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
localVarHeaderParams.putAll(customHeaders);
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPIWithHttpInfo(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Used to determine server readiness, telemetry configuration, and other server variables
*
* @param includeInternal whether to include internal statuses (optional, default to false)
* @return ServerStatusOutputV1
* @throws ApiException if fails to make API call
*/
public ServerStatusOutputV1 getServerStatus(Boolean includeInternal) throws ApiException {
ApiClient.ApiResponse localVarResponse = getServerStatusWithHttpInfo(includeInternal);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Used to determine server readiness, telemetry configuration, and other server variables
*
* @param includeInternal whether to include internal statuses (optional, default to false)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getServerStatusWithHttpInfo(Boolean includeInternal) throws ApiException {
Map localVarHeaderParams = new HashMap();
return getServerStatusWithHeadersAndHttpInfo(includeInternal, localVarHeaderParams);
}
/**
* Used to determine server readiness, telemetry configuration, and other server variables
*
* @param includeInternal whether to include internal statuses (optional, default to false)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getServerStatusWithHeadersAndHttpInfo(Boolean includeInternal, Map customHeaders) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/system/server-status";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "includeInternal", includeInternal));
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
localVarHeaderParams.putAll(customHeaders);
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPIWithHttpInfo(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Get list of commonly used and supported units
*
* @return SupportedUnitsOutputV1
* @throws ApiException if fails to make API call
*/
public SupportedUnitsOutputV1 getSupportedUnits() throws ApiException {
ApiClient.ApiResponse localVarResponse = getSupportedUnitsWithHttpInfo();
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Get list of commonly used and supported units
*
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getSupportedUnitsWithHttpInfo() throws ApiException {
Map localVarHeaderParams = new HashMap();
return getSupportedUnitsWithHeadersAndHttpInfo(localVarHeaderParams);
}
/**
* Get list of commonly used and supported units
*
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getSupportedUnitsWithHeadersAndHttpInfo(Map customHeaders) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/system/supportedUnits";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
localVarHeaderParams.putAll(customHeaders);
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPIWithHttpInfo(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Get a threaddump of the server as a logfile and send the information to the logs
*
* @param maxFrameCount Maximum frames to output for each thread. (optional, default to 50)
* @throws ApiException if fails to make API call
*/
public void getThreadState(Integer maxFrameCount) throws ApiException {
getThreadStateWithHttpInfo(maxFrameCount);
}
/**
* Get a threaddump of the server as a logfile and send the information to the logs
*
* @param maxFrameCount Maximum frames to output for each thread. (optional, default to 50)
* @throws ApiException if fails to make API call
*/
public void getThreadStateWithHttpInfo(Integer maxFrameCount) throws ApiException {
Map localVarHeaderParams = new HashMap();
getThreadStateWithHeadersAndHttpInfo(maxFrameCount, localVarHeaderParams);
}
/**
* Get a threaddump of the server as a logfile and send the information to the logs
*
* @param maxFrameCount Maximum frames to output for each thread. (optional, default to 50)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public void getThreadStateWithHeadersAndHttpInfo(Integer maxFrameCount, Map customHeaders) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/system/threadState.log";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "maxFrameCount", maxFrameCount));
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
localVarHeaderParams.putAll(customHeaders);
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
apiClient.invokeAPIWithHttpInfo(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
return;
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Import a license file
*
* @param file (optional)
* @return LicenseImporterOutputV1
* @throws ApiException if fails to make API call
*/
public LicenseImporterOutputV1 importLicense(byte[] file) throws ApiException {
ApiClient.ApiResponse localVarResponse = importLicenseWithHttpInfo(file);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Import a license file
*
* @param file (optional)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse importLicenseWithHttpInfo(byte[] file) throws ApiException {
Map localVarHeaderParams = new HashMap();
return importLicenseWithHeadersAndHttpInfo(file, localVarHeaderParams);
}
/**
* Import a license file
*
* @param file (optional)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse importLicenseWithHeadersAndHttpInfo(byte[] file, Map customHeaders) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/system/license";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
if (file != null)
localVarFormParams.put("file", file);
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"multipart/form-data"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
localVarHeaderParams.putAll(customHeaders);
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPIWithHttpInfo(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Set the system administrator's contact information
*
* @param body The system administrator's contact information (required)
* @return StatusMessageBase
* @throws ApiException if fails to make API call
*/
public StatusMessageBase setAdministratorContactInformation(AdministratorContactInformationV1 body) throws ApiException {
ApiClient.ApiResponse localVarResponse = setAdministratorContactInformationWithHttpInfo(body);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Set the system administrator's contact information
*
* @param body The system administrator's contact information (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse setAdministratorContactInformationWithHttpInfo(AdministratorContactInformationV1 body) throws ApiException {
Map localVarHeaderParams = new HashMap();
return setAdministratorContactInformationWithHeadersAndHttpInfo(body, localVarHeaderParams);
}
/**
* Set the system administrator's contact information
*
* @param body The system administrator's contact information (required)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse setAdministratorContactInformationWithHeadersAndHttpInfo(AdministratorContactInformationV1 body, Map customHeaders) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required parameter 'body' when calling setAdministratorContactInformation");
}
// create path and map variables
String localVarPath = "/system/contactInformation";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/vnd.seeq.v1+json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
localVarHeaderParams.putAll(customHeaders);
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPIWithHttpInfo(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Write one or more configuration options
*
* @param body Configuration options to write (required)
* @return ConfigurationOutputV1
* @throws ApiException if fails to make API call
*/
public ConfigurationOutputV1 setConfigurationOptions(ConfigurationInputV1 body) throws ApiException {
ApiClient.ApiResponse