CN102831494A - Scheduling method, scheduling device and scheduling system - Google Patents

Scheduling method, scheduling device and scheduling system Download PDF

Info

Publication number
CN102831494A
CN102831494A CN2012102564599A CN201210256459A CN102831494A CN 102831494 A CN102831494 A CN 102831494A CN 2012102564599 A CN2012102564599 A CN 2012102564599A CN 201210256459 A CN201210256459 A CN 201210256459A CN 102831494 A CN102831494 A CN 102831494A
Authority
CN
China
Prior art keywords
scheduling
service
task
configuration
component
Prior art date
Application number
CN2012102564599A
Other languages
Chinese (zh)
Inventor
冯驰
Original Assignee
北京星网锐捷网络技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京星网锐捷网络技术有限公司 filed Critical 北京星网锐捷网络技术有限公司
Priority to CN2012102564599A priority Critical patent/CN102831494A/en
Publication of CN102831494A publication Critical patent/CN102831494A/en

Links

Abstract

The invention provides a scheduling method, a scheduling device and a scheduling system. The scheduling method comprises the following steps: obtaining accessed service assemblies; activating task configuration which is stored in advance and which corresponds to the accessed service assemblies; scheduling the accessed service assemblies to execute the operation according to preset scheduling regulations and the activated task configuration, so as to respond to a service request transmitted by a user. According to the scheduling method, the scheduling device and the scheduling system provided by the invention, the purpose of generating adaptive assembly scheduling logic dynamically according to application assemblies configured at present can be realized.

Description

调度方法、设备及系统 Scheduling method, apparatus and system for

技术领域 FIELD

[0001] 本发明涉及调度技术,尤其涉及一种调度方法、设备及系统,属于计算机技术领域。 [0001] The present invention relates to scheduling techniques, in particular, to a scheduling method, device and system belongs to the field of computer technology.

背景技术 Background technique

[0002] 面向服务的体系结构(Service-Oriented Architecture, SOA)是一个组件模型,它将应用程序的不同功能单元(称为服务),通过这些服务之间定义良好的接口和契约联系起来。 [0002] Service oriented architecture (Service-Oriented Architecture, SOA) is a component model, the application of different functional units (called services), well-defined interfaces and contracts between the service by linking. 这使得构建在系统中的各种服务可以采用统一和通用的方式进行交互。 This enables a variety of services built into the system of unified and common approach can be used to interact.

[0003] SOA是一种粗粒度、松耦合服务架构,服务之间通过简单、精确定义接口进行通讯,它可以根据需求通过网络对松散耦合的粗粒度应用组件进行分布式部署、组合和使用。 [0003] SOA is between one kind of coarse-grained, loosely coupled service architecture, service by a simple, precise definition of the communication interface, it can be distributed deployment, and use of combination of loosely coupled coarse-grained application components through the network according to demand. 因此,SOA能够支持组件化部署,以及应用组件的可插拔。 Therefore, SOA can support the deployment of components, as well as pluggable application components.

[0004] 但在现有技术中,SOA采用固化的组件逻辑,因此当系统中改变应用组件的部署时,例如包括增加/插入组件或删除/拔出组件,需人工重新配置SOA的组件逻辑,重新进行代码开发,耗费大量人力和物力资源。 [0004] However, in the prior art, using the component logic SOA cured, so when deploying the application to change the system components, including for example add / delete or insert assembly / removal assembly, the need to manually reconfigure the SOA component logic, re-code development, spend a lot of manpower and material resources.

发明内容 SUMMARY

[0005] 针对现有技术中存在的缺陷,本发明提供一种调度方法、设备及系统,用以实现根据当前配置的应用组件动态生成相适应的组件调度逻辑,使得在改变应用组件的部署时无需人工重新配置及开发。 [0005] the defects in the prior art, the present invention provides a scheduling method, apparatus and system for generating dynamic scheduling logic component adapted to the current configuration of the assembly according to the application, so that when changing the deployment of application components no manual re-configuration and development.

[0006] 根据本发明的一方面,提供一种调度方法,包括: [0006] According to an aspect of the present invention, there is provided a scheduling method, comprising:

[0007] 获取接入的服务组件; [0007] Gets the access service component;

[0008] 激活预先存储的、与所述接入的服务组件对应的任务配置; [0008] The activation of pre-stored, and the access service component corresponding to the configuration task;

[0009] 根据预置的调度规则和所述激活的任务配置,调度所述接入的服务组件执行操作,以响应用户发送的服务请求。 [0009] According to a preset scheduling rules and the activated configuration tasks, scheduling access to the service component to perform actions in response to a service request sent by the user.

[0010] 根据本发明的另一方面,提供一种调度设备,包括: [0010] According to another aspect of the present invention, there is provided a scheduling apparatus, comprising:

[0011] 获取模块,用于获取接入的服务组件; [0011] obtaining module, configured to obtain access to the service components;

[0012] 激活模块,用于激活预先存储的、与所述接入的服务组件对应的任务配置; [0012] activation module configured to activate the pre-stored, and the access service component corresponding to the configuration task;

[0013] 调度模块,根据预置的调度规则和所述激活的任务配置,调度所述接入的服务组件执行操作,以响应用户发送的服务请求。 [0013] The scheduling module, according to a preset scheduling rules and the activated configuration tasks, scheduling access to the service component to perform actions in response to a service request sent by the user.

[0014] 根据本发明的再一方面,提供一种服务系统,包括本发明提供的调度设备,以及接入所述调度设备的至少一个服务组件。 [0014] According to another aspect of the present invention, there is provided a service system, the present invention provides apparatus comprising a scheduler, and at least one service component to access the scheduling device.

