X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=mythtv%2Fwar%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fmythtv%2FPollDirectoryJob.java;fp=mythtv%2Fwar%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fmythtv%2FPollDirectoryJob.java;h=0000000000000000000000000000000000000000;hb=03947cccfab5ffc636d5ce8262438cbed258ab5a;hp=e75ed1191ea01ca87adae9fee15221ac0d082455;hpb=3882f585f7bc464a4fe4b227f7ad5f043332aaa7;p=utils diff --git a/mythtv/war/src/main/java/org/wamblee/mythtv/PollDirectoryJob.java b/mythtv/war/src/main/java/org/wamblee/mythtv/PollDirectoryJob.java deleted file mode 100644 index e75ed119..00000000 --- a/mythtv/war/src/main/java/org/wamblee/mythtv/PollDirectoryJob.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2006 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.wamblee.mythtv; - -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; -import org.quartz.JobExecutionContext; -import org.quartz.JobExecutionException; -import org.quartz.StatefulJob; -import org.wamblee.general.BeanKernel; -import org.wamblee.io.DirectoryMonitor; - -/** - * - */ -public class PollDirectoryJob implements StatefulJob { - - private static final Log LOG = LogFactory.getLog(PollDirectoryJob.class); - - public PollDirectoryJob() { - // Empty - } - - /* - * (non-Javadoc) - * - * @see org.quartz.Job#execute(org.quartz.JobExecutionContext) - */ - public void execute(JobExecutionContext aContext) - throws JobExecutionException { - try { - DirectoryMonitor monitor = BeanKernel.getBeanFactory().find( - DirectoryMonitor.class); - monitor.poll(); - } catch (Throwable t) { - LOG - .error( - "something terrible happend, ignoring it and hoping for the best", - t); - } - } - -}