public class RegistryDNSServer
extends org.apache.hadoop.service.CompositeService
| Modifier and Type | Field and Description |
|---|---|
static int |
SHUTDOWN_HOOK_PRIORITY |
| Constructor and Description |
|---|
RegistryDNSServer(String name,
RegistryDNS registryDNS)
Creates the DNS server.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Lanches the server instance.
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf)
Initializes the DNS server.
|
protected void |
serviceStart()
Starts the server.
|
addIfService, addService, getServices, removeService, serviceStopclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic static final int SHUTDOWN_HOOK_PRIORITY
public RegistryDNSServer(String name, RegistryDNS registryDNS)
name - the server name.registryDNS - the registry DNS instance.protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
serviceInit in class org.apache.hadoop.service.CompositeServiceconf - the hadoop configuration instance.Exception - if service initialization fails.protected void serviceStart()
throws Exception
serviceStart in class org.apache.hadoop.service.CompositeServiceException - if service start fails.public static void main(String[] args) throws IOException
args - the command line args.IOException - if command line options can't be parsedCopyright © 2008–2022 Apache Software Foundation. All rights reserved.