java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.service.Servicepublic class RouterHttpServer
extends org.apache.hadoop.service.AbstractService
Router. It exposes the Web UI and the WebHDFS
methods from RouterWebHdfsMethods.| Modifier and Type | Field | Description |
|---|---|---|
protected static java.lang.String |
NAMENODE_ATTRIBUTE_KEY |
| Constructor | Description |
|---|---|
RouterHttpServer(Router router) |
| Modifier and Type | Method | Description |
|---|---|---|
java.net.InetSocketAddress |
getHttpAddress() |
|
java.net.InetSocketAddress |
getHttpsAddress() |
|
static Router |
getRouterFromContext(javax.servlet.ServletContext context) |
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration configuration) |
|
protected void |
serviceStart() |
|
protected void |
serviceStop() |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStopprotected static final java.lang.String NAMENODE_ATTRIBUTE_KEY
public RouterHttpServer(Router router)
protected void serviceInit(org.apache.hadoop.conf.Configuration configuration)
throws java.lang.Exception
serviceInit in class org.apache.hadoop.service.AbstractServicejava.lang.Exceptionprotected void serviceStart()
throws java.lang.Exception
serviceStart in class org.apache.hadoop.service.AbstractServicejava.lang.Exceptionprotected void serviceStop()
throws java.lang.Exception
serviceStop in class org.apache.hadoop.service.AbstractServicejava.lang.Exceptionpublic java.net.InetSocketAddress getHttpAddress()
public java.net.InetSocketAddress getHttpsAddress()
public static Router getRouterFromContext(javax.servlet.ServletContext context)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.