Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for jobExecutor (0.29 sec)

  1. src/main/java/org/codelibs/fess/job/JobExecutor.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.job;
    
    public abstract class JobExecutor {
        protected ShutdownListener shutdownListener;
    
        public abstract Object execute(String scriptType, String script);
    
        public void shutdown() {
            shutdownListener.onShutdown();
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/job/ExecJob.java

        public abstract String execute();
    
        protected abstract String getExecuteType();
    
        public String execute(final JobExecutor jobExecutor) {
            jobExecutor(jobExecutor);
            return execute();
        }
    
        public ExecJob jobExecutor(final JobExecutor jobExecutor) {
            this.jobExecutor = jobExecutor;
            return this;
        }
    
        public ExecJob sessionId(final String sessionId) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/job/ScriptExecutorJob.java

            final String scriptType = scheduledJob.getScriptType();
            final String script = scheduledJob.getScriptData();
    
            final JobExecutor jobExecutor = ComponentUtil.getJobExecutor(scriptType);
            if (jobExecutor == null) {
                throw new ScheduledJobException("No jobExecutor: " + scriptType);
            }
    
            if (!jobManager.findJobByUniqueOf(LaJobUnique.of(id)).isPresent()) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/job/impl/ScriptExecutor.java

     */
    package org.codelibs.fess.job.impl;
    
    import java.util.HashMap;
    import java.util.Map;
    
    import org.codelibs.fess.job.JobExecutor;
    import org.codelibs.fess.util.ComponentUtil;
    
    public class ScriptExecutor extends JobExecutor {
    
        @Override
        public Object execute(final String scriptType, final String script) {
            final Map<String, Object> params = new HashMap<>();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/job/PythonJob.java

                sessionId = RandomStringUtils.randomAlphabetic(15);
            }
            resultBuf.append("Session Id: ").append(sessionId).append("\n");
            if (jobExecutor != null) {
                jobExecutor.addShutdownListener(() -> ComponentUtil.getProcessHelper().destroyProcess(sessionId));
            }
    
            final TimeoutTask timeoutTask = createTimeoutTask();
            try {
                executePython();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/it/CrawlTestBase.java

                    + ".webConfigIds([\"%s\"] as String[])" + ".jobExecutor(executor).execute();", webCofigId, webCofigId);
        }
    
        protected static String buildFileConfigJobScript(final String fileConfigId) {
            return String.format("return container.getComponent(\"crawlJob\")" + ".logLevel(\"info\")" + ".sessionId(\"%s\")"
                    + ".fileConfigIds([\"%s\"] as String[])" + ".jobExecutor(executor).execute();", fileConfigId, fileConfigId);
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/job/GenerateThumbnailJob.java

                sessionId = RandomStringUtils.randomAlphabetic(15);
            }
            resultBuf.append("Session Id: ").append(sessionId).append("\n");
            if (jobExecutor != null) {
                jobExecutor.addShutdownListener(() -> ComponentUtil.getProcessHelper().destroyProcess(sessionId));
            }
    
            final TimeoutTask timeoutTask = createTimeoutTask();
            try {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/job/SuggestJob.java

                sessionId = RandomStringUtils.randomAlphabetic(15);
            }
            resultBuf.append("Session Id: ").append(sessionId).append("\n");
            if (jobExecutor != null) {
                jobExecutor.addShutdownListener(() -> ComponentUtil.getProcessHelper().destroyProcess(sessionId));
            }
    
            final TimeoutTask timeoutTask = createTimeoutTask();
            try {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sun Jun 23 04:13:47 UTC 2024
    - 10K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/util/ComponentUtil.java

    import org.codelibs.fess.helper.ViewHelper;
    import org.codelibs.fess.helper.VirtualHostHelper;
    import org.codelibs.fess.indexer.IndexUpdater;
    import org.codelibs.fess.ingest.IngestFactory;
    import org.codelibs.fess.job.JobExecutor;
    import org.codelibs.fess.ldap.LdapManager;
    import org.codelibs.fess.mylasta.direction.FessConfig;
    import org.codelibs.fess.mylasta.direction.FessProp;
    import org.codelibs.fess.query.QueryFieldConfig;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jun 17 13:35:51 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/job/CrawlJob.java

                for (final String id : dataConfigIds) {
                    resultBuf.append(' ').append(id);
                }
                resultBuf.append('\n');
            }
    
            if (jobExecutor != null) {
                jobExecutor.addShutdownListener(() -> ComponentUtil.getProcessHelper().destroyProcess(sessionId));
            }
    
            final TimeoutTask timeoutTask = createTimeoutTask();
            try {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sun Jun 23 04:13:47 UTC 2024
    - 15.1K bytes
    - Viewed (0)
Back to top