CN100547967C - Mesh operation supervisor and grid job management method - Google Patents

Mesh operation supervisor and grid job management method Download PDF

Info

Publication number
CN100547967C
CN100547967C CNB2005100552084A CN200510055208A CN100547967C CN 100547967 C CN100547967 C CN 100547967C CN B2005100552084 A CNB2005100552084 A CN B2005100552084A CN 200510055208 A CN200510055208 A CN 200510055208A CN 100547967 C CN100547967 C CN 100547967C
Authority
CN
China
Prior art keywords
job
service
manager
instances
job instances
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
CNB2005100552084A
Other languages
Chinese (zh)
Other versions
CN1835450A (en
Inventor
刘旭东
林学练
王勇
胡春明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beihang University
Original Assignee
Beihang University
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 Beihang University filed Critical Beihang University
Priority to CNB2005100552084A priority Critical patent/CN100547967C/en
Publication of CN1835450A publication Critical patent/CN1835450A/en
Application granted granted Critical
Publication of CN100547967C publication Critical patent/CN100547967C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a kind of mesh operation supervisor, it comprises that mainly request message processing section and activity realize calling part.The request message processing section receives the pretreated job request message of service container in the mesh services operation platform, and it is resolved, compiles, dispatches and carries out; Movable realization is called part and is had unified calling interface, is responsible for calling different service modules, and guarantee in the scheduling of request message processing section, different services is provided when carrying out grid work, and the expansion and the support that new service are realized body.The invention also discloses a kind of management method of utilizing above-mentioned mesh operation supervisor realization to grid work.

Description

Mesh operation supervisor and grid job management method
Technical field
The present invention relates to grid, specifically, relate to a kind of mesh operation supervisor of monitoring management grid work.
Background technology
Grid is new in recent years technology of rising, and it is that whole the Internet is integrated into a huge supercomputer, realizes the overall sharing of computational resource, storage resources, data resource, information resources, knowledge resource, Expert Resources.People can construct zonal grid, enterprises grid, local area network (LAN) grid even family's grid and individual grid, so the basic feature of grid is to reallocate resources, realize resource-sharing, elimination resource isolated island.
Traditional grid work is only paid close attention to the submission and the implementation of single task role, its descriptive language such as RSL, ClassAD mainly describe the configuring condition of related resource in the task implementation, the environmental requirement of carrying out as the title of executive program, relevant call parameters, to task etc.Support to RSL and ClassAD language is provided in corresponding mesh services operation platform such as Globus Toolkit and Conder.
Above-mentioned this traditional mesh services operation platform such as the shortcoming of Globus Toolkit are: the support to workflow mechanism is not provided, and the flow process class of complex structure is used thereon.
Along with the fusion development of grid and Web service technology, in OGSA (OGSA) mesh architecture, provide service to become the notion of a core.
In the OGSA mesh architecture, all affairs all have been expressed as a service, i.e. dynamic, temporary transient service of following a series of standards, target such as the life cycle management that these standards are used to realize to serve, discovery, notice.The mesh services of OGSI (open grid service infrastructure) definition is a kind of Web service in itself, and in order to support dynamically, have the mutual of state, mesh services has defined a series of set of interfaces on the basis of Web service.These set of interfaces are bases that all mesh services realize, are convenient to the structure of high-level service, make high-level service can stride a plurality of level of abstractions and handle with a kind of uniform way.
Above-mentioned mesh architecture based on Web service begins to take shape, and has obtained realization in a series of system, as Globus ToolkitV3.0, Beijing Institute of Aeronautics WebSASE4G mesh services operation platform.Fig. 1 is the system configuration schematic diagram of WebSASE4G mesh services operation platform, and it is an operation platform of realizing mesh services based on the Web service technology.It is made of architecture layers SOA, resource layer, grid application layer and the service-oriented tool layer towards mesh services.
Along with becoming increasingly complex of grid work, the form of operation is gradually from supporting the operation of single application, develops to the direction of batch job, flow process operation.Be in the grid of basic comprising element with the service, grid work is compound to a plurality of services, and the form of operation simultaneously also shows as a service.And in the grid platform of present main flow as Globus Toolkit, the support for the flow process operation still is not provided.
Summary of the invention
In view of the foregoing, the purpose of this invention is to provide a kind of novel mesh operation supervisor that is applied in the Beijing Institute of Aeronautics WebSASE4G mesh services operation platform, this mesh operation supervisor is responsible for the explanation of grid work definition and is carried out, monitoring management function when operation is provided, and, support complicated flow process grid work.
For achieving the above object, the present invention by the following technical solutions: a kind of mesh operation supervisor, it comprises the request message processing section and movable realizes calling part;
The request message processing section receives the pretreated grid work request message of service container in the mesh services operation platform, and it is resolved, compiles, dispatches and carries out;
Movable realization is called part and is had unified calling interface, is responsible for calling different extraneous service modules, and guarantee in the scheduling of request message processing section, different external service is provided when carrying out grid work, and the expansion and the support that new service are realized body.
The described request Message Processing partly comprises job manager inlet, session manager, instance management device, definition resolver and compiler;
Job manager inlet links to each other with service container in the mesh services operation platform, receives the pretreated grid work request message of service container, and the request message of reception is passed to the session manager that is attached thereto; In addition, job manager inlet also receives the response message from session manager, and response message is handed to service container in the mesh services operation platform;
The major function of session manager is to keep job instances and other that session between Service Instance of state is arranged; When the context arrival that job instances is handled, session manager is responsible for giving correct job instances context and is handled; When processing finished, session manager was responsible in response results correct instance identification on the sign, and the result is handed to the job manager inlet;
The instance management device is mainly finished and is created job instances, blocked job example, example and terminate job example resume operation, job instances is carried out dispatching management, according to scheduling strategy request message is ranked, job instances is carried out the management of lifetime state, the bookkeeping interface externally is provided;
Definition resolver major function is to resolve job definition file, and operational definition is read in from file, and it is initiated to call by the instance management device, finally generates the static models of operation;
The major function of compiler is the static models according to operation, generates job instances, generates each attribute in the job instances successively, and it is initiated to call by the instance management device, job instances that final generation can independently be carried out and active instance set; Job instances be by the instance management device create comprise instance data and operation and be controlled in the operation of one the time object, it is independently finished the explanation of example and carries out function; Active instance is the part of Service Instance, creates in the lump when the instance management device is created job instances, by the job instances unified management.
Describedly movable realize calling part and comprise that mainly activity calls manager;
The management function of calling that manager is finished service is to external world called in this activity, comprises the binding of service to external world and the assembling and the preliminary treatment of request message.
A kind of grid job management method, its utilizes by job manager inlet, session manager, instance management device, definition resolver, compiler and movablely calls mesh operation supervisor that manager constitutes to grid work make an explanation executions, monitoring and manage, and concrete grammar is as follows:
(1) the job manager inlet receives the extraneous grid work request of initiating;
(2) job manager inlet blocks this and calls, and request message is handed to session manager;
(3) session manager is isolated session label information, determines correct job instances according to session label information;
(4) session manager is searched above-mentioned job instances in the job instances pond, judges whether to find correct job instances, if can find correct job instances, then jumps to step (8 ');
(5) if session manager does not find correct job instances, judge further whether this job instances is correct request, if not, session manager carries out error handling processing; If correct request continues to carry out following steps;
(6) session manager is transmitted to the instance management device after treatment to request message;
(7) the instance management device is according to the type of the request job that carries in the request message, the information such as address of operational definition, and the call definition resolver is created the static models object;
Job instances when (8) the instance management device is according to the static models object reference compiler generating run created, and the job instances that request message is handed to new establishment handled;
(8 ') session manager is handed to correct job instances to request message and is handled;
(9) job instances begins autonomous execution, in the process of carrying out, if there is the active instance of calling extraneous COS to need to carry out, then relevant parameters is passed to correct active instance;
(10) this active instance is called manager to the required parameter activity of giving through suitable data processing;
(11) activity is called manager and is received required parameter from active instance, and the binding strategy of realizing according to service is tied to suitable service and realizes, required parameter is issued extraneous service module afterwards through assembling and preliminary treatment;
(12) extraneous service is called manager to the response message activity of returning to; Activity call manager the response message that returns through parsing and suitable processing after, give the active instance of correspondence; Active instance is carried out suitable data processing, and the notification service example upgrades the contextual information that example is carried out; Job instances is made response to the request of service in the process of implementation, and response message is passed to session manager;
(13) session manager receives the response message from job instances, suitable session label information on the mark, and response message carried out suitable processing, give the job manager inlet;
(14) the job manager inlet stops the obstruction process, gives service container response message;
(15) service container through appropriate postprocessing (as daily record, encryption etc.), returns to job request person to response message; So far, whole processing of request process finishes.
Description of drawings
Fig. 1 is a Beijing Institute of Aeronautics WebSASE4G mesh services operation platform architectural schematic
Fig. 2 is the structural representation of mesh operation supervisor of the present invention
Fig. 3 is a mesh operation supervisor workflow diagram of the present invention
Fig. 4 is job manager inlet workflow diagram of the present invention
Fig. 5 is a session manager workflow diagram of the present invention
Fig. 6 creates the job instances workflow diagram for instance management device of the present invention
Fig. 7 is an instance management device blocked job example workflow diagram of the present invention
Fig. 8 is the instance management device of the present invention example workflow diagram that resumes operation
Fig. 9 is an instance management device terminate job example workflow diagram of the present invention
Figure 10 is a compiler process of compilation workflow diagram of the present invention
Figure 11 is a job instances process chart of the present invention
Figure 12 calls the manager workflow diagram for activity of the present invention
Figure 13 calls the process chart that calls that manager calls extraneous service for activity of the present invention
Figure 14 is the present invention's operation process chart that adds up
Embodiment
Fig. 2 is the structural representation of mesh operation supervisor of the present invention.As shown in the figure, mesh operation supervisor of the present invention is divided into the request message processing section and movable realizes calling part two parts.The extraneous mesh services job request of initiating is at first received by the service container of mesh services operation platform, through preliminary treatment such as the parsing of service container, encryption, daily records, passes to the request message processing section after being packaged into unified message context form; After the request message processing section received pretreated grid work solicited message, request job message was resolved further, compiles, is dispatched and carries out to external world.Carry out in the process of grid work in the request message processing section, movable realization is called part and is called different extraneous service modules as required, finishes grid work.Movable realization is called part and is had unified calling interface, is used to call different extraneous service modules.Owing in the implementation of operation, need the execution of other member service to finish its business function, movable realization is called part and is mainly finished the different service call details of shielding, in service call by providing different calling modules to come different movable realization bodies are called, these different calling modules have unified calling interface, have guaranteed to provide when operation expansion and the support that new service is realized body.
The request message processing section comprises job manager inlet, session manager, instance management device, definition resolver and compiler.
The job manager inlet links to each other with the service container of mesh services operation platform, receives the pretreated request job message of service container.The major function of session manager is to realize session management, make request message can navigate to correct job instances, and in the response message and the request message of going out, identify session information, make mutual the opposing party's job manager can identify correct job instances.The major function of instance management device is the dispatching management of example of fulfiling assignment, and according to scheduling strategy request message is ranked, and job instances is carried out the management of lifetime state, and the bookkeeping interface externally is provided.The definition resolver is finished the analytical capabilities to operational definition, and it is initiated to call by the instance management device, generates static model object; The fulfil assignment generation of example of compiler, it is initiated to call by the instance management device, the job instances that final generation can independently be carried out.Job instances be by the instance management device create comprise instance data and operation and be controlled in the operation of one the time object, it is independently finished the explanation of example and carries out function; All job instances are formed the example pond.Active instance is the part of job instances, creates in the lump when the instance management device is created job instances, and by the job instances unified management, all active instance constitute the active instance set.
Movable realize calling part and comprise that mainly activity calls manager.
The management function of calling that manager is finished service module is to external world called in activity, comprises the binding of service to external world and the assembling and the preliminary treatment of request message.
In addition, the fulfil assignment configuration feature of manager of Command Line Parsing device, it is called by the instance management device in system initialization; The soap message processor is finished the parsing and the assembling function of soap message, and it calls manager by session manager and activity and calls when operation; Log manager is finished the journal function of system, and it starts operation in system initialization, called by instance management device, job instances and active instance when moving in system.
The operation that above-mentioned mesh operation supervisor is handled for external world's request make an explanation execution, monitoring management process as shown in Figure 3, process is as follows:
(1) the job manager inlet receives extraneous grid work request
Extraneous grid work request normally passes to the service container of mesh services operation platform with SOAP message form; After the preliminary treatment of service container, be transmitted to the job manager inlet; The job manager inlet is mainly finished reception through the pretreated extraneous grid work request of service container.
(2) job manager inlet blocks this and calls, and request message is handed to session manager;
(3) session manager is isolated session label information, determines correct job instances according to session label information;
(4) session manager is searched above-mentioned job instances in the job instances pond, judges whether to find correct job instances, if can find correct job instances, then jumps to step (8 ');
(5) if session manager does not find correct job instances, judge further whether this job instances is correct request, if not, session manager carries out error handling processing; If correct request continues to carry out following steps;
(6) session manager is transmitted to the instance management device after treatment to request message;
(7) the instance management device is according to the type of the request job that carries in the request message, the information such as address of operational definition, and the call definition resolver is created the static models object;
Job instances when (8) the instance management device is according to the static models object reference compiler generating run created, and the job instances that request message is handed to new establishment handled;
(8) session manager is handed to correct job instances to request message and is handled;
(9) job instances begins autonomous execution, in the process of carrying out, if there is the active instance of calling extraneous COS to need to carry out, then relevant parameters is passed to correct active instance;
(10) this active instance is called manager to the required parameter activity of giving through suitable data processing;
(11) activity is called manager and is received required parameter from active instance, and the binding strategy of realizing according to service is tied to suitable service and realizes, required parameter is issued extraneous service module afterwards through assembling and preliminary treatment;
(12) extraneous service is called manager to the response message activity of returning to; Activity call manager the response message that returns through parsing and suitable processing after, give the active instance of correspondence; Active instance is carried out suitable data processing, and the notification service example upgrades the contextual information that example is carried out; Job instances is made response to the request of service in the process of implementation, and response message is passed to session manager;
(13) session manager receives the response message from job instances, suitable session label information on the mark, and response message carried out suitable processing, give the job manager inlet;
(14) the job manager inlet stops the obstruction process, gives service container response message;
(15) service container through appropriate postprocessing (as daily record, encryption etc.), returns to job request person to response message; So far, whole processing of request process finishes.
Describe the detailed functions and the realization flow of critical piece in the job manager below in detail.
1, job manager inlet
The job manager inlet is as the inlet of mesh operation supervisor of the present invention, major function is to transmit processing parameter between service container in the mesh services operation platform and the mesh operation supervisor, promptly receive from the pretreated grid work request message of service container, and request message is passed to session manager after encapsulating; And, receive response message, and response message is handed to service container from session manager.
The processing main flow of job manager inlet may further comprise the steps as shown in Figure 4:
1) receives request message from mesh services operation platform service container, and request message is encapsulated as the inner operation processing context that uses of job manager;
2) giving session manager operation processing context handles;
3) block processing procedure, session manager and other parts are further handled job's context, produce up to this request response;
4) response results is packaged into the response message that meets call format;
5) response message is returned to service container.
2, session manager
The major function of session manager is to keep job instances and other that session between job instances of state is arranged.When the context arrival that operation is handled, session manager is responsible for giving correct job instances context and is handled; When processing finished, session manager was responsible in response results correct instance identification on the sign, and the result is handed to the job manager inlet.
The processing main flow of session manager may further comprise the steps as shown in Figure 5:
1) session manager obtains operation and handles context from the job manager porch;
2) from operation processing context, isolate session label information;
3) session manager is searched correct job instances according to the session label information that obtains from the job instances set, if find correct job instances, then jumps to step 6);
4) if do not find, according to the position that the information positioning operation definition of carrying in the context is handled in operation, invoke resolver is resolved operational definition, creates static models;
5) call compiler, create new job instances;
6) session manager is handled context to operation and is given correct job instances and handle;
7) block processing procedure, produce up to producing result;
8) in the result who produces, identify session label information;
9) result after handling is returned to the job manager inlet.
3, instance management device
The major function of instance management device is to create job instances, blocked job example, resume operation example and terminate job example, and job instances is managed.
The processing main flow of instance management device establishment job instances may further comprise the steps as shown in Figure 6:
1) at first obtains the defined file position of operation;
2) invoke resolver generates the static models object of operation then;
3) call compiler again and generate job instances;
4) create operation and handle contextual information;
5) return the sign ID of job instances, register newly-generated job instances.
The processing main flow of instance management device blocked job example may further comprise the steps as shown in Figure 7:
1) state of job instances is changed into suspended state, and the notice job instances is hung up execution;
2) the job instances remote service notifying activity wherein successively and moving is notified their to hang up and is carried out, and needs to call the hang-up executive's interface of remote service or service container here;
3) return result.
The instance management device resume operation example the processing main flow as shown in Figure 8, may further comprise the steps:
1) state of job instances is changed into running status, and the notice job instances begins to carry out;
2) job instances is notified the activity that is in suspended state and the hang-up service of far-end successively, notifies their to recover to carry out, and service interface is carried out in the recovery that needing to call remote service or service container here provides;
3) return result.
The processing main flow of instance management device terminate job example may further comprise the steps as shown in Figure 9:
1) state of job instances is changed into state of termination, and the notice job instances stops operation;
2) job instances is notified successively and is in operation or the activity of suspended state and the service that moves or hang up of far-end, notifies them to stop operation, needs to call the termination operation service interface of remote service or service container here;
3) return result.
4, definition resolver
The main function of definition resolver is to resolve job definition file, and operational definition is read from file, finally generates the static models of operation.
The resolving of definition resolver utilizes XML correlation technique (DOM, SAX, XSL etc.) that XML document (job definition file) is resolved exactly, and its handling process is that common method is no longer narrated.
5, compiler
The major function of compiler is the static models according to operation, generates job instances, and generates each attribute in the job instances successively.
The processing main flow of compiler as shown in figure 10, its processing procedure is as follows:
1) accepts the static models that resolver generates;
2) newly-built job instances, and compile the static models attribute of job instances item by item, Bian Yi attribute has the information of participant information, operation related data information, error handler information, event handler information, compensation processor information and comings and goings successively.
Wherein, job instances is to comprise data and control logic in the object of one, and it has preserved the contextual informations such as state that operation is carried out, and has also encapsulated the actuating logic of operation, and the interface of operation task example externally is provided.
The processing main flow of job instances is described as follows as shown in figure 11:
1) initialization of job instances, the state of job instances operation is set to ready state, and the listener of notice lifetime incident carries out initial work;
2) job instances begins autonomous operation, and oneself state is set to running status, and the listener of notice lifetime incident carries out other preparations, and for example the current state of record changes in log database;
3) job instances judges that whether operation is complete, if complete, then jumps to step 6);
4) from event queue, take out pending incident such as, handle;
The event type that defines in job manager has eight kinds, and these different incidents are inherited from unified base class, have different incident listeners and different event handling semantemes; The key step of processing events is exactly incident listener's processing events of push-notification-answer;
5) jump to step 3);
6) job instances is finished, and destroys example to the application of instance management device.
6, manager is called in activity
The major function that manager is called in activity is to receive the request of calling extraneous service module, and these requests are ranked, and finishes calling and the result is returned for external world's service.
The main flow that manager processes is called in activity specifically may further comprise the steps as shown in figure 12:
1) activity is called manager and is received the required parameter that active instance is called extraneous service;
2) the formation processing of ranking is put in request;
3) judge that whether the operation execution finishes, if be finished, then jumps to step 6);
4) taking out a request and handle, mainly is the content according to the required parameter the inside, and the initialization allocating object is finished calling of service to external world, and returned the final result that calls;
5) jumping to step 3) carries out;
6) finish.
Above-mentioned steps 4) further may further comprise the steps, as shown in figure 13,
4A) obtain to call the static access point attribute of extraneous COS activity, check that whether this property value is empty, if be empty, then jumps to step 4D); Otherwise, continue to carry out following steps;
4B) Query Information center, super service identifiers and the query interface that service alternative condition recalls information center provides according to this activity obtain the tabulation of available service;
4C) whether the tabulation of judging available service is empty, if be empty, returns error message, and notifies job instances to carry out subsequent treatment; Otherwise, continue to carry out following steps;
4D) select service to call according to the selection strategy (for example selecting at random) of appointment;
4E) judge whether the polling method attribute is empty, if be empty, explanation is common Web service, then jumps to step 7)
If be not empty 4F), explanation is the service of WSRF standard, stabs update time at interval at regular intervals in the implementation of service, and obtains the executing state of service;
4G) judge whether calling of service makes mistakes, if make mistakes, returns error result, notifies job instances, and carry out scheduling process again, jump to step 4B);
If 4H) do not make mistakes in the process of Zhi Hanging, obtain the return results of service, whole scheduled for executing process finishes.
Below in conjunction with a concrete operation, the make an explanation process of execution, monitoring management of operation that job manager is handled external request is described.
This operation is: give fixed number according to two: m and n (m<n), calculate The flow chart of operational definition is described as follows as shown in figure 14:
(1) reception is for the request of the operation that adds up, the initial value m and the n that just add up;
(2) beginningization loop control variable initial value;
(3) judge cycling condition,, then jump to step (7) if loop variant values exceeds predetermined value, otherwise execution in step (4);
(4) for calling the variable assignments of Add service;
(5) call Add service, finish and add and function, and saving result;
(6) upgrade cyclic variable, and upgrade final result, return execution in step (3) then;
(7) return final accumulation result;
(8) finish.
According to the flow process of the above-mentioned operation that adds up, use visual modeling tool or Hand writing operational definition, it is described by operational definition language GJDL (grid work descriptive language); Finally generate the deployment file of operation by operational definition.
Before operation obtains operation, need be (more than the CPU frequency 1000MHZ at least two machines, more than the internal memory 512MB) go up grid service container and job manager are installed, and machine deploy therein realizes the Web service Add that exploitation is finished, its function be finish two numbers add and; At the other machine deploy operation Totalup (Documents Department is disposed in operation be deployed in the job manager appointed positions) that adds up.
After all these preparations are finished, just can pass through the client-access operation, and obtain final accumulation result.
The mesh operation supervisor that this patent proposed provides the support for the flow process grid work, it by service container fulfil assignment the preliminary treatment of request message, between fulfiling assignment by session manager interactive function, by the instance management device fulfil assignment the management of example, by job instances with call the explanation that manager fulfils assignment and carry out, compare with similar products and software systems and have following technical characterstic:
1) in grid work, introduce workflow mechanism, can construct complicated service flow process in the grid, and then the support process operation.
2) complete service-oriented structure.Operation is made of a plurality of services of combination, and operation itself simultaneously also is issued as a service for extraneous visit.
3) the Message Processing structure of layering: from the processing procedure of message, job manager can be divided into three and handle levels: the pretreatment layer of request message, the processing layer of request message and movable realize call layer.Such processing structure makes processing procedure become clear, has simplified the complexity of processing procedure.
4) conversation mechanism flexibly: the implementation of operation may need to relate to mutual between a plurality of job instances, can correctly submit in order to guarantee request and asynchronous response message between the example, need provide the job instances level other conversation management functional.Three kinds of different conversation mechanisms are provided: the mechanism of dialogue-based ID, based on the conversation mechanism of loopback address with based on the conversation mechanism of relevant episode, and these three kinds of conversation mechanisms are combined, basically can satisfy between the operation and the interaction scenarios between operation and the member service, and satisfy the requirement of session flexibility to a certain extent.
5) based on the message passing mechanism of incident: get in touch by various case mechanism between job instances and the active instance, for example accept extraneous request activity, call activity that extraneous service realizes and trigger events corresponding respectively when finishing carrying out, job instances is made the execution that corresponding processing continues operation as the recipient of incident later on respectively receiving these incidents.It is more clear to make the internal module of job manager cut apart based on the message passing mechanism of incident, meets OO designing requirement.
6) multiple member service binding mode: in the implementation of operation, the location of member service, discovery and binding relate to the important aspect that dynamic and reliability are carried out in operation.In the realization of job manager, we provide the support (local mode, static mode, information service mode, dynamical fashion) of multiple member service binding mode, have increased the dynamic and the reliability of operation implementation.

