- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for SmbSessionImpl (0.47 sec)
-
src/main/java/jcifs/smb/SmbSessionImpl.java
import jcifs.internal.witness.WitnessNotification; import jcifs.internal.witness.WitnessRegistration; import jcifs.util.Hexdump; /** * */ final class SmbSessionImpl implements SmbSessionInternal { private static final Logger log = LoggerFactory.getLogger(SmbSessionImpl.class); /* * 0 - not connected * 1 - connecting * 2 - connected * 3 - disconnecting */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 68.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java
* Test that concurrent tree operations are thread-safe with CopyOnWriteArrayList. */ @Test public void testConcurrentTreeOperationsThreadSafe() throws Exception { // Given SmbSessionImpl session = new SmbSessionImpl(mockContext, "testhost", "testdomain", mockTransport); int threadCount = 10; int opsPerThread = 100; ExecutorService executor = Executors.newFixedThreadPool(threadCount);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/smb/SimpleMemoryManagementTest.java
@Test @Timeout(5) public void testAutoCloseablePattern() throws Exception { SmbSessionImpl session = new SmbSessionImpl(mockContext, "testhost", "testdomain", mockTransport); // Test try-with-resources assertTrue(session.isInUse(), "Session should be in use initially"); try (SmbSessionImpl autoSession = session) { // Session is already in use due to transport acquisition
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 5.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplTest.java
@Mock private Credentials credentials; @Mock private CredentialsInternal credentialsInternal; @Mock private SmbTransportImpl transport; private SmbSessionImpl newSession() { return new SmbSessionImpl(cifsContext, "server.example", "EXAMPLE", transport); } @BeforeEach void setup() { // Base context configuration - always needed
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeHandleImpl.java
public int getSendBufferSize() throws SmbException { try (SmbSessionImpl session = this.treeConnection.getSession(); SmbTransportImpl transport = session.getTransport()) { return transport.getNegotiateResponse().getSendBufferSize(); } } @Override public int getReceiveBufferSize() throws SmbException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeImpl.java
* 2 - connected * 3 - disconnecting */ private final AtomicInteger connectionState = new AtomicInteger(); private final String share; private final String service0; private final SmbSessionImpl session; private volatile int tid = -1; private volatile String service = "?????"; private volatile boolean inDfs, inDomainDfs; private volatile long treeNum; // used by SmbFile.isOpen
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 30K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeConnection.java
log.warn("Tree connection was not properly released " + this); } } synchronized void disconnect(final boolean inError) { try (SmbSessionImpl session = getSession()) { if (session == null) { return; } try (SmbTransportImpl transport = session.getTransport()) { synchronized (transport) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 30.4K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTransportImpl.java
*/ @Override public SmbSessionImpl getSmbSession(final CIFSContext tf) { return getSmbSession(tf, null, null); } /** * * @param tf * context to use * @return a session for the context */ @Override @SuppressWarnings("resource")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 69.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportImplTest.java
// Act: create new session (happy path) SmbSessionImpl s1 = transport.getSmbSession(ctx); assertNotNull(s1); assertEquals(1, transport.getNumSessions()); s1.close(); // Act: request again with same context -> reuse existing SmbSessionImpl s2 = transport.getSmbSession(ctx); assertNotNull(s2);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleImplTest.java
void testGetSessionKey() throws CIFSException { when(pipe.ensureTreeConnected()).thenReturn(tree); when(tree.acquire()).thenReturn(tree); SmbSessionImpl session = mock(SmbSessionImpl.class); when(tree.getSession()).thenReturn(session); when(session.getSessionKey()).thenReturn(new byte[] { 1, 2, 3 }); byte[] key = target.getSessionKey();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.7K bytes - Viewed (0)