public class YarnApplicationsResourceApi extends Object
Constructor and Description |
---|
YarnApplicationsResourceApi() |
YarnApplicationsResourceApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
ApiClient |
getApiClient() |
ApiYarnApplicationAttributeList |
getYarnApplicationAttributes(String clusterName,
String serviceName)
Returns the list of all attributes that the Service Monitor can associate with YARN applications.
|
com.squareup.okhttp.Call |
getYarnApplicationAttributesAsync(String clusterName,
String serviceName,
ApiCallback<ApiYarnApplicationAttributeList> callback)
Returns the list of all attributes that the Service Monitor can associate with YARN applications.
|
com.squareup.okhttp.Call |
getYarnApplicationAttributesCall(String clusterName,
String serviceName,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getYarnApplicationAttributes
|
ApiResponse<ApiYarnApplicationAttributeList> |
getYarnApplicationAttributesWithHttpInfo(String clusterName,
String serviceName)
Returns the list of all attributes that the Service Monitor can associate with YARN applications.
|
ApiYarnApplicationResponse |
getYarnApplications(String clusterName,
String serviceName,
String filter,
String from,
Integer limit,
Integer offset,
String to)
Returns a list of applications that satisfy the filter.
|
com.squareup.okhttp.Call |
getYarnApplicationsAsync(String clusterName,
String serviceName,
String filter,
String from,
Integer limit,
Integer offset,
String to,
ApiCallback<ApiYarnApplicationResponse> callback)
Returns a list of applications that satisfy the filter.
|
com.squareup.okhttp.Call |
getYarnApplicationsCall(String clusterName,
String serviceName,
String filter,
String from,
Integer limit,
Integer offset,
String to,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getYarnApplications
|
ApiResponse<ApiYarnApplicationResponse> |
getYarnApplicationsWithHttpInfo(String clusterName,
String serviceName,
String filter,
String from,
Integer limit,
Integer offset,
String to)
Returns a list of applications that satisfy the filter.
|
ApiYarnKillResponse |
killYarnApplication(String applicationId,
String clusterName,
String serviceName)
Kills an YARN Application.
|
com.squareup.okhttp.Call |
killYarnApplicationAsync(String applicationId,
String clusterName,
String serviceName,
ApiCallback<ApiYarnKillResponse> callback)
Kills an YARN Application.
|
com.squareup.okhttp.Call |
killYarnApplicationCall(String applicationId,
String clusterName,
String serviceName,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for killYarnApplication
|
ApiResponse<ApiYarnKillResponse> |
killYarnApplicationWithHttpInfo(String applicationId,
String clusterName,
String serviceName)
Kills an YARN Application.
|
void |
setApiClient(ApiClient apiClient) |
public YarnApplicationsResourceApi()
public YarnApplicationsResourceApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call getYarnApplicationAttributesCall(String clusterName, String serviceName, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
clusterName
- (required)serviceName
- (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiYarnApplicationAttributeList getYarnApplicationAttributes(String clusterName, String serviceName) throws ApiException
clusterName
- (required)serviceName
- (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiYarnApplicationAttributeList> getYarnApplicationAttributesWithHttpInfo(String clusterName, String serviceName) throws ApiException
clusterName
- (required)serviceName
- (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getYarnApplicationAttributesAsync(String clusterName, String serviceName, ApiCallback<ApiYarnApplicationAttributeList> callback) throws ApiException
clusterName
- (required)serviceName
- (required)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call getYarnApplicationsCall(String clusterName, String serviceName, String filter, String from, Integer limit, Integer offset, String to, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
clusterName
- (required)serviceName
- The name of the service (required)filter
- A filter to apply to the applications. A basic filter tests the value of an attribute and looks something like 'executing = true' or 'user = root'. Multiple basic filters can be combined into a complex expression using standard and / or boolean logic and parenthesis. An example of a complex filter is: 'application_duration > 5s and (user = root or user = myUserName'). (optional, default to )from
- Start of the period to query in ISO 8601 format (defaults to 5 minutes before the 'to' time). (optional)limit
- The maximum number of applications to return. Applications will be returned in the following order: <ul> <li> All executing applications, ordered from longest to shortest running </li> <li> All completed applications order by end time descending. </li> </ul> (optional, default to 100)offset
- The offset to start returning applications from. This is useful for paging through lists of applications. Note that this has non-deterministic behavior if executing applications are included in the response because they can disappear from the list while paging. To exclude executing applications from the response and a 'executing = false' clause to your filter. (optional, default to 0)to
- End of the period to query in ISO 8601 format (defaults to now). (optional, default to now)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiYarnApplicationResponse getYarnApplications(String clusterName, String serviceName, String filter, String from, Integer limit, Integer offset, String to) throws ApiException
clusterName
- (required)serviceName
- The name of the service (required)filter
- A filter to apply to the applications. A basic filter tests the value of an attribute and looks something like 'executing = true' or 'user = root'. Multiple basic filters can be combined into a complex expression using standard and / or boolean logic and parenthesis. An example of a complex filter is: 'application_duration > 5s and (user = root or user = myUserName'). (optional, default to )from
- Start of the period to query in ISO 8601 format (defaults to 5 minutes before the 'to' time). (optional)limit
- The maximum number of applications to return. Applications will be returned in the following order: <ul> <li> All executing applications, ordered from longest to shortest running </li> <li> All completed applications order by end time descending. </li> </ul> (optional, default to 100)offset
- The offset to start returning applications from. This is useful for paging through lists of applications. Note that this has non-deterministic behavior if executing applications are included in the response because they can disappear from the list while paging. To exclude executing applications from the response and a 'executing = false' clause to your filter. (optional, default to 0)to
- End of the period to query in ISO 8601 format (defaults to now). (optional, default to now)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiYarnApplicationResponse> getYarnApplicationsWithHttpInfo(String clusterName, String serviceName, String filter, String from, Integer limit, Integer offset, String to) throws ApiException
clusterName
- (required)serviceName
- The name of the service (required)filter
- A filter to apply to the applications. A basic filter tests the value of an attribute and looks something like 'executing = true' or 'user = root'. Multiple basic filters can be combined into a complex expression using standard and / or boolean logic and parenthesis. An example of a complex filter is: 'application_duration > 5s and (user = root or user = myUserName'). (optional, default to )from
- Start of the period to query in ISO 8601 format (defaults to 5 minutes before the 'to' time). (optional)limit
- The maximum number of applications to return. Applications will be returned in the following order: <ul> <li> All executing applications, ordered from longest to shortest running </li> <li> All completed applications order by end time descending. </li> </ul> (optional, default to 100)offset
- The offset to start returning applications from. This is useful for paging through lists of applications. Note that this has non-deterministic behavior if executing applications are included in the response because they can disappear from the list while paging. To exclude executing applications from the response and a 'executing = false' clause to your filter. (optional, default to 0)to
- End of the period to query in ISO 8601 format (defaults to now). (optional, default to now)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getYarnApplicationsAsync(String clusterName, String serviceName, String filter, String from, Integer limit, Integer offset, String to, ApiCallback<ApiYarnApplicationResponse> callback) throws ApiException
clusterName
- (required)serviceName
- The name of the service (required)filter
- A filter to apply to the applications. A basic filter tests the value of an attribute and looks something like 'executing = true' or 'user = root'. Multiple basic filters can be combined into a complex expression using standard and / or boolean logic and parenthesis. An example of a complex filter is: 'application_duration > 5s and (user = root or user = myUserName'). (optional, default to )from
- Start of the period to query in ISO 8601 format (defaults to 5 minutes before the 'to' time). (optional)limit
- The maximum number of applications to return. Applications will be returned in the following order: <ul> <li> All executing applications, ordered from longest to shortest running </li> <li> All completed applications order by end time descending. </li> </ul> (optional, default to 100)offset
- The offset to start returning applications from. This is useful for paging through lists of applications. Note that this has non-deterministic behavior if executing applications are included in the response because they can disappear from the list while paging. To exclude executing applications from the response and a 'executing = false' clause to your filter. (optional, default to 0)to
- End of the period to query in ISO 8601 format (defaults to now). (optional, default to now)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call killYarnApplicationCall(String applicationId, String clusterName, String serviceName, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
applicationId
- The applicationId to kill (required)clusterName
- (required)serviceName
- The name of the service (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiYarnKillResponse killYarnApplication(String applicationId, String clusterName, String serviceName) throws ApiException
applicationId
- The applicationId to kill (required)clusterName
- (required)serviceName
- The name of the service (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiYarnKillResponse> killYarnApplicationWithHttpInfo(String applicationId, String clusterName, String serviceName) throws ApiException
applicationId
- The applicationId to kill (required)clusterName
- (required)serviceName
- The name of the service (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call killYarnApplicationAsync(String applicationId, String clusterName, String serviceName, ApiCallback<ApiYarnKillResponse> callback) throws ApiException
applicationId
- The applicationId to kill (required)clusterName
- (required)serviceName
- The name of the service (required)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectCopyright © 2019. All rights reserved.