Package org.exist.storage.lock

Examples of org.exist.storage.lock.LockInfo


   
        Map<String, LockInfo> threads = DeadlockDetection.getWaitingThreads();

        for (Map.Entry<String, LockInfo> entry : threads.entrySet()) {
         
          LockInfo info = entry.getValue();

          out().println("THREAD: " + entry.getKey());
            if (info != null) {
              info.debug(out());
            }
        }
       
        if (threads.isEmpty())
          out().println("No waiting threads.");
View Full Code Here


        final TabularType tabularType = new TabularType("waitingThreads", "Lists all threads waiting for a lock", lockType, indexNames);
        final TabularDataSupport data = new TabularDataSupport(tabularType);

        for (final Map.Entry<String, LockInfo> entry : map.entrySet()) {
            final LockInfo info = entry.getValue();
            final Object[] itemValues = {
                entry.getKey(), info.getLockType(), info.getLockMode(), info.getId(),
                info.getOwners(), info.getWaitingForRead(), info.getWaitingForWrite()
            };
            data.put(new CompositeDataSupport(lockType, itemNames, itemValues));
        }
        return data;
    }
View Full Code Here

TOP

Related Classes of org.exist.storage.lock.LockInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.