CN108549652A - Hotel's dynamic data acquisition methods, device, electronic equipment and readable storage medium storing program for executing - Google Patents

Hotel's dynamic data acquisition methods, device, electronic equipment and readable storage medium storing program for executing Download PDF

Info

Publication number
CN108549652A
CN108549652A CN201810191425.3A CN201810191425A CN108549652A CN 108549652 A CN108549652 A CN 108549652A CN 201810191425 A CN201810191425 A CN 201810191425A CN 108549652 A CN108549652 A CN 108549652A
Authority
CN
China
Prior art keywords
supplier
bit stream
hotel
mission bit
dynamic data
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
Application number
CN201810191425.3A
Other languages
Chinese (zh)
Other versions
CN108549652B (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.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology Co Ltd
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 Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201810191425.3A priority Critical patent/CN108549652B/en
Publication of CN108549652A publication Critical patent/CN108549652A/en
Application granted granted Critical
Publication of CN108549652B publication Critical patent/CN108549652B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/12Hotels or restaurants

Abstract

The present invention provides a kind of hotel's dynamic data acquisition methods, device, electronic equipment and readable storage medium storing program for executing, the method includes:The mission bit stream of at least one acquisition hotel's data is read, and judges the type of the operating status in the mission bit stream;If the operating status is preparation state, identified according to the supplier in the mission bit stream, the supplier is obtained from configuration data and identifies corresponding supplier's access parameter group;Start the corresponding task of the mission bit stream, to be based on obtaining hotel's dynamic data in the hotels supplier's access parameter Zu Cong database.It solves the problems, such as that the access procedure of supplier in first technology is complicated, less efficient, the complexity of access procedure can be simplified, improve access efficiency.

Description

Hotel's dynamic data acquisition methods, device, electronic equipment and readable storage medium storing program for executing
Technical field
The present embodiments relate to network technique field more particularly to a kind of hotel's dynamic data acquisition methods, device, electricity Sub- equipment and readable storage medium storing program for executing.
Background technology
The prosperity and development of China's tourist industry have driven the rise of hotel industry, to occur selling Hotel Products in succession Electric business.User can by the predetermined hotel room of electric business, quit the subscription of room.However, due to Hotel Products such as room inventory and prices Data variation is frequent, to which electric business needs real-time to obtain inventory and price.
In the prior art, it for the different suppliers of offer Hotel Products, is carried out respectively for the suitable of different task parameter With exploitation.Wherein, task parameters include:The frequency of pulling data, interface responding ability, batch processing ability, hotel's quantity, valence Whether lattice calculation, room inventory transparent, task time-out time, concurrent number, currency type transformation mechanism, data model, data Obtain interface etc..
As can be seen that new supplier needs to re-start software development, lead to access procedure complexity, the efficiency of supplier It is relatively low.
Invention content
A kind of hotel's dynamic data acquisition methods of present invention offer and device, are obtained with solving prior art hotel dynamic data The above problem taken.
According to the first aspect of the invention, a kind of hotel's dynamic data acquisition methods are provided, the method includes:
The mission bit stream of at least one acquisition hotel's data is read, and judges the class of the operating status in the mission bit stream Type;
If the operating status is preparation state, identified according to the supplier in the mission bit stream, from configuration data It is middle to obtain the corresponding supplier's access parameter group of supplier's mark;
Start the corresponding task of the mission bit stream, to be based on obtaining in the hotels supplier's access parameter Zu Cong database Take hotel's dynamic data.
Optionally, the mission bit stream of at least one acquisition hotel's data is read described, and judged in the mission bit stream Operating status type the step of before, further include:
It receives user to operate the configuration of supplier's access parameter group in configuration center, supplier's access parameter group is extremely Include less:Supplier's mark, supplier interface concurrent capability, single request maximum hotel number, price schema, data pull frequency Rate, types of inventory, currency type type, task maximum operation duration, data acquisition interface.
Optionally, the step of hotel's dynamic data is obtained in the database based on the hotels supplier's access parameter Zu Cong Suddenly, including:
Hotel's dynamic data is obtained according to the data pull frequency cycle.
Optionally, in the reception user the step of configuration center operates the configuration of supplier's access parameter group it Afterwards, further include:
When detecting that operation is completed in the configuration to supplier's access parameter group, appointing for the supplier is created Business information.
Optionally, the step of mission bit stream created for the supplier, including:
Supplier's mark in supplier's access parameter group is identified as the supplier of mission bit stream;
The operating status of the mission bit stream is initialized as original state;
Using current time as the creation time of the mission bit stream.
Optionally, the step of hotel's dynamic data is obtained in the database based on the hotels supplier's access parameter Zu Cong Suddenly, including:
When starting the corresponding task of the mission bit stream, change in the mission bit stream when operation starts between be current Time, and it is in operation to change the operating status in the mission bit stream;
When obtaining the success of hotel's dynamic data, it is successfully, and to change institute to change the operating status in the mission bit stream It is current time to state the end of run time in mission bit stream;
When obtaining the failure of hotel's dynamic data, the operating status changed in the mission bit stream is failure, and changes institute It is current time to state the end of run time in mission bit stream;
When the duration for obtaining hotel's dynamic data is more than preset time threshold, the operation shape in the mission bit stream is changed State is time-out, and changes the end of run time in the mission bit stream as current time.
Optionally, the method further includes:
If the operating status is time-out, and automatic when retrying switch in open state, after the preset lime, by institute The operating status for stating mission bit stream is revised as preparing, to restart the corresponding task of the mission bit stream to obtain the task Hotel's dynamic data of the corresponding supplier of information.
According to the second aspect of the invention, a kind of hotel's dynamic data acquisition device is provided, described device includes:
Mission bit stream read module for reading at least one mission bit stream for obtaining hotel's data, and judges described appoint The type of operating status in information of being engaged in;
Supplier information acquisition module, if being preparation state for the operating status, according in the mission bit stream Supplier's mark, the supplier is obtained from configuration data and identifies corresponding supplier's access parameter group;
Hotel's dynamic data acquisition module, for starting the corresponding task of the mission bit stream, to be based on the supplier Hotel's dynamic data is obtained in the hotels access parameter Zu Cong database.
Optionally, described device further includes:
Supplier information configuration module grasps the configuration of supplier's access parameter group in configuration center for receiving user Make, supplier's access parameter group includes at least:Supplier's mark, supplier interface concurrent capability, single request maximum wine Shop number, price schema, data pull frequency, types of inventory, currency type type, task maximum operation duration, data acquisition interface.
Optionally, hotel's dynamic data acquisition module, including:
Submodule is periodically acquired, for obtaining hotel's dynamic data according to the data pull frequency cycle.
Optionally, described device further includes:
Mission bit stream creation module, for when detect the configuration to supplier's access parameter group complete operation when, Create the mission bit stream for the supplier.
Optionally, the mission bit stream creation module, including:
Supplier identifies setting submodule, for regarding supplier's mark in supplier's access parameter group as task The supplier of information identifies;
Operating status initialization submodule, for the operating status of the mission bit stream to be initialized as original state;
Submodule is arranged in creation time, for using current time as the creation time of the mission bit stream.
Optionally, hotel's dynamic data acquisition module, including:
Task start submodule is used to, when the corresponding task of the startup mission bit stream, change in the mission bit stream When operation starts between be current time, and change the operating status in the mission bit stream be operation in;
Mission Success submodule, for when obtaining the success of hotel's dynamic data, changing the operation in the mission bit stream State be successfully, and change the end of run time in the mission bit stream be current time;
Mission failure submodule, for when obtaining the failure of hotel's dynamic data, changing the operation in the mission bit stream State is failure, and changes the end of run time in the mission bit stream as current time;
Task time-out submodule, for when the duration for obtaining hotel's dynamic data is more than preset time threshold, changing institute It is time-out to state the operating status in mission bit stream, and changes the end of run time in the mission bit stream as current time.
Optionally, described device further includes:
Task restarts submodule, if it is time-out for the operating status, and it is automatic when retrying switch in open state, After the preset lime, the operating status of the mission bit stream is revised as preparing, is corresponded to restarting the mission bit stream Task to obtain hotel's dynamic data of the corresponding supplier of the mission bit stream.
According to the third aspect of the invention we, a kind of electronic equipment is provided, including:
Processor, memory and it is stored in the computer journey that can be run on the memory and on the processor Sequence, which is characterized in that the processor realizes aforementioned hotel's dynamic data acquisition methods when executing described program.
According to the fourth aspect of the invention, a kind of readable storage medium storing program for executing is provided, which is characterized in that when the storage medium In instruction by electronic equipment processor execute when so that electronic equipment is able to carry out aforementioned hotel's dynamic data acquisition side Method.
An embodiment of the present invention provides a kind of hotel's dynamic data acquisition methods and device, the method includes:It reads extremely The mission bit stream of few acquisition hotel's data, and judge the type of the operating status in the mission bit stream;If the operation State is preparation state, then is identified according to the supplier in the mission bit stream, the supply trade mark is obtained from configuration data Know corresponding supplier's access parameter group;Start the corresponding task of the mission bit stream, to be based on supplier's access parameter Hotel's dynamic data is obtained in the hotels Zu Cong database.The access procedure that solves supplier in first technology is complicated, efficiency compared with Low problem can simplify the complexity of access procedure, improve access efficiency.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the present invention Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is a kind of hotel's dynamic data acquisition methods specific steps stream under system architecture provided in an embodiment of the present invention Cheng Tu;
Fig. 2 show the torsion schematic diagram between each operating status of task of the present invention;
Fig. 3 is another hotel's dynamic data acquisition methods specific steps under system architecture provided in an embodiment of the present invention Flow chart;
Fig. 4 is a kind of structure chart of hotel's dynamic data acquisition device provided in an embodiment of the present invention;
Fig. 5 is the structure chart of another hotel dynamic data acquisition device provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.
Embodiment one
Referring to Fig.1, it illustrates a kind of step flow charts of hotel's dynamic data acquisition methods, including:
Step 101, the mission bit stream of at least one acquisition hotel's data is read, and judges the operation in the mission bit stream The type of state.
Wherein, mission bit stream indicates the operating condition of acquisition hotel's data task of supplier.In practical applications, when with When configuration center configures the access parameter group for completing supplier, processor can read the configuration information, to generation pair at family The mission bit stream answered.It is appreciated that the mission bit stream is always present in caching.When user deletes the supplier in configuration center Access parameter group configuration when, processor can be removed from the cache corresponding mission bit stream.
Specifically, mission bit stream includes at least:At the end of task identification, supplier's mark, job start time, task Between, the task creation time, operating status etc.
Task identification is the unique mark of task, for different task to be marked.It is appreciated that the lattice of task identification Formula can be set according to practical application scene, and the embodiment of the present invention does not limit it.
Supplier is identified as the mark of the corresponding supplier of task, the access parameter group for obtaining the supplier.In reality In the application of border, task has different tasks for supplier, different suppliers part.
Job start time is the execution time started of task, is set according to system time when task start is executed.Appoint The business time started can be used for judging whether current task is overtime.If for example, a job start time is 13:30, and overtime threshold Value is 30 minutes, then when 14:It is also not carried out completion when 00, then judges task time-out.
Job end time is the execution end time of task, is set according to system time at the end of task execution.It needs Cause to execute failure, execute time-out and represent to execute and terminate it is noted that mistake occur in task execution success, execution, at this point, Will the current time in system as job end time.It is appreciated that job end time can instruct execute task next time.Example Such as, it when mistake, which occurs, in task execution to lead to the failure, can be restarted after the designated time period after job end time The task.
The task creation time can only be set once a specified supplier.When task is suspended, the task is not It can be deleted.
Operating status is the current operating conditions of the task, is included at least:Original state, prepare state, state in operation, Success status, status of fail, timeout mode.It is appreciated that can mutually be converted between above-mentioned six kinds of operating statuses.
As shown in Fig. 2, when the access parameter group of supplier configures completion, the corresponding task of the supplier is created, and It is added to caching, at this point, the operating status of the task is initialized as original state;After the task is ready to, the task Operating status torsion is preparation state, to prepare to start operation;When the task start is run, the operating status of the task is turned round Switch to state in operation, until end of run;When task run success, the operating status torsion of the task is successful shape State;During the task run when failure, which terminates, and operating status torsion is status of fail;When the task is transported When row time-out, which terminates, and the operating status torsion of the task is timeout mode;When operating status is success or failure When, it is preparation state according to the torsion of data pull frequency;It is preparation shape according to the torsion of overtime frequency when operating status is time-out State.
It is appreciated that the embodiment of the present invention periodically reads the operating status of each task, only subject to task status When standby state, start the task;When task status is state in original state, status of fail, timeout mode, operation, success shape When state, the task status of the task is waited for be reversed into start the task when preparing state.
Step 102, it if the operating status is preparation state, is identified according to the supplier in the mission bit stream, from The supplier is obtained in configuration data identifies corresponding supplier's access parameter group.
In practical applications, when user is in configuration of the configuration center completion to the access parameter group of supplier, the supply The access parameter group of quotient becomes the configuration data of system, is added in configuration database.It is appreciated that supplier identifies conduct The keyword of each supplier's configuration data, for retrieval.
To which when the operating status of a task is preparation state, search key is to be somebody's turn to do from above-mentioned configuration database The configuration data of supplier's mark in operation information, the task of obtaining correspond to the access parameter group of supplier.
Wherein, supplier's access parameter group includes at least:Supplier's mark, supplier interface concurrent capability, single request Maximum hotel's number, price schema, data pull frequency, types of inventory, currency type type, task maximum operation duration, data acquisition Interface etc..
Supplier identifies supplier's mark in corresponding operation information, is referred in step 101 identify about supplier Detailed description.
Supplier interface concurrent capability represents the maximum thread for being carried out at the same time data pull.
Single request maximum hotel number corresponds to maximum hotel's number that batch obtains.It in practical applications, can be disposable Obtain the dynamic data in multiple hotels.Single request maximum hotel number limits the primary hotel's number that can at most obtain.By In single request maximum hotel, number is bigger, and calculating speed is smaller, and single request maximum hotel number is smaller, and calculating speed is bigger, from And need to take an equalization point among hotel's number and calculating speed, to obtain wine as more as possible under the premise of ensureing calculating speed The data in shop.
Calculation of the price schema to dutiable value.For different suppliers, the calculation of price mould on underlying price Formula is different, and hence for same Hotel Products, obtained price also differs.
Data pull frequency is to obtain the period of data.For example, when data pull frequency is 1 small, then per every other hour Pull a data.It is appreciated that data pull frequency is higher, the dynamic data accuracy of acquisition is higher;Data pull frequency Lower, the dynamic data accuracy of acquisition is lower.In practical applications, supplier is restricted to data pull frequency, in the limit Under the conditions of system, higher data pull frequency can be set.
Types of inventory includes that can sell and two kinds of particular number.In practical applications, corresponding not specified quantity can be sold.In reality In, when types of inventory is particular number, inventory's maximum value of supplier numerical value;It, can when types of inventory is that can sell To set types of inventory to particular value, to be distinguished with particular number.
Currency type type corresponds to the billing settlement mode of the supplier, to judge whether to need to carry out currency type conversion.For example, When currency type type is dollar, if in China, need dollar being converted to RMB.
Task maximum operation duration be task normal operation maximum time, with judge current task operation duration whether It is abnormal.If the current operation duration of task is more than task maximum operation duration, task run time-out terminates the task;If The current operation duration of task is less than task maximum operation duration, then the task run is normal, continues to run with the task.
Data acquisition interface represents the distinct interface for obtaining data, from different position acquisition data.To directly affect Obtain the efficiency of data.
Step 103, start the corresponding task of the mission bit stream, to be based on the hotels supplier's access parameter Zu Cong number According to acquisition hotel's dynamic data in library.
Wherein, hotel's database can be the corresponding hotel's database of supplier, or the database in hotel oneself. For example, after hotel and supplier sign a contract, based on contract the product data in hotel are imported to hotel's data of supplier In library, so as to obtain hotel's dynamic data directly from hotel's database of supplier;It is closed when hotel and supplier sign With after, the product data in hotel are not imported in hotel's database of supplier, to need the data from hotel oneself Dynamic data is obtained in library.
It is appreciated that hotel's dynamic data includes at least:Various types of room quantitys in stock and price etc..
In conclusion an embodiment of the present invention provides a kind of hotel's dynamic data acquisition methods, the method includes:It reads It is at least one to obtain the mission bit stream of hotel's data, and judge the type of the operating status in the mission bit stream;If the fortune Row state is preparation state, then is identified according to the supplier in the mission bit stream, the supplier is obtained from configuration data Identify corresponding supplier's access parameter group;Start the corresponding task of the mission bit stream, ginseng is accessed to be based on the supplier Array obtains hotel's dynamic data from hotel's database.Solves access procedure complexity, the efficiency of supplier in first technology Relatively low problem can simplify the complexity of access procedure, improve access efficiency.
Embodiment two
The embodiment of the present application is described optionally hotel's dynamic data acquisition methods from the level of system architecture.
With reference to Fig. 3, it illustrates the specific steps flow charts of another hotel's dynamic data acquisition methods.
Step 201, it receives user to operate the configuration of supplier's access parameter group in configuration center, supplier's access Parameter group includes at least:Supplier's mark, supplier interface concurrent capability, single request maximum hotel number, price schema, data Pull frequency, types of inventory, currency type type, task maximum operation duration, data acquisition interface.
In practical applications, the interface of configuration center can be provided, include to supplier's mark, supplier interface on interface Concurrent capability, single request maximum hotel number, price schema, data pull frequency, types of inventory, currency type type, task maximum The configuration of operation duration, data acquisition interface.
Wherein, supplier's mark, supplier interface concurrent capability, single request maximum hotel number, data pull frequency, library Deposit type, task maximum operation duration is numeric type, allow user directly input.It, can be defeated in order to improve user experience Enter position display format, content presentation information, enables a user to accurately enter data.
Price schema, currency type type, data acquisition interface are enumeration type, can be by modes such as drop-down menus for user Selection.
Information is custom-configured it is appreciated that can also provide, to which user can be realized with self-defined access parameter to supplying Answer the flexible configuration of quotient's access parameter.
Each access parameter is referred to the detailed description in step 102, and details are not described herein.
Step 202, it when detecting that operation is completed in the configuration to supplier's access parameter group, creates and is directed to the confession Answer the mission bit stream of quotient.
Wherein, configuration completion operation can be to the operation of reply designated button.For example, being carried on configuration center interface Button is handed over, after user configuration is completed, clicks submitting button, then it represents that user completes configuration operation to access parameter group.
After configuration is completed, supplier's access parameter group of user configuration is added to configuration data in the form of model In library, and corresponding mission bit stream is created in the system cache.
It is appreciated that the mission bit stream is always present in system cache, until corresponding supplier's access parameter group from It is deleted on configuration center interface, and deletes corresponding configuration from configuration database.
Optionally, in another embodiment of the invention, above-mentioned steps 202 include sub-step 2021 to 2023:
Supplier in supplier's access parameter group is identified the supply trade mark as mission bit stream by sub-step 2021 Know.
It is appreciated that supplier's access parameter group and mission bit stream establish correspondence by supplier's mark.
Specifically, first, mission bit stream is created in the system cache;Then, the initiation parameter of the mission bit stream is set, Including:Set supplier's mark of mission bit stream to the mark of the supplier in supplier's access parameter group.
The operating status of the mission bit stream is initialized as original state by sub-step 2022.
Specifically, the initiation parameter of the mission bit stream is set, further includes:The operating status of initialization task information.
Wherein, operating status is centrifugal pump, can be set by enumerated value.For example, 0- original states, 1- prepares shape State, state in 2- operations, 3- success status, 4- status of fail, 5- timeout modes.
It is appreciated that in practical applications, the enumerated value that other forms may be used represents operating status, and the present invention is implemented Example does not limit it.
Sub-step 2023, using current time as the creation time of the mission bit stream.
Wherein, current time is the current time in system.In practical applications, call function direct access systems can be passed through Current time.
Step 203, the mission bit stream of at least one acquisition hotel's data is read, and judges the operation in the mission bit stream The type of state.
The step is referred to the detailed description of step 101, and details are not described herein.
Step 204, it if the operating status is preparation state, is identified according to the supplier in the mission bit stream, from The supplier is obtained in configuration data identifies corresponding supplier's access parameter group.
The step is referred to the detailed description of step 102, and details are not described herein.
Step 205, start the corresponding task of the mission bit stream, to be based on the hotels supplier's access parameter Zu Cong number According to acquisition hotel's dynamic data in library.
The step is referred to the detailed description of step 103, and details are not described herein.
Optionally, in another embodiment of the invention, above-mentioned steps 205 include sub-step 2051:
Sub-step 2051 obtains hotel's dynamic data according to the data pull frequency cycle.
Specifically, first, supplier's access parameter group is obtained from configuration database according to supplier's access parameter;So Afterwards, data pull frequency is extracted from supplier's access parameter group;Finally, hotel is obtained according to the data pull frequency cycle Dynamic data.
Optionally, in another embodiment of the invention, above-mentioned steps 205 include sub-step 2052 to sub-step 2056:
Sub-step 2052, when the corresponding task of the startup mission bit stream, the operation changed in the mission bit stream is opened Time beginning is current time, and it is in operation to change the operating status in the mission bit stream.
Specifically, start task according to data pull frequency, and be current time, operating status between changing when operation starts For in operation.
For example, the current time in system is 13 when a task is to be initiated:15, then when operation starts between be 13:15;According to sub-step To the detailed description of operating status in 2022, operating status is revised as 2 (in operations).
Sub-step 2053, when obtaining the success of hotel's dynamic data, change operating status in the mission bit stream be at Work(, and the end of run time in the mission bit stream is changed as current time.
For example, the current time in system obtained when task execution success is 13:35, then the end of run time is 13:35; According to, to the detailed description of operating status, operating status is revised as 3 (successes) in sub-step 2022.
Sub-step 2054, when obtaining the failure of hotel's dynamic data, it is to lose to change the operating status in the mission bit stream It loses, and changes the end of run time in the mission bit stream as current time.
For example, the current time in system obtained when task execution fails is 13:20, then the end of run time is 13:20; According to, to the detailed description of operating status, operating status is revised as 4 (failures) in sub-step 2022.
In practical applications, it leads to the failure due to various reasons during task execution, then it can alert notice exploit person Member is to solve the problems, such as.
Sub-step 2055 changes the task letter when the duration for obtaining hotel's dynamic data is more than preset time threshold Operating status in breath is time-out, and changes the end of run time in the mission bit stream as current time.
For example, the current time in system obtained when task execution time-out is 13:40, then the end of run time is 13:40; According to, to the detailed description of operating status, operating status is revised as 5 (time-out) in sub-step 2022.
In practical applications, time-out may be caused due to inadequate resource etc., developer can be notified to handle. Developer retries switch automatically by opening first, checks whether to run succeeded to retry again.If running succeeded, not into Row processing;If executing failure, positioning problems are carried out, check whether to configure problematic etc..
Sub-step 2056, if the operating status is time-out, and it is automatic when retrying switch in open state, when default Between after, the operating status of the mission bit stream is revised as preparing, with restart the corresponding task of the mission bit stream with Obtain hotel's dynamic data of the corresponding supplier of the mission bit stream.
Wherein, start and retry switch acquiescence closing, user can open manually.
Preset time period can be set according to practical application scene, usually less than data pull frequency.For example, if data are drawn It is 1 hour to take frequency, then can set overtime torsional frequency to 30 minutes, to will be run later within 30 minutes in operation time-out It is preparation state that state is reversed from timeout mode, to be restarted.
Specifically, the corresponding task of the mission bit stream is restarted to obtain the corresponding supplier's of the mission bit stream The step of hotel's dynamic data, is referred to the detailed description of step 103.
In conclusion an embodiment of the present invention provides a kind of hotel's dynamic data acquisition methods, the method includes:It reads It is at least one to obtain the mission bit stream of hotel's data, and judge the type of the operating status in the mission bit stream;If the fortune Row state is preparation state, then is identified according to the supplier in the mission bit stream, the supplier is obtained from configuration data Identify corresponding supplier's access parameter group;Start the corresponding task of the mission bit stream, ginseng is accessed to be based on the supplier Array obtains hotel's dynamic data from hotel's database.Solves access procedure complexity, the efficiency of supplier in first technology Relatively low problem can simplify the complexity of access procedure, improve access efficiency.Further, it is also possible to be grasped according to the configuration of user Task is automatically created, to further increase access efficiency.
Embodiment three
It is specific as follows it illustrates a kind of structure chart of hotel's dynamic data acquisition device with reference to Fig. 4.
Mission bit stream read module 301, for reading at least one mission bit stream for obtaining hotel's data, and described in judgement The type of operating status in mission bit stream.
Supplier information acquisition module 302, if being preparation state for the operating status, according to the mission bit stream In supplier's mark, the supplier is obtained from configuration data and identifies corresponding supplier's access parameter group.
Hotel's dynamic data acquisition module 303, for starting the corresponding task of the mission bit stream, to be based on the supply Hotel's dynamic data is obtained in the hotels quotient access parameter Zu Cong database.
In conclusion an embodiment of the present invention provides a kind of hotel's dynamic data acquisition device, described device includes:Task Information reading module, the mission bit stream for reading at least one acquisition hotel's data, and judge the fortune in the mission bit stream The type of row state;Supplier information acquisition module is believed if being preparation state for the operating status according to the task Supplier's mark in breath, the supplier is obtained from configuration data and identifies corresponding supplier's access parameter group;Hotel is dynamic State data acquisition module, for starting the corresponding task of the mission bit stream, to be based on supplier's access parameter group from wine Hotel's dynamic data is obtained in the database of shop.The access procedure that solves supplier in first technology is complicated, less efficient asks Topic can simplify the complexity of access procedure, improve access efficiency.
Example IV
It is specific as follows it illustrates the structure chart of another hotel's dynamic data acquisition device with reference to Fig. 5.
Supplier information configuration module 401, for receiving configuration of the user in configuration center to supplier's access parameter group Operation, supplier's access parameter group include at least:Supplier's mark, supplier interface concurrent capability, single request are maximum Hotel's number, price schema, data pull frequency, types of inventory, currency type type, task maximum operation duration, data acquisition interface.
Mission bit stream creation module 402 detects that operation is completed in the configuration to supplier's access parameter group for working as When, create the mission bit stream for the supplier.
Mission bit stream read module 403, for reading at least one mission bit stream for obtaining hotel's data, and described in judgement The type of operating status in mission bit stream.
Supplier information acquisition module 404, if being preparation state for the operating status, according to the mission bit stream In supplier's mark, the supplier is obtained from configuration data and identifies corresponding supplier's access parameter group.
Hotel's dynamic data acquisition module 405, for starting the corresponding task of the mission bit stream, to be based on the supply Hotel's dynamic data is obtained in the hotels quotient access parameter Zu Cong database.
Optionally, in another embodiment of the invention, above-mentioned mission bit stream creation module 402 includes:
Supplier identifies setting submodule, for regarding supplier's mark in supplier's access parameter group as task The supplier of information identifies.
Operating status initialization submodule, for the operating status of the mission bit stream to be initialized as original state.
Submodule is arranged in creation time, for using current time as the creation time of the mission bit stream.
Optionally, in another embodiment of the invention, above-mentioned hotel's dynamic data acquisition module 405, including:
Submodule is periodically acquired, for obtaining hotel's dynamic data according to the data pull frequency cycle.
Optionally, in another embodiment of the invention, above-mentioned hotel's dynamic data acquisition module 405, including:
Task start submodule is used to, when the corresponding task of the startup mission bit stream, change in the mission bit stream When operation starts between be current time, and change the operating status in the mission bit stream be operation in.
Mission Success submodule, for when obtaining the success of hotel's dynamic data, changing the operation in the mission bit stream State be successfully, and change the end of run time in the mission bit stream be current time.
Mission failure submodule, for when obtaining the failure of hotel's dynamic data, changing the operation in the mission bit stream State is failure, and changes the end of run time in the mission bit stream as current time.
Task time-out submodule, for when the duration for obtaining hotel's dynamic data is more than preset time threshold, changing institute It is time-out to state the operating status in mission bit stream, and changes the end of run time in the mission bit stream as current time.
Task restarts submodule, if it is time-out for the operating status, and it is automatic when retrying switch in open state, After the preset lime, the operating status of the mission bit stream is revised as preparing, is corresponded to restarting the mission bit stream Task to obtain hotel's dynamic data of the corresponding supplier of the mission bit stream.
In conclusion an embodiment of the present invention provides a kind of hotel's dynamic data acquisition device, described device includes:Supply Quotient's information collocation module operates the configuration of supplier's access parameter group in configuration center for receiving user, the supplier Access parameter group includes at least:Supplier's mark, supplier interface concurrent capability, single request maximum hotel number, price schema, Data pull frequency, types of inventory, currency type type, task maximum operation duration, data acquisition interface;Mission bit stream creates mould Block, for when detecting that operation is completed in the configuration to supplier's access parameter group, creating appointing for the supplier Business information;Mission bit stream read module, the mission bit stream for reading at least one acquisition hotel's data, and judge the task The type of operating status in information;Supplier information acquisition module, if being preparation state, basis for the operating status Supplier's mark in the mission bit stream, the supplier is obtained from configuration data and identifies corresponding supplier's access parameter Group;Hotel's dynamic data acquisition module accesses ginseng for starting the corresponding task of the mission bit stream to be based on the supplier Array obtains hotel's dynamic data from hotel's database.Solves access procedure complexity, the efficiency of supplier in first technology The access parameter of different suppliers can be arranged by configuring, simplify the complexity of access procedure, improve for relatively low problem Access efficiency.Further, it is also possible to task be automatically created according to the configuration of user operation, to further increase access efficiency.
The embodiment of the present invention additionally provides a kind of electronic equipment, including:Processor, memory and it is stored in the storage On device and the computer program that can run on the processor, the processor realize previous embodiment when executing described program Hotel's dynamic data acquisition methods.
The embodiment of the present invention additionally provides a kind of readable storage medium storing program for executing, when the instruction in the storage medium is by electronic equipment Processor execute when so that electronic equipment is able to carry out hotel's dynamic data acquisition methods of previous embodiment.
For device embodiments, since it is basically similar to the method embodiment, so fairly simple, the correlation of description Place illustrates referring to the part of embodiment of the method.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with teaching based on this.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that can utilize various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect Shield the present invention claims the more features of feature than being expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific implementation mode are expressly incorporated in the specific implementation mode, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment Change and they are arranged in the one or more equipment different from the embodiment.It can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it may be used any Combination is disclosed to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, abstract and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation It replaces.
The all parts embodiment of the present invention can be with hardware realization, or to run on one or more processors Software module realize, or realized with combination thereof.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (DSP) realize that hotel's dynamic data according to the ... of the embodiment of the present invention obtains in equipment Some or all components some or all functions.The present invention is also implemented as executing side as described herein Some or all equipment or program of device of method.The program of such realization present invention can be stored in computer can It reads on medium, or can be with the form of one or more signal.Such signal can be downloaded from internet website It obtains, either provided on carrier signal or provides in any other forms.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference mark between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be by the same hardware branch To embody.The use of word first, second, and third does not indicate that any sequence.These words can be explained and be run after fame Claim.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention All any modification, equivalent and improvement etc., should all be included in the protection scope of the present invention made by within refreshing and principle.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (10)

1. a kind of hotel's dynamic data acquisition methods, which is characterized in that the method includes:
The mission bit stream of at least one acquisition hotel's data is read, and judges the type of the operating status in the mission bit stream;
If the operating status is preparation state, is identified according to the supplier in the mission bit stream, obtained from configuration data The supplier is taken to identify corresponding supplier's access parameter group;
Start the corresponding task of the mission bit stream, to be based on obtaining wine in the hotels supplier's access parameter Zu Cong database Shop dynamic data.
2. according to the method described in claim 1, it is characterized in that, reading at least one the obtaining hotel's data of the task described Information, and before the step of judging the type of operating status in the mission bit stream, further include:
It receives user to operate the configuration of supplier's access parameter group in configuration center, supplier's access parameter group is at least wrapped It includes:Supplier's mark, supplier interface concurrent capability, single request maximum hotel number, price schema, data pull frequency, library Deposit type, currency type type, task maximum operation duration, data acquisition interface.
3. according to the method described in claim 2, it is characterized in that, described be based on the hotels supplier's access parameter Zu Cong number According to the step of obtaining hotel's dynamic data in library, including:
Hotel's dynamic data is obtained according to the data pull frequency cycle.
4. according to the method described in claim 2, it is characterized in that, being accessed to supplier in configuration center in the reception user After the step of configuration operation of parameter group, further include:
When detecting that operation is completed in the configuration to supplier's access parameter group, creating for the supplier for task is believed Breath.
5. according to the method described in claim 4, it is characterized in that, the step for creating the mission bit stream for the supplier Suddenly, including:
Supplier's mark in supplier's access parameter group is identified as the supplier of mission bit stream;
The operating status of the mission bit stream is initialized as original state;
Using current time as the creation time of the mission bit stream.
6. according to the method described in claim 5, it is characterized in that, described be based on the hotels supplier's access parameter Zu Cong number According to the step of obtaining hotel's dynamic data in library, including:
When starting the corresponding task of the mission bit stream, change in the mission bit stream when operation starts between when being current Between, and it is in operation to change the operating status in the mission bit stream;
When obtain hotel's dynamic data success when, change the operating status in the mission bit stream be successfully, and change described in times The end of run time in information of being engaged in is current time;
When obtaining the failure of hotel's dynamic data, it is failure to change the operating status in the mission bit stream, and changes described appoint The end of run time in information of being engaged in is current time;
When the duration for obtaining hotel's dynamic data is more than preset time threshold, the operating status changed in the mission bit stream is Time-out, and the end of run time in the mission bit stream is changed as current time.
7. according to the method described in claim 6, it is characterized in that, the method further includes:
If the operating status is time-out, and automatic when retrying switch in open state, after the preset lime, described will appoint The operating status of business information is revised as preparing, to restart the corresponding task of the mission bit stream to obtain the mission bit stream Hotel's dynamic data of corresponding supplier.
8. a kind of hotel's dynamic data acquisition device, which is characterized in that described device includes:
Mission bit stream read module, the mission bit stream for reading at least one acquisition hotel's data, and judge the task letter The type of operating status in breath;
Supplier information acquisition module, if being preparation state for the operating status, according to the confession in the mission bit stream It answers trade mark to know, the supplier is obtained from configuration data and identifies corresponding supplier's access parameter group;
Hotel's dynamic data acquisition module is accessed for starting the corresponding task of the mission bit stream with being based on the supplier Parameter group obtains hotel's dynamic data from hotel's database.
9. a kind of electronic equipment, which is characterized in that including:
Processor, memory and it is stored in the computer program that can be run on the memory and on the processor, It is characterized in that, the processor realizes hotel's dynamic as described in one or more in claim 1-7 when executing described program Data capture method.
10. a kind of readable storage medium storing program for executing, which is characterized in that when the instruction in the storage medium is held by the processor of electronic equipment When row so that electronic equipment is able to carry out hotel's dynamic data as described in one or more in claim to a method 1-7 and obtains Method.
CN201810191425.3A 2018-03-08 2018-03-08 Hotel dynamic data acquisition method and device, electronic equipment and readable storage medium Active CN108549652B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810191425.3A CN108549652B (en) 2018-03-08 2018-03-08 Hotel dynamic data acquisition method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810191425.3A CN108549652B (en) 2018-03-08 2018-03-08 Hotel dynamic data acquisition method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN108549652A true CN108549652A (en) 2018-09-18
CN108549652B CN108549652B (en) 2021-10-29

Family

ID=63515895

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810191425.3A Active CN108549652B (en) 2018-03-08 2018-03-08 Hotel dynamic data acquisition method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN108549652B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112766768A (en) * 2021-01-26 2021-05-07 云账户技术(天津)有限公司 Contract flow management method and device, electronic equipment and readable storage medium
CN113079046A (en) * 2021-03-26 2021-07-06 北京百度网讯科技有限公司 Data access method and device, electronic equipment and medium
CN117194438A (en) * 2023-11-07 2023-12-08 苏州思客信息技术有限公司 Fusion method and system for parallel query time consumption of hotel multi-provider resources

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101103336A (en) * 2005-01-13 2008-01-09 皇家飞利浦电子股份有限公司 Data processing system and method of task scheduling
US20090013389A1 (en) * 2007-07-06 2009-01-08 Perry Pintzow Swifttrac job tracking service with geospatial capability
CN101840432A (en) * 2010-05-11 2010-09-22 同方知网(北京)技术有限公司 Data mining device based on Deep Web deep dynamic data and method thereof
CN101853182A (en) * 2010-05-05 2010-10-06 中兴通讯股份有限公司 Task execution method and device based on database
CN101887381A (en) * 2010-06-22 2010-11-17 北京伟库电子商务科技有限公司 Method and device for configuring timing tasks based on Quartz frame
CN102567493A (en) * 2011-12-22 2012-07-11 深圳市同洲视讯传媒有限公司 Data report system and report generation method with dynamic data source
US20130085881A1 (en) * 2011-10-01 2013-04-04 Panzara Inc. Mobile and Web Commerce Platform for delivery of Business Information and Service Status Management.
CN103093068A (en) * 2011-10-27 2013-05-08 腾讯科技(深圳)有限公司 Method and client side for acquiring task data
US20140118400A1 (en) * 2012-10-25 2014-05-01 Asustek Computer Inc. Method of automatic updating and filtering information
CN104808770A (en) * 2015-04-23 2015-07-29 南京大学 Data center energy consumption management method and system based on dynamic frequency modulation
CN105069135A (en) * 2015-08-18 2015-11-18 携程计算机技术(上海)有限公司 Data crawling method and system of OTA website
CN105930389A (en) * 2016-04-14 2016-09-07 北京京东尚科信息技术有限公司 Method and system for transferring data

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100037234A1 (en) * 2005-01-13 2010-02-11 Koninklijke Philips Electronics, N.V. Data processing system and method of task scheduling
CN101103336A (en) * 2005-01-13 2008-01-09 皇家飞利浦电子股份有限公司 Data processing system and method of task scheduling
US20090013389A1 (en) * 2007-07-06 2009-01-08 Perry Pintzow Swifttrac job tracking service with geospatial capability
CN101853182A (en) * 2010-05-05 2010-10-06 中兴通讯股份有限公司 Task execution method and device based on database
CN101840432A (en) * 2010-05-11 2010-09-22 同方知网(北京)技术有限公司 Data mining device based on Deep Web deep dynamic data and method thereof
CN101887381A (en) * 2010-06-22 2010-11-17 北京伟库电子商务科技有限公司 Method and device for configuring timing tasks based on Quartz frame
US20130085881A1 (en) * 2011-10-01 2013-04-04 Panzara Inc. Mobile and Web Commerce Platform for delivery of Business Information and Service Status Management.
CN103093068A (en) * 2011-10-27 2013-05-08 腾讯科技(深圳)有限公司 Method and client side for acquiring task data
CN102567493A (en) * 2011-12-22 2012-07-11 深圳市同洲视讯传媒有限公司 Data report system and report generation method with dynamic data source
US20140118400A1 (en) * 2012-10-25 2014-05-01 Asustek Computer Inc. Method of automatic updating and filtering information
CN104808770A (en) * 2015-04-23 2015-07-29 南京大学 Data center energy consumption management method and system based on dynamic frequency modulation
CN105069135A (en) * 2015-08-18 2015-11-18 携程计算机技术(上海)有限公司 Data crawling method and system of OTA website
CN105930389A (en) * 2016-04-14 2016-09-07 北京京东尚科信息技术有限公司 Method and system for transferring data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
曹洁等: "运用RFID技术获取动态OD数据的方法", 《小型微型计算机系统》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112766768A (en) * 2021-01-26 2021-05-07 云账户技术(天津)有限公司 Contract flow management method and device, electronic equipment and readable storage medium
CN113079046A (en) * 2021-03-26 2021-07-06 北京百度网讯科技有限公司 Data access method and device, electronic equipment and medium
CN117194438A (en) * 2023-11-07 2023-12-08 苏州思客信息技术有限公司 Fusion method and system for parallel query time consumption of hotel multi-provider resources
CN117194438B (en) * 2023-11-07 2024-01-23 苏州思客信息技术有限公司 Fusion method and system for parallel query time consumption of hotel multi-provider resources

Also Published As

Publication number Publication date
CN108549652B (en) 2021-10-29

Similar Documents

Publication Publication Date Title
US8473912B2 (en) Computer readable medium, system and method of debugging software applications modelled using flow paradigms
CN105868391B (en) A kind of method and apparatus of log recording
CN108549652A (en) Hotel's dynamic data acquisition methods, device, electronic equipment and readable storage medium storing program for executing
US7533339B2 (en) System and method for providing user help
RU2573203C2 (en) Method of operating portable terminal
US11782820B2 (en) Debugging an executable control flow graph that specifies control flow
TW200417221A (en) Methods and apparatus for dependency-based impact simulation and vulnerability analysis
US20140244315A1 (en) Systems and methods for managing mobile device life cycle
EP1969469A2 (en) System and method for automated and assisted resolution of it incidents
WO2011043883A1 (en) Systems and methods to process a request received at an application program interface
CA2773721A1 (en) Code validation using content assist
CN108647141A (en) Automatic test approach, device, computer-readable medium and electronic equipment
US10877778B2 (en) Sequence detection and automation for complex portal environments
WO2016204928A1 (en) Interfaces for connected software applications in automation environments
CN101901177A (en) Multi-core microprocessor and debug method thereof
US7228405B2 (en) Methods and apparatuses for allowing users to dynamically interact with configurable devices or hardware during a preboot stage
CN106775855A (en) A kind of flash programmings method based on eclipse, plug-in unit and system
WO2024022399A1 (en) Ia robot monitoring method and apparatus based on rpa and ai
CN102999604B (en) The detection method and device of a kind of database performance
US20220164703A1 (en) Model acceptance determination support system and model acceptance determination support method
CN109062586A (en) The burning management method and device of programming system and its client
CN108280640A (en) The payment result page shows method and device
JP4811678B2 (en) PLC simulator apparatus, simulation program, and recording medium on which the program is recorded
CN109634796A (en) A kind of method for diagnosing faults of computer, apparatus and system
US20220342938A1 (en) Bot program for monitoring

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