Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getTreeId (0.14 sec)

  1. src/main/java/jcifs/smb/SmbTreeHandleImpl.java

        @Override
        public Configuration getConfig() {
            return this.treeConnection.getConfig();
        }
    
        /**
         * @return the currently connected tree id
         */
        public long getTreeId() {
            return this.treeConnection.getTreeId();
        }
    
        /**
         *
         * @param req
         * @param params
         * @return response
         * @throws CIFSException
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbFileHandleImpl.java

            this.unc = unc;
            this.flags = flags;
            this.access = access;
            this.attrs = attrs;
            this.options = options;
            this.tree = tree.acquire();
            this.tree_num = tree.getTreeId();
    
            if (cfg.isTraceResourceUsage()) {
                this.creationBacktrace = Thread.currentThread().getStackTrace();
            } else {
                this.creationBacktrace = null;
            }
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.4K bytes
    - Viewed (1)
  3. src/test/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancerTest.java

        void testAffinityBasedStrategy() throws Exception {
            loadBalancer.setStrategy(LoadBalancingStrategy.AFFINITY_BASED);
    
            Smb2ReadRequest readRequest = mock(Smb2ReadRequest.class);
            when(readRequest.getTreeId()).thenReturn(123); // Set consistent tree ID for affinity
    
            when(mockChannelManager.getHealthyChannels()).thenReturn(Arrays.asList(channel1, channel2));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancer.java

            if (message instanceof ServerMessageBlock2Request) {
                ServerMessageBlock2Request smb2Request = (ServerMessageBlock2Request) message;
                affinityKey = smb2Request.getTreeId();
            }
    
            if (affinityKey != 0) {
                // Select channel based on affinity key
                List<ChannelInfo> list = new ArrayList<>(channels);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java

            }
    
            // Test channel selection with mock request when no channels available
            ServerMessageBlock2Request mockRequest = mock(ServerMessageBlock2Request.class);
            when(mockRequest.getTreeId()).thenReturn(123);
    
            // Should throw NoAvailableChannelException when no healthy channels
            assertThrows(ChannelLoadBalancer.NoAvailableChannelException.class, () -> loadBalancer.selectChannel(mockRequest),
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbTreeConnection.java

         */
        void setNonPooled(final boolean np) {
            this.nonPooled = np;
        }
    
        /**
         * @return the currently connected tid
         */
        @SuppressWarnings("resource")
        public long getTreeId() {
            final SmbTreeImpl t = getTreeInternal();
            if (t == null) {
                return -1;
            }
            return t.getTreeNum();
        }
    
        /**
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (1)
  7. src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java

            this.command = command;
        }
    
        /**
         * Gets the tree identifier for this message.
         *
         * @return the treeId
         */
        public final int getTreeId() {
            return this.treeId;
        }
    
        /**
         * Sets the tree identifier for this message.
         *
         * @param treeId
         *            the treeId to set
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
Back to top