[0015] 根据本发明的调度方法、设备及系统,通过获取接入的服务组件,仅将与接入的服务组件对应的任务配置进行激活,当基于用户请求执行调度时,根据预置的调度规则和被激活的任务配置,动态生成适应当前所接入的服务组件的调度规则,并执行调度,因此当增加或减少接入的服务组件时,通过自动改变服务组件对应的任务配置的激活/未激活状态,即可实现组件逻辑的自动更新,无需人工重新配置组件逻辑,重新进行代码开发,节约了大量人力和物力资源。 [0015] The scheduling method according to the present invention, the apparatus and system, by obtaining the access service component, only the corresponding access service component configured to activate the task when the user requests to perform scheduling based on, according to a preset schedule rules and configuration tasks are activated, dynamically generate adaptive scheduling rules currently accessed service components, and performs scheduling, thus increases or decreases when the access service components, the configuration by automatically changing the service component corresponding task activation / inactive status, it can automatically update logic components, without manual reconfiguration of logic components, re-code development, saving a lot of manpower and material resources.

附图说明 BRIEF DESCRIPTION

[0016] 图I为典型的SOA组件化服务系统的系统架构图; [0016] Figure I is a typical service system SOA component system architecture diagram;

[0017] 图2为本发明一个实施例的调度方法的流程示意图; [0017] FIG. 2 a flow scheduling method according to a schematic embodiment of the present invention;

[0018] 图3为一个SOA组件化服务系统的示例的系统架构图; [0018] FIG. 3 is a system architecture diagram of an example of a service system of the SOA component;

[0019] 图4为本发明另一个实施例的调度方法的流程示意图; [0019] FIG. 4 is a schematic of another embodiment of the process of the scheduling method according to the present invention;

[0020] 图5为本发明一个实施例的调度设备的结构示意图; [0020] Fig 5 a schematic structural diagram of the embodiment of a scheduling apparatus according to the present invention;

[0021] 图6为本发明一个实施例的服务系统的系统架构图。 [0021] FIG. 6 a system architecture diagram of the service system according to an embodiment of the present invention.

具体实施方式 Detailed ways

[0022] 图I为典型的SOA组件化服务系统的系统架构图。 [0022] Figure I is a typical components of the SOA service system architecture of the system of FIG. 如图I所示,包括任务调度器 As shown in FIG. I, include a task scheduler

11、与任务调度器11连接的至少一个SOA服务组件(图I中以包括第一SOA服务组件12a和第二SOA服务组件12b作为示例),以及与任务调度器11连接的客户端13,客户端13通过向任务调度器11发送服务请求,使得任务调度器11根据自身配置的任务调度规则,对所连接的第一SOA服务组件12a和第二SOA服务组件12b进行调度,以使第一SOA服务组件12a和第二SOA服务组件12b执行操作,从而为用户提供相应的服务。 11, with the at least one service component SOA (SOA service to include a first component 12a and the second SOA service components of example 12b in FIG. I) connected to the task scheduler 11, and a client task scheduler 11 is connected to terminal 13, the client terminal 13 by sending a service request to the task scheduler 11, such that the task scheduler 11 according to the task scheduling rules configured itself, the first SOA service component 12a is attached and the second SOA service scheduling component 12b, so that the first SOA SOA service component 12a and the second component 12b performs service operations, so as to provide a corresponding service.

[0023] 下面以在图I所示的系统架构中,执行本发明实施例的技术方案为例,进行说明。 [0023] In the following system architecture shown in FIG. I, the implementation of the technical solution of the embodiment of the present invention, an example embodiment will be described.

[0024] 实施例一 [0024] Example a

[0025] 本实施例的调度方法例如由图I中所示的任务调度器11来执行。 [0025] Example embodiment of the present scheduling method, for example, task scheduler I shown in FIG. 11 is performed.

[0026] 图2为本发明一个实施例的调度方法的流程示意图。 [0026] FIG. 2 is a schematic flow chart of a scheduling method according to an embodiment of the present invention. 如图2所示,该调度方法包括: 2, the scheduling method comprising:

[0027] 步骤S201,获取接入的服务组件; [0027] step S201, the acquired access service components;

[0028] 步骤S202,激活预先存储的、与所述接入的服务组件对应的任务配置; [0028] Step S202, the activation of pre-stored, and the access service component corresponding to the configuration task;

[0029] 步骤S203,根据预置的调度规则和所述激活的任务配置,调度所述接入的服务组件执行操作,以响应用户发送的服务请求。 [0029] Step S203, the scheduling rules according to a preset configuration and the activated task scheduling the access service component to perform actions in response to a service request sent by the user.

[0030] 具体地,任务调度器中预先配置有与服务组件提供的服务对应的任务配置,以及用于根据任务配置执行任务调度的任务调度规则。 [0030] In particular, the task scheduler is arranged in advance with the corresponding service component service configured to provide task, and a task scheduling rules according to the configuration tasks scheduled tasks. 在系统启动时,任务调度器获取所接入的全部服务组件,或者在启动状态下,获取新接入的服务组件(即热部署的服务组件),并根据所获取的接入的服务组件,对存储的相应的任务配置进行激活。 At system startup, the task scheduler acquires access to all service components, or in the activated state, to obtain a new access service component (i.e., thermal deployment service component), and based on the acquired access service components, the corresponding tasks for configuration for activation.

[0031] 当任务调度器接收到用户通过客户端发送的服务请求时,响应服务请求,启动任务调度。 [0031] The task scheduler when receiving a service request sent by the user through the client, in response to a service request, task scheduling starts. 在执行任务调度时,任务调度器根据预置的任务调度规则和激活状态的任务配置动态生成调度策略。 When performing task scheduling, the task scheduler dynamically generates scheduling policy according to a preset configuration task scheduling rules and active state. 具体地,对于激活状态的任务配置,根据任务调度规则中的调度时序和条件执行调度,对于任务调度规则中所涉及的未激活的任务配置,则跳过相应调度过程,并根据任务调度规则中的下一调度执行条件,来执行下一调度,或者结束流程。 Specifically, the active state for the configuration task, task scheduling according to the scheduling rules and conditional execution timing scheduling tasks for the unactivated configuration task scheduling rules involved, the corresponding scheduling process is skipped, and the scheduling rules according to the next scheduled execution condition to execute the next schedule, or the process ends.

