org.apache.hadoop.mapreduce.v2.hs.server
Class HSAdminServer

java.lang.Object
  extended by org.apache.hadoop.service.AbstractService
      extended by org.apache.hadoop.mapreduce.v2.hs.server.HSAdminServer
All Implemented Interfaces:
Closeable, HSAdminProtocol, HSAdminRefreshProtocol, org.apache.hadoop.security.RefreshUserMappingsProtocol, org.apache.hadoop.service.Service, org.apache.hadoop.tools.GetUserMappingsProtocol

@InterfaceAudience.Private
public class HSAdminServer
extends org.apache.hadoop.service.AbstractService
implements HSAdminProtocol


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE
 
Field Summary
protected  InetSocketAddress clientRpcAddress
           
protected  org.apache.hadoop.ipc.RPC.Server clientRpcServer
          The RPC server that listens to requests from clients
 
Fields inherited from interface org.apache.hadoop.tools.GetUserMappingsProtocol
versionID
 
Fields inherited from interface org.apache.hadoop.security.RefreshUserMappingsProtocol
versionID
 
Constructor Summary
HSAdminServer(org.apache.hadoop.yarn.logaggregation.AggregatedLogDeletionService aggLogDelService, JobHistory jobHistoryService)
           
 
Method Summary
protected  org.apache.hadoop.conf.Configuration createConf()
           
 String[] getGroupsForUser(String user)
           
 void refreshAdminAcls()
          Refresh admin acls.
 void refreshJobRetentionSettings()
          Refresh job retention settings.
 void refreshLoadedJobCache()
          Refresh loaded job cache
 void refreshLogRetentionSettings()
          Refresh log retention settings.
 void refreshSuperUserGroupsConfiguration()
           
 void refreshUserToGroupsMappings()
           
 void serviceInit(org.apache.hadoop.conf.Configuration conf)
           
protected  void serviceStart()
           
protected  void serviceStop()
           
 
Methods inherited from class org.apache.hadoop.service.AbstractService
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

clientRpcServer

protected org.apache.hadoop.ipc.RPC.Server clientRpcServer
The RPC server that listens to requests from clients


clientRpcAddress

protected InetSocketAddress clientRpcAddress
Constructor Detail

HSAdminServer

public HSAdminServer(org.apache.hadoop.yarn.logaggregation.AggregatedLogDeletionService aggLogDelService,
                     JobHistory jobHistoryService)
Method Detail

serviceInit

public void serviceInit(org.apache.hadoop.conf.Configuration conf)
                 throws Exception
Overrides:
serviceInit in class org.apache.hadoop.service.AbstractService
Throws:
Exception

serviceStart

protected void serviceStart()
                     throws Exception
Overrides:
serviceStart in class org.apache.hadoop.service.AbstractService
Throws:
Exception

serviceStop

protected void serviceStop()
                    throws Exception
Overrides:
serviceStop in class org.apache.hadoop.service.AbstractService
Throws:
Exception

getGroupsForUser

public String[] getGroupsForUser(String user)
                          throws IOException
Specified by:
getGroupsForUser in interface org.apache.hadoop.tools.GetUserMappingsProtocol
Throws:
IOException

refreshUserToGroupsMappings

public void refreshUserToGroupsMappings()
                                 throws IOException
Specified by:
refreshUserToGroupsMappings in interface org.apache.hadoop.security.RefreshUserMappingsProtocol
Throws:
IOException

refreshSuperUserGroupsConfiguration

public void refreshSuperUserGroupsConfiguration()
                                         throws IOException
Specified by:
refreshSuperUserGroupsConfiguration in interface org.apache.hadoop.security.RefreshUserMappingsProtocol
Throws:
IOException

createConf

protected org.apache.hadoop.conf.Configuration createConf()

refreshAdminAcls

public void refreshAdminAcls()
                      throws IOException
Description copied from interface: HSAdminRefreshProtocol
Refresh admin acls.

Specified by:
refreshAdminAcls in interface HSAdminRefreshProtocol
Throws:
IOException

refreshLoadedJobCache

public void refreshLoadedJobCache()
                           throws IOException
Description copied from interface: HSAdminRefreshProtocol
Refresh loaded job cache

Specified by:
refreshLoadedJobCache in interface HSAdminRefreshProtocol
Throws:
IOException

refreshLogRetentionSettings

public void refreshLogRetentionSettings()
                                 throws IOException
Description copied from interface: HSAdminRefreshProtocol
Refresh log retention settings.

Specified by:
refreshLogRetentionSettings in interface HSAdminRefreshProtocol
Throws:
IOException

refreshJobRetentionSettings

public void refreshJobRetentionSettings()
                                 throws IOException
Description copied from interface: HSAdminRefreshProtocol
Refresh job retention settings.

Specified by:
refreshJobRetentionSettings in interface HSAdminRefreshProtocol
Throws:
IOException


Copyright © 2014 Apache Software Foundation. All Rights Reserved.