public class SecureDataNodeStarter extends Object implements org.apache.commons.daemon.Daemon
Modifier and Type | Class and Description |
---|---|
static class |
SecureDataNodeStarter.SecureResources
Stash necessary resources needed for datanode operation in a secure env.
|
Constructor and Description |
---|
SecureDataNodeStarter() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
static SecureDataNodeStarter.SecureResources |
getSecureResources(org.apache.hadoop.conf.Configuration conf)
Acquire privileged resources (i.e., the privileged ports) for the data
node.
|
void |
init(org.apache.commons.daemon.DaemonContext context) |
void |
start() |
void |
stop() |
public void init(org.apache.commons.daemon.DaemonContext context) throws Exception
init
in interface org.apache.commons.daemon.Daemon
Exception
public void start() throws Exception
start
in interface org.apache.commons.daemon.Daemon
Exception
public void destroy()
destroy
in interface org.apache.commons.daemon.Daemon
public void stop() throws Exception
stop
in interface org.apache.commons.daemon.Daemon
Exception
public static SecureDataNodeStarter.SecureResources getSecureResources(org.apache.hadoop.conf.Configuration conf) throws Exception
Exception
Copyright © 2017 Apache Software Foundation. All Rights Reserved.