The present application is based on, and claims priority from, Taiwan (International) Application Serial Number 101128718, filed on Aug. 9, 2012, the invention of which is hereby incorporated by reference herein in its entirety.
The present invention relates to a work scheduling method and a work scheduling system, and in particular, relates to a work scheduling method and a work scheduling system implemented via a cloud platform.
Work scheduling services are often auxiliary services of an application system, and perform specific tasks regularly to support the operation of the application system. Most tasks are works, such as data statistical, data backup, or other specific works the system needs to perform. Data statistical often requires the integration of a large amount of information and relevant data. The type of the work schedule is usually used to compile the statistics for data, and it may take a lot of time for the system. To avoid the application system taking a lot of time to process the calculations when a front-end user operates the system, a program developer often uses the work schedule for the calculations to improve the computing performance of the front-end user program and enhance the quality of the service of the application system. Data backup is also often an essential back-end service of the application system. However, a lot of time is also needed to backup a large amount of data. Different application systems may execute works at different times regularly, for example, to send an email, or to check data, and so on. These services can be usually achieved through the work scheduling service.
For conventional work scheduling services, developers need to transfer a computer-implemented process to an executable file. Then, the work scheduling service with a server operating system may arrange the work schedule, or a scheduling system developed by the program developer independently may execute the work schedule. The program developer has to know the database connection information and the server data of the application systems clearly to write the program of the executable file for creating the work schedule. In a cloud environment, however, when a user wants to develop the application system service in the cloud platform, the cloud platform often only provides a uniform resource locator (URL) for the user to enter, and does not provide the server of the application system for the user to arrange the work schedule. In addition, the database connection information is hidden in the cloud platform. Thus, the program developer does not know the database connection information. Therefore, it is a challenge to execute correct connections for different work schedules to achieve system accuracy.
A detailed description is given in the following embodiments with reference to the accompanying drawings.
A work scheduling method and system implemented via a cloud platform are provided.
In one exemplary embodiment, the invention is directed to a work scheduling method implemented via a cloud platform, used in a work scheduling system, comprising: creating, by a developing interface of a developing module, a work schedule; generating, by the developing module, a dynamic linking library (DLL) which corresponds to the work schedule and uploading the dynamic linking library to the cloud platform through the internet; transferring, by a disposing module, the dynamic linking library to an application service; computing, by a scheduling module, a scheduling time according to the work schedule; and executing, by an executing module, the application service according to the scheduling time.
In one exemplary embodiment, the invention is directed to a work scheduling system implemented via a cloud platform. The work scheduling system comprises a client device and a cloud platform, wherein the client device is coupled to the cloud platform. The client device comprises a developing module, and the developing module is configured to provide a developing interface for a user to create a work schedule and generate a dynamic linking library (DLL) which corresponds to the work schedule. The cloud platform is configured to receive the dynamic linking library uploaded by the client device through the internet. The cloud platform comprises a disposing module, a scheduling module and an executing module. The disposing module is configured to transfer the dynamic linking library to an application service. The scheduling module is configured to compute a scheduling time according to the work schedule created by the user. The executing module is configured to execute the application service according to the scheduling time.
Several exemplary embodiments of the application are described with reference to
Embodiments described below illustrate a work scheduling method and system implemented via a cloud platform of the present invention.
The client device 110 includes a developing module 112. The developing module 112 is configured to provide a developing interface to a user to create a work schedule, and generate a dynamic linking library (DLL) which corresponds to the work schedule. After generating the dynamic linking library corresponding to the work schedule, the developing module 112 uploads the dynamic linking library to the cloud platform 130 through the internet 120. In another embodiment, the developing module 112 can compress the dynamic linking library into a compressed file, and upload the compressed file to the cloud platform 130 through the internet 120. It is worth noting that when the developing module 112 uploads the compressed file, the developing module 112 further generates an assembly name and a type name corresponding to the dynamic linking library, wherein the cloud platform 130 can use the assembly name and the type name to execute the dynamic linking library.
It is worth noting that when uploading the file, the developing module 112 must specify which application service 142 in the Web server 140 that the work schedule belongs to. Therefore, the cloud platform 130 can ensure that database connection information of the application service is correct.
The cloud platform 130 includes a work identifier generating module 131, a disposing module 132, a scheduling module 133, an executing module 134 and a cloud platform database 135. When the cloud platform 130 receives the dynamic linking library uploaded by the client device 110 through the Internet 120, the work identifier generating module 131 generates a work number identifier which corresponds to the dynamic linking library. The cloud platform 130 stores the dynamic linking library, the assembly name, the type name and the work number identifier into the cloud platform database 135.
Then, the disposing module 132 integrates the dynamic linking library stored in the cloud platform database 135 into an application service sample, and generates an application service by using the work number identifier. In another embodiment, the application service sample is an executable application. The scheduling module 133 allows the user to maintain a time setting of the work schedule. The user can create multiple schedules for different works, different execution times and different requirements. The scheduling module 133 computes a scheduling time of executing works for each time according to the multiple schedules. Finally, the executing module 134 executes the corresponding application services according to the scheduling time.
Specifically, but not limited to such examples, when the user compresses the dynamic linking library into a compressed file and uploads the compressed file to the cloud platform 130, the disposing module 132 of the cloud platform 130 decompresses the compressed file automatically, and copies the dynamic linking library to a document in the application service sample. Then, the disposing module 132 disposes the application service sample in the Web server 140 through the internet to transfer the application service sample to the application service. In the process of disposing the application service sample, the disposing module 132 specifies a specific identity used to execute the application service in advance, wherein the specific identity is only one active directory (AD) identity in a cloud environment. The cloud platform 130 stipulates that the active directory can only access the related resources of the application service. It is worth noting that the work schedule is not an executable file, but an application service in the cloud environment. The disposing module 132 names the application service according to the work number identifier and generates a schedule work service uniform resource locator (URL), wherein the schedule work service URL is the only one specific URL corresponding to the work schedule. When the executing module 134 executes the application service, the Web server 140 may use the schedule work service URL to start the application service in an execution environment.
Then, the application service is performed and operated in the execution environment. Therefore, sandbox security permissions when the application service is operated are not violated. The concept of the sandbox is from a security model called JDK 1.2, and the sandbox security limits resources of the entire system to only the dependable program code that was originally installed by the user. If the program code is not dependable, the program code is executed in the sandbox. In addition, the program code executed in the sandbox only has partial access and full access of the resources of the entire system. In the way, a program code which can destroy the system security will not threaten the system.
In other embodiments, the executing module 134 can use an agent system to operate the work schedule. The agent detects the work schedule stored in the cloud platform database 135 according to a predetermined time, and informs the Web server 140 to open the work schedule service URL to execute the corresponding application service according to the scheduling time computed by the scheduling module. The schedule work service URL is an application service URL generated by the disposing module 132. When the executing module 134 starts the application service, the specific identity specified by the disposing module 132 is used to operate the application service and establish an instance to execute the work schedule according to the assembly name and the type name generated by the developing module 112.
It is worth noting that when the database connection information of the application service exists in the cloud platform database 135, the scheduling module 133 may obtain the database connection information of the application service automatically. The database connection information of the application service is established when the user applies to use a product and database. Therefore, the work scheduling system 100 of the cloud platform is ensured of being connected to the correct dynamic linking library, and will not violate the sandbox security permissions when the work scheduling system 100 of the cloud platform is in operation.
Therefore, program developers can develop and implement the work scheduling service easily by using the work scheduling method and the work scheduling system implemented via the cloud platform according to the invention. The user can establish the connection between the application service and the database in advance to store the database connection information in the cloud platform database. After the user creates the work schedule through the developing interface, the cloud platform transfers the dynamic linking library to the application service through the modules of the work scheduling system and uses the agent system to execute the application service for achieving the work scheduling service.
In addition, the most important advantage of the present invention is that the execution process of the work scheduling service does not violate the sandbox security permissions. After the dynamic linking library is uploaded to the cloud platform, the cloud platform transfers the dynamic linking library to an application service. An active directory may be assigned to the application service, and the cloud platform stipulates that the active directory may only access the related resources of the application service. When some problems arise in the executable file developed by the user, the executable file only affects the individual work schedule and does not affect the operation of other systems.
The work scheduling methods implemented via the cloud platform may take the form of a program code (i.e., executable instructions) embodied in tangible media, such as floppy diskettes, CD-ROMS, hard drives, or any other machine-readable storage medium, wherein, when the program code is loaded into and executed by a machine, such as a computer, the machine thereby becomes an apparatus for practicing the methods. The methods may also be embodied in the form of a program code transmitted over some transmission medium, such as electrical wiring or cabling, through fiber optics, or via any other form of transmission, wherein, when the program code is received and loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the disclosed methods. When implemented on a general-purpose processor, the program code combines with the processor to provide a unique apparatus that operates analogously to application specific logic circuits.
While the invention has been described by way of example and in terms of the preferred embodiments, it is to be understood that the invention is not limited to the disclosed embodiments. On the contrary, it is intended to cover various modifications and similar arrangements (as would be apparent to those skilled in the art). Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.
Number | Date | Country | Kind |
---|---|---|---|
101128718 | Aug 2012 | TW | national |