public abstract class DiagnosticTask extends Object
A task to be executed for diagnostics. Each task should append any text to return in the event of a failure to the method appendFailureText(). Text to use in the event of a success should be sent to the method appendSuccessText().
Constructor and Description |
---|
DiagnosticTask() |
Modifier and Type | Method and Description |
---|---|
protected void |
appendFailureTextLine(String text)
Append a line to the text to be used in the event of a failure.
|
void |
appendSuccessTextLine(String text)
Append a line to the text to be used in the event of a success.
|
protected abstract boolean |
doTask()
The actual task for the sublass to populate.
|
abstract boolean |
equals(Object obj) |
boolean |
executeTask()
Execute the diagnostic task.
|
abstract int |
hashCode() |
protected boolean |
ignoringDiagnostic()
See if ignoring something based on messages key.
|
StringBuilder |
retrieveFailureText()
failure text if this was a failure
|
abstract String |
retrieveName()
should be alphaNumeric in camelcase (for config file)
|
abstract String |
retrieveNameFriendly()
friendly name to display on screen
|
StringBuilder |
retrieveSuccessText()
success text if this was a success
|
protected abstract boolean doTask()
public boolean executeTask()
protected boolean ignoringDiagnostic()
public StringBuilder retrieveFailureText()
public StringBuilder retrieveSuccessText()
public void appendSuccessTextLine(String text)
Append a line to the text to be used in the event of a success. Each line added has the current time of the operation added to it.
text
- is the text to use.protected void appendFailureTextLine(String text)
Append a line to the text to be used in the event of a failure. Each line added has the current time of the operation added to it.
text
- is the text to use.public abstract String retrieveName()
public abstract String retrieveNameFriendly()
Copyright © 2016 Internet2. All rights reserved.