From 72c939b50428a2aa1f924a04ecdedee93e1383f4 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.

---
 opends/src/messages/messages/tools.properties |   66 +++++++++++++++++++++++++++++++--
 1 files changed, 62 insertions(+), 4 deletions(-)

diff --git a/opends/src/messages/messages/tools.properties b/opends/src/messages/messages/tools.properties
index fc8c231..7b8efad 100644
--- a/opends/src/messages/messages/tools.properties
+++ b/opends/src/messages/messages/tools.properties
@@ -1895,13 +1895,13 @@
  connection to the Directory Server was closed while waiting for a response to \
  the shutdown request.  This likely means that the server has started the \
  shutdown process
-SEVERE_ERR_TASK_CLIENT_IO_ERROR_1316=ERROR:  An I/O error occurred while \
+SEVERE_ERR_TASK_TOOL_IO_ERROR_1316=ERROR:  An I/O error occurred while \
  attempting to communicate with the Directory Server:  %s
-SEVERE_ERR_TASK_CLIENT_DECODE_ERROR_1317=ERROR:  An error occurred while \
+SEVERE_ERR_TASK_TOOL_DECODE_ERROR_1317=ERROR:  An error occurred while \
  trying to decode the response from the server:  %s
 SEVERE_ERR_TASK_CLIENT_INVALID_RESPONSE_TYPE_1318=ERROR:  Expected an add \
  response message but got a %s message instead
-INFO_TASK_CLIENT_TASK_SCHEDULED_1319=Scheduled task %s
+INFO_TASK_TOOL_TASK_SCHEDULED_1319=Scheduled task %s
 SEVERE_ERR_LDAP_CONN_INCOMPATIBLE_ARGS_1320=ERROR:  argument %s is \
  incompatible with use of this tool to interact with the directory as a client
 SEVERE_ERR_CREATERC_ONLY_RUNS_ON_UNIX_1321=This tool may only be used on \
@@ -2080,4 +2080,62 @@
  or Start TLS (using option %s)
 SEVERE_ERR_UPGRADE_INCOMPATIBLE_ARGS_1411=The argument '%s' is incompatible \
  with '%s'
-
+INFO_TASKINFO_TOOL_DESCRIPTION_1412=This utility can be used to obtain a list \
+ of tasks scheduled to run within the Directory Server as well as information \
+ about individual tasks
+INFO_TASKINFO_SUMMARY_ARG_DESCRIPTION_1413=Print a summary of tasks
+INFO_TASKINFO_TASK_ARG_DESCRIPTION_1414=Specifies the ID of a particular task \
+ about which this tool will display information
+INFO_TASKINFO_CMD_REFRESH_1415=refresh
+INFO_TASKINFO_CMD_CANCEL_1416=cancel task
+INFO_TASKINFO_CMD_VIEW_LOGS_1417=view logs
+INFO_TASKINFO_MENU_PROMPT_1418=Enter a menu item or task number
+INFO_TASKINFO_CMD_CANCEL_NUMBER_PROMPT_1419=Enter the number of a task to \
+  cancel [%d]
+INFO_TASKINFO_MENU_1420=Menu
+MILD_ERR_TASKINFO_INVALID_TASK_NUMBER_1421=Task number must be between 1 and \
+  %d
+MILD_ERR_TASKINFO_INVALID_MENU_KEY_1422=Invalid menu item or task number '%s'
+INFO_TASKINFO_FIELD_ID_1423=ID
+INFO_TASKINFO_FIELD_TYPE_1424=Type
+INFO_TASKINFO_FIELD_STATUS_1425=Status
+INFO_TASKINFO_FIELD_SCHEDULED_START_1426=Scheduled Start Time
+INFO_TASKINFO_FIELD_ACTUAL_START_1427=Actual Start Time
+INFO_TASKINFO_FIELD_COMPLETION_TIME_1428=Completion Time
+INFO_TASKINFO_FIELD_DEPENDENCY_1429=Dependencies
+INFO_TASKINFO_FIELD_FAILED_DEPENDENCY_ACTION_1430=Failed Dependency Action
+INFO_TASKINFO_FIELD_LOG_1431=Log Message(s)
+INFO_TASKINFO_FIELD_LAST_LOG_1432=Last Log Message
+INFO_TASKINFO_FIELD_NOTIFY_ON_COMPLETION_1433=Email Upon Completion
+INFO_TASKINFO_FIELD_NOTIFY_ON_ERROR_1434=Email Upon Error
+INFO_TASKINFO_CMD_CANCEL_SUCCESS_1435=Task %s canceled
+SEVERE_ERR_TASKINFO_CMD_CANCEL_ERROR_1436=Error canceling task %s:  %s
+SEVERE_ERR_TASKINFO_RETRIEVING_TASK_ENTRY_1437=Error retrieving task entry \
+  %s:  %s
+MILD_ERR_TASKINFO_UNKNOWN_TASK_ENTRY_1438=There are no tasks with ID %s
+INFO_TASKINFO_DETAILS_1439=Task Details
+INFO_TASKINFO_OPTIONS_1440=%s Options
+INFO_TASKINFO_NO_TASKS_1441=No tasks exist
+INFO_TASKINFO_NONE_1442=None
+INFO_TASKINFO_NONE_SPECIFIED_1443=None Specified
+INFO_TASKINFO_IMMEDIATE_EXECUTION_1444=Immediate execution
+INFO_TASKINFO_LDAP_EXCEPTION_1445=Error connecting to the directory server: \
+  '%s'. Verify that the connection options are correct and that the server is \
+  running
+SEVERE_ERR_INCOMPATIBLE_ARGUMENTS_1446=Options '%s' and '%s' are incompatible \
+  with each other and cannot be used together
+INFO_TASKINFO_TASK_ARG_CANCEL_1447=Specifies the ID of a particular task \
+  to cancel
+SEVERE_ERR_TASKINFO_CANCELING_TASK_1448=Error canceling task '%s': %s
+SEVERE_ERR_TASKINFO_ACCESSING_LOGS_1449=Error accessing logs for task '%s': %s
+SEVERE_ERR_TASKINFO_NOT_CANCELABLE_TASK_INDEX_1450=Task at index %d is not \
+  cancelable
+SEVERE_ERR_TASKINFO_NOT_CANCELABLE_TASK_1451=Task %s has finished and cannot \
+  be canceled
+INFO_TASKINFO_NO_CANCELABLE_TASKS_1452=There are currently no cancelable tasks
+SEVERE_ERR_TASK_CLIENT_UNKNOWN_TASK_1453=There are no tasks defined with ID '%s'
+SEVERE_ERR_TASK_CLIENT_UNCANCELABLE_TASK_1454=Task '%s' is has finished and \
+  cannot be canceled
+SEVERE_ERR_TASK_CLIENT_TASK_STATE_UNKNOWN_1455=State for task '%s' cannot be \
+  determined
+SEVERE_ERR_XXX_1455=xxx
\ No newline at end of file

--
Gitblit v1.10.0