Searched refs:lock (Results 1 - 25 of 63) sorted by relevance

123

/glassfish-3.1.2/transaction/jts/src/main/java/com/sun/jts/CosTransactions/
H A DRWLock.java51 * 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 DAuthConfigFileFactory.java71 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 DTestClient.java52 * 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 DEpochCarrier.java67 instanceWriteLock.lock();
79 instanceReadLock.lock();
88 instanceReadLock.lock();
H A DAuthConfigHelper.java86 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 DTransientContext.java75 // 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 DManagedFile.java102 * @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 DRWLockDataStructure.java94 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 DConcurrentAccessTest.java90 // 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 DWorkCoordinator.java86 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 DInstanceSupport.java156 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 DGFAuthConfigFactory.java80 rLock.lock();
89 wLock.lock();
104 rLock.lock();
H A DConfigHelper.java186 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 DAdminCommandLock.java60 * 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 DAssocWithThreadResourcePool.java95 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 DSharedState.java59 //lock on the shared configTable and linkTable
80 wLock.lock();
92 wLock.lock();
113 rLock.lock();
170 wLock.lock();
216 wLock.lock();
H A DSimplePolicyConfiguration.java209 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 DWebdavServlet.java201 * 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 DRecoveryLockFile.java43 // 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 DMethodMonitor.java64 private Object lock = new Object(); field in class:MethodMonitor
94 synchronized (lock) {
106 synchronized(lock) {
H A DEJBMethodStatsManagerImpl.java79 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 DPermissionCache.java207 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 DDynamicConfigListener.java271 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 DConnectorRegistry.java313 * 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 DPolicyConfigurationFactoryImpl.java246 rLock.lock();
261 wLock.lock();
271 rLock.lock();
281 wLock.lock();

Completed in 89 milliseconds

123