public class LlapRegistryService
extends org.apache.hadoop.service.AbstractService
| Modifier and Type | Field and Description |
|---|---|
static String |
LLAP_DAEMON_NUM_ENABLED_EXECUTORS |
static String |
LLAP_DAEMON_TASK_SCHEDULER_ENABLED_WAIT_QUEUE_SIZE |
| Constructor and Description |
|---|
LlapRegistryService(boolean isDaemon) |
| Modifier and Type | Method and Description |
|---|---|
static String |
currentUser() |
org.apache.hadoop.yarn.api.records.ApplicationId |
getApplicationId() |
static LlapRegistryService |
getClient(org.apache.hadoop.conf.Configuration conf)
Helper method to get a ServiceRegistry instance to read from the registry.
|
LlapServiceInstanceSet |
getInstances() |
LlapServiceInstanceSet |
getInstances(long clusterReadyTimeoutMs) |
String |
getWorkerIdentity() |
boolean |
isDynamic() |
LlapZookeeperRegistryImpl.ConfigChangeLockResult |
lockForConfigChange(long windowStart,
long windowEnd)
Locks the Llap Cluster for configuration change for the given time window.
|
void |
registerStateChangeListener(ServiceInstanceStateChangeListener<LlapServiceInstance> listener) |
void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
void |
serviceStart() |
void |
serviceStop() |
void |
updateRegistration(Iterable<Map.Entry<String,String>> attributes) |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic static final String LLAP_DAEMON_TASK_SCHEDULER_ENABLED_WAIT_QUEUE_SIZE
public static final String LLAP_DAEMON_NUM_ENABLED_EXECUTORS
public static LlapRegistryService getClient(org.apache.hadoop.conf.Configuration conf)
conf - Configuration instance which contains service registry information.public static String currentUser()
public void serviceInit(org.apache.hadoop.conf.Configuration conf)
serviceInit in class org.apache.hadoop.service.AbstractServicepublic void serviceStart()
throws Exception
serviceStart in class org.apache.hadoop.service.AbstractServiceExceptionpublic void serviceStop()
throws Exception
serviceStop in class org.apache.hadoop.service.AbstractServiceExceptionpublic void updateRegistration(Iterable<Map.Entry<String,String>> attributes) throws IOException
IOExceptionpublic LlapZookeeperRegistryImpl.ConfigChangeLockResult lockForConfigChange(long windowStart, long windowEnd)
windowStart - The beginning of the time window when no other configuration change is allowed.windowEnd - The end of the time window when no other configuration change is allowed.public LlapServiceInstanceSet getInstances() throws IOException
IOExceptionpublic LlapServiceInstanceSet getInstances(long clusterReadyTimeoutMs) throws IOException
IOExceptionpublic void registerStateChangeListener(ServiceInstanceStateChangeListener<LlapServiceInstance> listener) throws IOException
IOExceptionpublic boolean isDynamic()
public String getWorkerIdentity()
public org.apache.hadoop.yarn.api.records.ApplicationId getApplicationId()
throws IOException
IOExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.