[0032] 更为具体地,例如:任务调度器中预先配置有服务组件A、服务组件B和服务组件C的任务配置,并且预先配置有用于对服务组件A、服务组件B和服务组件C进行调度的完整任务调度规则,例如为调度服务组件A,若服务组件A的执行结果为认证成功,则调度服务组件B并调度服务组件C,若服务组件A的执行结果为失败,则直接结束调度,并返回服务组件A的执行结果。 [0032] More particularly, for example: the task scheduler preconfigured service components A, B, and service component service component configuration task C, and pre-configured with the service components A, B service components and service components for C complete task scheduling regular schedule, such as scheduling service component a, if the execution result of the service component a is successfully authenticated, the scheduler service component B and dispatch service component C, if the results of the service component a is a failure, then ended as scheduled and returns the results of the implementation of service components a.

[0033] 系统启动时,任务调度器检测获知当前仅接入有服务组件A,则对与服务组件A对应的任务配置进行激活,并将服务组件B和服务组件C对应的任务配置保持为未激活。 [0033] When the system starts, the task scheduler has access only to know the current detection service component A, the component A configuration corresponding to the service activation task, and configure service components B and C corresponding to the task service components remain unused activation.

[0034] 当任务调度器接收到用户通过客户端发送的服务请求时,任务调度器根据任务调度规则首先检查服务组件A的状态是否为激活,检查获知服务组件A的状态为激活,则任务调度器根据服务组件A对应的任务配置调度服务组件A执行操作,例如为对用户进行认证。 [0034] When the task scheduler receives a service request sent by the user through the client, the task scheduler first checks the service module A according to the scheduling rule status is activated, check the known state of the service module A is active, the task scheduler a scheduling service component configured to perform operations according to the service corresponding to the task component a, for example, to authenticate the user. 服务组件A完成认证后回调任务调度器,任务调度器根据服务组件A的执行结果,结合任务调度规则确定后续调度流程。 A service component after completion of the callback authentication task scheduler, the task scheduler execution result of the service components A, task scheduling rules determining a subsequent binding process scheduling. 以服务组件A的执行结果为认证成功为例,则任务调度器检测服务组件B和服务组件C的状态是否为激活,由于两者均未激活,则任务调度器结束调度流程,并将认证成功的结果返回给客户端。 A result of the service component to perform the authentication is successful, for example, the state detection task scheduler service component B and component C is whether service is active, since both are not activated, the task scheduler scheduling the end of the process, and the authentication is successful the results are returned to the client.

[0035] 根据本实施例的调度方法,通过获取接入的服务组件,仅将与接入的服务组件对应的任务配置进行激活,当基于用户请求执行调度时,根据预置的调度规则和被激活的任务配置,动态生成适应当前所接入的服务组件的调度规则,并执行调度,因此当增加或减少接入的服务组件时,通过自动改变服务组件对应的任务配置的激活/未激活状态,即可实现组件逻辑的自动更新,无需人工重新配置组件逻辑,重新进行代码开发,节约了大量人力和物力资源。 [0035] The scheduling method according to the present embodiment, by obtaining the access service component, only a component corresponding to the access service tasks activated configuration, when the scheduling is performed based on a user request, in accordance with scheduling rules are preset and activated configuration tasks, adaptive scheduling rules dynamically generated currently accessed service components, and performs scheduling, thus increases or decreases when the access service components, the service components by automatically changing the configuration of the task corresponding to active / inactive state , it can automatically update logic components, without manual reconfiguration of logic components, re-code development, saving a lot of manpower and material resources.

[0036] 实施例二 [0036] Second Embodiment

[0037] 图3为一个SOA组件化服务系统的示例的系统架构图。 [0037] FIG. 3 is a system architecture diagram of an example of a service system of the SOA component. 在本实施例中,结合图3所示的一个具体SOA组件化服务系统,对本发明实施例的调度方法进行进一步说明。 In the present embodiment, in conjunction with a particular SOA component FIG service system shown in FIG. 3, the scheduling method according to the embodiment of the present invention will be further described.

[0038] 如图3所示,在第一阶段,在系统中部署用于提供认证服务的用户认证组件,并在第二阶段部署用于提供计算机保护服务的计算机保护组件。 [0038] As shown in FIG 3, in a first phase, the system components deployed for user authentication to provide authentication services, and deployment of computers protection component for providing computer services in the second stage of protection. 由于在第一阶段便部署有用户认证组件,因此例如将用户认证组件与任务调度器部署在同一台服务器中,(图3中以此情形为示例),由于计算机保护组件是在第二阶段部署的,因此例如其独立部署在一个功能服务器中,并通过内联网与任务调度器连接。 Since then deployed in the first phase the user authentication components, so for example the user authentication task scheduler assembly deployed in the same server, (in this case as an example in FIG. 3), since the computer protection assembly is deployed in the second stage therefore, for example, independently deployed in a server function and connected via the intranet with the task scheduler.

[0039] 客户端作为任务调用者,负责触发任务调用,并且SOA组件化服务系统中,任务调度器执行的调度策略对任务调用者是透明(不可知)的。 [0039] As a client task caller, responsible for triggering the task calls, and SOA component services systems, scheduling task scheduler to perform the task caller is transparent (unknown) in. 客户端例如安装在工作站,通过客户端发起认证请求时,任务调度器会调用用户认证组件提供服务。 The client is installed on a workstation, for example, when an authentication request initiated by the client, task scheduler will call the user authentication components provide services.

[0040] 图4为本发明另一个实施例的调度方法的流程示意图。 [0040] FIG. 4 schematic flowchart of a scheduling method according to another embodiment of the present invention. 如图4所示,在图3所示的SOA组件化服务系统中,实现本发明实施例的调度方法时,包括以下流程: 4, the SOA service system components shown in FIG. 3, when implemented scheduling method according to an embodiment of the present invention, comprises the following processes:

[0041] 步骤S401,开发组件任务,并在任务调度器中进行任务配置; [0041] step S401, the development component tasks, and tasks in the task scheduler configuration;

