Class Command
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a command.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
Date and time when the command was acknowledged.The command ID.Date when the command completed.Date and time when the command was run.The command deployment ID.The command exit code.The ID of the instance where the command was executed.The URL of the command log.The command status:getType()
The command type:int
hashCode()
void
setAcknowledgedAt
(String acknowledgedAt) Date and time when the command was acknowledged.void
setCommandId
(String commandId) The command ID.void
setCompletedAt
(String completedAt) Date when the command completed.void
setCreatedAt
(String createdAt) Date and time when the command was run.void
setDeploymentId
(String deploymentId) The command deployment ID.void
setExitCode
(Integer exitCode) The command exit code.void
setInstanceId
(String instanceId) The ID of the instance where the command was executed.void
The URL of the command log.void
The command status:void
The command type:toString()
Returns a string representation of this object; useful for testing and debugging.withAcknowledgedAt
(String acknowledgedAt) Date and time when the command was acknowledged.withCommandId
(String commandId) The command ID.withCompletedAt
(String completedAt) Date when the command completed.withCreatedAt
(String createdAt) Date and time when the command was run.withDeploymentId
(String deploymentId) The command deployment ID.withExitCode
(Integer exitCode) The command exit code.withInstanceId
(String instanceId) The ID of the instance where the command was executed.withLogUrl
(String logUrl) The URL of the command log.withStatus
(String status) The command status:The command type:
-
Constructor Details
-
Command
public Command()
-
-
Method Details
-
setCommandId
The command ID.
- Parameters:
commandId
- The command ID.
-
getCommandId
The command ID.
- Returns:
- The command ID.
-
withCommandId
The command ID.
- Parameters:
commandId
- The command ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceId
The ID of the instance where the command was executed.
- Parameters:
instanceId
- The ID of the instance where the command was executed.
-
getInstanceId
The ID of the instance where the command was executed.
- Returns:
- The ID of the instance where the command was executed.
-
withInstanceId
The ID of the instance where the command was executed.
- Parameters:
instanceId
- The ID of the instance where the command was executed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDeploymentId
The command deployment ID.
- Parameters:
deploymentId
- The command deployment ID.
-
getDeploymentId
The command deployment ID.
- Returns:
- The command deployment ID.
-
withDeploymentId
The command deployment ID.
- Parameters:
deploymentId
- The command deployment ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreatedAt
Date and time when the command was run.
- Parameters:
createdAt
- Date and time when the command was run.
-
getCreatedAt
Date and time when the command was run.
- Returns:
- Date and time when the command was run.
-
withCreatedAt
Date and time when the command was run.
- Parameters:
createdAt
- Date and time when the command was run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAcknowledgedAt
Date and time when the command was acknowledged.
- Parameters:
acknowledgedAt
- Date and time when the command was acknowledged.
-
getAcknowledgedAt
Date and time when the command was acknowledged.
- Returns:
- Date and time when the command was acknowledged.
-
withAcknowledgedAt
Date and time when the command was acknowledged.
- Parameters:
acknowledgedAt
- Date and time when the command was acknowledged.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCompletedAt
Date when the command completed.
- Parameters:
completedAt
- Date when the command completed.
-
getCompletedAt
Date when the command completed.
- Returns:
- Date when the command completed.
-
withCompletedAt
Date when the command completed.
- Parameters:
completedAt
- Date when the command completed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
The command status:
- failed
- successful
- skipped
- pending
- Parameters:
status
- The command status:- failed
- successful
- skipped
- pending
-
getStatus
The command status:
- failed
- successful
- skipped
- pending
- Returns:
- The command status:
- failed
- successful
- skipped
- pending
-
withStatus
The command status:
- failed
- successful
- skipped
- pending
- Parameters:
status
- The command status:- failed
- successful
- skipped
- pending
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setExitCode
The command exit code.
- Parameters:
exitCode
- The command exit code.
-
getExitCode
The command exit code.
- Returns:
- The command exit code.
-
withExitCode
The command exit code.
- Parameters:
exitCode
- The command exit code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLogUrl
The URL of the command log.
- Parameters:
logUrl
- The URL of the command log.
-
getLogUrl
The URL of the command log.
- Returns:
- The URL of the command log.
-
withLogUrl
The URL of the command log.
- Parameters:
logUrl
- The URL of the command log.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setType
The command type:
-
deploy
-
rollback
-
start
-
stop
-
restart
-
undeploy
-
update_dependencies
-
install_dependencies
-
update_custom_cookbooks
-
execute_recipes
- Parameters:
type
- The command type:-
deploy
-
rollback
-
start
-
stop
-
restart
-
undeploy
-
update_dependencies
-
install_dependencies
-
update_custom_cookbooks
-
execute_recipes
-
-
-
getType
The command type:
-
deploy
-
rollback
-
start
-
stop
-
restart
-
undeploy
-
update_dependencies
-
install_dependencies
-
update_custom_cookbooks
-
execute_recipes
- Returns:
- The command type:
-
deploy
-
rollback
-
start
-
stop
-
restart
-
undeploy
-
update_dependencies
-
install_dependencies
-
update_custom_cookbooks
-
execute_recipes
-
-
-
withType
The command type:
-
deploy
-
rollback
-
start
-
stop
-
restart
-
undeploy
-
update_dependencies
-
install_dependencies
-
update_custom_cookbooks
-
execute_recipes
- Parameters:
type
- The command type:-
deploy
-
rollback
-
start
-
stop
-
restart
-
undeploy
-
update_dependencies
-
install_dependencies
-
update_custom_cookbooks
-
execute_recipes
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-