- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 119 for trees (1.62 sec)
-
src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java
// Get or create tree SmbTreeImpl tree = session.getSmbTree(share, null); assertNotNull(tree, "Tree should not be null"); // Verify we can acquire the tree tree.acquire(); successCount.incrementAndGet();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbTreeTest.java
SmbTree tree4 = new SmbTree(session, "testShare", "otherService"); // Test equal trees (same share and service) assertEquals(tree1, tree2); // Test non-equal trees (different share) assertNotEquals(tree1, tree3); // Test non-equal trees (different service) assertNotEquals(tree1, tree4); // Test with different object type assertNotEquals(tree1, new Object());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbSessionImpl.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 68.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SimpleMemoryManagementTest.java
// Session starts with usage count > 0 assertTrue(session.isInUse(), "Session should be in use initially"); // Create and release trees SmbTreeImpl tree = session.getSmbTree("share1", null); assertNotNull(tree, "Tree should be created"); tree.release(); // Release the session (back to initial state) 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) -
src/main/java/jcifs/smb1/smb1/SmbSession.java
this.localPort = localPort; this.auth = auth; trees = new Vector(); connectionState = 0; } synchronized SmbTree getSmbTree(String share, final String service) { SmbTree t; if (share == null) { share = "IPC$"; } for (final Enumeration e = trees.elements(); e.hasMoreElements();) { t = (SmbTree) e.nextElement();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 20.7K bytes - Viewed (0) -
src/test/java/jcifs/SmbTreeTest.java
CustomSmbTree inner = middle.unwrap(CustomSmbTree.class); assertNotNull(middle, "Middle tree should not be null"); assertNotNull(inner, "Inner tree should not be null"); assertSame(middleTree, middle, "Should return correct middle tree"); assertSame(innerTree, inner, "Should return correct inner tree"); } /** * Test for unwrap with incompatible type.
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeConnection.java
import jcifs.internal.smb1.trans.nt.NtTransQuerySecurityDesc; import jcifs.util.transport.TransportException; /** * This class encapsulates the logic for switching tree connections * * Switching trees can occur either when the tree has been disconnected by failure or idle-timeout - as well as on * DFS referrals. * * @author mbechler * */ class SmbTreeConnection implements AutoCloseable {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 30.4K bytes - Viewed (1) -
src/main/java/jcifs/Configuration.java
/** * Property {@code jcifs.smb.client.strictResourceLifecycle} (bool, default false) * * If enabled, SmbFile instances starting with their first use will hold a reference to their tree. * This means that trees/sessions/connections won't be idle-disconnected even if there are no other active * references (currently executing code, file descriptors). *Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 25.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeImplTest.java
// Test case for the equals method @Test void testEquals() { SmbTreeImpl tree1 = new SmbTreeImpl(session, "SHARE", "A:"); SmbTreeImpl tree2 = new SmbTreeImpl(session, "SHARE", "A:"); SmbTreeImpl tree3 = new SmbTreeImpl(session, "OTHER", "A:"); assertEquals(tree1, tree2); assertFalse(tree1.equals(tree3)); } // Test case for the unwrap method @Test void testUnwrap() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFile.java
@Override public void connect() throws IOException { try (SmbTreeHandle th = ensureTreeConnected()) {} } /** * Retrieves the tree handle for this SMB resource * * @return a tree handle * @throws CIFSException if the tree connection cannot be established */ public SmbTreeHandle getTreeHandle() throws CIFSException { return ensureTreeConnected(); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 103.2K bytes - Viewed (0)