public interface ServerAction
Modifier and Type | Field and Description |
---|---|
static String |
ACTION_NAME |
static String |
ACTION_USER_NAME |
static int |
DEFAULT_LONG_RUNNING_TASK_TIMEOUT_SECONDS
The default timeout (in seconds) to use for potentially long running tasks such as creating
Kerberos principals and generating Kerberos keytab files
|
static String |
WRAPPED_CLASS_NAME
The name of the class that the server action is going to delegate to.
|
Modifier and Type | Method and Description |
---|---|
CommandReport |
execute(ConcurrentMap<String,Object> requestSharedDataContext)
Executes this ServerAction
This is typically called by the ServerActionExecutor in it's own thread, but there is no
guarantee that this is the case.
|
ExecutionCommand |
getExecutionCommand()
Gets the ExecutionCommand property of this ServerAction.
|
HostRoleCommand |
getHostRoleCommand()
Gets the HostRoleCommand property of this ServerAction.
|
void |
setExecutionCommand(ExecutionCommand command)
Sets the ExecutionCommand property of this ServerAction.
|
void |
setHostRoleCommand(HostRoleCommand hostRoleCommand)
Sets the HostRoleCommand property of this ServerAction.
|
static final String ACTION_NAME
static final String ACTION_USER_NAME
static final String WRAPPED_CLASS_NAME
static final int DEFAULT_LONG_RUNNING_TASK_TIMEOUT_SECONDS
ExecutionCommand getExecutionCommand()
void setExecutionCommand(ExecutionCommand command)
command
- the ExecutionCommand data to setHostRoleCommand getHostRoleCommand()
void setHostRoleCommand(HostRoleCommand hostRoleCommand)
hostRoleCommand
- the HostRoleCommand data to setCommandReport execute(ConcurrentMap<String,Object> requestSharedDataContext) throws org.apache.ambari.server.AmbariException, InterruptedException
requestSharedDataContext
- a Map to be used a shared data among all ServerActions related
to a given requestorg.apache.ambari.server.AmbariException
InterruptedException
Copyright © 2022 Apache Software Foundation. All rights reserved.