[0042] 具体地,针对服务组件提供的服务开发组件任务,服务组件任务执行结束后回调任务服务器。 [0042] In particular, services development component tasks for the service component provides, after the implementation of the callback service component task server tasks. 以用户认证组件为例,假设使用JAVA语言开发,实现代码例如为: A user authentication component, for example, it is assumed that JAVA language development, implementation code, for example:

[0043]Public class Authentication [0043] Public class Authentication

{ {

Public String login (String username. String password) Public String login (String username. String password)

{ {

//进行用户认证服务//do something // user authentication service // do something

jobContro! (“authentication”,“SUCCEED”); //认证结束后向任务 ! JobContro ( "authentication", "SUCCEED"); // After the certification to the task

调度器架设本次任务结果} Private StringjobControl (String idMyself, String code) The task scheduler Erection Results} Private StringjobControl (String idMyself, String code)

{ {

//回调任务调度器 // callback task scheduler

//do something (idMyself, code) // do something (idMyself, code)

return “SUCCEED”; return "SUCCEED";

} }

} }

[0044] “login”提供了对外暴露认证服务,并且在任务执行结束后会回调任务调度器。 [0044] "login" provides certification services of external exposure, and at the end of the task execution will be a callback task scheduler.

[0045] 在任务调度器中,针对服务组件的组件任务进行任务配置。 [0045] In the task scheduler, the task task service configured for component assembly. 具体地,例如配置服务的以下内容:服务唯一索引、调用地址、端口和/或调用方法等信息。 Specifically, for example, to configure the following services: service unique index, call the information address, port and / or invoke methods. 其中,一个服务组件可以提供一个或多个服务,并且各个服务均具有一个服务唯一索引,本发明中不做限制。 Wherein, a component service may provide one or more services and each service has a unique service index, the present invention is not limited. 任务调度器初始化时将任务配置载入内存,但并不对其进行激活。 When initializing the task scheduler task configuration loaded into memory, but does not activate them.

[0046] 以用户认证为例,上述任务配置例如采用XML方式配置,具体格式例如为: [0046] In user authentication, for example, the above-described configuration, for example, an XML task disposed, for example, the specific format:

[0047] [0047]

<job id =” authentication^'^ <Job id = "authentication ^ '^

<wsdiUr]>http://127.0.0.0/smp/user?wsdi</ wsdlUri> <prot>2000</prot> <WsdiUr]> http://127.0.0.0/smp/user?wsdi </ wsdlUri> <prot> 2000 </ prot>

</job> </ Job>

[0048] 步骤S402,在任务调度器中配置任务调度规则,定位两个策略:A、配置认证成功后执行计算保护检测;B、如果认证失败任务结束; [0048] step S402, the task scheduler disposed in the task scheduling rules, positioning of the two policies: protection detection calculation performed after A, configure authentication is successful; B, Task End if authentication fails;

[0049] 具体地,还需在任务调度器中预先配置任务调度规则(即调度规则),该任务调度规则包括对上述任务配置的调度次序和/或调度条件。 [0049] In particular, the need to pre-configured task scheduler task scheduling rules (i.e. scheduling rules), the task scheduler comprises a scheduling order of the above-described rule configuration task and / or scheduling conditions. 更为具体地,例如包括:根据任务执行结果指定下个任务,其可以指定具体的任务索引(例如为服务唯一索引),或是根据任务配置时为不同服务分配的任务优先级来执行;根据任务执行结果进行任务流控制,根据执行结果码进行任务中止、成功、失败等控制。 More specifically, for example, comprising: specify the next task according to the execution result of the task, which may specify a specific task index (e.g. as a service unique index), or assigned to different services according to the configuration task when the task execution priority; The task execution results of the task flow control, task suspended, success, failure, and other control based on the results of code execution.

[0050] 同样地,在任务调度器初始化时,任务调度规则也会被载入到内存。 [0050] Similarly, when the initialization task scheduling, task scheduling rule will also be loaded into memory. 上述任务调度规则例如采用XML方式配置,具体格式例如为: Task scheduling rules above example, using XML arranged, for example, the specific format:

[0051] [0051]

<jobGroup> <JobGroup>

<job id-1 authentication”〉 <Job id-1 authentication ">

<next On=XOMPLETED" to="job2M /> <Next On = XOMPLETED "to =" job2M />

<fail on="UNKNOWN" exit-code="EARLY TERMINATION" /> <end on=”*” exit-code="TERMlNATION" /> <Fail on = "UNKNOWN" exit-code = "EARLY TERMINATION" /> <end on = "*" exit-code = "TERMlNATION" />

</job > </ Job>

<job id=” job2”> <Job id = "job2">

<end on="*" exit-cocie="SUCCEED" /> <End on = "*" exit-cocie = "SUCCEED" />

</ job > </ Job>

[0052] [0052]

</ jobGroup > </ JobGroup>

[0053] 步骤S403,进行第一阶段部署,即:部署用户认证组件,但不部署计算机保护组件; [0053] step S403, the first stage deployment, namely: a user authentication component deployed, but not to deploy a computer protection assembly;

[0054] 步骤S404,启动系统,系统进行初始化操作,包括:调度服务器执行初始化操作,将任务配置和任务调度规则载入内存;并且,用户认证组件执行初始化操作,向任务调度器注册监听认证服务,任务调度器根据用户认证组件的注册将任务配置中定义的认证服务激活; [0054] step S404, the system startup, system initialization, comprising: the scheduling server performs initialization, configuration tasks and task scheduling rules loaded into memory; and, the user authentication unit performs an initialization operation, the task scheduler listener registration authentication service , the task scheduler registered user authentication according to the authentication service components defined in the configuration task activation;