Claims (9)

1, a kind of mesh operation supervisor is characterized in that: it comprises that request message processing section and activity realize calling part;
The request message processing section receives the pretreated grid work request message of service container in the mesh services operation platform, and it is resolved, compiles, dispatches and carries out;
Activity realizes calling part and has unified calling interface, is responsible for calling different extraneous service modules, and guarantee in the scheduling of request message processing section, provide the different external worlds to serve when carrying out grid work, and the expansion and the support that new service are realized body;
The described request Message Processing partly comprises job manager inlet, session manager, instance management device, definition resolver and compiler;
Job manager inlet links to each other with service container in the mesh services operation platform, receives the pretreated grid work request message of service container, and the request message that receives is passed to the session manager that enters the mouth and link to each other with job manager; In addition, job manager inlet also receives the response message from session manager, and response message is handed to service container in the mesh services operation platform;
The major function of session manager is to keep job instances and other that session between Service Instance of state is arranged; When the context arrival that job instances is handled, session manager is responsible for giving correct job instances context and is handled; When processing finished, session manager was responsible in response results correct instance identification on the sign, and the result is handed to the job manager inlet;
The instance management device is mainly finished and is created job instances, blocked job example, example and terminate job example resume operation, job instances is carried out dispatching management, according to scheduling strategy request message is ranked, job instances is carried out the management of lifetime state, the bookkeeping interface externally is provided;
Definition resolver major function is to resolve job definition file, and operational definition is read in from file, and it is initiated to call by the instance management device, finally generates the static models of operation;
The major function of compiler is the static models according to operation, generates job instances, generates each attribute in the job instances successively, and it is initiated to call by the instance management device, job instances that final generation can independently be carried out and active instance set; Job instances be by the instance management device create comprise instance data and operation and be controlled in the operation of one the time object, it is independently finished the explanation of example and carries out function; Active instance is the part of Service Instance, creates in the lump when the instance management device is created job instances, by the job instances unified management.
2, a kind of mesh operation supervisor according to claim 1 is characterized in that: describedly movable realize calling part and comprise that mainly activity calls manager;
The management function of calling that manager is finished service is to external world called in this activity, comprises the binding of service to external world and the assembling and the preliminary treatment of request message.
3, a kind of mesh operation supervisor according to claim 2, it is characterized in that: this mesh operation supervisor also comprises Command Line Parsing device, soap message processor and log manager;
The fulfil assignment configuration feature of manager of Command Line Parsing device, it is called by the instance management device in system initialization; The soap message processor is finished the parsing and the assembling function of soap message, and it calls manager by session manager and activity and calls when operation; Log manager is finished the journal function of system, and it starts operation in system initialization, called by instance management device, job instances and active instance when moving in system.
4, a kind of grid job management method, its utilizes by job manager inlet, session manager, instance management device, definition resolver, compiler and movablely calls mesh operation supervisor that manager constitutes to grid work make an explanation executions, monitoring and manage, and concrete grammar is as follows:
(1) the job manager inlet receives the extraneous grid work request of initiating;
(2) job manager inlet blocks this and calls, and request message is handed to session manager;
(3) session manager is isolated session label information, determines correct job instances according to session label information;
(4) session manager is searched above-mentioned job instances in the job instances pond, judges whether to find correct job instances, if can find correct job instances, then jumps to step (8 ');
(5) if session manager does not find correct job instances, judge further whether this job instances is correct request, if not, session manager carries out error handling processing; If correct request continues to carry out following steps;
(6) session manager is transmitted to the instance management device after treatment to request message;
(7) the instance management device is according to the type of the request job that carries in the request message, the address of operational definition, and the call definition resolver is created the static models object;
Job instances when (8) the instance management device is according to the static models object reference compiler generating run created, and the job instances that request message is handed to new establishment handled;
(8 ') session manager is handed to correct job instances to request message and is handled;
(9) job instances begins autonomous execution, in the process of carrying out, if there is the active instance of calling extraneous COS to need to carry out, then relevant parameters is passed to correct active instance;
(10) this active instance is called manager to the required parameter activity of giving through suitable data processing;
(11) activity is called manager and is received required parameter from active instance, and the binding strategy of realizing according to service is tied to suitable service and realizes, required parameter is issued extraneous service module afterwards through assembling and preliminary treatment;
(12) extraneous service is called manager to the response message activity of returning to; Activity call manager the response message that returns through parsing and suitable processing after, give the active instance of correspondence; Active instance is carried out suitable data processing, and the notification service example upgrades the contextual information that job instances is carried out; Job instances is made response to the request of service in the process of implementation, and response message is passed to session manager;
(13) session manager receives the response message from job instances, suitable session label information on the mark, and response message carried out suitable processing, give the job manager inlet;
(14) the job manager inlet stops the obstruction process, gives service container response message;
(15) service container through appropriate postprocessing, returns to job request person to response message; So far, whole processing of request process finishes.
5, a kind of grid job management method according to claim 4 is characterized in that: the processing main flow of described job manager inlet may further comprise the steps:
1) receives request message from mesh services operation platform service container, and request message is encapsulated as the inner operation processing context that uses of job manager;
2) giving session manager operation processing context handles;
3) block processing procedure, session manager and other parts are further handled job's context, produce up to this request response;
4) response results is packaged into the response message that meets call format;
5) response message is returned to service container.
6, a kind of grid job management method according to claim 4, it is characterized in that: the processing main flow of described session manager may further comprise the steps:
1) session manager obtains operation and handles context from the job manager porch;
2) from operation processing context, isolate session label information;
3) session manager is searched correct job instances according to the session label information that obtains from the job instances set, if find correct job instances, then jumps to step 6);
4) if do not find, according to the position that the information positioning operation definition of carrying in the context is handled in operation, invoke resolver is resolved operational definition, creates static models;
5) call compiler, create new job instances;
6) session manager is handled context to operation and is given correct job instances and handle;
7) block processing procedure, up to producing result;
8) in the result who produces, identify session label information;
9) result after handling is returned to the job manager inlet.
7, a kind of grid job management method according to claim 4 is characterized in that: described instance management device is mainly finished and is created job instances, blocked job example, resume operation example and terminate job example, and job instances is managed;
The instance management device is created job instances and be may further comprise the steps:
1), obtains the defined file position of operation;
2), invoke resolver generates the static models object of operation;
3), call compiler again and generate job instances;
4), create operation and handle contextual information;
5), return the sign ID of job instances, register newly-generated job instances;
Instance management device blocked job example may further comprise the steps:
1), the state of job instances changes into suspended state, and the notice job instances is hung up and is carried out;
2), the job instances remote service notifying wherein movable successively and moving, notify their to hang up and carry out, need to call the hang-up executive's interface of remote service or service container here;
3), return result;
The instance management device example that resumes operation may further comprise the steps:
1), the state of job instances is changed into running status, and the notice job instances begin to carry out;
2), job instances notifies the activity that is in suspended state and the hang-up service of far-end successively, notifies their to recover to carry out, service interface is carried out in the recovery that needing to call remote service or service container here provides:
3), return result;
May further comprise the steps of instance management device terminate job example:
1) state of operation is changed into state of termination, and the notice job instances stops operation;
2) job instances is notified successively and is in operation or the activity of suspended state and the service that moves or hang up of far-end, notifies them to stop operation, needs to call the termination operation service interface of remote service or service container here;
3) return result.
8, a kind of grid job management method according to claim 4, it is characterized in that: the processing main flow of described compiler may further comprise the steps:
1) accepts the static models that resolver generates;
2) newly-built job instances, and compile the static models attribute of job instances item by item, Bian Yi attribute has the information of participant information, operation related data information, error handler information, event handler information, compensation processor information and comings and goings successively.
9, a kind of grid job management method according to claim 4, it is characterized in that: the main flow that manager is called in described activity may further comprise the steps:
1) activity is called manager and is received the required parameter that active instance is called extraneous service;
2) the formation processing of ranking is put in request;
3) judge that whether the operation execution finishes, if be finished, then jumps to step 6);
4) taking out a request and handle, mainly is the content according to the required parameter the inside, and the initialization allocating object is finished calling of service to external world, and returned the final result that calls;
5) jumping to step 3) carries out;
6) finish;
Above-mentioned steps 4) further may further comprise the steps,
4A) obtain to call the static access point attribute of extraneous COS activity, check that whether this property value is empty, if be empty, then jumps to step 4D); Otherwise, continue to carry out following steps;
4B) Query Information center, super service identifiers and the query interface that service alternative condition recalls information center provides according to this activity obtain the tabulation of available service;
4C) whether the tabulation of judging available service is empty, if be empty, returns error message, and notifies job instances to carry out subsequent treatment; Otherwise, continue to carry out following steps;
4D) select service to call according to the selection strategy of appointment;
4E) judge whether the polling method attribute is empty, if be empty, explanation is common Web service, then jumps to step 4G);
If be not empty 4F), explanation is the service of WSRF standard, stabs update time at interval at regular intervals in the implementation of service, and obtains the executing state of service;
4G) judge whether calling of service makes mistakes, if make mistakes, returns error result, notifies job instances, and carry out scheduling process again, jump to step 4B);
If 4H) do not make mistakes in the process of Zhi Hanging, obtain the return results of service, whole scheduled for executing process finishes.
CNB2005100552084A 2005-03-15 2005-03-15 Mesh operation supervisor and grid job management method Expired - Fee Related CN100547967C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100552084A CN100547967C (en) 2005-03-15 2005-03-15 Mesh operation supervisor and grid job management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100552084A CN100547967C (en) 2005-03-15 2005-03-15 Mesh operation supervisor and grid job management method

