From f386801829fe0295a232ad8af4785ba60d2be044 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Tue, 30 Jan 2007 16:11:11 +0000
Subject: [PATCH] Add a new task that may be used to cause the server to load the contents of a new file into the schema without the need to restart.

---
 opendj-sdk/opends/src/server/org/opends/server/backends/task/TaskBackend.java |   37 +++++++++++++++++++++++++++++++++++++
 1 files changed, 37 insertions(+), 0 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/backends/task/TaskBackend.java b/opendj-sdk/opends/src/server/org/opends/server/backends/task/TaskBackend.java
index d8bfc1e..a486838 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/backends/task/TaskBackend.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/backends/task/TaskBackend.java
@@ -1693,5 +1693,42 @@
 
     return scheduledTaskParentDN;
   }
+
+
+
+  /**
+   * Retrieves the scheduled task for the entry with the provided DN.
+   *
+   * @param  taskEntryDN  The DN of the entry for the task to retrieve.
+   *
+   * @return  The requested task, or {@code null} if there is no task with the
+   *          specified entry DN.
+   */
+  public Task getScheduledTask(DN taskEntryDN)
+  {
+    assert debugEnter(CLASS_NAME, "getScheduledTask",
+                      String.valueOf(taskEntryDN));
+
+    return taskScheduler.getScheduledTask(taskEntryDN);
+  }
+
+
+
+  /**
+   * Retrieves the recurring task for the entry with the provided DN.
+   *
+   * @param  taskEntryDN  The DN of the entry for the recurring task to
+   *                      retrieve.
+   *
+   * @return  The requested recurring task, or {@code null} if there is no task
+   *          with the specified entry DN.
+   */
+  public RecurringTask getRecurringTask(DN taskEntryDN)
+  {
+    assert debugEnter(CLASS_NAME, "getScheduledTask",
+                      String.valueOf(taskEntryDN));
+
+    return taskScheduler.getRecurringTask(taskEntryDN);
+  }
 }
 

--
Gitblit v1.10.0