From a1c112904474d02711e22f3be1e208ba1543a0ac Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Fri, 13 Oct 2006 02:58:54 +0000
Subject: [PATCH] Add additional test cases for add, delete, and modify operations.
---
opends/src/server/org/opends/server/core/Operation.java | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/core/Operation.java b/opends/src/server/org/opends/server/core/Operation.java
index fc49f53..0d85d66 100644
--- a/opends/src/server/org/opends/server/core/Operation.java
+++ b/opends/src/server/org/opends/server/core/Operation.java
@@ -928,6 +928,22 @@
/**
+ * Sets the cancel request for this operation, if applicable. This should
+ * only be used for testing purposes (e.g., for ensuring a cancel request is
+ * submitted before processing begins on an operation, or to allow for
+ * cancelling an internal operation).
+ *
+ * @param cancelRequest The cancel request to set for this operation.
+ *
+ * @return <CODE>true</CODE> if the cancel request was set, or
+ * <CODE>false</CODE> if it was not for some reason (e.g., the
+ * specified operation cannot be cancelled).
+ */
+ abstract boolean setCancelRequest(CancelRequest cancelRequest);
+
+
+
+ /**
* Retrieves the cancel request that has been issued for this operation, if
* there is one. This method should not be called by post-operation or
* post-response plugins.
--
Gitblit v1.10.0