|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
public class ServiceInterruption
This is an exception that means that service was interrupted. The exception contains a description of when the service may be restored.
| Field Summary | |
|---|---|
static java.lang.String |
_rcsid
|
protected boolean |
abortOnFail
Should we abort the process if failure condition has been reached? |
protected int |
failRetryCount
This is the number of retries to permit before FAIL. |
protected long |
failTime
This is the time (in milliseconds since epoch) to FAIL if no successful read has yet occurred. |
protected long |
retryTime
This is the time (in milliseconds since epoch) when to retry the request. |
| Constructor Summary | |
|---|---|
ServiceInterruption(java.lang.String message,
long retryTime)
Constructor. |
|
ServiceInterruption(java.lang.String message,
java.lang.Throwable failureCause,
long retryTime,
long failTime,
int failRetryCount,
boolean abortOnFail)
Constructor. |
|
| Method Summary | |
|---|---|
int |
getFailRetryCount()
Get the number of error iterations needed before failure should be declared. |
long |
getFailTime()
Get the fail time. |
long |
getRetryTime()
Get the retry time. |
boolean |
isAbortOnFail()
On failure, should we abort? |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String _rcsid
protected long retryTime
protected long failTime
protected int failRetryCount
protected boolean abortOnFail
| Constructor Detail |
|---|
public ServiceInterruption(java.lang.String message,
long retryTime)
message - is the exact error condition.retryTime - is the time to retry.
public ServiceInterruption(java.lang.String message,
java.lang.Throwable failureCause,
long retryTime,
long failTime,
int failRetryCount,
boolean abortOnFail)
message - is the exact error condition.failureCause - is an exception that should be reported if it is decided to abort the process.retryTime - is the time to retry.failTime - is the time to fail.failRetryCount - is the number of times to retry before declaring failure.abortOnFail - signals what to do if failure. Setting this to "true" will cause whatever process incurred the
service interruption to stop immediately, if failure condition has been reached.| Method Detail |
|---|
public long getRetryTime()
public long getFailTime()
public int getFailRetryCount()
public boolean isAbortOnFail()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||