@Entity public class HostRoleCommandEntity extends Object
Constructor and Description |
---|
HostRoleCommandEntity() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Short |
getAttemptCount() |
String |
getCommandDetail() |
String |
getCustomCommandName() |
Long |
getEndTime() |
String |
getErrorLog() |
String |
getEvent() |
ExecutionCommandEntity |
getExecutionCommand() |
Integer |
getExitcode() |
HostEntity |
getHostEntity() |
Long |
getHostId() |
String |
getHostName() |
Long |
getLastAttemptTime() |
String |
getOpsDisplayName() |
Long |
getOriginalStartTime()
Get the original time the command was first scheduled on the agent.
|
String |
getOutputLog() |
Long |
getRequestId() |
Role |
getRole() |
RoleCommand |
getRoleCommand() |
StageEntity |
getStage() |
Long |
getStageId() |
Long |
getStartTime() |
HostRoleStatus |
getStatus() |
byte[] |
getStdError() |
byte[] |
getStdOut() |
byte[] |
getStructuredOut() |
Long |
getTaskId() |
TopologyLogicalTaskEntity |
getTopologyLogicalTaskEntity() |
int |
hashCode() |
boolean |
isBackgroundCommand()
Gets whether this command runs in the background and will not block other
commands.
|
boolean |
isFailureAutoSkipped()
Gets whether commands which fail and are retryable are automatically
skipped and marked with
HostRoleStatus.SKIPPED_FAILED . |
boolean |
isRetryAllowed()
Determine whether this task should hold for retry when an error occurs.
|
void |
setAttemptCount(Short attemptCount) |
void |
setAutoSkipOnFailure(boolean skipFailures)
Sets whether commands which fail and are retryable are automatically
skipped and marked with
HostRoleStatus.SKIPPED_FAILED . |
void |
setBackgroundCommand(boolean runInBackground)
Sets whether this is a command is a background command and will not block
other commands.
|
void |
setCommandDetail(String commandDetail) |
void |
setCustomCommandName(String customCommandName) |
void |
setEndTime(Long endTime) |
void |
setErrorLog(String errorLog) |
void |
setEvent(String event) |
void |
setExecutionCommand(ExecutionCommandEntity executionCommandsByTaskId) |
void |
setExitcode(Integer exitcode) |
void |
setHostEntity(HostEntity hostEntity) |
void |
setLastAttemptTime(Long lastAttemptTime) |
void |
setOpsDisplayName(String opsDisplayName) |
void |
setOriginalStartTime(Long originalStartTime)
Set the original start time when the command is first scheduled.
|
void |
setOutputLog(String outputLog) |
void |
setRequestId(Long requestId) |
void |
setRetryAllowed(boolean enabled)
Sets whether this task should hold for retry when an error occurs.
|
void |
setRole(Role role) |
void |
setRoleCommand(RoleCommand roleCommand) |
void |
setStage(StageEntity stage)
Sets the associated
StageEntity for this command. |
void |
setStageId(Long stageId) |
void |
setStartTime(Long startTime) |
void |
setStatus(HostRoleStatus status) |
void |
setStdError(byte[] stdError) |
void |
setStdOut(byte[] stdOut) |
void |
setStructuredOut(byte[] structuredOut) |
void |
setTaskId(Long taskId) |
void |
setTopologyLogicalTaskEntity(TopologyLogicalTaskEntity topologyLogicalTaskEntity) |
String |
toString() |
public Long getTaskId()
public void setTaskId(Long taskId)
public Long getRequestId()
public void setRequestId(Long requestId)
public Long getStageId()
public void setStageId(Long stageId)
public String getHostName()
public Long getHostId()
public Role getRole()
public void setRole(Role role)
public String getEvent()
public void setEvent(String event)
public Integer getExitcode()
public void setExitcode(Integer exitcode)
public HostRoleStatus getStatus()
public void setStatus(HostRoleStatus status)
public byte[] getStdError()
public void setStdError(byte[] stdError)
public byte[] getStdOut()
public void setStdOut(byte[] stdOut)
public String getOutputLog()
public void setOutputLog(String outputLog)
public String getErrorLog()
public void setErrorLog(String errorLog)
public Long getStartTime()
public void setStartTime(Long startTime)
public Long getOriginalStartTime()
public void setOriginalStartTime(Long originalStartTime)
originalStartTime
- Original start timepublic Long getLastAttemptTime()
public void setLastAttemptTime(Long lastAttemptTime)
public Short getAttemptCount()
public void setAttemptCount(Short attemptCount)
public RoleCommand getRoleCommand()
public void setRoleCommand(RoleCommand roleCommand)
public byte[] getStructuredOut()
public void setStructuredOut(byte[] structuredOut)
public Long getEndTime()
public void setEndTime(Long endTime)
public String getCommandDetail()
public void setCommandDetail(String commandDetail)
public String getCustomCommandName()
public void setCustomCommandName(String customCommandName)
public String getOpsDisplayName()
public void setOpsDisplayName(String opsDisplayName)
public boolean isRetryAllowed()
true
if this task should hold for retry when an error occurspublic void setRetryAllowed(boolean enabled)
enabled
- true
if this task should hold for retry when an error occurspublic boolean isFailureAutoSkipped()
HostRoleStatus.SKIPPED_FAILED
.public void setAutoSkipOnFailure(boolean skipFailures)
HostRoleStatus.SKIPPED_FAILED
.skipFailures
- public void setBackgroundCommand(boolean runInBackground)
runInBackground
- true
if this is a background command, false
otherwise.public boolean isBackgroundCommand()
public ExecutionCommandEntity getExecutionCommand()
public void setExecutionCommand(ExecutionCommandEntity executionCommandsByTaskId)
public StageEntity getStage()
public void setStage(StageEntity stage)
StageEntity
for this command. If the
StageEntity
has been persisted, then this will also set the
commands stage and request ID fields.stage
- public HostEntity getHostEntity()
public void setHostEntity(HostEntity hostEntity)
public TopologyLogicalTaskEntity getTopologyLogicalTaskEntity()
public void setTopologyLogicalTaskEntity(TopologyLogicalTaskEntity topologyLogicalTaskEntity)
Copyright © 2022 Apache Software Foundation. All rights reserved.