public class ServiceRestartResult
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceRestartResult.ServiceRestartRetryResult
Enumeration with values representing the result of the blocked
request restart.
|
static class |
ServiceRestartResult.ServiceRestartTestResult
Enumeration with values representing the result
of the service test operation.
|
| Constructor and Description |
|---|
ServiceRestartResult(ServiceRestartResult.ServiceRestartRetryResult retryStatus)
Constructs a service retry result with the outcome of the blocked
request retry operation.
|
ServiceRestartResult(ServiceRestartResult.ServiceRestartTestResult testStatus)
Constructs a service restart result with the outcome of the service
test operation.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Throwable |
getCauseOfFailure()
Returns the cause of the failure, in either
step of the restart process.
|
ServiceRestartResult.ServiceRestartRetryResult |
getRetryStatus()
Returns the blocked request retry status.
|
ServiceRestartResult.ServiceRestartTestResult |
getTestStatus()
Returns the service test status.
|
boolean |
isRetrySuccess()
Returns whether the blocked request retry was successful or
not required because there were not request to retry.
|
boolean |
isTestSuccess()
Returns whether the test was successful.
|
void |
setCauseOfFailure(java.lang.Throwable t)
Updates the cause of failure.
|
void |
setRetryStatus(ServiceRestartResult.ServiceRestartRetryResult status)
Updates the blocked request retry status.
|
void |
setTestStatus(ServiceRestartResult.ServiceRestartTestResult status)
Updates the service test status.
|
java.lang.String |
toString()
Returns a string representation of the status.
|
public ServiceRestartResult(ServiceRestartResult.ServiceRestartTestResult testStatus)
testStatus - test resultpublic ServiceRestartResult(ServiceRestartResult.ServiceRestartRetryResult retryStatus)
retryStatus - retry statuspublic void setTestStatus(ServiceRestartResult.ServiceRestartTestResult status)
status - service test statuspublic ServiceRestartResult.ServiceRestartTestResult getTestStatus()
public void setRetryStatus(ServiceRestartResult.ServiceRestartRetryResult status)
status - retry statuspublic ServiceRestartResult.ServiceRestartRetryResult getRetryStatus()
public void setCauseOfFailure(java.lang.Throwable t)
t - Throwable that caused the failure.public java.lang.Throwable getCauseOfFailure()
public boolean isTestSuccess()
public boolean isRetrySuccess()
public java.lang.String toString()
toString in class java.lang.Object