[0055] 具体地,任务调度器例如使用一个字段来标识任务配置的状态,例如,该字段采用“0”指示未激活状态,采用“I”指示激活状态。 [0055] Specifically, for example, use a task scheduler to identify the status of the task field configuration, for example, the field is a "0" indicates an inactive state, the use of "I" indicates an active state. 当任务调度器对相应的任务配置进行激活时,只需将该字段的数值由“0”修改为“I”即可。 When the task scheduler task corresponding activation configuration, only the value of the field to a "0" was changed to "I" can. 而且,用户认证组件例如通过向任务调度器发送一个注册信息,来实现向任务调度器注册监听认证服务,该注册信息携带有用户认证服务的服务唯一索引,使得任务调度器根据该服务唯一索引,确定出内存中与其对应的任务配置。 Moreover, the user authentication component, for example, by sending a task scheduler a registration information, to achieve registration listener authentication service task scheduler, the registration message carries a user authentication service unique index and services, such that the task scheduler unique index based on the service, determining the configuration memory task corresponding thereto.

[0056] 此外,虽然在上述步骤404中,以用户认证组件主动向任务调度器进行注册为例进行说明,但在实际应用中,也可以由任务调度器在初始化后,根据预设扫描规则(例如为预设扫描间隔),扫描接入的服务组件,获取接入的服务组件的标识,从而对相应的任务配置进行激活。 [0056] Further, although in the above step 404, the user authentication component to register with the active task scheduler as an example, but in practical applications, it may be formed after initialization task scheduler, the scan according to a preset rule ( for example, default scanning interval), scanning the access service component, the service component identifier obtaining access to the corresponding activation configuration task.

[0057] 步骤S405,客户端发起一个认证,任务调度器触发用户认证组件的认证服务•'认证服务执行结束后回调任务调度器接口,任务调度器接收到回调后检索任务调度规则,发现没有继续执行的任务,并返回结果,认证结束; [0057] step S405, the client initiates a certification task scheduler to trigger user authentication component certification services • 'After the authentication service performs a callback task scheduler interfaces, task scheduler after receiving a callback retrieval task scheduling rules, found not continue perform tasks, and returns the result, the end of the certification;

[0058] 具体地,任务调度器根据预置的调度规则和所述激活的任务配置,调度接入的服务组件执行操作,包括:根据所述预置的调度规则,确定本次调度的服务组件;检测所述本次调度的服务组件对应的任务配置是否激活;若检测所述本次调度的服务组件对应的任务配置激活,则根据所述本次调度的服务组件对应的任务配置,调度所述本次调度的服务组件执行操作,并接收所述本次调度的服务组件返回的执行结果;根据所述预置的调度规则和所述执行结果,判断是否存在待调度的服务组件,若存在,将所述本次调度的服务组件更新为所述待调度的服务组件,并返回执行检测本次调度的服务组件对应的任务配置是否激活,以及当激活时进行调度的操作;若不存在,则将所述执行结果返回给所述用户。 [0058] In particular, according to the scheduling task scheduler preset rules and the activated configuration tasks, scheduling access to the service component to perform actions, comprising: scheduling rules according to the preset, fixed the scheduled service component ; detecting the current component corresponding to the scheduled service task configuration is activated; detecting if the task is configured to activate the current component corresponding to the scheduled service, then according to the present scheduling service components corresponding to the configuration task, the scheduling the above components perform operations scheduled service, and receives the execution results of this returned component scheduled service; scheduling according to the preset rules and the execution result, determines whether there is to be scheduled service component, if present , the present scheduling update service components of the service component to be scheduled, and return to the task of detecting the present scheduling service component corresponding activation configuration is performed, and the scheduling operation when activated; if not, then the execution result is returned to the user.

[0059] 由于在第一阶段部署中,未部署计算机保护组件,则任务调度器结合任务调度规则及计算机保护组件对应的任务配置的状态,确定没有继续执行的任务,向客户端返回用户认证组件的认证结果,并结束流程。 [0059] Since in the first stage deployment, the computer protection component is not deployed, the task status of the task scheduler binding configuration task scheduling rules and corresponding computer protection assembly, determining the task is not to continue, returned to the client user authentication component authentication result, and ends the process.

[0060] 步骤S406,在第二阶段部署计算机保护组件,组件启动后向任务调度器注册监听,任务调度服务器的任务配置中的计算机保护服务被激活; [0060] step S406, in the second stage deployment computer protection assembly, the assembly starts to register listener task scheduler, a computer protection service task scheduling server configuration task is activated;

[0061] 步骤S407,客户端再发起一个认证,触发用户认证组件的认证服务。 [0061] step S407, the client initiates a re-authentication trigger authentication service user authentication components. 认证服务执行结束后回调任务调度器接口,任务调度器接收到回调后检索任务调度规则,发现在认证成功后需执行计算机保护检测(由于计算机保护服务被激活,且任务调度规则中定义了认证成功后执行计算机保护),任务调度器触发计算机保护检测。 Authentication service execution After completion callback task scheduler interface task scheduler receives callback retrieval task scheduling rule, find the need to execute computer protection detection after the authentication is successful (because the computer protection service is activated, and the task scheduling rules defined in the authentication success after performing computer protection), computer protection task scheduler trigger detection.

[0062] 根据上述实施例的调度方法,实现了在不同阶段、不同时期进行组件部署时,无需进行组件逻辑重新配置以及重新代码开发等工作,节约了大量人力和物力资源。 [0062] scheduling method according to the above embodiment, when implemented at different stages in different periods components are deployed, without the need for re-configuration and re-assembly logic code development work, saving a lot of human and material resources.

[0063] 实施例三 [0063] Example three

[0064] 图5为本发明一个实施例的调度设备的结构示意图。 [0064] Fig 5 a schematic structural diagram of the embodiment of a scheduling apparatus according to the present invention. 如图5所示,该调度设备包括: 5, the scheduling apparatus comprising:

[0065] 获取模块51,用于获取接入的服务组件; [0065] The acquisition module 51 for acquiring access to service components;

[0066] 激活模块52,用于激活预先存储的、与所述接入的服务组件对应的任务配置; [0066] The activation module 52 for activating a pre-stored, and the access service component corresponding to the configuration task;

[0067] 调度模块53,根据预置的调度规则和所述激活的任务配置,调度所述接入的服务组件执行操作,以响应用户发送的服务请求。 [0067] The scheduling module 53, according to a preset scheduling rules and the activated configuration tasks, scheduling access to the service component to perform actions in response to a service request sent by the user.

