public void removeNamingListener( NamingListener namingListener ) throws NamingException { try { DirectoryListener listener = listeners.remove( namingListener ); if ( listener != null ) { service.getEventService().removeListener( listener ); } } catch ( Exception e ) { JndiUtils.wrap( e ); } }
/** * @see javax.naming.Context#close() */ public void close() throws NamingException { for ( DirectoryListener listener : listeners.values() ) { try { service.getEventService().removeListener( listener ); } catch ( Exception e ) { JndiUtils.wrap( e ); } } listeners.clear(); }
public void requestAbandoned( AbandonableRequest req ) { if ( listener != null ) { ldapServer.getDirectoryService().getEventService().removeListener( listener ); } } }
public synchronized void removeEventLog( ReplicaEventLog replicaEventLog ) { directoryService.getEventService().removeListener( replicaEventLog.getPersistentListener() ); String name = replicaEventLog.getName(); LOG.debug( "removed the persistent listener for replication event log {}", name ); replicaLogMap.remove( replicaEventLog.getId() ); try { replicaEventLog.stop(); new File( directoryService.getInstanceLayout().getReplDirectory(), name + ".db" ).delete(); new File( directoryService.getInstanceLayout().getReplDirectory(), name + ".lg" ).delete(); LOG.info( "successfully removed replication event log {}", name ); } catch ( Exception e ) { LOG.warn( "Closing the replication event log of the entry {} was not successful, will be removed anyway", name, e ); } }
public void abandon() throws LdapException { // must abandon the operation session.getCoreSession().getDirectoryService().getEventService().removeListener( this ); /* * From RFC 2251 Section 4.11: * * In the event that a server receives an Abandon Request on a Search * operation in the midst of transmitting responses to the Search, that * server MUST cease transmitting entry responses to the abandoned * request immediately, and MUST NOT send the SearchResultDone. Of * course, the server MUST ensure that only properly encoded LDAPMessage * PDUs are transmitted. * * SO DON'T SEND BACK ANYTHING!!!!! */ }
evtSrv.removeListener( cledListener ); evtSrv.removeListener( log.getPersistentListener() ); log.stop();
session.getCoreSession().getDirectoryService().getEventService().removeListener( this );
dirService.getEventService().removeListener( replicationListener );