Package com.datarobot.impl
Class StatusClient
- java.lang.Object
-
- com.datarobot.impl.StatusClient
-
- All Implemented Interfaces:
IStatusClient
public class StatusClient extends java.lang.Object implements IStatusClient
TheStatusClientobject provides access to the status endpoints of the DataRobot AI API. This object is not meant to be used directly but through theDataRobotAIClient.status()method.
-
-
Constructor Summary
Constructors Constructor Description StatusClient(IDataRobotAIClient client)IStatusClientbased API operations.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Statusget(java.lang.String statusId)Get a status object by IDAction<com.google.api.client.http.HttpRequest,com.google.api.client.http.HttpResponse>getHttpMessageTransformer()internalStatusListlist()A list with status information on allStatusTaskcurrently running for this accountStatusListlist(PagingParams params)A list with status information on allStatusTaskcurrently running for this accountvoidsetHttpMessageTransformer(Action<com.google.api.client.http.HttpRequest,com.google.api.client.http.HttpResponse> httpMessageTransformer)internaljava.lang.StringtoString()
-
-
-
Constructor Detail
-
StatusClient
public StatusClient(IDataRobotAIClient client)
IStatusClientbased API operations. Users will not need to instantiate this object directly. It can be accessed throughDataRobotAIClient.status().- Parameters:
client-DataRobotAIClient
-
-
Method Detail
-
getHttpMessageTransformer
public Action<com.google.api.client.http.HttpRequest,com.google.api.client.http.HttpResponse> getHttpMessageTransformer()
internal- Specified by:
getHttpMessageTransformerin interfaceIStatusClient
-
setHttpMessageTransformer
public void setHttpMessageTransformer(Action<com.google.api.client.http.HttpRequest,com.google.api.client.http.HttpResponse> httpMessageTransformer)
internal- Specified by:
setHttpMessageTransformerin interfaceIStatusClient
-
list
public StatusList list() throws ClientException
A list with status information on allStatusTaskcurrently running for this account- Specified by:
listin interfaceIStatusClient- Returns:
StatusList- Throws:
ClientException- when 4xx or 5xx response is received from server, or errors in parsing the response.
-
list
public StatusList list(PagingParams params) throws ClientException
A list with status information on allStatusTaskcurrently running for this account- Specified by:
listin interfaceIStatusClient- Parameters:
params- ThePagingParamsobject for this list- Returns:
StatusList- Throws:
ClientException- when 4xx or 5xx response is received from server, or errors in parsing the response.
-
get
public Status get(java.lang.String statusId) throws ClientException
Get a status object by ID- Specified by:
getin interfaceIStatusClient- Parameters:
statusId- The ID of theStatus- Returns:
- The queried
Statusobject - Throws:
ClientException- when 4xx or 5xx response is received from server, or errors in parsing the response.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-