[0068] 本实施例的调度设备例如为任务调度器,其执行任务调度的流程与上述实施例的调度方法相同,故此处不再赘述。 [0068] The scheduling apparatus of the present embodiment, for example, a task scheduler, which performs task scheduling and the scheduling process is the same as the method embodiment described above, and therefore will not be repeated here.

[0069] 根据本实施例的调度设备,通过获取接入的服务组件,仅将与接入的服务组件对应的任务配置进行激活,当基于用户请求执行调度时,根据预置的调度规则和被激活的任务配置,动态生成适应当前所接入的服务组件的调度规则,并执行调度,因此当增加或减少接入的服务组件时,通过自动改变服务组件对应的的任务配置的激活/未激活状态,即可实现组件逻辑的自动更新,无需人工重新配置组件逻辑,重新进行代码开发,节约了大量人力和物力资源。 [0069] The scheduling apparatus according to the present embodiment, by obtaining the access service component, only a component corresponding to the access service tasks activated configuration, when the scheduling is performed based on a user request, in accordance with scheduling rules are preset and activated configuration tasks, adaptive scheduling rules dynamically generated currently accessed service components, and performs scheduling, thus increases or decreases when the access service components, the service components by automatically changing the configuration of the corresponding task active / inactive state, it can automatically update logic components, without manual reconfiguration of logic components, re-code development, saving a lot of manpower and material resources.

[0070] 进一步地,在上述实施例的调度设备中,所述获取模块具体用于:接收所述接入的服务组件发送的注册信息,所述注册信息携带有所述服务组件的标识;或者,扫描所述接入的服务组件,获取所述接入的服务组件的标识。 [0070] Further, in the scheduling apparatus of the above embodiment, the obtaining module is configured to: receive the registration information sent by the access service components, the service registration information carries the identifier of the component; or scanning the access service component acquires a service identifier of the access assembly.

[0071] 进一步地,在上述实施例的调度设备中,所述激活模块具体用于:从预先存储的至少两个任务配置中,对包括所述接入的服务组件的标识的任务配置进行激活。 [0071] Further, in the scheduling apparatus of the above embodiment, the activation module is configured to: from at least two previously stored configuration tasks, including identifying the access service component configuration task activation .

[0072] 进一步地,在上述实施例的调度设备中,所述调度模块具体用于:根据所述预置的调度规则,确定本次调度的服务组件; [0072] Further, in the scheduling apparatus of the above embodiment, the scheduling module is configured to: according to the preset schedule rules that determine the current scheduled service component;

[0073] 检测所述本次调度的服务组件对应的任务配置是否激活; [0073] The detection of the component corresponding to the scheduled service task configuration is activated;

[0074] 若检测所述本次调度的服务组件对应的任务配置激活,则根据所述本次调度的服务组件对应的任务配置,调度所述本次调度的服务组件执行操作,并接收所述本次调度的服务组件返回的执行结果; [0074] If the current detection of the scheduled service activation component corresponding to the configuration task, the task according to the present scheduling configuration corresponding service component, the current scheduling the scheduled service component to perform actions, and receiving the the scheduled service component returns an execution result;

[0075] 根据所述预置的调度规则和所述执行结果,判断是否存在待调度的服务组件,若存在,将所述本次调度的服务组件更新为所述待调度的服务组件,并返回执行检测本次调度的服务组件对应的任务配置是否激活,以及当激活时进行调度的操作;若不存在,则将所述执行结果返回给所述用户。 [0075] According to the preset scheduling rules and said execution result, determines whether there is to be scheduled service component, if present, the present scheduling update service components of the service component to be scheduled, and returns the detection is performed corresponding to the scheduled service task configuration component is activated, and the scheduling operation when activated; if not, then the execution result is returned to the user. [0076] 进一步地,在上述实施例的调度设备中,还包括预置模块,用于获取并存储调度规则以及至少两个任务配置,所述调度规则包括所述至少两个任务配置的调度次序和/或调度条件;将所述至少两个任务配置的状态设置为未激活。 [0076] Further, in the scheduling apparatus of the above embodiment, the module further comprises a preset, for obtaining and storing at least two scheduling rules and configuration tasks, the scheduling order of the rule includes scheduling the at least two tasks of the Configuration and / or dispatch condition; the at least two task configuration status is set to inactive.

[0077] 实施例四 [0077] Fourth Embodiment

[0078] 图6为本发明一个实施例的服务系统的系统架构图。 [0078] FIG. 6 a system architecture diagram of the service system according to an embodiment of the present invention. 如图6所示,包括上述实施例的调度设备61,以及接入所述调度设备61的至少一个服务组件62 (图6中仅以2个为示例)。 At least one service component 62 shown in FIG. 6, apparatus 61 includes a scheduler, and an access schedule of the above-described embodiments of the apparatus 61 (in FIG. 6 as an example only two).

[0079] 本实施例的服务系统中,执行任务调度的流程与上述实施例的调度方法相同,故此处不再赘述。 Service System [0079] In the present embodiment, the process of scheduling tasks and a scheduling method same as the above embodiment, and therefore will not be repeated here.

[0080] 根据本实施例的服务系统,通过由调度设备获取接入的服务组件,仅将与接入的服务组件对应的任务配置进行激活,当基于用户请求执行调度时,根据预置的调度规则和被激活的任务配置,动态生成适应当前所接入的服务组件的调度规则,并执行调度,因此当增加或减少接入的服务组件时,通过自动改变服务组件对应的的任务配置的激活/未激活状态,即可实现组件逻辑的自动更新,无需人工重新配置组件逻辑,重新进行代码开发,节约了大量人力和物力资源。 [0080] The service system according to the present embodiment, the scheduling apparatus by obtaining access service component, only the configuration of the access service components corresponding to the task is activated, when the user requests to perform scheduling based on, according to a preset schedule rules and configuration tasks are activated, dynamically generate adaptive scheduling rules currently accessed service components, and performs scheduling, thus increases or decreases when the access service components, the service components by automatically changing the configuration of the task corresponding to the activation / inactive status, it can automatically update logic components, without manual reconfiguration of logic components, re-code development, saving a lot of manpower and material resources.

