public class Diagnostics extends Object implements Serializable, Cloneable
Diagnostic information about executable scripts that are part of a deployment.
Constructor and Description |
---|
Diagnostics() |
Modifier and Type | Method and Description |
---|---|
Diagnostics |
clone() |
boolean |
equals(Object obj) |
String |
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.
|
String |
getLogTail()
The last portion of the associated diagnostic log.
|
String |
getMessage()
The message associated with the error.
|
String |
getScriptName()
The name of the script.
|
int |
hashCode() |
void |
setErrorCode(LifecycleErrorCode 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.
|
void |
setErrorCode(String 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.
|
void |
setLogTail(String logTail)
The last portion of the associated diagnostic log.
|
void |
setMessage(String message)
The message associated with the error.
|
void |
setScriptName(String scriptName)
The name of the script.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Diagnostics |
withErrorCode(LifecycleErrorCode 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.
|
Diagnostics |
withErrorCode(String 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.
|
Diagnostics |
withLogTail(String logTail)
The last portion of the associated diagnostic log.
|
Diagnostics |
withMessage(String message)
The message associated with the error.
|
Diagnostics |
withScriptName(String scriptName)
The name of the script.
|
public String getErrorCode()
Constraints:
Allowed Values: Success, ScriptMissing, ScriptNotExecutable, ScriptTimedOut, ScriptFailed, UnknownError
LifecycleErrorCode
public void setErrorCode(String errorCode)
Constraints:
Allowed Values: Success, ScriptMissing, ScriptNotExecutable, ScriptTimedOut, ScriptFailed, UnknownError
errorCode
- The associated error code: LifecycleErrorCode
public Diagnostics withErrorCode(String errorCode)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Success, ScriptMissing, ScriptNotExecutable, ScriptTimedOut, ScriptFailed, UnknownError
errorCode
- The associated error code: LifecycleErrorCode
public void setErrorCode(LifecycleErrorCode errorCode)
Constraints:
Allowed Values: Success, ScriptMissing, ScriptNotExecutable, ScriptTimedOut, ScriptFailed, UnknownError
errorCode
- The associated error code: LifecycleErrorCode
public Diagnostics withErrorCode(LifecycleErrorCode errorCode)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Success, ScriptMissing, ScriptNotExecutable, ScriptTimedOut, ScriptFailed, UnknownError
errorCode
- The associated error code: LifecycleErrorCode
public String getScriptName()
public void setScriptName(String scriptName)
scriptName
- The name of the script.public Diagnostics withScriptName(String scriptName)
Returns a reference to this object so that method calls can be chained together.
scriptName
- The name of the script.public String getMessage()
public void setMessage(String message)
message
- The message associated with the error.public Diagnostics withMessage(String message)
Returns a reference to this object so that method calls can be chained together.
message
- The message associated with the error.public String getLogTail()
public void setLogTail(String logTail)
logTail
- The last portion of the associated diagnostic log.public Diagnostics withLogTail(String logTail)
Returns a reference to this object so that method calls can be chained together.
logTail
- The last portion of the associated diagnostic log.public String toString()
toString
in class Object
Object.toString()
public Diagnostics clone()
Copyright © 2015. All rights reserved.