From 7d9892ab753507184214ae2fce6d2ade21628159 Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Thu, 13 Sep 2007 21:14:20 +0000
Subject: [PATCH] Introduces a utility 'manage-tasks' for monitoring and some management of tasks called 'manage-tasks'. It can be used in either one-time or menu-driven execution mode to print a summary of task information, print verbose information about a particular task, or cancel a running or pending task.

---
 opendj-sdk/opends/src/server/org/opends/server/backends/task/FailedDependencyAction.java |   23 ++++++++++++++++++++---
 1 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/backends/task/FailedDependencyAction.java b/opendj-sdk/opends/src/server/org/opends/server/backends/task/FailedDependencyAction.java
index aea4c64..68b38d3 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/backends/task/FailedDependencyAction.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/backends/task/FailedDependencyAction.java
@@ -26,6 +26,8 @@
  */
 package org.opends.server.backends.task;
 
+import org.opends.messages.Message;
+import org.opends.messages.TaskMessages;
 
 
 /**
@@ -39,14 +41,14 @@
    * 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()),
 
 
 
@@ -54,7 +56,7 @@
    * 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());
 
 
 
@@ -88,5 +90,20 @@
       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;
+  }
 }
 

--
Gitblit v1.10.0