public final class GPGUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static com.sun.jersey.api.client.Client |
createJerseyClient(org.apache.hadoop.conf.Configuration conf)
Create JerseyClient based on configuration file.
|
static Map<org.apache.hadoop.yarn.server.federation.store.records.SubClusterIdInfo,Float> |
createUniformWeights(Set<org.apache.hadoop.yarn.server.federation.store.records.SubClusterId> ids)
Creates a uniform weighting of 1.0 for each sub cluster.
|
static <T> T |
invokeRMWebService(String webAddr,
String path,
Class<T> returnType,
org.apache.hadoop.conf.Configuration config)
Performs an invocation of the remote RMWebService.
|
static <T> T |
invokeRMWebService(String webAddr,
String path,
Class<T> returnType,
org.apache.hadoop.conf.Configuration conf,
String selectParam)
Performs an invocation of the remote RMWebService.
|
public static <T> T invokeRMWebService(String webAddr, String path, Class<T> returnType, org.apache.hadoop.conf.Configuration conf, String selectParam)
T - Generic T.webAddr - WebAddress.path - url path.returnType - return type.selectParam - query parameters.conf - configuration.public static <T> T invokeRMWebService(String webAddr, String path, Class<T> returnType, org.apache.hadoop.conf.Configuration config)
T - Generic T.webAddr - WebAddress.path - url path.returnType - return type.config - configuration.public static Map<org.apache.hadoop.yarn.server.federation.store.records.SubClusterIdInfo,Float> createUniformWeights(Set<org.apache.hadoop.yarn.server.federation.store.records.SubClusterId> ids)
ids - subClusterId setpublic static com.sun.jersey.api.client.Client createJerseyClient(org.apache.hadoop.conf.Configuration conf)
conf - Configuration.Copyright © 2008–2024 Apache Software Foundation. All rights reserved.