Publications (2)

Publication Number Publication Date
CN1835450A CN1835450A (en) 2006-09-20
CN100547967C true CN100547967C (en) 2009-10-07

Family

ID=37003064

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100552084A Expired - Fee Related CN100547967C (en) 2005-03-15 2005-03-15 Mesh operation supervisor and grid job management method

Country Status (1)

Country Link
CN (1) CN100547967C (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155329B (en) * 2006-09-29 2010-11-10 华为技术有限公司 Integration message system
CN101640667B (en) * 2008-07-30 2012-11-21 国际商业机器公司 Process execution method, process execution system and configuration equipment and configuration method of process execution system
CN101388887B (en) * 2008-10-15 2012-09-19 中兴通讯股份有限公司 Network service processing method and system
CN102063308B (en) * 2011-01-12 2013-06-19 中国石油集团川庆钻探工程有限公司 Method for controlling processing flow of seismic prospecting data
US8572685B2 (en) * 2012-01-06 2013-10-29 Timothy J. Caplis Consolidated data services apparatus and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
一种面向服务的网格作业管理机制. 余海燕,查礼,李伟.计算机研究与发展,第40卷第12期. 2003
一种面向服务的网格作业管理机制. 余海燕,查礼,李伟.计算机研究与发展,第40卷第12期. 2003 *

Also Published As

Publication number Publication date
CN1835450A (en) 2006-09-20

Similar Documents

Publication Publication Date Title
CN101946258B (en) Model based deployment of computer based business process on dedicated hardware
EP0553285B1 (en) Object-oriented architecture for factory floor management
Wohed et al. Pattern based analysis of BPEL4WS
CN102375731B (en) Coding-free integrated application platform system
US20060224702A1 (en) Local workflows in a business process management system
CN108762900A (en) High frequency method for scheduling task, system, computer equipment and storage medium
Martin et al. A novel approach to decentralized workflow enactment
US20060224428A1 (en) Ad-hoc and priority-based business process execution
CN110377406A (en) A kind of method for scheduling task, device, storage medium and server node
JP2020109613A (en) Smart irrigation area e-platform based on four-layered architecture and data processing method
CN105975261B (en) A kind of runtime system and operation method called towards unified interface
CN102662725A (en) Event-driven high concurrent process virtual machine realization method
CN100547967C (en) Mesh operation supervisor and grid job management method
CN112256406B (en) Operation flow platformization scheduling method
CN102968303A (en) Program design system and program design method
CN113672240A (en) Container-based multi-machine-room batch automatic deployment application method and system
CN102223396A (en) System and method for associating service logic with user interface in computer system based on cloud computing
Schlatte et al. Modeling and analyzing resource-sensitive actors: a tutorial introduction
CN101321178A (en) Portal workflow engine system and its implementing method
Huang et al. Model checking technologies for web services
Gazis et al. Middleware 101: What to know now and for the future
Masuda et al. Direction of digital it and enterprise architecture
Meister et al. Managing product line variability by patterns
Subramonian et al. Composable timed automata models for real-time embedded systems middleware
US20230082523A1 (en) Method for the deployment of a software module in a manufacturing operation management system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20091007

Termination date: 20130315