public class ActionDefinition extends Object
Constructor and Description |
---|
ActionDefinition(String actionName,
ActionType actionType,
String inputs,
String targetService,
String targetComponent,
String description,
TargetHostType targetType,
Short defaultTimeout)
Create an instance of ActionDefinition
|
Modifier and Type | Method and Description |
---|---|
ActionResponse |
convertToResponse() |
String |
getActionName() |
ActionType |
getActionType() |
Short |
getDefaultTimeout() |
String |
getDescription() |
String |
getInputs() |
String |
getTargetComponent() |
String |
getTargetService() |
TargetHostType |
getTargetType() |
void |
setActionName(String actionName) |
void |
setActionType(ActionType actionType) |
void |
setDefaultTimeout(Short defaultTimeout) |
void |
setDescription(String description) |
void |
setInputs(String inputs) |
void |
setTargetComponent(String targetComponent) |
void |
setTargetService(String targetService) |
void |
setTargetType(TargetHostType targetType) |
public ActionDefinition(String actionName, ActionType actionType, String inputs, String targetService, String targetComponent, String description, TargetHostType targetType, Short defaultTimeout)
actionName
- The name of the actionactionType
- The type fo the actioninputs
- Expected input of the actiontargetService
- Target service type (e.g. HDFS)targetComponent
- Target component type (e.g. DATANODE)description
- Short description of the actiontargetType
- Selection criteria for target hostsdefaultTimeout
- The timeout value for this action when executedpublic String getActionName()
public void setActionName(String actionName)
public ActionType getActionType()
public void setActionType(ActionType actionType)
public String getInputs()
public void setInputs(String inputs)
public String getTargetService()
public void setTargetService(String targetService)
public String getTargetComponent()
public void setTargetComponent(String targetComponent)
public String getDescription()
public void setDescription(String description)
public TargetHostType getTargetType()
public void setTargetType(TargetHostType targetType)
public Short getDefaultTimeout()
public void setDefaultTimeout(Short defaultTimeout)
public ActionResponse convertToResponse()
Copyright © 2015. All rights reserved.