所有软件外包项目 Gray arrow bg Schedule Component C++

Schedule Component C++ 资金已经托管 线上项目,线下洽谈,智城安排

发包方 : Ruth baker 接包方 : Keysolution 状态 :完成
项目编号 : 91488
项目预算 : 多于$100
开发周期 : 7 天
技能 : MySQL C
发布日期 : 2009-11-10

描述

Need a C++ component which gets a list of tasks from a mysql database,



the "task" consists of:

function to call, parameters, and scheduled times in cron format



DATABASE TABLE - tasks

var char function

var char args

var char scheduledtime



scheduled time is in the format (seconds minutes hours days weeks months)

30 0 0 0 0 = every 30 seconds

0 5 0 0 0 0 = every 5 minutes

0 1 0 0 0 0 = every 1 minute

0 1 1 0 0 0 = every 1 hour 1 minute

0 1 1 2 0 0 = every 2 days, 1 hour, 1 minute



When the object is created, it gets a list of tasks from the database, and executes the function at the specified time with the args specified.



This object should start a boost thread which sleeps until it is time to execute the next function. The function is launched in a new thread, then the main scheduling thread goes back to sleep.



This application should come with a test application which uses the component.



It should create a new instance of the object, retrieve the tasks from a sample database and run them at the scheduled times.


竞标

请您先登录,然后提交此项目的竞标方案。
还不是智城用户? 智城期待您的加入,请注册成为我们的一员吧!
Project ad2