CN117112149A - Mining area mine business process communication method, device, medium and equipment - Google Patents
Mining area mine business process communication method, device, medium and equipment Download PDFInfo
- Publication number
- CN117112149A CN117112149A CN202311378848.3A CN202311378848A CN117112149A CN 117112149 A CN117112149 A CN 117112149A CN 202311378848 A CN202311378848 A CN 202311378848A CN 117112149 A CN117112149 A CN 117112149A
- Authority
- CN
- China
- Prior art keywords
- transaction
- mine
- branch
- mining area
- global
- 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.)
- Granted
Links
- 238000005065 mining Methods 0.000 title claims abstract description 90
- 238000000034 method Methods 0.000 title claims abstract description 52
- 238000004891 communication Methods 0.000 title claims abstract description 31
- 230000008569 process Effects 0.000 title abstract description 11
- 238000004519 manufacturing process Methods 0.000 claims abstract description 72
- 230000000977 initiatory effect Effects 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 4
- 230000010354 integration Effects 0.000 abstract description 3
- 238000012545 processing Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/466—Transaction processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
- G06F9/5038—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5083—Techniques for rebalancing the load in a distributed system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0633—Workflow analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/103—Workflow collaboration or project management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/02—Agriculture; Fishing; Forestry; Mining
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Human Resources & Organizations (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Strategic Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Economics (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Tourism & Hospitality (AREA)
- General Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Operations Research (AREA)
- Data Mining & Analysis (AREA)
- Development Economics (AREA)
- Game Theory and Decision Science (AREA)
- Educational Administration (AREA)
- Life Sciences & Earth Sciences (AREA)
- Agronomy & Crop Science (AREA)
- Animal Husbandry (AREA)
- Marine Sciences & Fisheries (AREA)
- Mining & Mineral Resources (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The disclosure relates to a mining area mine business process communication method, device, medium and equipment. The method comprises the following steps: the transaction manager at the mining area side applies for starting a global transaction to the transaction coordinator so that the transaction coordinator creates a global transaction; the resource manager at the mining area side registers a first branch transaction with the transaction coordinator and brings the first branch transaction into a global transaction; based on business logic issued to the mine side by the mine side execution production plan, registering a second branch transaction with the transaction coordinator by the resource manager of the mine side, and incorporating the second branch transaction into the global transaction; after the second branch transaction is incorporated into the global transaction, a transaction manager at the mining area side initiates a global commit or rollback resolution to the transaction coordinator; the transaction coordinator schedules a first branch transaction and a second branch transaction of global transaction jurisdiction to finish the submitting or rollback request. The method realizes integration and cooperation of the mining area side and mine side services, and establishes a mining area and mine closed-loop service process.
Description
Technical Field
The disclosure relates to the technical field of service flow communication, in particular to a mining area mine service flow communication method, device, medium and equipment.
Background
The intelligent mine takes mine digitization and information as preconditions and foundations, actively perceives, automatically analyzes and rapidly processes mine production, technical support, logistics guarantee and the like, and finally realizes construction of safe mines, efficient mines and clean mines. In practical application, the mining area is an upper management unit for managing a plurality of mines, and a plurality of mines form a mining area management system. With the rapid development of intelligent mines, the application of the software system is not limited to the independent use of a mining area or a mine side, but the mining area is communicated with mine service, so that the bidirectional interaction of the task of delivering the mining area to the mine and the report and feedback of the mine to the mining area is realized. However, in the actual business implementation and service circulation process of the mine mining area, the efficiency of cooperation between the mine and the mining area is low, and therefore, how to efficiently cooperate with resources and services between the mine and the mining area becomes very important.
In the related art, the general integration and intercommunication among multiple systems is realized by an application program interface (Application Programming Interface, API) mode provided by a hypertext transfer protocol (Hypertext Transfer Protocol, HTTP), and when the integration and intercommunication among multiple systems between the mine and the mine face the problem of service cooperativity, the structural transaction management between the mine and the mine cannot be realized by the API mode provided by the HTTP protocol, so that the transaction coordination and the logic reduction of the service processing between the mine and the mine are caused; and the problem that the API mode provided by the HTTP protocol occupies connection resources for a long time causes that other mine ends cannot be timely and effectively connected with the mine ends to acquire data, so that the working efficiency between the mine and the mine is reduced, and the service realization of the whole mine is affected.
Accordingly, there is a need to provide a new solution to ameliorate one or more of the problems presented in the above solutions.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
It is an object of the present disclosure to provide a mining area mine business process communication method, apparatus, medium and device that overcome, at least in part, one or more of the problems due to the limitations and disadvantages of the related art.
According to a first aspect of an embodiment of the present disclosure, there is provided a mining area mine traffic flow communication method, the method including:
the transaction manager at the mining area side applies for starting a global transaction to the transaction coordinator so that the transaction coordinator creates the global transaction; wherein the global transaction includes generating production plans under the mine side to the mine side;
the resource manager at the mining area side registers a first branch transaction with the transaction coordinator and brings the first branch transaction into the global transaction; wherein the first branch transaction includes executing, at the mine side, business logic issued by the production plan to the mine side;
executing business logic issued to the mine side by the production plan based on the mine side, registering a second branch transaction with the transaction coordinator by a resource manager of the mine side, and incorporating the second branch transaction into the global transaction; wherein the second branch transaction includes executing business logic on the mine side that receives the production plan;
after the second branch transaction is incorporated into the global transaction, a transaction manager at the mining area side initiates a global commit or rollback resolution to the transaction coordinator;
the transaction coordinator schedules the first branch transaction and the second branch transaction of the global transaction jurisdiction to finish submitting or rollback requests.
In an embodiment of the disclosure, the method further includes the step of causing the transaction coordinator to create one global transaction, and further includes:
a unique exchange identifier corresponding to the global transaction is generated and fed back to the transaction manager.
In an embodiment of the disclosure, the resource manager on the mining area side registers the first branch transaction with the transaction coordinator, and further includes:
storing the first branch transaction to a database on the mining area side.
In an embodiment of the disclosure, the resource manager on the mine side registers a second branch transaction with the transaction coordinator, and further includes:
and storing the second branch transaction to a database at the mine side.
In an embodiment of the disclosure, the global transaction further includes reporting a production plan result to the mining area side from the mine side;
and when the global transaction comprises reporting the production plan result to the mining area side from the mine side, the first branch transaction further comprises reporting the production plan result to the mine side, and the second branch transaction further comprises receiving the production plan result from the mining area side.
According to a second aspect of embodiments of the present disclosure, there is provided a mining area mine traffic flow communication apparatus, the apparatus comprising:
the application module is used for applying for opening a global transaction to the transaction coordinator by the transaction manager at the mining area side so that the transaction coordinator creates the global transaction; wherein the global transaction includes generating production plans under the mine side to the mine side;
a first registration module, configured to register the first branch transaction with the transaction coordinator by using a resource manager on the mining area side, and incorporate the first branch transaction into the global transaction; wherein the first branch transaction includes executing, at the mine side, business logic issued by the production plan to the mine side;
the second registration module is used for executing business logic issued to the mine side by the production plan on the basis of the mine side, registering a second branch transaction with the transaction coordinator by the resource manager of the mine side, and incorporating the second branch transaction into the global transaction; wherein the second branch transaction includes executing business logic on the mine side that receives the production plan;
the initiating module is used for initiating global submission or rollback resolution to the transaction coordinator by the transaction manager at the mining area side after the second branch transaction is incorporated into the global transaction;
and the scheduling module is used for scheduling the first branch transaction and the second branch transaction of the global transaction jurisdiction by the transaction coordinator to finish the submitting or rollback request.
In an embodiment of the disclosure, the apparatus further comprises:
and the generation module is used for generating a unique exchange identifier corresponding to the global transaction and feeding back the exchange identifier to the transaction manager.
In an embodiment of the disclosure, the apparatus further comprises:
and the storage module is used for storing the first branch transaction to the database at the mining area side.
According to a third aspect of the disclosed embodiments, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the mining area mine traffic flow communication method of any of the embodiments described above.
According to a fourth aspect of embodiments of the present disclosure, there is provided an electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the steps of the mining area mine traffic flow communication method of any of the embodiments described above via execution of the executable instructions.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
in one embodiment of the disclosure, by adopting the method, the method adopts the independent deployment operation transaction coordinator and creates the global transaction, and utilizes the coordination of the first branch transaction registered at the mining area side and the second branch transaction registered at the mining area side to drive the way of completing the global transaction, the first branch transaction and the second branch transaction are used as middleware in an application layer, the performance is better, the connection resources are not occupied for a long time, the problem of distributed transaction under the cross-system service of the mining machine is effectively solved in an efficient and zero-invasion mode, the consistency of mining area mining service data is realized, and the intercommunication of service flows is realized.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort.
FIG. 1 schematically illustrates a flow chart of steps of a mining area mine traffic flow communication method in an exemplary embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of business logic for mining-area side-to-mine side production planning in an exemplary embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow chart of business logic for generating production plans under a mine side to the mine side and reporting production plan results to the mine side in an exemplary embodiment of the present disclosure;
FIG. 4 schematically illustrates an interaction schematic between a mine site side and a mine shaft side in an exemplary embodiment of the present disclosure;
FIG. 5 schematically illustrates a block diagram of a mining area mine traffic flow communication apparatus in an exemplary embodiment of the present disclosure;
FIG. 6 schematically illustrates a program product schematic in an exemplary embodiment of the present disclosure;
fig. 7 schematically illustrates a schematic diagram of an electronic device in an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
In this exemplary embodiment, a method for communicating mine traffic flows in a mining area is provided first. Referring to what is shown in fig. 1, the method may include: step S101 to step S105.
Wherein, step S101: the transaction manager at the mining area side applies for starting a global transaction to the transaction coordinator so that the transaction coordinator creates the global transaction; wherein the global transaction includes a mine side undersea production plan to mine side.
Step S102: the resource manager at the mining area side registers a first branch transaction with the transaction coordinator and brings the first branch transaction into the global transaction; wherein the first branch transaction includes executing business logic at the mine side that the production plan issues to the mine side.
Step S103: executing business logic issued to the mine side by the production plan based on the mine side, registering a second branch transaction with the transaction coordinator by a resource manager of the mine side, and incorporating the second branch transaction into the global transaction; wherein the second branch transaction includes executing business logic on the mine side that receives the production plan.
Step S104: after the second branch transaction is incorporated into the global transaction, a transaction manager at the mining area side initiates a global commit or rollback resolution to the transaction coordinator.
Step S105: the transaction coordinator schedules the first branch transaction and the second branch transaction of the global transaction jurisdiction to finish submitting or rollback requests.
By adopting the method, the method adopts the mode of independently deploying and operating the transaction coordinator and creating the global transaction and utilizing the coordination of the first branch transaction registered at the mining area side and the second branch transaction registered at the mine side to drive and complete the global transaction, and uses the first branch transaction and the second branch transaction as middleware in an application layer, so that the method has better performance, does not occupy connection resources for a long time, effectively solves the problem of distributed transaction under the cross-system service of the mine mining machine in a high-efficiency and zero-invasion mode, realizes the consistency of mine service data of the mining area and realizes the intercommunication of service flows.
Next, each step of the above-described method in the present exemplary embodiment will be described in more detail with reference to fig. 1 to 4.
In step S101, the transaction manager (Transaction Manager, TM) on the mine side applies for opening a global transaction to the transaction coordinator (Transaction Coordinator, TC), and then the transaction coordinator creates a global transaction successfully and generates a globally unique eXchange IDentifier (XID), i.e. the global transaction has an XID therein, and feeds back to the transaction manager. Where the transaction manager needs to work embedded in the application, it is responsible for opening a global transaction and eventually initiating a global commit or global rollback instruction to the TC.
In step S102, a Resource Manager (RM) at the mine side registers a first branch transaction with the transaction coordinator TC, where the first branch transaction includes service logic of the mine side performing production planning issued to the mine side, i.e. the mine side performing production planning issued the first branch transaction, which performs production planning issued to the mine side at the mine side and takes it into jurisdiction of global transactions corresponding to XID.
In one embodiment, the resource manager on the mine side registers the first branch transaction with the transaction coordinator, and then further comprises:
the first branch transaction is stored to a database on the mine side.
In step S103, the resource manager RM on the mine side registers a second branch transaction with the transaction coordinator TC, which receives the production plan on the mine side and takes it into the jurisdiction of the global transaction corresponding to XID, based on the business logic issued to the mine side by the mine side execution production plan, i.e. when the business logic executes to the mine side receiving the production plan.
In one embodiment, the mine side resource manager registers the second branch transaction with the transaction coordinator, and then further comprises:
the second branch transaction is stored to a database on the mine side.
In step S104, after incorporating the second branch transaction into the global transaction, the transaction manager TM on the mine side initiates a global commit or rollback resolution for XID to the transaction coordinator TC.
In step S105, the transaction coordinator TC schedules the first and second branch transactions governed by XID, completing the commit or rollback request.
It will be appreciated that the global transaction also includes reporting production planning results to the mine side and to the mine side, as shown in figures 2, 3 and 4. And when the global transaction comprises reporting the production plan result from the mine side to the mining area side, the first branch transaction further comprises reporting the production plan result from the mine side, and the second branch transaction further comprises receiving the production plan result from the mining area side.
It should be noted that, as shown in fig. 2, 3 and 4, when the global transaction includes the occurrence of the production plan under the mine side to the mine side, the first branch transaction at the mine side includes the occurrence of the production plan under the mine side, and the second branch transaction at the mine side includes the reception of the production plan at the mine side. When the global transaction includes reporting production planning results from the mine side to the mine side, the first branch transaction at the mine side includes reporting production planning results from the mine side, and the second branch transaction at the mine side includes receiving production planning results from the mine side.
It should also be noted that the global transaction includes when a production plan occurs under the mine side to the mine side, and when the mine side reports the production plan results to the mine side. At this time, the process of issuing and receiving the production plan between the mining area side and the mine side and reporting and receiving the production plan result is as follows:
first, a first branch transaction on the mine side performs a business logic that generates a production plan to the mine side and the mine side performs a production plan to the mine side. Second, the second branch transaction at the mine side includes executing the received production plan. Based on the production plan received at the mine side, the staff member performs the execution based on the production plan, and then reports the execution of the production plan to the mine side based on the first branch transaction. Finally, the mining site side receives the production planning result based on the second branch transaction at the mining site side. Based on the above procedure, communication between the mine side and the mine side is completed.
It should be further noted that, when the global transaction includes that the production schedule occurs from the mine side to the mine side, the process of issuing and receiving the production schedule between the mine side and the mine side is as follows:
first, a first branch transaction on the mine side performs a business logic that generates a production plan to the mine side and the mine side performs a production plan to the mine side. Second, the second branch transaction at the mine side includes executing the received production plan. Based on the above procedure, communication between the mine side and the mine side is completed.
The operation of the service intercommunication between the mining area and the mine can be completed by network remote cooperation, namely, the first branch transaction issued by the production plan at the mining area side and the second branch transaction received by the production plan at the mine side are executed by the network remote cooperation, and the submission or rollback of the production plan at the mining area side and the mine side is carried out.
Further, the transaction coordinator TC schedules the first branch transaction and the second branch transaction managed by XID respectively, specifically including:
transaction information and execution information of the first branch transaction and the second branch transaction and hardware information corresponding to the first branch transaction and the second branch transaction are respectively acquired;
based on the transaction information, the execution information and the hardware information, priority parameters corresponding to the first branch transaction and the second branch transaction are respectively determined;
based on the priority parameters, the first and second branch transactions administered under XID are respectively scheduled.
Specifically, in this embodiment, transaction information, execution information and hardware information of the first branch transaction and the second branch transaction are acquired respectively first. The transaction information comprises information such as transaction names, time and the like, the execution information comprises information such as completion conditions, abnormal conditions and the like, and the hardware information comprises equipment attribute parameters of hardware equipment corresponding to each branch transaction. After the transaction information, the execution information and the hardware information are acquired, the transaction information, the execution information and the hardware information are quantized to obtain data information with uniform format. Thereafter based on transaction informationExecution information->Hardware information->Determining priority parameters corresponding to the first branch transaction and the second branch transaction respectively>The method comprises the following steps:
wherein,representing a preset transaction factor,/->Representing a preset execution factor.
The process combines the transaction information and the execution information, and simultaneously synthesizes the hardware information corresponding to each branch transaction to determine the priority parameter corresponding to each branch transaction. A higher priority parameter indicates a higher priority, requiring priority handling. In the embodiment, the scheduling of each branch transaction is realized based on the priority of each branch transaction, so that the priority processing of the branch transaction with high priority is ensured, and the processing efficiency of the branch transaction is improved.
It should be noted that although the steps of the methods of the present disclosure are illustrated in the accompanying drawings in a particular order, this does not require or imply that the steps must be performed in that particular order or that all of the illustrated steps be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc. In addition, it is also readily understood that these steps may be performed synchronously or asynchronously, for example, in a plurality of modules/processes/threads.
Further, in this example embodiment, a mining area mine service flow communication device is also provided. Referring to fig. 5, an apparatus 200 may include. Wherein: the application module 201, the first registration module 202, the second registration module 203, the initiation module 204 and the scheduling module 205.
An application module 201, configured to apply for a transaction manager on a mining area side to open a global transaction to a transaction coordinator, so that the transaction coordinator creates the global transaction; wherein the global transaction includes generating production plans under the mine side to the mine side.
A first registration module 202, configured to register the first branch transaction with the transaction coordinator by using a resource manager on the mining area side, and incorporate the first branch transaction into the global transaction; wherein the first branch transaction includes executing business logic at the mine side that the production plan issues to the mine side.
A second registration module 203, configured to execute, based on the mining area side, service logic issued by the production plan to the mine side, and register, by the resource manager of the mine side, a second branch transaction with the transaction coordinator, and incorporate the second branch transaction into the global transaction; wherein the second branch transaction includes executing business logic on the mine side that receives the production plan.
And an initiating module 204, configured to initiate a global commit or rollback resolution to the transaction coordinator by the transaction manager on the mining area side after the second branch transaction is incorporated into the global transaction.
And the scheduling module 205 is configured to schedule the first branch transaction and the second branch transaction of the global transaction administration by using the transaction coordinator to complete a commit or rollback request.
In one embodiment, the apparatus further comprises:
and the generation module is used for generating a unique exchange identifier corresponding to the global transaction and feeding back the exchange identifier to the transaction manager.
In one embodiment, a storage module is configured to store the first branch transaction to a database on the mining site side.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied. The components shown as modules or units may or may not be physical units, may be located in one place, or may be distributed across multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the objectives of the disclosed solution. Those of ordinary skill in the art will understand and implement the present application without undue burden.
In an exemplary embodiment of the present disclosure, there is also provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the mining area mine traffic flow communication method described in any one of the embodiments above. In some possible embodiments, the various aspects of the application may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the application as described in the mining area mine traffic flow communication method section of this specification, when said program product is run on the terminal device.
Referring to fig. 6, a program product 300 for implementing the above-described method according to an embodiment of the present application is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present application is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable storage medium may also be any readable medium that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
In an exemplary embodiment of the present disclosure, an electronic device is also provided, which may include a processor, and a memory for storing executable instructions of the processor. Wherein the processor is configured to perform the steps of the mining area mine traffic flow communication method of any of the embodiments described above via execution of the executable instructions.
Those skilled in the art will appreciate that the various aspects of the application may be implemented as a system, method, or program product. Accordingly, aspects of the application may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
An electronic device 600 according to this embodiment of the application is described below with reference to fig. 7. The electronic device 600 shown in fig. 7 is merely an example, and should not be construed as limiting the functionality and scope of use of embodiments of the present application.
As shown in fig. 7, the electronic device 600 is in the form of a general purpose computing device. Components of electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one memory unit 620, a bus 630 connecting the different system components (including the memory unit 620 and the processing unit 610), a display unit 640, etc.
Wherein the storage unit stores program code that is executable by the processing unit 610 such that the processing unit 610 performs the steps according to various exemplary embodiments of the present application described in the mining area mine traffic flow communication method section of the present specification. For example, the processing unit 610 may perform the steps as shown in fig. 1.
The memory unit 620 may include readable media in the form of volatile memory units, such as Random Access Memory (RAM) 6201 and/or cache memory unit 6202, and may further include Read Only Memory (ROM) 6203.
The storage unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 630 may be a local bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 600, and/or any device (e.g., router, modem, etc.) that enables the electronic device 600 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 650. Also, electronic device 600 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 over the bus 630. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 600, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a usb disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, or a network device, etc.) to perform the above-mentioned mining area mine business flow communication method according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains.
Claims (10)
1. A mining area mine traffic flow communication method, the method comprising:
the transaction manager at the mining area side applies for starting a global transaction to the transaction coordinator so that the transaction coordinator creates the global transaction; wherein the global transaction includes generating production plans under the mine side to the mine side;
the resource manager at the mining area side registers a first branch transaction with the transaction coordinator and brings the first branch transaction into the global transaction; wherein the first branch transaction includes executing, at the mine side, business logic issued by the production plan to the mine side;
executing business logic issued to the mine side by the production plan based on the mine side, registering a second branch transaction with the transaction coordinator by a resource manager of the mine side, and incorporating the second branch transaction into the global transaction; wherein the second branch transaction includes executing business logic on the mine side that receives the production plan;
after the second branch transaction is incorporated into the global transaction, a transaction manager at the mining area side initiates a global commit or rollback resolution to the transaction coordinator;
the transaction coordinator schedules the first branch transaction and the second branch transaction of the global transaction jurisdiction to finish submitting or rollback requests.
2. The mining area mine traffic flow communication method of claim 1, wherein said causing said transaction coordinator to create one of said global transactions further comprises:
a unique exchange identifier corresponding to the global transaction is generated and fed back to the transaction manager.
3. The mining area mine traffic flow communication method of claim 1, wherein the resource manager at the mining area side registers a first branch transaction with the transaction coordinator, and further comprising:
storing the first branch transaction to a database on the mining area side.
4. The mining area mine traffic flow communication method of claim 1, wherein the mine side resource manager registers a second branch transaction with the transaction coordinator, and further comprising:
and storing the second branch transaction to a database at the mine side.
5. The mining area mine traffic flow communication method of claim 1, wherein the global transaction further comprises reporting a production plan result to the mining area side by the mine side;
and when the global transaction comprises reporting the production plan result to the mining area side from the mine side, the first branch transaction further comprises reporting the production plan result to the mine side, and the second branch transaction further comprises receiving the production plan result from the mining area side.
6. A mining area mine traffic flow communication device, the device comprising:
the application module is used for applying for opening a global transaction to the transaction coordinator by the transaction manager at the mining area side so that the transaction coordinator creates the global transaction; wherein the global transaction includes generating production plans under the mine side to the mine side;
the first registration module is used for registering a first branch transaction with the transaction coordinator by the resource manager at the mining area side and incorporating the first branch transaction into the global transaction; wherein the first branch transaction includes executing, at the mine side, business logic issued by the production plan to the mine side;
the second registration module is used for executing business logic issued to the mine side by the production plan on the basis of the mine side, registering a second branch transaction with the transaction coordinator by the resource manager of the mine side, and incorporating the second branch transaction into the global transaction; wherein the second branch transaction includes executing business logic on the mine side that receives the production plan;
the initiating module is used for initiating global submission or rollback resolution to the transaction coordinator by the transaction manager at the mining area side after the second branch transaction is incorporated into the global transaction;
and the scheduling module is used for scheduling the first branch transaction and the second branch transaction of the global transaction jurisdiction by the transaction coordinator to finish the submitting or rollback request.
7. The mining area mine traffic flow communication apparatus of claim 6, further comprising:
and the generation module is used for generating a unique exchange identifier corresponding to the global transaction and feeding back the exchange identifier to the transaction manager.
8. The mining area mine traffic flow communication apparatus of claim 6, further comprising:
and the storage module is used for storing the first branch transaction to the database at the mining area side.
9. A computer readable storage medium having stored thereon a computer program, characterized in that the computer program when executed by a processor realizes the steps of the mining area mine traffic flow communication method of any of claims 1 to 5.
10. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the steps of the mining area mine traffic flow communication method of any one of claims 1-5 via execution of the executable instructions.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311378848.3A CN117112149B (en) | 2023-10-24 | 2023-10-24 | Mining area mine business process communication method, device, medium and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311378848.3A CN117112149B (en) | 2023-10-24 | 2023-10-24 | Mining area mine business process communication method, device, medium and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117112149A true CN117112149A (en) | 2023-11-24 |
CN117112149B CN117112149B (en) | 2024-02-06 |
Family
ID=88798752
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311378848.3A Active CN117112149B (en) | 2023-10-24 | 2023-10-24 | Mining area mine business process communication method, device, medium and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117112149B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103995868A (en) * | 2014-05-20 | 2014-08-20 | 科大国创软件股份有限公司 | Distributed system oriented global transaction manager and transaction handling method |
CN106255956A (en) * | 2014-04-28 | 2016-12-21 | 甲骨文国际公司 | Public affair identifier is supported to optimize and the system and method for affairs cohesion based on the resource manager instance perception in transaction environment |
US20170199758A1 (en) * | 2016-01-07 | 2017-07-13 | International Business Machines Corporation | Prioritization of transactions based on execution progress |
US20180196693A1 (en) * | 2017-01-06 | 2018-07-12 | International Business Machines Corporation | Sharing transaction contexts in an optimized colocation of java and non-java language applications |
CN109684045A (en) * | 2017-10-18 | 2019-04-26 | 阿里巴巴集团控股有限公司 | Processing method, device and the electronic equipment of transaction message |
CN111223001A (en) * | 2019-12-18 | 2020-06-02 | 中国科学院软件研究所 | Resource scheduling method and system based on multiple process models |
CN114528073A (en) * | 2022-01-24 | 2022-05-24 | 赞同科技股份有限公司 | Distributed transaction processing method, device and medium based on independent transaction coordinator |
CN116414527A (en) * | 2023-03-31 | 2023-07-11 | 中信银行股份有限公司 | Method and system for greatly improving performance of distributed transaction coordinator |
-
2023
- 2023-10-24 CN CN202311378848.3A patent/CN117112149B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106255956A (en) * | 2014-04-28 | 2016-12-21 | 甲骨文国际公司 | Public affair identifier is supported to optimize and the system and method for affairs cohesion based on the resource manager instance perception in transaction environment |
CN103995868A (en) * | 2014-05-20 | 2014-08-20 | 科大国创软件股份有限公司 | Distributed system oriented global transaction manager and transaction handling method |
US20170199758A1 (en) * | 2016-01-07 | 2017-07-13 | International Business Machines Corporation | Prioritization of transactions based on execution progress |
US20180196693A1 (en) * | 2017-01-06 | 2018-07-12 | International Business Machines Corporation | Sharing transaction contexts in an optimized colocation of java and non-java language applications |
CN109684045A (en) * | 2017-10-18 | 2019-04-26 | 阿里巴巴集团控股有限公司 | Processing method, device and the electronic equipment of transaction message |
CN111223001A (en) * | 2019-12-18 | 2020-06-02 | 中国科学院软件研究所 | Resource scheduling method and system based on multiple process models |
CN114528073A (en) * | 2022-01-24 | 2022-05-24 | 赞同科技股份有限公司 | Distributed transaction processing method, device and medium based on independent transaction coordinator |
CN116414527A (en) * | 2023-03-31 | 2023-07-11 | 中信银行股份有限公司 | Method and system for greatly improving performance of distributed transaction coordinator |
Non-Patent Citations (3)
Title |
---|
JIAHUI CHEN 等: "On-shelf utility mining from transaction database", ENGINEERING APPLICATIONS OF ARTIFICIAL INTELLIGENCE * |
何裕南;安虹;郭锐;梁博;: "OpenCMP:一个支持事务存储模型的多核处理器模拟器", 计算机科学, no. 01 * |
喻佳;邓芳芳;: "事务处理技术的研究综述", 科技广场, no. 08 * |
Also Published As
Publication number | Publication date |
---|---|
CN117112149B (en) | 2024-02-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101707399B (en) | Method and system for acquiring electric energy information | |
US20120072579A1 (en) | Monitoring cloud-runtime operations | |
CN112445598B (en) | Task scheduling method and device based on quartz, electronic equipment and medium | |
JP2016541056A (en) | Computer apparatus, method and apparatus for scheduling business flows | |
CN110780979B (en) | Control method and device for configuration under micro-service framework, medium and electronic equipment | |
US9104483B2 (en) | System and method for automating and scheduling remote data transfer and computation for high performance computing | |
CN111352653B (en) | System development method based on PaaS cloud platform server and server | |
CN111208992A (en) | System scheduling workflow generation method and system | |
CN101976199A (en) | Object-oriented middleware distributed system development platform | |
CN104239114A (en) | Application compiling method and device | |
CN103729742B (en) | A kind of Data Resources Management System based on SOA framework and executing model drive structure | |
CN114205230A (en) | Method, system, medium and electronic device for configuring cloud native network element | |
CN107832130A (en) | A kind of job stream scheduling of banking system performs method, apparatus and electronic equipment | |
CN113204425A (en) | Method and device for process management internal thread, electronic equipment and storage medium | |
CN111078268B (en) | Bank system business processing method, device, equipment and storage medium | |
CN116325705A (en) | Managing task flows in an edge computing environment | |
CN111147571A (en) | Distributed task scheduling method, device, system, storage medium and electronic equipment | |
CN116643854A (en) | Service arrangement method and device, flow controller and task processor | |
CN117112149B (en) | Mining area mine business process communication method, device, medium and equipment | |
WO2022087581A1 (en) | Quantifying usage of robotic processs automation related resources | |
US10725744B2 (en) | Method for adapting to blockchain and device, terminal and medium performing the same | |
CN116932168A (en) | Heterogeneous core scheduling method and device, storage medium and electronic equipment | |
CN110908644A (en) | Configuration method and device of state node, computer equipment and storage medium | |
CN114721838A (en) | Master data management method, master data management system, master data management device, electronic equipment and storage medium | |
CN112749193A (en) | Workflow processing method and device, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |