本文整理汇总了Java中org.apache.hadoop.yarn.util.TrackingUriPlugin类的典型用法代码示例。如果您正苦于以下问题:Java TrackingUriPlugin类的具体用法?Java TrackingUriPlugin怎么用?Java TrackingUriPlugin使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TrackingUriPlugin类属于org.apache.hadoop.yarn.util包,在下文中一共展示了TrackingUriPlugin类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: WebAppProxyServlet
import org.apache.hadoop.yarn.util.TrackingUriPlugin; //导入依赖的package包/类
/**
* Default constructor
*/
public WebAppProxyServlet() {
super();
conf = new YarnConfiguration();
this.trackingUriPlugins =
conf.getInstances(YarnConfiguration.YARN_TRACKING_URL_GENERATOR,
TrackingUriPlugin.class);
this.rmAppPageUrlBase = StringHelper.pjoin(
WebAppUtils.getResolvedRMWebAppURLWithScheme(conf), "cluster", "app");
}
开发者ID:naver,项目名称:hadoop,代码行数:13,代码来源:WebAppProxyServlet.java
示例2: getUriFromTrackingPlugins
import org.apache.hadoop.yarn.util.TrackingUriPlugin; //导入依赖的package包/类
/**
* Returns the first valid tracking link, if any, from the given id from the
* given list of plug-ins, if any.
*
* @param id the id of the application for which the tracking link is desired
* @param trackingUriPlugins list of plugins from which to get the tracking link
* @return the desired link if possible, otherwise null
* @throws URISyntaxException
*/
public static URI getUriFromTrackingPlugins(ApplicationId id,
List<TrackingUriPlugin> trackingUriPlugins)
throws URISyntaxException {
URI toRet = null;
for(TrackingUriPlugin plugin : trackingUriPlugins)
{
toRet = plugin.getTrackingUri(id);
if (toRet != null)
{
return toRet;
}
}
return null;
}
开发者ID:naver,项目名称:hadoop,代码行数:24,代码来源:ProxyUriUtils.java
示例3: testGetProxyUriFromPluginsReturnsNullIfNoPlugins
import org.apache.hadoop.yarn.util.TrackingUriPlugin; //导入依赖的package包/类
@Test
public void testGetProxyUriFromPluginsReturnsNullIfNoPlugins()
throws URISyntaxException {
ApplicationId id = BuilderUtils.newApplicationId(6384623l, 5);
List<TrackingUriPlugin> list =
Lists.newArrayListWithExpectedSize(0);
assertNull(ProxyUriUtils.getUriFromTrackingPlugins(id, list));
}
开发者ID:naver,项目名称:hadoop,代码行数:9,代码来源:TestProxyUriUtils.java
示例4: WebAppProxyServlet
import org.apache.hadoop.yarn.util.TrackingUriPlugin; //导入依赖的package包/类
/**
* Default constructor
*/
public WebAppProxyServlet() {
super();
conf = new YarnConfiguration();
this.trackingUriPlugins =
conf.getInstances(YarnConfiguration.YARN_TRACKING_URL_GENERATOR,
TrackingUriPlugin.class);
this.rmAppPageUrlBase = StringHelper.pjoin(
WebAppUtils.getResolvedRMWebAppURLWithScheme(conf), "cluster", "app");
this.ahsAppPageUrlBase = StringHelper.pjoin(
WebAppUtils.getHttpSchemePrefix(conf) + WebAppUtils
.getAHSWebAppURLWithoutScheme(conf), "applicationhistory", "apps");
}
开发者ID:aliyun-beta,项目名称:aliyun-oss-hadoop-fs,代码行数:16,代码来源:WebAppProxyServlet.java
示例5: WebAppProxyServlet
import org.apache.hadoop.yarn.util.TrackingUriPlugin; //导入依赖的package包/类
/**
* Default constructor
*/
public WebAppProxyServlet()
{
super();
conf = new YarnConfiguration();
this.trackingUriPlugins =
conf.getInstances(YarnConfiguration.YARN_TRACKING_URL_GENERATOR,
TrackingUriPlugin.class);
this.rmAppPageUrlBase = StringHelper.pjoin(
WebAppUtils.getResolvedRMWebAppURLWithScheme(conf), "cluster", "app");
}
开发者ID:Nextzero,项目名称:hadoop-2.6.0-cdh5.4.3,代码行数:14,代码来源:WebAppProxyServlet.java
示例6: WebAppProxyServlet
import org.apache.hadoop.yarn.util.TrackingUriPlugin; //导入依赖的package包/类
/**
* Default constructor
*/
public WebAppProxyServlet()
{
super();
YarnConfiguration conf = new YarnConfiguration();
this.trackingUriPlugins =
conf.getInstances(YarnConfiguration.YARN_TRACKING_URL_GENERATOR,
TrackingUriPlugin.class);
this.rmAppPageUrlBase = StringHelper.pjoin(
YarnConfiguration.getRMWebAppURL(conf), "cluster", "app");
}
开发者ID:ict-carch,项目名称:hadoop-plus,代码行数:14,代码来源:WebAppProxyServlet.java
示例7: WebAppProxyServlet
import org.apache.hadoop.yarn.util.TrackingUriPlugin; //导入依赖的package包/类
/**
* Default constructor
*/
public WebAppProxyServlet() {
super();
conf = new YarnConfiguration();
this.trackingUriPlugins =
conf.getInstances(YarnConfiguration.YARN_TRACKING_URL_GENERATOR,
TrackingUriPlugin.class);
this.rmAppPageUrlBase = StringHelper.pjoin(
WebAppUtils.getResolvedRMWebAppURLWithScheme(conf), "cluster", "app");
this.ahsAppPageUrlBase = StringHelper.pjoin(
WebAppUtils.getHttpSchemePrefix(conf) + WebAppUtils
.getAHSWebAppURLWithoutScheme(conf), "applicationhistory", "app");
}
开发者ID:hopshadoop,项目名称:hops,代码行数:16,代码来源:WebAppProxyServlet.java
示例8: WebAppProxyServlet
import org.apache.hadoop.yarn.util.TrackingUriPlugin; //导入依赖的package包/类
/**
* Default constructor
*/
public WebAppProxyServlet()
{
super();
YarnConfiguration conf = new YarnConfiguration();
this.trackingUriPlugins =
conf.getInstances(YarnConfiguration.YARN_TRACKING_URL_GENERATOR,
TrackingUriPlugin.class);
this.rmAppPageUrlBase = StringHelper.pjoin(
WebAppUtils.getResolvedRMWebAppURLWithScheme(conf), "cluster", "app");
}
开发者ID:chendave,项目名称:hadoop-TCP,代码行数:14,代码来源:WebAppProxyServlet.java
示例9: readObject
import org.apache.hadoop.yarn.util.TrackingUriPlugin; //导入依赖的package包/类
/**
* This method is used by Java object deserialization, to fill in the
* transient {@link #trackingUriPlugins} field.
* See {@link ObjectInputStream#defaultReadObject()}
* <p>
* <I>Do not remove</I>
* <p>
* Yarn isn't currently serializing this class, but findbugs
* complains in its absence.
*
*
* @param input source
* @throws IOException IO failure
* @throws ClassNotFoundException classloader fun
*/
private void readObject(ObjectInputStream input)
throws IOException, ClassNotFoundException {
input.defaultReadObject();
conf = new YarnConfiguration();
this.trackingUriPlugins =
conf.getInstances(YarnConfiguration.YARN_TRACKING_URL_GENERATOR,
TrackingUriPlugin.class);
}
开发者ID:naver,项目名称:hadoop,代码行数:24,代码来源:WebAppProxyServlet.java
注:本文中的org.apache.hadoop.yarn.util.TrackingUriPlugin类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论