From 2273c26793fe6e3abfd90a400823e8e46b3303bb Mon Sep 17 00:00:00 2001
From: abobrov <abobrov@localhost>
Date: Mon, 15 Dec 2008 16:07:29 +0000
Subject: [PATCH] - [Issue 274]  Recurring Tasks

---
 opends/src/server/org/opends/server/tasks/BackupTask.java |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/tasks/BackupTask.java b/opends/src/server/org/opends/server/tasks/BackupTask.java
index e611468..1547d06 100644
--- a/opends/src/server/org/opends/server/tasks/BackupTask.java
+++ b/opends/src/server/org/opends/server/tasks/BackupTask.java
@@ -147,6 +147,7 @@
   /**
    * {@inheritDoc}
    */
+  @Override
   public Message getDisplayName() {
     return INFO_TASK_BACKUP_NAME.get();
   }
@@ -154,6 +155,7 @@
   /**
    * {@inheritDoc}
    */
+  @Override
   public Message getAttributeDisplayName(String attrName) {
     return argDisplayMap.get(attrName);
   }
@@ -284,6 +286,12 @@
     }
 
 
+    // Use task id for backup id in case of recurring task.
+    if (super.isRecurring()) {
+      backupID = super.getTaskID();
+    }
+
+
     // If no backup ID was provided, then create one with the current timestamp.
     if (backupID == null)
     {
@@ -575,6 +583,7 @@
   /**
    * {@inheritDoc}
    */
+  @Override
   public void interruptTask(TaskState interruptState, Message interruptReason)
   {
     if (TaskState.STOPPED_BY_ADMINISTRATOR.equals(interruptState) &&
@@ -591,6 +600,7 @@
   /**
    * {@inheritDoc}
    */
+  @Override
   public boolean isInterruptable() {
     return true;
   }

--
Gitblit v1.10.0