Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for Acquire (2.26 sec)

  1. src/test/java/jcifs/smb/SimpleMemoryManagementTest.java

            assertTrue(session.isInUse(), "New session should be in use due to transport acquisition");
    
            // Test additional acquire
            session.acquire();
            assertTrue(session.isInUse(), "Session should still be in use after additional acquire");
    
            // Test release (still in use because of initial transport acquire)
            session.release();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java

            // Act: create wrapper using delegate, then acquire and release once
            SmbTreeConnectionTrace wrapper = new SmbTreeConnectionTrace(delegate);
            wrapper.acquire();
            wrapper.release();
    
            // Assert: delegate interactions occur when usage transitions happen
            verify(delegate, times(1)).acquire();
            verify(delegate, times(1)).release();
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/SmbTransportPool.java

         *
         * @param tf the CIFS context to use
         * @param name the server name or address
         * @param port the port number
         * @param exclusive whether to acquire an unshared connection
         * @param forceSigning whether to enforce SMB signing
         * @return a connected transport
         * @throws UnknownHostException if the host cannot be resolved
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbFileHandleImpl.java

            }
        }
    
        /**
         * @return a file handle with increased usage count
         */
        public SmbFileHandleImpl acquire() {
            final long usage = this.usageCount.incrementAndGet();
            if (log.isTraceEnabled()) {
                log.trace(String.format("Acquire %s (%d)", this, usage));
            }
            return this;
        }
    
        /**
         *
         */
        public void markClosed() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.4K bytes
    - Viewed (1)
  5. src/test/java/jcifs/smb/SmbTreeImplTest.java

                    }
                }
                tree.unwrap(CustomSmbTree.class);
            });
        }
    
        // Test case for acquire and release methods
        @Test
        void testAcquireAndRelease() {
            SmbTreeImpl tree = new SmbTreeImpl(session, "SHARE", "A:");
            tree.acquire();
            tree.release();
        }
    
        // Test case for isConnected method
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/util/transport/TransportTest.java

        @Nested
        @DisplayName("Resource management tests")
        class ResourceManagementTests {
    
            @Test
            @DisplayName("acquire should increment usage count")
            void shouldIncrementUsageCount() {
                long initial = transport.getUsageCount();
                transport.acquire();
                assertEquals(initial + 1, transport.getUsageCount());
            }
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/NetServerEnumIterator.java

            } else {
                throw new SmbException("The requested list operations is invalid: " + locator.getURL());
            }
            this.response = new NetServerEnum2Response(th.getConfig());
    
            this.treeHandle = th.acquire();
            try {
                this.next = open();
            } catch (final Exception e) {
                this.treeHandle.release();
                throw e;
            }
    
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/DirFileEntryEnumIteratorBase.java

            this.parent = parent;
            this.wildcard = wildcard;
            this.nameFilter = filter;
            this.searchAttributes = searchAttributes;
    
            this.treeHandle = th.acquire();
            try {
                this.next = open();
                if (this.next == null) {
                    doClose();
                }
            } catch (final Exception e) {
                doClose();
                throw e;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/api/admin/FessApiAdminAction.java

    /**
     * Abstract base class for admin API actions in Fess.
     * This class extends FessApiAction to provide admin-specific functionality
     * including enhanced access control for administrative operations.
     *
     * <p>Admin API actions require special permissions and access tokens
     * that are validated against the admin role configuration.</p>
     */
    public abstract class FessApiAdminAction extends FessApiAction {
    
        /** Logger instance for this class. */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/JAASAuthenticator.java

         * Create an authenticator using the JAAS service <code>jcifs</code>
         *
         * This will require that a keytab is configured in this service.
         *
         *
         */
        public JAASAuthenticator() {
            this("jcifs");
        }
    
        /**
         * Create an authenticator using the given JAAS service
         *
         * This will require that a keytab is configured in this service.
         *
         * @param serviceName
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.3K bytes
    - Viewed (1)
Back to top