| | |
| | | */ |
| | | package org.opends.server.backends.task; |
| | | |
| | | import org.opends.messages.Message; |
| | | import org.opends.messages.TaskMessages; |
| | | |
| | | |
| | | /** |
| | |
| | | * The action that indicates that the dependent task should be processed |
| | | * anyway. |
| | | */ |
| | | PROCESS, |
| | | PROCESS(TaskMessages.INFO_FAILED_DEPENDENCY_ACTION_PROCESS.get()), |
| | | |
| | | |
| | | |
| | | /** |
| | | * The action that indicates that the dependent task should be canceled. |
| | | */ |
| | | CANCEL, |
| | | CANCEL(TaskMessages.INFO_FAILED_DEPENDENCY_ACTION_CANCEL.get()), |
| | | |
| | | |
| | | |
| | |
| | | * The action that indicates that the dependent task should be disabled so |
| | | * that an administrator will have to re-enable it before it can start. |
| | | */ |
| | | DISABLE; |
| | | DISABLE(TaskMessages.INFO_FAILED_DEPENDENCY_ACTION_DISABLE.get()); |
| | | |
| | | |
| | | |
| | |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | private Message name; |
| | | |
| | | /** |
| | | * Gets the display name of this action. |
| | | * |
| | | * @return Message representing the name of this action |
| | | */ |
| | | public Message getDisplayName() { |
| | | return name; |
| | | } |
| | | |
| | | private FailedDependencyAction(Message name) { |
| | | this.name = name; |
| | | } |
| | | } |
| | | |