scheduling

How to close a Dialog after certain seconds of inactivity?

依然范特西╮ 提交于 2019-12-05 17:20:28
i have an app that contains a dialog i want to close this dialog after x second, when user haven't any interact with app, like volume seekbar popup(that's open when the volume button clicked, and closed after 2 second of inactivity). what is the simplest way to implement this? thank you You could for example use a Handler and call its .removeCallbacks() and .postDelayed() method everytime the user interacts with the dialog. Upon an interaction, the .removeCallbacks() method will cancel the execution of .postDelayed(), and right after that, u start a new Runnable with .postDelayed() Inside this

Liferay Scheduler not working after server restart

空扰寡人 提交于 2019-12-05 17:15:23
I am scheduling a job using the code below. @Controller @RequestMapping("VIEW") public class MyController { @RenderMapping public String defaultView() { try { String cronText = "0 30 12 1/1 * ? *"; String description = "Message Scheduler Description"; String destinationName = DestinationNames.SCHEDULER_DISPATCH; int exceptionsMaxSize = 0; String portletId = "portletId"; Message message = new Message(); message.put(SchedulerEngine.MESSAGE_LISTENER_CLASS_NAME,SchedulerListener.class.getName()); message.put(SchedulerEngine.PORTLET_ID, portletId); Trigger trigger = new CronTrigger

Task Schedulers

馋奶兔 提交于 2019-12-05 13:41:33
Had an interesting discussion with some colleagues about the best scheduling strategies for realtime tasks, but not everyone had a good understanding of the common or useful scheduling strategies. For your answer, please choose one strategy and go over it in some detail, rather than giving a little info on several strategies. If you have something to add to someone else's description and it's short, add a comment rather than a new answer (if it's long or useful, or simply a much better description, then please use an answer) What is the strategy - describe the general case (assume people know

Separate schedules for Azure webjob functions?

点点圈 提交于 2019-12-05 10:49:24
Is it possible to set up separate schedules for individual non-triggered functions in an Azure webjob? I ask because I have half a dozen individual tasks I'd like to run at different times of the day and at different intervals and don't want to create a separate project for each. Thomas Yes you can using the TimerTriggerAttribute Azure WebJobs SDK Extensions nuget download page Here is a sample code: public class Program { static void Main(string[] args) { JobHostConfiguration config = new JobHostConfiguration(); // Add Triggers for Timer Trigger. config.UseFiles(filesConfig); config.UseTimers

How to schedule Pentaho Kettle transformations?

自闭症网瘾萝莉.ら 提交于 2019-12-05 07:34:31
问题 I've set up four transformations in Kettle. Now, I would like to schedule them so that they will run daily at a certain time and one after the another. For example, tranformation1 -> transformation2 -> transformation3 -> transformation4 should run daily at 8.00 am. How can I do that? 回答1: You can execute transformation from the command line using the tool Pan: Pan.bat /file:transform.ktr /param:name=value The syntax might be different depending on your system - check out the link above for

How to schedule a script in SQL Server Express ( without SQL Server Agent )?

假装没事ソ 提交于 2019-12-05 05:13:19
问题 Ok so I asked a question yesterday about doing a timed procedure. I got some responses about using SQL Server Agent but i found out that I am using Sql server 2008 express RC and its not available. Here is my first question and I want to know if there is another tool I can use to do a timed procedure with sql server ....thanks again 回答1: You can use dialog timers to start activated procedures. This functionality is available on the Express edition. The advantage over an external service, like

Priority of kernel modules and SCHED_RR threads

社会主义新天地 提交于 2019-12-05 04:47:00
I have an embedded Linux platform (the Beagleboard, running Angstrom Linux) with two devices connected: a Laser range finder (Hokuyo UTM 30) connected via USB a custom external board connected via SPI We have a written a Linux kernel module which is responsible for the SPI data transfer. It has an IRQ handler in which spi_async is called which in turn causes an async callback method to be called. My C++ application consists of three threads: a main thread for data processing a laser polling thread an SPI polling thread I am experiencing problems which seem to be caused by how the modules

Scheduling in Linux: run a task when computer is idle (= no user input)

£可爱£侵袭症+ 提交于 2019-12-05 03:23:29
I want to run Folding@home client on my Ubuntu 8.10 box only when it's idle because of the program's heavy RAM consumption. By "idle" I mean the state when there's no user activity (keyboard, mouse or any other else). It's ok for other (probably heavy) processes to run at that time since F@H has the lowest CPU priority. The point is just to improve user experience and to do heavy work when the he is away. How to accomplish this? When the machine in question is a desktop, you could hook a start/stop script into the screensaver so that the process is stopped when the screensaver is inactive and

Rescheduling a CronTriggerBean dynamically with same job details in Spring

你说的曾经没有我的故事 提交于 2019-12-05 02:45:07
问题 My task is to generate the reports dynamically with the scheduled time specified by the user from the GUI. I am using the following code in the application context of my application in spring to generate the report daily 6 A.M.. <bean name="scheduleRptJob" class="org.springframework.scheduling.quartz.JobDetailBean"> <property name="jobClass" value="com.secant.qatool.report.scheduler.ScheduleCroneJob"/> </bean> <bean id="cronTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean

Spring Scheduler does not work

柔情痞子 提交于 2019-12-05 00:06:37
I have a problem with Spring's annotation based task scheduler - I can't get it working, I don't see any problem here... application-context.xml <task:scheduler id="taskScheduler" /> <task:executor id="taskExecutor" pool-size="1" /> <task:annotation-driven executor="taskExecutor" scheduler="taskScheduler" /> bean @Service public final class SchedulingTest { private static final Logger logger = Logger.getLogger(SchedulingTest.class); @Scheduled(fixedRate = 1000) public void test() { logger.debug(">>> Scheduled test service <<<"); } } If you want to use task:annotation-driven approach and your