Package | Description |
---|---|
org.apache.ambari.server.serveraction.kerberos | |
org.apache.ambari.server.serveraction.users | |
org.apache.ambari.server.utils |
Modifier and Type | Method and Description |
---|---|
protected ShellCommandUtil.Result |
KerberosOperationHandler.executeCommand(String[] command)
Executes a shell command.
|
protected ShellCommandUtil.Result |
KerberosOperationHandler.executeCommand(String[] command,
Map<String,String> envp,
ShellCommandUtil.InteractiveHandler interactiveHandler)
Executes a shell command.
|
protected ShellCommandUtil.Result |
KerberosOperationHandler.executeCommand(String[] command,
ShellCommandUtil.InteractiveHandler interactiveHandler)
Executes a shell command.
|
protected ShellCommandUtil.Result |
MITKerberosOperationHandler.invokeKAdmin(String query)
Invokes the kadmin shell command to issue queries
|
Modifier and Type | Method and Description |
---|---|
ShellCommandUtil.Result |
ShellCommandUtilityCallable.call() |
ShellCommandUtil.Result |
ShellCommandUtilityWrapper.runCommand(String[] args) |
ShellCommandUtil.Result |
ShellCommandUtilityWrapper.runCommand(String[] args,
Map<String,String> vars) |
Modifier and Type | Method and Description |
---|---|
static ShellCommandUtil.Result |
ShellCommandUtil.copyFile(String srcFile,
String destFile,
boolean force,
boolean sudo)
Copies a source file to the specified destination.
|
static ShellCommandUtil.Result |
ShellCommandUtil.delete(String file,
boolean force,
boolean sudo)
Deletes the
file . |
static ShellCommandUtil.Result |
ShellCommandUtil.mkdir(String directoryPath,
boolean sudo)
Creates the specified directory and any directories in the path
|
static ShellCommandUtil.Result |
ShellCommandUtil.pathExists(String path,
boolean sudo)
Test if a file or directory exists
|
static ShellCommandUtil.Result |
ShellCommandUtil.runCommand(List<String> args,
Map<String,String> vars,
ShellCommandUtil.InteractiveHandler interactiveHandler,
boolean sudo) |
static ShellCommandUtil.Result |
ShellCommandUtil.runCommand(String[] args)
Run a command
|
static ShellCommandUtil.Result |
ShellCommandUtil.runCommand(String[] args,
Map<String,String> vars)
Runs a command with a given set of environment variables
|
static ShellCommandUtil.Result |
ShellCommandUtil.runCommand(String[] args,
Map<String,String> vars,
ShellCommandUtil.InteractiveHandler interactiveHandler,
boolean sudo)
Runs a command with a given set of environment variables
|
static ShellCommandUtil.Result |
ShellCommandUtil.setFileGroup(String path,
String groupName)
Sets the group for a file.
|
static ShellCommandUtil.Result |
ShellCommandUtil.setFileMode(String path,
boolean ownerReadable,
boolean ownerWritable,
boolean ownerExecutable,
boolean groupReadable,
boolean groupWritable,
boolean groupExecutable,
boolean otherReadable,
boolean otherWritable,
boolean otherExecutable)
Set the access modes for a file
|
static ShellCommandUtil.Result |
ShellCommandUtil.setFileOwner(String path,
String ownerName)
Sets the owner for a file.
|
Copyright © 2022 Apache Software Foundation. All rights reserved.