public static void destroyAll(){
  Collection svcs=Collections.EMPTY_SET;
synchronized (services) {
    svcs=new HashSet(services.values());
  }
  for (Iterator iter=svcs.iterator(); iter.hasNext(); ) {
    DLockService svc=(DLockService)iter.next();
    try {
      svc.destroyAndRemove();
    }
 catch (    CancelException e) {
      if (logger.isTraceEnabled(LogMarker.DLS)) {
        logger.trace(LogMarker.DLS,"destroyAndRemove of {} terminated due to cancellation: ",svc,e);
      }
    }
catch (    RuntimeException e) {
      throw e;
    }
  }
}

public static void destroyAll ( ) { Collection svcs = Collections . EMPTY_SET ; synchronized ( services ) { svcs = new HashSet ( services . values ( ) ) ; } for ( Iterator iter = svcs . iterator ( ) ; iter . hasNext ( ) ; ) { DLockService svc = ( DLockService ) iter . next ( ) ; try { svc . destroyAndRemove ( ) ; } catch ( CancelException e ) { if ( logger . isTraceEnabled ( LogMarker . DLS ) ) { logger . trace ( LogMarker . DLS , "destroyAndRemove of {} terminated due to cancellation: " , svc , e ) ; } } catch ( RuntimeException e ) { throw e ; } } }
destroys all lock services in this vm . used in test teardown code .
