Class CommandResult
java.lang.Object
com.ibm.wsspi.collective.plugins.helpers.CommandResult
Helper class that encapsulates the result of a single command.
-
Constructor Summary
ConstructorsConstructorDescriptionCommandResult
(String description, int returnCode, String stderr) Convenience constructor for failed resultsCommandResult
(String description, String status) Convenience constructor when we just want to add a description and status, and set the current time stamp.CommandResult
(String description, String status, int returnCode, String stdout, String stderr) -
Method Summary
Modifier and TypeMethodDescriptionint
long
void
setDescription
(String description) void
setReturnCode
(int returnCode) void
void
void
void
setTimestamp
(long timestamp)
-
Constructor Details
-
CommandResult
public CommandResult(String description, String status, int returnCode, String stdout, String stderr) - Parameters:
description
-status
-returnCode
-stdout
-stderr
-
-
CommandResult
Convenience constructor when we just want to add a description and status, and set the current time stamp. -
CommandResult
Convenience constructor for failed results
-
-
Method Details
-
getDescription
- Returns:
- the description
-
setDescription
- Parameters:
description
- the description to set
-
getStatus
- Returns:
- the status
-
setStatus
- Parameters:
status
- the status to set
-
getReturnCode
public int getReturnCode()- Returns:
- the returnCode
-
setReturnCode
public void setReturnCode(int returnCode) - Parameters:
returnCode
- the returnCode to set
-
getStdout
- Returns:
- the stdout
-
setStdout
- Parameters:
stdout
- the stdout to set
-
getStderr
- Returns:
- the stderr
-
setStderr
- Parameters:
stderr
- the stderr to set
-
getTimestamp
public long getTimestamp()- Returns:
- the timestamp
-
setTimestamp
public void setTimestamp(long timestamp) - Parameters:
timestamp
- the timestamp to set
-