/glassfish-3.1.2/transaction/jts/src/main/java/com/sun/jts/CosTransactions/ |
H A D | RWLock.java | 51 * access patterns. This lock can provide access to multiple reader threads simultaneously 63 * private RWLock lock = new Lock(); 68 * lock.acquireReadLock(); 72 * lock.releaseReadLock(); 78 * lock.acquireWriteLock(); 81 * lock.releaseWriteLock(); 103 * This method is used to acquire a read lock. If there is already a writer thread 121 * This method is used to acquire a write lock. If there are already reader threads 126 Object lock = new Object(); 128 synchronized(lock) { [all...] |
/glassfish-3.1.2/security/jaspic-provider-framework/src/main/java/com/sun/jaspic/config/factory/ |
H A D | AuthConfigFileFactory.java | 71 rLock.lock(); 80 wLock.lock(); 94 rLock.lock();
|
/glassfish-3.1.2/common/common-util/src/test/java/org/glassfish/common/util/admin/locking/ |
H A D | TestClient.java | 52 * Standalone test to hold a read or write lock. 56 * By default a read lock is obtained. 72 Lock lock = null; 75 lock = managed.accessRead(); 78 lock = managed.accessWrite(); 88 //System.out.println("I have the lock in "+ mode +" mode, press enter to release "); 90 lock.unlock();
|
/glassfish-3.1.2/security/jaspic-provider-framework/src/main/java/com/sun/jaspic/config/helper/ |
H A D | EpochCarrier.java | 67 instanceWriteLock.lock(); 79 instanceReadLock.lock(); 88 instanceReadLock.lock();
|
H A D | AuthConfigHelper.java | 86 instanceWriteLock.lock(); 97 instanceReadLock.lock(); 137 instanceReadLock.lock(); 147 instanceWriteLock.lock(); 204 * Only called from initialize (while lock is held).
|
/glassfish-3.1.2/common/glassfish-naming/src/main/java/com/sun/enterprise/naming/impl/ |
H A D | TransientContext.java | 75 // So add a read/write lock, which allows unlimited concurrent readers, 76 // and only imposes a global lock on relatively infrequent updates. 77 private static final ReadWriteLock lock = new ReentrantReadWriteLock() ; field in class:TransientContext 135 lock.writeLock().lock() ; 161 lock.writeLock().unlock(); 174 lock.writeLock().lock(); 194 lock.writeLock().unlock(); 207 lock [all...] |
/glassfish-3.1.2/common/common-util/src/main/java/org/glassfish/common/util/admin/ |
H A D | ManagedFile.java | 102 * @param timeOut the max time in milliseconds to wait for a read or write lock 103 * @param maxHoldingTime the max time in milliseconds to hold the read or write lock 117 * @return the lock instance on the locked file. 119 * @throws TimeoutException if the lock cannot be obtained before the timeOut 131 * @return the lock instance on the locked file. 133 * @throws TimeoutException if the lock cannot be obtained before the timeOut 142 * Many threads can be requesting the shared read lock, we must keep track 144 * must call {@link RefCounterLock#unlock()} to release the lock, when the 145 * reference counter returns to zero, the file lock is release. 148 final java.util.concurrent.locks.Lock lock; field in class:ManagedFile.RefCounterLock 236 release(FileLock lock) argument 252 RefCounterLock(java.util.concurrent.locks.Lock lock, boolean read) argument 270 public void lock() { method in class:ManagedFile.RefCounterLock [all...] |
/glassfish-3.1.2/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/pool/datastructure/ |
H A D | RWLockDataStructure.java | 94 writeLock.lock(); 95 //for now, coarser lock. finer lock needs "resources.size() < maxSize()" once more. 116 readLock.lock(); 121 writeLock.lock(); 127 readLock.lock(); 146 writeLock.lock(); 161 writeLock.lock(); 175 readLock.lock(); 194 writeLock.lock(); [all...] |
/glassfish-3.1.2/admin/config-api/src/test/java/com/sun/enterprise/configapi/tests/concurrent/ |
H A D | ConcurrentAccessTest.java | 90 // my lock. 91 final Semaphore lock = new Semaphore(1); 92 lock.acquire(); 100 // let's start a thread to hold the lock on Domain... 108 logger.fine("got the lock at " + (System.currentTimeMillis() - begin)); 109 lock.release(); 115 logger.fine("release the lock at " + (System.currentTimeMillis() - begin)); 129 lock.acquire(); 130 logger.fine("looking for second lock at " + (System.currentTimeMillis() - begin)); 136 logger.fine("got the second lock a [all...] |
/glassfish-3.1.2/connectors/work-management/src/main/java/com/sun/enterprise/connectors/work/ |
H A D | WorkCoordinator.java | 86 private final Object lock; field in class:WorkCoordinator 127 this.lock = new Object(); 347 public void lock() { method in class:WorkCoordinator 354 synchronized (lock) { 357 lock.wait(timeout); 359 lock.wait(); 368 synchronized (lock) { 370 lock.wait(); 385 synchronized (lock) { 386 lock [all...] |
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/util/ |
H A D | InstanceSupport.java | 156 listenersWriteLock.lock(); 194 listenersReadLock.lock(); 230 listenersReadLock.lock(); 270 listenersReadLock.lock(); 311 listenersReadLock.lock(); 345 listenersReadLock.lock(); 382 listenersReadLock.lock(); 421 listenersReadLock.lock(); 462 listenersReadLock.lock(); 502 listenersWriteLock.lock(); [all...] |
/glassfish-3.1.2/security/core/src/main/java/com/sun/enterprise/security/jmac/config/ |
H A D | GFAuthConfigFactory.java | 80 rLock.lock(); 89 wLock.lock(); 104 rLock.lock();
|
H A D | ConfigHelper.java | 186 rLock.lock(); 207 wLock.lock(); 349 this.wLock.lock(); 378 this.wLock.lock(); 389 this.wLock.lock(); 436 wLock.lock();
|
/glassfish-3.1.2/common/glassfish-api/src/main/java/org/glassfish/api/admin/ |
H A D | AdminCommandLock.java | 60 * The implementation of the admin command lock. 73 * The read/write lock. We depend on this class being a singleton 74 * and thus there being exactly one such lock object, shared by all 80 * A thread which can hold a Read/Write lock across command invocations. 81 * Once the lock is released the thread will exit. 101 * The returned lock has not been locked. If the LockType is 112 return null; // no lock 117 * The returned lock has not been locked. If this command needs 118 * no lock, null is returned. 121 * @return the Lock object to use, or null if no lock neede [all...] |
/glassfish-3.1.2/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/pool/ |
H A D | AssocWithThreadResourcePool.java | 95 synchronized (ar.lock) { 170 synchronized (h.lock) { 201 synchronized(result.lock) { 222 synchronized (resource.lock) { 302 synchronized (resourceHandle.lock) {
|
/glassfish-3.1.2/security/inmemory.jacc.provider/src/main/java/com/sun/enterprise/security/jacc/provider/ |
H A D | SharedState.java | 59 //lock on the shared configTable and linkTable 80 wLock.lock(); 92 wLock.lock(); 113 rLock.lock(); 170 wLock.lock(); 216 wLock.lock();
|
H A D | SimplePolicyConfiguration.java | 209 pcwLock.lock(); 255 pcwLock.lock(); 294 pcwLock.lock(); 337 pcwLock.lock(); 376 pcwLock.lock(); 419 pcwLock.lock(); 457 pcwLock.lock(); 500 pcwLock.lock(); 534 pcwLock.lock(); 589 pcrLock.lock(); [all...] |
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/servlets/ |
H A D | WebdavServlet.java | 201 * Create a new lock. 207 * Refresh lock. 213 * Default lock timeout value. 219 * Maximum lock timeout. 282 * Repository of the lock-null resources. 284 * Key : path of the collection containing the lock-null resource<br> 285 * Value : Vector of lock-null resource which are members of the 287 * the lock-null resource. 303 * Secret information used to generate reasonably secure lock ids. 673 // Displaying the lock [all...] |
/glassfish-3.1.2/transaction/jts/src/main/java/com/sun/enterprise/transaction/jts/recovery/ |
H A D | RecoveryLockFile.java | 43 // Description: Recovery lock file handling 67 * This class manages lock file required for delegated recovery. 71 * Records in the recovery lock file have the following format: 235 FileLock lock = raf.getChannel().lock(); 254 lock.release(); 273 * Removes recovery data from the recovery lock file for running instance 280 * Removes recovery data from the recovery lock files for both, the instance that the 282 * recovery is done by (in the lock file on the specified path) 290 * Removes recovery data from the recovery lock fil [all...] |
/glassfish-3.1.2/ejb/ejb-container/src/main/java/com/sun/ejb/base/stats/ |
H A D | MethodMonitor.java | 64 private Object lock = new Object(); field in class:MethodMonitor 94 synchronized (lock) { 106 synchronized(lock) {
|
H A D | EJBMethodStatsManagerImpl.java | 79 private Object lock = new Object(); field in class:EJBMethodStatsManagerImpl 105 synchronized (lock) { 119 synchronized (lock) { 135 synchronized (lock) { 197 synchronized (lock) { 201 synchronized (lock) {
|
/glassfish-3.1.2/security/core/src/main/java/com/sun/enterprise/security/ |
H A D | PermissionCache.java | 207 rLock.lock(); 220 wLock.lock(); 230 rLock.lock(); 326 wLock.lock(); 331 rLock.lock(); 350 wLock.lock();
|
/glassfish-3.1.2/core/kernel/src/main/java/com/sun/enterprise/v3/services/impl/ |
H A D | DynamicConfigListener.java | 271 logger.finest("Aquire reconfig lock"); 273 Future lock = reconfigByPortLock.get(port); 275 logger.log(Level.FINEST, "Reconfig lock for port: {0} is {1}", 276 new Object[]{port, lock}); 279 if (lock == null) { 284 lock = reconfigByPortLock.get(proxyPort); 286 logger.log(Level.FINEST, "Reconfig lock for proxyport: {0} is {1}", 287 new Object[]{proxyPort, lock}); 294 if (lock != null) { 297 logger.finest("Waiting on reconfig lock"); 325 releaseListenerLock(Lock lock) argument [all...] |
/glassfish-3.1.2/connectors/connectors-runtime/src/main/java/com/sun/enterprise/connectors/ |
H A D | ConnectorRegistry.java | 313 * lock object that will be used by ResourceAdapterAdminService 316 * @return lock object for the resource-adapter 322 Object lock; 324 lock = locks.get(rarName); 325 if (lock == null) { 326 lock = new Object(); 327 locks.put(rarName, lock); 329 _logger.fine("added lock-object [ " + lock + " ] for rar : " + rarName); 333 return lock; [all...] |
/glassfish-3.1.2/security/core/src/main/java/com/sun/enterprise/security/provider/ |
H A D | PolicyConfigurationFactoryImpl.java | 246 rLock.lock(); 261 wLock.lock(); 271 rLock.lock(); 281 wLock.lock();
|