/** * * Abandons an asynchronous operation. * * @param id The ID of the asynchronous operation to abandon. The ID * can be obtained from the response queue for the * operation. * * @exception LDAPException A general exception which includes an error * message and an LDAP error code. */ public void abandon(int id) throws LDAPException { abandon(id, defSearchCons); return; }
/** * * * Notifies the server not to send additional results associated with * this LDAPSearchResults object, and discards any results already * received. * * @param results An object returned from a search. * * @exception LDAPException A general exception which includes an error * message and an LDAP error code. */ public void abandon(LDAPSearchResults results) throws LDAPException { abandon( results, defSearchCons ); return; }
/** * Abandons all outstanding operations managed by the queue. * * <p>All operations in progress, which are managed by the specified queue, * are abandoned.</p> * * @param queue The queue returned from an asynchronous request. * All outstanding operations managed by the queue * are abandoned, and the queue is emptied. * * @exception LDAPException A general exception which includes an error * message and an LDAP error code. */ public void abandon( LDAPMessageQueue queue) throws LDAPException { abandon( queue, defSearchCons); return; }
/** * Stop the Persistence Search Events Generation by abandoning the * Search Request. * * @throws LDAPException When Cancelling of LDAPConnection Fails. */ public final void stopEventGeneration() throws LDAPException { if (Debug.LDAP_DEBUG) { Debug.trace(Debug.EventsCalls, "Closing EventGeneration"); } isrunning = false; ldapconnection.abandon(searchqueue); } }
/** * * Abandons an asynchronous operation. * * @see <a href="../../../../api/com/novell/ldap/LDAPConnection.html#abandon(int)"> com.novell.ldap.LDAPConnection.abandon(int)</a> */ public void abandon(int id) throws LDAPException { try { conn.abandon( id); } catch( com.novell.ldap.LDAPException ex) { throw new LDAPException( ex); } return; }
/** * Notifies the server not to send additional results associated with * this LDAPSearchResults object, and discards any results already * received. * * @see <a href="../../../../api/com/novell/ldap/LDAPConnection.html#abandon(com.novell.ldap.LDAPSearchResults)"> com.novell.ldap.LDAPConnection.abandon(LDAPSearchResults)</a> */ public void abandon(LDAPSearchResults results) throws LDAPException { try { if( results == null) { conn.abandon( (com.novell.ldap.LDAPSearchResults)null); } else { conn.abandon( results.getWrappedObject()); } } catch( com.novell.ldap.LDAPException ex) { throw new LDAPException( ex); } return; }
/** * Abandons all search operations for a queue. * * @see <a href="../../../../api/com/novell/ldap/LDAPConnection.html#abandon(com.novell.ldap.LDAPMessageQueue)"> com.novell.ldap.LDAPConnection.abandon(LDAPMessageQueue)</a> */ public void abandon( LDAPMessageQueue queue) throws LDAPException { try { if( queue instanceof LDAPResponseQueue) { conn.abandon(((LDAPResponseQueue)queue).getWrappedObject()); } else if( queue instanceof LDAPSearchQueue) { conn.abandon(((LDAPSearchQueue)queue).getWrappedObject()); } } catch( com.novell.ldap.LDAPException ex) { throw new LDAPException( ex); } return; }
/** * Abandons a search operation for a queue, using the specified * constraints. * * @see <a href="../../../../api/com/novell/ldap/LDAPConnection.html#abandon(int, com.novell.ldap.LDAPConstraints)"> com.novell.ldap.LDAPConnection.abandon(int, LDAPConstraints)</a> */ public void abandon(int id, LDAPConstraints cons) throws LDAPException { try { conn.abandon( id, cons.getWrappedObject()); } catch( com.novell.ldap.LDAPException ex) { throw new LDAPException( ex); } return; }
/** * Notifies the server not to send additional results associated with * this LDAPSearchResults object, and discards any results already * received. * * @see <a href="../../../../api/com/novell/ldap/LDAPConnection.html#abandon(com.novell.ldap.LDAPSearchResults, com.novell.ldap.LDAPConstraints)"> com.novell.ldap.LDAPConnection.abandon(LDAPSearchResults, LDAPConstraints)</a> */ public void abandon(LDAPSearchResults results, LDAPConstraints cons) throws LDAPException { try { if( results == null) { conn.abandon( (com.novell.ldap.LDAPSearchResults)null, cons.getWrappedObject()); } else { conn.abandon( results.getWrappedObject(), cons.getWrappedObject()); } } catch( com.novell.ldap.LDAPException ex) { throw new LDAPException( ex); } return; }
if (searchResults != null) { try { this.connection.abandon(searchResults); } catch (LDAPException e) { if (LOG.isDebugEnabled()) {
/** * Abandons all search operations for a queue. * * @see <a href="../../../../api/com/novell/ldap/LDAPConnection.html#abandon(com.novell.ldap.LDAPMessageQueue, com.novell.ldap.LDAPConstraints)"> com.novell.ldap.LDAPConnection.abandon(LDAPMessageQueue, LDAPConstraints)</a> */ public void abandon( LDAPMessageQueue queue, LDAPConstraints cons) throws LDAPException { try { if( queue instanceof LDAPResponseQueue) { conn.abandon(((LDAPResponseQueue)queue).getWrappedObject(), cons.getWrappedObject()); } else if( queue instanceof LDAPSearchQueue) { conn.abandon(((LDAPSearchQueue)queue).getWrappedObject(), cons.getWrappedObject()); } } catch( com.novell.ldap.LDAPException ex) { throw new LDAPException( ex); } return; }
if (result.hasMore()) { try { getConnection().getConnection().abandon(result); } catch (LDAPException e) { LOGGER.debug("LDAP Search clean up failed", e);
if (searchResults != null) { try { this.connection.abandon(searchResults); } catch (LDAPException e) { LOGGER.debug("LDAP Search clean up failed", e);
if (result.hasMore()) { try { getConnection().getConnection().abandon(result); } catch (LDAPException e) { LOGGER.debug("LDAP Search clean up failed", e);