Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for JobNotFoundException (0.08 seconds)

  1. src/main/java/org/codelibs/fess/exception/JobNotFoundException.java

     */
    public class JobNotFoundException extends FessSystemException {
    
        private static final long serialVersionUID = 1L;
    
        /**
         * Constructs a new JobNotFoundException with a message derived from the scheduled job.
         *
         * @param scheduledJob the scheduled job that was not found
         */
        public JobNotFoundException(final ScheduledJob scheduledJob) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/exception/JobNotFoundExceptionTest.java

            JobNotFoundException exception = new JobNotFoundException(message);
    
            assertNotNull(exception);
            assertEquals(message, exception.getMessage());
            assertNull(exception.getCause());
        }
    
        @Test
        public void test_constructorWithString_null() {
            // Test with null message
            JobNotFoundException exception = new JobNotFoundException((String) null);
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 9.2K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/opensearch/config/exentity/ScheduledJob.java

                }
            }).orElse(() -> {
                throw new JobNotFoundException(this);
            });
        }
    
        public void stop() {
            ComponentUtil.getJobManager().findJobByUniqueOf(LaJobUnique.of(getId())).ifPresent(job -> {
                job.stopNow();
            }).orElse(() -> {
                throw new JobNotFoundException(this);
            });
        }
    
        public String getId() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 11:55:54 GMT 2026
    - 3.6K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/helper/ProcessHelper.java

                if (jobProcess == null) {
                    throw new JobNotFoundException("Job for " + sessionId + " is not found.");
                }
                process = jobProcess.getProcess();
                if (process == null || !process.isAlive()) {
                    throw new JobNotFoundException("Process for " + sessionId + " is not running.");
                }
            }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 20 06:54:47 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/opensearch/config/exentity/ScheduledJobTest.java

            scheduledJob.setId("nonexistent-job");
    
            try {
                scheduledJob.start(Map.of(Constants.JOB_LOG_ID, "some-id"));
                fail("Expected JobNotFoundException");
            } catch (final JobNotFoundException e) {
                // expected
            }
        }
    
        @Test
        public void test_startNoArg_callsLaunchNowWithoutParams() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 11:55:54 GMT 2026
    - 15.8K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/helper/ProcessHelperTest.java

        }
    
        @Test
        public void test_sendCommand_jobNotFound() {
            try {
                processHelper.sendCommand("nonexistent", "test command");
                fail("Expected JobNotFoundException");
            } catch (JobNotFoundException e) {
                assertTrue(e.getMessage().contains("Job for nonexistent is not found"));
            }
        }
    
        @Test
        public void test_startProcess_basicCommand() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 16K bytes
    - Click Count (0)
Back to Top