Class HistoryClientService
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.mapreduce.v2.hs.HistoryClientService
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.service.Service
public class HistoryClientService
extends org.apache.hadoop.service.AbstractService
This module is responsible for talking to the
JobClient (user facing).
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE -
Constructor Summary
ConstructorsConstructorDescriptionHistoryClientService(HistoryContext history, JHSDelegationTokenSecretManager jhsDTSecretManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.glassfish.jersey.server.ResourceConfigconfigure(org.apache.hadoop.conf.Configuration configuration, org.apache.hadoop.yarn.api.ApplicationClientProtocol protocol) org.apache.hadoop.mapreduce.v2.api.MRClientProtocolprotected voidinitializeWebApp(org.apache.hadoop.conf.Configuration conf) protected voidprotected voidMethods inherited from class org.apache.hadoop.service.AbstractService
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceInit, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
-
Constructor Details
-
HistoryClientService
public HistoryClientService(HistoryContext history, JHSDelegationTokenSecretManager jhsDTSecretManager)
-
-
Method Details
-
serviceStart
- Overrides:
serviceStartin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
initializeWebApp
@VisibleForTesting protected void initializeWebApp(org.apache.hadoop.conf.Configuration conf) throws IOException - Throws:
IOException
-
serviceStop
- Overrides:
serviceStopin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
getClientHandler
@Private public org.apache.hadoop.mapreduce.v2.api.MRClientProtocol getClientHandler() -
getBindAddress
-
configure
protected org.glassfish.jersey.server.ResourceConfig configure(org.apache.hadoop.conf.Configuration configuration, org.apache.hadoop.yarn.api.ApplicationClientProtocol protocol)
-