本文整理汇总了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");
}
示例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;
}
示例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));
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}
示例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);
}