public final class YarnWebServiceUtils
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static org.codehaus.jettison.json.JSONObject |
getNodeInfoFromRMWebService(org.apache.hadoop.conf.Configuration conf,
java.lang.String nodeId) |
Utility function to get NodeInfo by calling RM WebService.
|
static java.lang.String |
toJson(java.lang.Object nsli,
java.lang.Class klass) |
public static org.codehaus.jettison.json.JSONObject getNodeInfoFromRMWebService(org.apache.hadoop.conf.Configuration conf,
java.lang.String nodeId)
throws com.sun.jersey.api.client.ClientHandlerException,
com.sun.jersey.api.client.UniformInterfaceException
conf - the configurationnodeId - the nodeIdcom.sun.jersey.api.client.ClientHandlerException - if there is an error
processing the response.com.sun.jersey.api.client.UniformInterfaceException - if the response status
is 204 (No Content).public static java.lang.String toJson(java.lang.Object nsli,
java.lang.Class klass)
throws java.lang.Exception
java.lang.ExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.