java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.service.Servicepublic class RegistryDNSServer
extends org.apache.hadoop.service.CompositeService
| Modifier and Type | Field | Description |
|---|---|---|
static int |
SHUTDOWN_HOOK_PRIORITY |
| Constructor | Description |
|---|---|
RegistryDNSServer(java.lang.String name,
RegistryDNS registryDNS) |
Creates the DNS server.
|
| Modifier and Type | Method | Description |
|---|---|---|
static void |
main(java.lang.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(java.lang.String name,
RegistryDNS registryDNS)
name - the server name.registryDNS - the registry DNS instance.protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws java.lang.Exception
serviceInit in class org.apache.hadoop.service.CompositeServiceconf - the hadoop configuration instance.java.lang.Exception - if service initialization fails.protected void serviceStart()
throws java.lang.Exception
serviceStart in class org.apache.hadoop.service.CompositeServicejava.lang.Exception - if service start fails.public static void main(java.lang.String[] args)
throws java.io.IOException
args - the command line args.java.io.IOException - if command line options can't be parsedCopyright © 2008–2025 Apache Software Foundation. All rights reserved.