public class LlapRegistryService
extends org.apache.hadoop.service.AbstractService
Constructor and Description |
---|
LlapRegistryService(boolean isDaemon) |
Modifier and Type | Method and Description |
---|---|
static LlapRegistryService |
getClient(org.apache.hadoop.conf.Configuration conf)
Helper method to get a ServiceRegistry instance to read from the registry.
|
ServiceInstanceSet |
getInstances() |
String |
getWorkerIdentity() |
boolean |
isDynamic() |
void |
registerStateChangeListener(ServiceInstanceStateChangeListener listener) |
void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
void |
serviceStart() |
void |
serviceStop() |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
public static LlapRegistryService getClient(org.apache.hadoop.conf.Configuration conf)
conf
- Configuration
instance which contains service registry information.public void serviceInit(org.apache.hadoop.conf.Configuration conf)
serviceInit
in class org.apache.hadoop.service.AbstractService
public void serviceStart() throws Exception
serviceStart
in class org.apache.hadoop.service.AbstractService
Exception
public void serviceStop() throws Exception
serviceStop
in class org.apache.hadoop.service.AbstractService
Exception
public ServiceInstanceSet getInstances() throws IOException
IOException
public void registerStateChangeListener(ServiceInstanceStateChangeListener listener) throws IOException
IOException
public boolean isDynamic()
public String getWorkerIdentity()
Copyright © 2016 The Apache Software Foundation. All rights reserved.