Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 23 for isAvailable (0.07 seconds)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/Jdk9Platform.kt

              SSLContext.getInstance("TLS")
            }
          }
        }
    
      companion object {
        val isAvailable: Boolean
    
        val majorVersion = System.getProperty("java.specification.version")?.toIntOrNull()
    
        init {
          isAvailable =
            if (majorVersion != null) {
              majorVersion >= 9
            } else {
              try {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 3.6K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/llm/LlmClientManager.java

            }
            final LlmClient client = getClient();
            final boolean isAvailable = client != null && client.isAvailable();
            if (logger.isTraceEnabled()) {
                logger.trace("[LLM] LLM availability check. llmType={}, clientFound={}, isAvailable={}", llmType, client != null, isAvailable);
            }
            return isAvailable;
        }
    
        /**
         * Gets the LLM client instance for the configured LLM type.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 19 11:10:51 GMT 2026
    - 17.4K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/thumbnail/impl/EmptyGeneratorTest.java

            // Initialize without container
            emptyGenerator = new EmptyGenerator();
    
            // Test that isAvailable returns true for EmptyGenerator
            assertTrue(emptyGenerator.isAvailable());
            // Test cached availability
            assertTrue(emptyGenerator.isAvailable());
        }
    
        @Test
        public void test_isTarget() {
            // Initialize without container
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/storage/StorageClient.java

         */
        void ensureBucketExists();
    
        /**
         * Checks if storage is properly configured and accessible.
         *
         * @return true if storage is available
         */
        boolean isAvailable();
    
        /**
         * Closes the client and releases resources.
         */
        @Override
        void close();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 13 02:21:17 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/storage/GcsStorageClient.java

                }
            } catch (final Exception e) {
                logger.warn("Failed to ensure bucket exists: {}", bucket, e);
            }
        }
    
        @Override
        public boolean isAvailable() {
            try {
                return storage.get(bucket) != null;
            } catch (final Exception e) {
                return false;
            }
        }
    
        @Override
        public void close() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 13 02:21:17 GMT 2025
    - 10.3K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGenerator.java

                    }
                    return true;
                }
            }
            return false;
        }
    
        @Override
        public boolean isAvailable() {
            if (available != null) {
                return available;
            }
            if (generatorList != null && !generatorList.isEmpty()) {
                String path = System.getenv("PATH");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 13.4K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/thumbnail/ThumbnailGeneratorTest.java

            // Test availability check
            assertTrue(thumbnailGenerator.isAvailable());
        }
    
        @Test
        public void test_destroy() {
            // Test destroy method - should not throw exception
            thumbnailGenerator.destroy();
            // After destroy, generator should not be available
            assertFalse(thumbnailGenerator.isAvailable());
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 11.7K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/llm/LlmClient.java

         */
        String getName();
    
        /**
         * Checks if this LLM client is available and properly configured.
         *
         * @return true if the client is available, false otherwise
         */
        boolean isAvailable();
    
        // RAG workflow methods
    
        /**
         * Detects the intent of a user message.
         *
         * @param userMessage the user's message
         * @return the detected intent with extracted keywords
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 19 07:04:54 GMT 2026
    - 7.3K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/helper/JobHelper.java

        /**
         * Checks if a job with the specified ID is available.
         *
         * @param id the job ID to check
         * @return true if the job is available, false otherwise
         */
        public boolean isAvailable(final String id) {
            return ComponentUtil.getComponent(ScheduledJobBhv.class)
                    .selectByPK(id)
                    .filter(e -> Boolean.TRUE.equals(e.getAvailable()))
                    .isPresent();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/storage/S3StorageClient.java

                if (logger.isDebugEnabled()) {
                    logger.debug("Failed to check bucket: {}", bucket, e);
                }
            }
        }
    
        @Override
        public boolean isAvailable() {
            try {
                final HeadBucketRequest request = HeadBucketRequest.builder().bucket(bucket).build();
                s3Client.headBucket(request);
                return true;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 13 02:21:17 GMT 2025
    - 10.9K bytes
    - Click Count (0)
Back to Top