public final class GPGUtils
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static com.sun.jersey.api.client.Client |
createJerseyClient(org.apache.hadoop.conf.Configuration conf) |
Create JerseyClient based on configuration file.
|
static java.util.Map<org.apache.hadoop.yarn.server.federation.store.records.SubClusterIdInfo,java.lang.Float> |
createUniformWeights(java.util.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(java.lang.String webAddr,
java.lang.String path,
java.lang.Class<T> returnType,
org.apache.hadoop.conf.Configuration config) |
Performs an invocation of the remote RMWebService.
|
static <T> T |
invokeRMWebService(java.lang.String webAddr,
java.lang.String path,
java.lang.Class<T> returnType,
org.apache.hadoop.conf.Configuration conf,
java.lang.String selectParam) |
Performs an invocation of the remote RMWebService.
|
public static <T> T invokeRMWebService(java.lang.String webAddr,
java.lang.String path,
java.lang.Class<T> returnType,
org.apache.hadoop.conf.Configuration conf,
java.lang.String selectParam)
T - Generic T.webAddr - WebAddress.path - url path.returnType - return type.selectParam - query parameters.conf - configuration.public static <T> T invokeRMWebService(java.lang.String webAddr,
java.lang.String path,
java.lang.Class<T> returnType,
org.apache.hadoop.conf.Configuration config)
T - Generic T.webAddr - WebAddress.path - url path.returnType - return type.config - configuration.public static java.util.Map<org.apache.hadoop.yarn.server.federation.store.records.SubClusterIdInfo,java.lang.Float> createUniformWeights(java.util.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–2025 Apache Software Foundation. All rights reserved.