public final class YarnWebServiceUtils extends Object
Modifier and Type | Method and Description |
---|---|
static org.codehaus.jettison.json.JSONObject |
getNodeInfoFromRMWebService(org.apache.hadoop.conf.Configuration conf,
String nodeId)
Utility function to get NodeInfo by calling RM WebService.
|
static String |
toJson(Object nsli,
Class klass) |
public static org.codehaus.jettison.json.JSONObject getNodeInfoFromRMWebService(org.apache.hadoop.conf.Configuration conf, 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).Copyright © 2008–2024 Apache Software Foundation. All rights reserved.