| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.core; |
| | | |
| | |
| | | // Send the entry to the client. |
| | | if (pluginResult.sendResponse()) |
| | | { |
| | | // Log the entry sent to the client. |
| | | logSearchResultEntry(this, searchEntry); |
| | | |
| | | try |
| | | { |
| | | sendSearchEntry(searchEntry); |
| | | // Log the entry sent to the client. |
| | | logSearchResultEntry(this, searchEntry); |
| | | |
| | | incrementEntriesSent(); |
| | | } |
| | |
| | | // to send any more. |
| | | if (pluginResult.sendResponse()) |
| | | { |
| | | // Log the entry sent to the client. |
| | | logSearchResultReference(this, reference); |
| | | |
| | | try |
| | | { |
| | | if (sendSearchReference(reference)) |
| | | { |
| | | // Log the entry sent to the client. |
| | | logSearchResultReference(this, reference); |
| | | incrementReferencesSent(); |
| | | |
| | | // FIXME -- Should the size limit apply here? |
| | |
| | | // multithreaded in the event of a persistent search, so do it safely. |
| | | if (responseSent.compareAndSet(false, true)) |
| | | { |
| | | // Send the response to the client. |
| | | clientConnection.sendResponse(this); |
| | | |
| | | // Log the search result. |
| | | logSearchResultDone(this); |
| | | |
| | | // Send the response to the client. |
| | | clientConnection.sendResponse(this); |
| | | |
| | | // Invoke the post-response search plugins. |
| | | invokePostResponsePlugins(); |