Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 665 for resource (0.05 sec)

  1. cmd/metrics-resource.go

    	lastDriveStatsRefresh time.Time
    )
    
    // PeerResourceMetrics represents the resource metrics
    // retrieved from a peer, along with errors if any
    type PeerResourceMetrics struct {
    	Metrics map[MetricSubsystem]ResourceMetrics
    	Errors  []string
    }
    
    // ResourceMetrics is a map of unique key identifying
    // a resource metric (e.g. reads_per_sec_{node}_{drive})
    // to its data
    type ResourceMetrics map[string]ResourceMetric
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Mar 30 00:56:02 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/ResourceManagerTest.java

        }
    
        @Test
        @DisplayName("Test resource close tracking")
        void testResourceCloseTracking() throws Exception {
            TestResource resource = new TestResource("test2");
            String resourceId = resourceManager.registerResource(resource);
    
            resource.close();
            resourceManager.markClosed(resourceId);
    
            Map<String, Object> stats = resourceManager.getStatistics();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/util/ResourceManager.java

        }
    
        /**
         * Create a managed resource wrapper
         *
         * @param <T> resource type
         * @param resource the resource to wrap
         * @return managed resource
         */
        public <T extends AutoCloseable> ManagedResource<T> manage(T resource) {
            String resourceId = registerResource(resource);
            return new ManagedResource<>(resource, resourceId, this);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/context/BaseContextTest.java

            // Then
            assertNotNull(resource1, "First resource should be created");
            assertNotNull(resource2, "Second resource should be created");
            assertNotNull(pipe1, "First pipe should be created");
            assertNotNull(pipe2, "Second pipe should be created");
    
            assertNotSame(resource1, resource2, "Different resources should be different instances");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  5. cmd/local-locker.go

    	}
    
    	// No locks held on the all resources, so claim write
    	// lock on all resources at once.
    	now := UTCNow()
    	for i, resource := range args.Resources {
    		l.lockMap[resource] = []lockRequesterInfo{
    			{
    				Name:            resource,
    				Writer:          true,
    				Source:          args.Source,
    				Owner:           args.Owner,
    				UID:             args.UID,
    				Timestamp:       now.UnixNano(),
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12K bytes
    - Viewed (0)
  6. src/main/java/jcifs/SmbResourceException.java

            this.requestedResources = -1;
        }
    
        /**
         * Creates a resource exception with resource details
         *
         * @param message the error message
         * @param errorCode the SMB error code
         * @param resourceType the type of resource
         * @param available available resources
         * @param requested requested resources
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java

            assertTrue(iterator.hasNext());
            assertSame(resource, iterator.next());
    
            assertTrue(iterator.hasNext());
            assertSame(resource, iterator.next());
    
            assertTrue(iterator.hasNext());
            assertSame(resource, iterator.next());
    
            assertFalse(iterator.hasNext());
            assertNull(iterator.next());
    
            verify(resource, never()).close();
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/CIFSContext.java

        /**
         * Get a resource
         *
         * @param url the URL of the SMB resource
         * @return the SMB resource at the specified location
         * @throws CIFSException if the resource cannot be accessed
         */
        SmbResource get(String url) throws CIFSException;
    
        /**
         * Get a pipe resource
         *
         * @param url the URL of the SMB pipe resource
         * @param pipeType
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/SmbResourceTest.java

                assertTrue(resource.exists(), "Resource should exist");
                assertTrue(resource.isFile(), "Should be a file");
                assertTrue(resource.canWrite(), "Should be writable");
    
                // Should be able to perform file operations
                assertDoesNotThrow(() -> {
                    resource.setReadOnly();
                    resource.setReadWrite();
                    resource.setAttributes(0x20);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbResourceLocatorInternal.java

         */
        boolean shouldForceSigning();
    
        /**
         * Determines whether this resource path overlaps with another resource path by sharing a common root.
         *
         * @param other the other resource locator to compare with
         * @return whether the paths share a common root
         * @throws CIFSException if an error occurs during comparison
         */
        boolean overlaps(SmbResourceLocator other) throws CIFSException;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2K bytes
    - Viewed (0)
Back to top