[0081] 最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 [0081] Finally, it should be noted that: the above embodiments are intended to illustrate the present invention, rather than limiting;. Although the present invention has been described in detail embodiments, those of ordinary skill in the art should be understood: may still be made to the technical solutions described in each embodiment of the modified or part of the technical features equivalents; as such modifications or replacements do not cause the essence of corresponding technical solutions to depart from the technical solutions of the embodiments of the present invention and scope.

Claims (11)

1. 一种调度方法,其特征在于,包括: 获取接入的服务组件; 激活预先存储的、与所述接入的服务组件对应的任务配置; 根据预置的调度规则和所述激活的任务配置,调度所述接入的服务组件执行操作,以响应用户发送的服务请求。 A scheduling method, comprising: obtaining an access service component; activating pre-stored, with the access service component corresponding to the configuration tasks; according to a preset scheduling rules and the activated task configuration, scheduling the access service component to perform actions in response to a service request sent by the user.
2.根据权利要求I所述的调度方法,其特征在于,所述获取接入的服务组件,包括: 接收所述接入的服务组件发送的注册信息,所述注册信息携带有所述服务组件的标识;或者根据预设扫描规则,扫描所述接入的服务组件,获取所述接入的服务组件的标识。 2. The scheduling method as claimed in claim I, wherein said obtaining access service components, comprising: receiving registration information of the access services component sends the registration information of the service component carries identification; or scanning according to a preset rule, the access service component scan, acquiring identifying the access service component.
3.根据权利要求2所述的调度方法,其特征在于,所述激活预先存储的、与所述接入的服务组件对应的任务配置,包括: 从预先存储的至少两个任务配置中,对包括所述接入的服务组件的标识的任务配置进行激活。 3. The scheduling method according to claim 2, characterized in that the activation of pre-stored, with the access service component corresponding to the configuration tasks, comprising: task configuration from at least two pre-stored, for comprising identifying the access service component configuration task activation.
4.根据权利要求1-3任一所述的调度方法,其特征在于,所述根据预置的调度规则和所述激活的任务配置,调度所述接入的服务组件执行操作,包括: 根据所述预置的调度规则,确定本次调度的服务组件; 检测所述本次调度的服务组件对应的任务配置是否激活; 若检测所述本次调度的服务组件对应的任务配置激活,则根据所述本次调度的服务组件对应的任务配置,调度所述本次调度的服务组件执行操作,并接收所述本次调度的服务组件返回的执行结果; 根据所述预置的调度规则和所述执行结果,判断是否存在待调度的服务组件,若存在,将所述本次调度的服务组件更新为所述待调度的服务组件,并返回执行检测本次调度的服务组件对应的任务配置是否激活,以及当激活时进行调度的操作;若不存在,则将所述执行结果返回给所述用户。 4. The scheduling method according to any one of claims 1-3, wherein said schedule according to preset rules and the activated configuration tasks, scheduling access to the service component to perform actions, comprising: the the preset scheduling rules that determine the current scheduled service component; detecting the current component corresponding to the scheduled service task is active configuration; if the current detecting the scheduled service activation component corresponding to the configuration task, according to the the scheduling of the service components corresponding to the configuration task, the scheduling for this component to perform actions scheduled service, and receives the execution results of this returned component scheduled service; scheduling according to the preset rules and the said execution result, determines whether there is to be scheduled service component, if present, the present scheduling update service components of the service component to be scheduled, and return to the task of detecting the present scheduling service component corresponding to the configuration is performed activation, scheduling and operation when activated; if not, then the execution result is returned to the user.
5.根据权利要求1-3任一所述的调度方法,其特征在于,所述获取接入的服务组件,之前还包括: 获取并存储调度规则以及至少两个任务配置,所述调度规则包括所述至少两个任务配置的调度次序和/或调度条件; 将所述至少两个任务配置的状态设置为未激活。 The scheduling method according to any one of claims 1-3, wherein said obtaining access service components before further comprising: obtaining and storing at least two scheduling rules and configuration tasks, the scheduling rules comprise said at least two configuration task scheduling order and / or dispatch condition; the at least two task state is set to inactive configuration.
6. 一种调度设备,其特征在于,包括: 获取模块,用于获取接入的服务组件; 激活模块,用于激活预先存储的、与所述接入的服务组件对应的任务配置; 调度模块,根据预置的调度规则和所述激活的任务配置,调度所述接入的服务组件执行操作,以响应用户发送的服务请求。 A scheduling apparatus, characterized by comprising: obtaining means for obtaining access to the service component; activation module configured to activate the pre-stored, with the access service components corresponding task configuration; scheduling module the preset scheduling rules and the activated configuration tasks, scheduling access to the service component to perform actions in response to a service request sent by the user.
7.根据权利要求6所述的调度设备,其特征在于,所述获取模块具体用于:接收所述接入的服务组件发送的注册信息,所述注册信息携带有所述服务组件的标识;或者,扫描所述接入的服务组件,获取所述接入的服务组件的标识。 7. The scheduling apparatus according to claim 6, wherein the obtaining module is configured to: receive the access service component sends registration information, the registration of the service information carries identification component; Alternatively, scanning the access service component, obtaining identifying the access service component.
8.根据权利要求7所述的调度设备,其特征在于,所述激活模块具体用于:从预先存储的至少两个任务配置中,对包括所述接入的服务组件的标识的任务配置进行激活。 8. The scheduling apparatus according to claim 7, wherein the activation module is configured: for the configuration includes a task identifier of the access service component from the at least two previously stored in the task configuration activation.
9.根据权利要求6-8任一所述的调度设备,其特征在于,所述调度模块具体用于:根据所述预置的调度规则,确定本次调度的服务组件; 检测所述本次调度的服务组件对应的任务配置是否激活; 若检测所述本次调度的服务组件对应的任务配置激活,则根据所述本次调度的服务组件对应的任务配置,调度所述本次调度的服务组件执行操作,并接收所述本次调度的服务组件返回的执行结果; 根据所述预置的调度规则和所述执行结果,判断是否存在待调度的服务组件,若存在,将所述本次调度的服务组件更新为所述待调度的服务组件,并返回执行检测本次调度的服务组件对应的任务配置是否激活,以及当激活时进行调度的操作;若不存在,则将所述执行结果返回给所述用户。 According to any of claims 6-8 according to a scheduling apparatus, wherein the scheduling module is configured to: according to the preset schedule rules that determine the current scheduled service component; detecting this scheduled task configuration corresponding service component is activated; detecting if the task is configured to activate the current component corresponding to the scheduled service, then according to the present scheduling service components corresponding to the configuration task, the scheduling of this scheduled service component to perform actions, and receiving the service components present scheduling the execution result returned; rules according to the preset schedule and the execution result, determines whether there is to be scheduled service component, if present, to the present time scheduled update service component of the service component to be scheduled, and returns the current detector configuration tasks scheduled service activation whether the corresponding components, as well as scheduling operation when activated; if not, then the execution result returned to the user.
10.根据权利要求6-8任一所述的调度设备,其特征在于,还包括预置模块,用于获取并存储调度规则以及至少两个任务配置,所述调度规则包括所述至少两个任务配置的调度次序和/或调度条件;将所述至少两个任务配置的状态设置为未激活。 10. The scheduling apparatus as claimed in claim any one of claim 6-8, characterized by further comprising preset means for acquiring and storing at least two scheduling rules and configuration tasks, the scheduling rules comprise at least two configuration task scheduling order and / or dispatch condition; the at least two task configuration status is set to inactive.
11. 一种服务系统,其特征在于,包括权利要求6-10任一所述的调度设备,以及接入所述调度设备的至少一个服务组件。 A service system comprising a scheduling apparatus according to any of claim 6-10, and the access schedule of claim comprising at least one service component of the device.
CN2012102564599A 2012-07-23 2012-07-23 Scheduling method, scheduling device and scheduling system CN102831494A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012102564599A CN102831494A (en) 2012-07-23 2012-07-23 Scheduling method, scheduling device and scheduling system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012102564599A CN102831494A (en) 2012-07-23 2012-07-23 Scheduling method, scheduling device and scheduling system

