List of usage examples for java.util TimerTask subclass-usage
From source file org.wso2.carbon.core.util.HouseKeepingTask.java
/** * This task handles house keeping. Work such as cleaning up temp files etc. are handled here. */ public class HouseKeepingTask extends TimerTask { private static Log log = LogFactory.getLog(HouseKeepingTask.class);
From source file ddf.catalog.resource.download.ResourceRetrievalMonitor.java
/**
* Monitors the @ReliableResourceCallable, detecting if no bytes have been read from the resource's @InputStream
* for the monitor's period. If this is detected, then this monitor is canceled, the @ReliableResourceCallable's
* interrupt flag is set, and the @Future that started it is canceled.
*
*/
From source file org.apache.metron.performance.load.monitor.MonitorTask.java
public class MonitorTask extends TimerTask { private Writer writer; public MonitorTask(Writer writer) { this.writer = writer; }
From source file be.anova.courses.activemq.MessageTimerTask.java
/**
* Created by IntelliJ IDEA.
* User: gert
* Date: Apr 9, 2010
* Time: 9:47:22 PM
* To change this template use File | Settings | File Templates.
From source file TimerTaskGame.Ask4RoundInfo.java
/** * * @author Wei */ public class Ask4RoundInfo extends TimerTask {
From source file org.energy_home.jemma.ah.ebrain.algo.OverloadDetectorTask.java
public class OverloadDetectorTask extends TimerTask { public static final int DETECTION_INTERVAL = 5 * 1000; // 10 seconds public static final int SAME_EVENT_NOTIFICATION_DELAY = 20 * 1000; // 60 seconds public static final byte OVERLOAD_OVER_EVENT = 1; public static final byte OVERLOAD_UNDER_EVENT = 2;
From source file com.bt.aloha.util.HousekeepingTimerTask.java
/** * Do housekeeping on any Spring bean that implements Housekeepable */ public class HousekeepingTimerTask extends TimerTask implements BeanFactoryPostProcessor { private Log log = LogFactory.getLog(this.getClass());
From source file com.tc.server.UpdateCheckAction.java
class UpdateCheckAction extends TimerTask { private static final TCLogger LOG = TCLogging.getLogger(UpdateCheckAction.class); private static final int CONNECT_TIMEOUT = 3000; private static final long MILLIS_PER_SECOND = 1000L; private static final String UNKNOWN = "UNKNOWN";
From source file org.wso2.carbon.wsdl2form.ProxyTimerTask.java
/**
* This will be the timer task that will be alive in every 30 mins (This value is hard coded and
* cannot be configured.) in the corresponding AxisServiceGroup and removed the proxy services. If
* there exist only one proxy service and if it is not touched, AxisServiceGroup will also removed
* from the list.
*/
From source file org.gbif.portal.web.download.ExpiredFileTask.java
/**
* Simple timer task that checks the last modified date
* on a file and deletes if the file is older than a set
* period.
*
* @author dmartin