From 455897cc245b67d929f409a93cfa7106e835cc1f Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Thu, 01 Mar 2007 03:27:06 +0000
Subject: [PATCH] This removes old debug logging framework method calls that are going to be automatically instrumented by AspectJ. Non instrumented debug method calls are updated to use the new debug framework methods. However, the new debug logging framework is not yet active as the Aspects are not weaved in. After this revision, debug logging will be disabled in the server until the new AOP framework is complete.
---
opends/src/server/org/opends/server/core/AbandonOperation.java | 26 +-------------------------
1 files changed, 1 insertions(+), 25 deletions(-)
diff --git a/opends/src/server/org/opends/server/core/AbandonOperation.java b/opends/src/server/org/opends/server/core/AbandonOperation.java
index 8e6aff3..1610cb7 100644
--- a/opends/src/server/org/opends/server/core/AbandonOperation.java
+++ b/opends/src/server/org/opends/server/core/AbandonOperation.java
@@ -22,7 +22,7 @@
* CDDL HEADER END
*
*
- * Portions Copyright 2006 Sun Microsystems, Inc.
+ * Portions Copyright 2006-2007 Sun Microsystems, Inc.
*/
package org.opends.server.core;
@@ -43,7 +43,6 @@
import static org.opends.server.core.CoreConstants.*;
import static org.opends.server.loggers.Access.*;
-import static org.opends.server.loggers.Debug.*;
import static org.opends.server.messages.CoreMessages.*;
import static org.opends.server.messages.MessageHandler.*;
@@ -58,11 +57,6 @@
extends Operation
implements PreParseAbandonOperation, PostOperationAbandonOperation
{
- /**
- * The fully-qualified name of this class for debugging purposes.
- */
- private static final String CLASS_NAME =
- "org.opends.server.core.AbandonOperation";
@@ -95,11 +89,6 @@
{
super(clientConnection, operationID, messageID, requestControls);
- assert debugConstructor(CLASS_NAME, String.valueOf(clientConnection),
- String.valueOf(operationID),
- String.valueOf(messageID),
- String.valueOf(requestControls),
- String.valueOf(idToAbandon));
this.idToAbandon = idToAbandon;
}
@@ -113,7 +102,6 @@
*/
public final int getIDToAbandon()
{
- assert debugEnter(CLASS_NAME, "getIDToAbandon");
return idToAbandon;
}
@@ -126,7 +114,6 @@
@Override()
public final long getProcessingStartTime()
{
- assert debugEnter(CLASS_NAME, "getProcessingStartTime");
return processingStartTime;
}
@@ -139,7 +126,6 @@
@Override()
public final long getProcessingStopTime()
{
- assert debugEnter(CLASS_NAME, "getProcessingStopTime");
return processingStopTime;
}
@@ -152,7 +138,6 @@
@Override()
public final long getProcessingTime()
{
- assert debugEnter(CLASS_NAME, "getProcessingTime");
return (processingStopTime - processingStartTime);
}
@@ -165,7 +150,6 @@
@Override()
public final OperationType getOperationType()
{
- assert debugEnter(CLASS_NAME, "getOperationType");
// Note that no debugging will be done in this method because it is a likely
// candidate for being called by the logging subsystem.
@@ -197,7 +181,6 @@
@Override()
public final String[][] getRequestLogElements()
{
- assert debugEnter(CLASS_NAME, "getRequestLogElements");
// Note that no debugging will be done in this method because it is a likely
// candidate for being called by the logging subsystem.
@@ -253,7 +236,6 @@
@Override()
public final List<Control> getResponseControls()
{
- assert debugEnter(CLASS_NAME, "getResponseControls");
// An abandon operation can never have a response, so just return an empty
// list.
@@ -290,7 +272,6 @@
@Override()
public final void run()
{
- assert debugEnter(CLASS_NAME, "run");
setResultCode(ResultCode.UNDEFINED);
@@ -392,7 +373,6 @@
@Override()
public final CancelResult cancel(CancelRequest cancelRequest)
{
- assert debugEnter(CLASS_NAME, "cancel", String.valueOf(cancelRequest));
cancelRequest.addResponseMessage(getMessage(MSGID_CANNOT_CANCEL_ABANDON));
return CancelResult.CANNOT_CANCEL;
@@ -406,7 +386,6 @@
@Override()
public final CancelRequest getCancelRequest()
{
- assert debugEnter(CLASS_NAME, "getCancelRequest");
return null;
}
@@ -419,8 +398,6 @@
@Override()
boolean setCancelRequest(CancelRequest cancelRequest)
{
- assert debugEnter(CLASS_NAME, "setCancelRequest",
- String.valueOf(cancelRequest));
// Abandon operations cannot be canceled.
return false;
@@ -434,7 +411,6 @@
@Override()
public final void toString(StringBuilder buffer)
{
- assert debugEnter(CLASS_NAME, "toString", "java.lang.StringBuilder");
buffer.append("AbandonOperation(connID=");
buffer.append(clientConnection.getConnectionID());
--
Gitblit v1.10.0