Publications (1)

Publication Number Publication Date
CN102831494A true CN102831494A (en) 2012-12-19

Family

ID=47334614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012102564599A CN102831494A (en) 2012-07-23 2012-07-23 Scheduling method, scheduling device and scheduling system

Country Status (1)

Country Link
CN (1) CN102831494A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063279A (en) * 2013-03-20 2014-09-24 腾讯科技(深圳)有限公司 Task scheduling method and device and terminal
CN106898572A (en) * 2015-12-17 2017-06-27 北京北方微电子基地设备工艺研究中心有限责任公司 Material dispatch method and system based on equipment real-time status

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101464810A (en) * 2008-12-31 2009-06-24 金蝶软件(中国)有限公司 Service program processing method and server
US20100050183A1 (en) * 2008-08-25 2010-02-25 Fujitsu Limited Workflow developing apparatus, workflow developing method, and computer product

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100050183A1 (en) * 2008-08-25 2010-02-25 Fujitsu Limited Workflow developing apparatus, workflow developing method, and computer product
CN101464810A (en) * 2008-12-31 2009-06-24 金蝶软件(中国)有限公司 Service program processing method and server

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063279A (en) * 2013-03-20 2014-09-24 腾讯科技(深圳)有限公司 Task scheduling method and device and terminal
CN104063279B (en) * 2013-03-20 2018-12-28 腾讯科技(深圳)有限公司 Method for scheduling task, device and terminal
CN106898572A (en) * 2015-12-17 2017-06-27 北京北方微电子基地设备工艺研究中心有限责任公司 Material dispatch method and system based on equipment real-time status
CN106898572B (en) * 2015-12-17 2019-07-05 北京北方华创微电子装备有限公司 Material dispatch method and system based on equipment real-time status

Similar Documents

Publication Publication Date Title
CN1894667B (en) System and method for allocating server resources
US9323556B2 (en) Programmatic event detection and message generation for requests to execute program code
US8935429B2 (en) Automatically determining which remote applications a user or group is entitled to access based on entitlement specifications and providing remote application access to the remote applications
US10338969B2 (en) Managing a virtualized application workspace on a managed computing device
JP4313030B2 (en) Configuration and management system for mobile and embedded devices
US10162688B2 (en) Processing event messages for user requests to execute program code
JP6181185B2 (en) LDAP-based multi-customer in-cloud identity management system
US20020002607A1 (en) System and method for configuring and administering multiple instances of web servers
US8346897B2 (en) System and method for deploying and maintaining software applications
US20020052935A1 (en) System and method for an administration server
EP2381363A2 (en) Cloud platform architecture
US20090049166A1 (en) Defining and Implementing Policies on Managed Object-Enabled Mobile Devices
CN101299754B (en) End user control configuration system with dynamic user interface
JP5629018B2 (en) Virtual machine morphing for heterogeneous mobile environments
JP6124898B2 (en) System and method for managing server configurations including GUI navigation, property sheets, and autotab completion
US20090049518A1 (en) Managing and Enforcing Policies on Mobile Devices
US20070118654A1 (en) Method and apparatus for provisioning heterogeneous operating systems onto heterogeneous hardware systems
US9071522B2 (en) Policy engine for cloud platform
US20050180403A1 (en) Automation of IP phone provisioning with self-service voice application
EP2068242A1 (en) Software deployment method and system, software deployment server and user server
US20080140857A1 (en) Service-oriented architecture and methods for direct invocation of services utilizing a service requestor invocation framework
JP3578254B2 (en) How to perform system administration tasks
US9571332B2 (en) Methods and apparatuses for remote application provisioning automation over virtualized IT infrastructure
US9244816B2 (en) Application testing using sandboxes
US8434080B2 (en) Distributed cloud application deployment systems and/or associated methods

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)