Class Diagnostics
- All Implemented Interfaces:
Serializable
,Cloneable
Diagnostic information about executable scripts that are part of a deployment.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The associated error code:The last portion of the diagnostic log.The message associated with the error.The name of the script.int
hashCode()
void
setErrorCode
(LifecycleErrorCode errorCode) The associated error code:void
setErrorCode
(String errorCode) The associated error code:void
setLogTail
(String logTail) The last portion of the diagnostic log.void
setMessage
(String message) The message associated with the error.void
setScriptName
(String scriptName) The name of the script.toString()
Returns a string representation of this object; useful for testing and debugging.withErrorCode
(LifecycleErrorCode errorCode) The associated error code:withErrorCode
(String errorCode) The associated error code:withLogTail
(String logTail) The last portion of the diagnostic log.withMessage
(String message) The message associated with the error.withScriptName
(String scriptName) The name of the script.
-
Constructor Details
-
Diagnostics
public Diagnostics()
-
-
Method Details
-
setErrorCode
The associated error code:
- Success: The specified script ran.
- ScriptMissing: The specified script was not found in the specified location.
- ScriptNotExecutable: The specified script is not a recognized executable file type.
- ScriptTimedOut: The specified script did not finish running in the specified time period.
- ScriptFailed: The specified script failed to run as expected.
- UnknownError: The specified script did not run for an unknown reason.
- Parameters:
errorCode
- The associated error code:- Success: The specified script ran.
- ScriptMissing: The specified script was not found in the specified location.
- ScriptNotExecutable: The specified script is not a recognized executable file type.
- ScriptTimedOut: The specified script did not finish running in the specified time period.
- ScriptFailed: The specified script failed to run as expected.
- UnknownError: The specified script did not run for an unknown reason.
- See Also:
-
getErrorCode
The associated error code:
- Success: The specified script ran.
- ScriptMissing: The specified script was not found in the specified location.
- ScriptNotExecutable: The specified script is not a recognized executable file type.
- ScriptTimedOut: The specified script did not finish running in the specified time period.
- ScriptFailed: The specified script failed to run as expected.
- UnknownError: The specified script did not run for an unknown reason.
- Returns:
- The associated error code:
- Success: The specified script ran.
- ScriptMissing: The specified script was not found in the specified location.
- ScriptNotExecutable: The specified script is not a recognized executable file type.
- ScriptTimedOut: The specified script did not finish running in the specified time period.
- ScriptFailed: The specified script failed to run as expected.
- UnknownError: The specified script did not run for an unknown reason.
- See Also:
-
withErrorCode
The associated error code:
- Success: The specified script ran.
- ScriptMissing: The specified script was not found in the specified location.
- ScriptNotExecutable: The specified script is not a recognized executable file type.
- ScriptTimedOut: The specified script did not finish running in the specified time period.
- ScriptFailed: The specified script failed to run as expected.
- UnknownError: The specified script did not run for an unknown reason.
- Parameters:
errorCode
- The associated error code:- Success: The specified script ran.
- ScriptMissing: The specified script was not found in the specified location.
- ScriptNotExecutable: The specified script is not a recognized executable file type.
- ScriptTimedOut: The specified script did not finish running in the specified time period.
- ScriptFailed: The specified script failed to run as expected.
- UnknownError: The specified script did not run for an unknown reason.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setErrorCode
The associated error code:
- Success: The specified script ran.
- ScriptMissing: The specified script was not found in the specified location.
- ScriptNotExecutable: The specified script is not a recognized executable file type.
- ScriptTimedOut: The specified script did not finish running in the specified time period.
- ScriptFailed: The specified script failed to run as expected.
- UnknownError: The specified script did not run for an unknown reason.
- Parameters:
errorCode
- The associated error code:- Success: The specified script ran.
- ScriptMissing: The specified script was not found in the specified location.
- ScriptNotExecutable: The specified script is not a recognized executable file type.
- ScriptTimedOut: The specified script did not finish running in the specified time period.
- ScriptFailed: The specified script failed to run as expected.
- UnknownError: The specified script did not run for an unknown reason.
- See Also:
-
withErrorCode
The associated error code:
- Success: The specified script ran.
- ScriptMissing: The specified script was not found in the specified location.
- ScriptNotExecutable: The specified script is not a recognized executable file type.
- ScriptTimedOut: The specified script did not finish running in the specified time period.
- ScriptFailed: The specified script failed to run as expected.
- UnknownError: The specified script did not run for an unknown reason.
- Parameters:
errorCode
- The associated error code:- Success: The specified script ran.
- ScriptMissing: The specified script was not found in the specified location.
- ScriptNotExecutable: The specified script is not a recognized executable file type.
- ScriptTimedOut: The specified script did not finish running in the specified time period.
- ScriptFailed: The specified script failed to run as expected.
- UnknownError: The specified script did not run for an unknown reason.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setScriptName
The name of the script.
- Parameters:
scriptName
- The name of the script.
-
getScriptName
The name of the script.
- Returns:
- The name of the script.
-
withScriptName
The name of the script.
- Parameters:
scriptName
- The name of the script.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMessage
The message associated with the error.
- Parameters:
message
- The message associated with the error.
-
getMessage
The message associated with the error.
- Returns:
- The message associated with the error.
-
withMessage
The message associated with the error.
- Parameters:
message
- The message associated with the error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLogTail
The last portion of the diagnostic log.
If available, AWS CodeDeploy returns up to the last 4 KB of the diagnostic log.
- Parameters:
logTail
- The last portion of the diagnostic log.If available, AWS CodeDeploy returns up to the last 4 KB of the diagnostic log.
-
getLogTail
The last portion of the diagnostic log.
If available, AWS CodeDeploy returns up to the last 4 KB of the diagnostic log.
- Returns:
- The last portion of the diagnostic log.
If available, AWS CodeDeploy returns up to the last 4 KB of the diagnostic log.
-
withLogTail
The last portion of the diagnostic log.
If available, AWS CodeDeploy returns up to the last 4 KB of the diagnostic log.
- Parameters:
logTail
- The last portion of the diagnostic log.If available, AWS CodeDeploy returns up to the last 4 KB of the diagnostic log.
- 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
-