Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 62 for open0 (0.55 sec)

  1. src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java

        public static final int SMB2_IMPERSONATION_LEVEL_DELEGATE = 0x3;
    
        /**
         * Enable other opens for read access
         */
        public static final int FILE_SHARE_READ = 0x1;
    
        /**
         * Enable other opens for write access
         */
        public static final int FILE_SHARE_WRITE = 0x2;
    
        /**
         * Enable other opens for delete access
         */
        public static final int FILE_SHARE_DELETE = 0x4;
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 22.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/SimpleCircuitBreakerTest.java

                // Expected
            }
    
            assertEquals(SimpleCircuitBreaker.State.OPEN, circuitBreaker.getState());
        }
    
        @Test
        @DisplayName("Test reset functionality")
        void testReset() {
            // Open the circuit
            circuitBreaker.tripBreaker();
            assertEquals(SimpleCircuitBreaker.State.OPEN, circuitBreaker.getState());
    
            // Reset
            circuitBreaker.reset();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/SmbResource.java

         * Opens an input stream reading the file (read only)
         *
         * @param sharing
         *            flags indicating for which operations others may open the file (FILE_SHARING_*)
         *
         * @return input stream, needs to be closed when finished
         * @throws CIFSException if an error occurs accessing the resource
         */
        InputStream openInputStream(int sharing) throws CIFSException;
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 28K bytes
    - Viewed (1)
  4. src/test/java/jcifs/smb/SmbCopyUtilTest.java

            // Act + Assert (no exception expected)
            assertDoesNotThrow(() -> SmbCopyUtil.copyFile(src, dest, buffers, 1, new WriterThread(), sh, dh));
    
            // Verify that server-side path engaged at least the initial opens
            verify(src, times(1)).openUnshared(anyInt(), anyInt(), anyInt(), anyInt(), anyInt());
            verify(dest, times(1)).openUnshared(anyInt(), anyInt(), anyInt(), anyInt(), anyInt());
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

        }
    
        @Test
        public void testCircuitResetsAfterTimeout() throws Exception {
            // Open the circuit
            circuitBreaker.trip();
            assertEquals(State.OPEN, circuitBreaker.getState(), "Circuit should be OPEN");
    
            // Wait for reset timeout
            Thread.sleep(1100);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/net/protocol/storage/Handler.java

        /**
         * Constructs a new Handler.
         */
        public Handler() {
            // Default constructor
        }
    
        /**
         * Opens a connection to the storage URL.
         *
         * @param u The URL to open a connection to
         * @return A new StorageURLConnection instance
         * @throws IOException If the connection cannot be opened
         */
        @Override
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 08:52:56 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

            assertTrue(ex2.getMessage().contains("Already closed"));
        }
    
        @Test
        @DisplayName("ensureOpen opens SMB2 via UNC path and marks open")
        void ensureOpen_smb2_opens() throws Exception {
            // Arrange
            SmbPipeHandleImpl handle = newHandleWithBasicStubs(0, "\\\\pipe\\\\foo");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

            if (len <= 0) {
                return 0;
            }
            final long start = fp;
    
            // ensure file is open
            if (!file.isOpen()) {
                file.open(openFlags, 0, SmbFile.ATTR_NORMAL, options);
            }
    
            int r, n;
            final SmbComReadAndXResponse response = new SmbComReadAndXResponse(b, off);
            do {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/util/SimpleCircuitBreaker.java

         *
         * @param name the circuit breaker name
         * @param failureThreshold number of consecutive failures to open circuit
         * @param successThreshold number of successes in half-open to close circuit
         * @param timeoutMillis timeout before attempting to close open circuit
         */
        public SimpleCircuitBreaker(String name, int failureThreshold, int successThreshold, long timeoutMillis) {
            this.name = name;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

         *
         * @see jcifs.SmbPipeHandle#isStale()
         */
        @Override
        public boolean isStale() {
            return !this.open || this.handle != null && !this.handle.isValid();
        }
    
        @Override
        public synchronized SmbFileHandleImpl ensureOpen() throws CIFSException {
            if (!this.open) {
                throw new SmbException("Pipe handle already closed");
            }
    
            if (!isOpen()) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 10.2K bytes
    - Viewed (0)
Back to top