public class ApplicationMasterRestClient
extends java.lang.Object
implements java.io.Closeable
ApplicationMasterRestServlet.| Constructor and Description |
|---|
ApplicationMasterRestClient(org.apache.http.impl.client.CloseableHttpClient client,
java.lang.String amHostName,
int amRpcPort) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.util.Map<java.lang.String,java.lang.Object> |
getAmState() |
java.util.Map<java.lang.String,java.lang.Object> |
getConfig() |
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> |
getMetrics() |
java.util.Map<java.lang.String,java.lang.Object> |
getTaskContext() |
java.lang.String |
toString() |
public ApplicationMasterRestClient(org.apache.http.impl.client.CloseableHttpClient client,
java.lang.String amHostName,
int amRpcPort)
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> getMetrics()
throws java.io.IOException
java.io.IOException - if there was an error fetching the metrics from the servlet.public java.util.Map<java.lang.String,java.lang.Object> getTaskContext()
throws java.io.IOException
java.io.IOException - if there was an error fetching the task context from the servlet.public java.util.Map<java.lang.String,java.lang.Object> getAmState()
throws java.io.IOException
java.io.IOException - if there was an error fetching the AM state from the servlet.public java.util.Map<java.lang.String,java.lang.Object> getConfig()
throws java.io.IOException
java.io.IOException - if there was an error fetching the config from the servlet.public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object