CN102830967B - Catering cloud platform system - Google Patents

Catering cloud platform system Download PDF

Info

Publication number
CN102830967B
CN102830967B CN201210274599.9A CN201210274599A CN102830967B CN 102830967 B CN102830967 B CN 102830967B CN 201210274599 A CN201210274599 A CN 201210274599A CN 102830967 B CN102830967 B CN 102830967B
Authority
CN
China
Prior art keywords
interface
equipment
state
data
thread
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.)
Active
Application number
CN201210274599.9A
Other languages
Chinese (zh)
Other versions
CN102830967A (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.)
China Electric Fufu Mdt Infotech Ltd
Original Assignee
Fujian Fujitsu Communication Software 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 Fujian Fujitsu Communication Software Co Ltd filed Critical Fujian Fujitsu Communication Software Co Ltd
Priority to CN201210274599.9A priority Critical patent/CN102830967B/en
Publication of CN102830967A publication Critical patent/CN102830967A/en
Application granted granted Critical
Publication of CN102830967B publication Critical patent/CN102830967B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Abstract

The invention provides a catering cloud platform system which comprises a business logic unit, a user interface, a stored function set and an interface unit for managing devices. The business logic unit reads data, to be sent to the interface unit, from the user interface and writes the data into a database. The data from the business logic unit are packed by stored functions and are converted into the format recognizable to the devices. The interface unit manages the stored function set and the devices by multithreading asynchronous operation. The devices are communicated with the interface unit, and data flows between the business logic unit and the interface unit are interacted by the stored functions. Output information can be revised by revising the stored functions without affecting operation of business logic. Performance extension of the catering cloud platform system is simple and convenient, and switching off any interface processing unit imparts no affection to operation of other interface processing units and the system. The catering cloud platform system is compatible with a great quantity of existing devices.

Description

A kind of food and drink cloud plateform system
[technical field]
The present invention relates to a kind of cloud plateform system, particularly a kind of food and drink cloud plateform system.
[background technology]
Existing food management system many employings standalone version, it cannot realize the service access of multi-user, and there is system resource repeated construction, the shortcomings such as different system standard difference is large.
The food management system of the online version of existing minority is also only for certain food and drink group.Most system is also unrealized is a standardized platform service by the shift in demand of catering information, therefore architectural framework has larger difference with the present invention.
Along with popularizing on a large scale of the Internet and emerging in large numbers of various Internet service, originally for the LAN-ignorant program pattern that the scheme solving a certain informationization application will be taken leave of gradually based on individual terminal, change to the platform service pattern (i.e. SaaS platform service pattern) based on the Internet.Described SaaS (English full name: Software-as-a-Service, namely software serve) be a kind of pattern that software is provided by Internet, user without the need to buying software, but rents the software of sing on web to provider, carry out management enterprise business activities.With the popularization of SaaS platform service, between platform and user, need a good interface.Develop in the SaaS cloud service platform process of catering industry at us, we find to there is following requirement for the interface of catering industry SaaS platform: 1) system performance requirements is high, need can to support Multi-task Concurrency in the peak traffic phase to fall list, avoid data stacking.2) system flexibility requires high, ensure to add users ' individualized requirement under the prerequisite run for system 7*24 hour.3) system compatibility requires high, under multiplexing client's existing equipment prerequisite to greatest extent, add new equipment scheme.And the interface of existing SaaS platform service pattern cannot meet above-mentioned requirements.Equipment of mentioning in the present invention is wireless POS printing device or wired POS printing device or Short Message Service Gateway
Existing minority proposes the system just overall food and drink cloud system framework of simple description of food and drink cloud concept, rare realization.For the existing food and drink cloud system realized, can see, the equipment of its interface and access does not also possess flexibility, and equipment many employings special equipment of access.Meanwhile, integration section service logic on the equipment of access.The equipment of core business logic and access is not peeled off, there will be following problem:
1. the equipment of access carries service logic, and when user's request variable effect is to service logic on equipment time, the application on equipment also needs to modify;
2., for businessman, while accepting SaaS pattern, it is desirable to obtain more professional service by minimum cost.And adopt special equipment, and for the existing equipment of businessman, cannot be compatible very well, and also waste is caused to social resources;
3. bearer service logic on equipment, when food and drink cloud system widespread adoption, when the equipment of access food and drink cloud system arrives certain scale, the process of food and drink cloud system is from the service logic of access device, and aspect of performance needs more considerations, such as, when reaching the systematic function upper limit, and at this moment system cannot flexibly according to unit scale expansion, then systematic function will sharply decline, and causes the problems such as system cloud gray model instability.
[summary of the invention]
The technical problem to be solved in the present invention, be to provide a kind of food and drink cloud plateform system, service logic is separated by it from equipment, and system is more stable, and interface unit can compatible plurality of devices, and extensibility is good.
The present invention is achieved in that
A kind of food and drink cloud plateform system, comprise service logic unit and the user interface for receiving user operation, described system also comprises storage function collection and the interface unit for management equipment; Described service logic unit reads needing the data sent to interface unit from user interface, and writes in a database; Described storage function collection is the set of multiple storage function;
The storage function that described storage function is concentrated encapsulates the data from service logic unit, the form enabling described data be converted to described equipment to identify; When user needs Update Table form, or when increasing traffic data type, only need upgrade described storage function;
Described interface unit manages described storage function collection and equipment by multithreading asynchronous operation, described interface unit comprises at least one interface processing unit for management equipment, each described interface processing unit all provides a database poll thread, a state processing thread and an equipment message receiving thread;
Described multithreading asynchronous operation comprises:
Storage function described in the thread dispatching of described database poll obtains the data exported to equipment, and sends data transmission notice to described state processing thread;
Described equipment message receiving thread receives the equipment state information from equipment, judgment device state, then by cross-thread Message Transmission, sends state updating notice to described state processing thread; Described equipment state information is regularly sent by equipment;
When described state processing thread receives described state updating notice, upgrade according to the equipment state received the state recording that in state machine, this equipment is corresponding; When described state processing thread receives described data transmission notice, inquire about described state machine, judge the current residing state of equipment for receiving data, if successfully connect, then the data that described database poll thread obtains are sent to this equipment by the interface processing unit that this equipment is corresponding; If be in the state of closedown or fault, then the data temporary cache of described database poll thread acquisition; Described state machine is the equipment state and data output that the described each interface processing unit of management is corresponding, is safeguarded by described state processing thread.
Further, the equipment of described interface unit management comprises short message gateway device, wired POS printer and wireless POS printer, the configurable upper limit allowing the equipment of access of each interface processing unit, thus ensure that the handling property of each interface processing unit.
Further, described user interface comprises interface of ordering, booking interface, configuration interface, order management interface and Customer management interface; Described interface of ordering is for operation of ordering, described booking interface is used for Reserved seating operation, described configuration interface is used for the Data Enter at businessman's menu, seat, and described order management interface is for managing order, and described Customer management interface is used for management of consumer information and member's setting automatically.
Further, for the interface processing unit having access to Internet communication capacity equipment, also provide network communication processing threads.
Tool of the present invention has the following advantages:
1. by service logic from device separates, encapsulated by storage function collection; Equipment carries out communication with interface unit; Between service logic unit and interface unit, data flow is undertaken alternately by storage function, and system cloud gray model is more stable;
2., when will revise output information according to customer demand, as long as amendment storage function, do not have influence on the operation of service logic;
3. when interface unit cannot meet performance requirement time, only need rerun a new interface processing unit process again, systematic function expansion is simple and convenient; Close any one interface processing unit, the operation of other interface processing unit and system is not affected completely;
4. interface unit can access plurality of devices, and system can compatible a large amount of existing equipment.
[accompanying drawing explanation]
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is the schematic diagram of a kind of food and drink cloud of the present invention plateform system.
Fig. 2 is flow chart of the present invention.
[embodiment]
Refer to shown in Fig. 1 and Fig. 2, a kind of food and drink cloud plateform system, comprises service logic unit and the user interface for receiving user operation, and described system also comprises storage function collection and the interface unit for management equipment; Described service logic unit reads needing the data sent to interface unit from user interface, and writes in a database; Described storage function collection is the set of multiple storage function; Described user interface comprises interface of ordering, booking interface, configuration interface, order management interface and Customer management interface; Described interface of ordering is for operation of ordering, described booking interface is used for Reserved seating operation, described configuration interface is used for the Data Enter at businessman's menu, seat, and described order management interface is for managing order, and described Customer management interface is used for management of consumer information and member's setting automatically.Described service logic unit carries out different business logic processing to user interface being transmitted the different event come, and such as exports data the need of the equipment to access, use which kind of formatted output, and export the service logic judgements such as which content;
The storage function that described storage function is concentrated encapsulates the data from service logic unit, the form enabling described data be converted to described equipment to identify; Described storage function is the set of self-defining SQL statement, programmes according to functional requirement, storage function is stored in server end, just can perform at server end as long as call storage function.Service logic is separated from equipment, is encapsulated by storage function; When user needs Update Table form, or when increasing traffic data type, only need upgrade described storage function, the operation of docking port unit and service logic unit does not affect completely, and the renewal submission of storage function is moment, obvious perception is not had for system user;
Described interface unit manages described storage function collection and equipment by multithreading asynchronous operation; Described interface unit comprises at least one interface processing unit for management equipment, and each described interface processing unit all provides a database poll thread, a state processing thread and an equipment message receiving thread;
Described multithreading asynchronous operation comprises:
Storage function described in the thread dispatching of described database poll obtains the data exported to equipment, and sends data transmission notice to described state processing thread;
Described equipment message receiving thread receives the equipment state information from equipment, judgment device state, then by cross-thread Message Transmission, sends state updating notice to described state processing thread; Described equipment state information is regularly sent by equipment;
When described state processing thread receives described state updating notice, upgrade according to the equipment state received the state recording that in state machine, this equipment is corresponding; When described state processing thread receives described data transmission notice, inquire about described state machine, judge the current residing state of equipment for receiving data, if successfully connect, then the data that described database poll thread obtains are sent to this equipment by the interface processing unit that this equipment is corresponding; If be in the state of closedown or fault, then the data temporary cache of described database poll thread acquisition; Described state machine is the equipment state and data output that the described each interface processing unit of management is corresponding, is safeguarded by described state processing thread.
The equipment of described interface unit management comprises short message gateway device, wired POS printer and wireless POS printer, the configurable upper limit allowing the equipment of access of each interface processing unit, thus ensure that the handling property of each interface processing unit.For the interface processing unit having access to Internet communication capacity equipment, also provide network communication processing threads.
Between service logic unit of the present invention and interface unit, data flow is undertaken alternately by storage function, and equipment and interface unit carry out communication, and system cloud gray model is more stable; When interface unit cannot meet performance requirement time, only need rerun a new interface process again, systematic function expansion is simple and convenient; Close any one interface processing unit, the operation of other interface processing unit and system is not affected completely; Interface processing unit can access plurality of devices, and system can compatible a large amount of existing equipment.
Now for booking, specific embodiment of the invention process is described:
Described user interface record guest makes a reservation information, comprises the time for eating meals etc. of guest's name, mobile phone, reserved seat number and reservation;
First described service logic unit judges to need, by short message gateway device, booking information is sent to guest's mobile phone, secondly the formatting that output booking information uses is judged, then the particular content that will be sent on guest's mobile phone is judged, such as, the time for eating meals of name, reserved seat number, reservation, address, restaurant etc., the data that finally will export are stored to described database;
Described database converts by storage function the data content received to form that short message gateway device can identify;
For managing the interface processing unit of described short message gateway device by storage function described in the thread dispatching of database poll, obtaining the data exported to short message gateway device, and sending data transmission notice to described state processing thread;
When the state processing thread of described Short Message Service Gateway interface receives described data transmission notice, inquire about described state machine, judge whether the current residing state of Short Message Service Gateway interface successfully connects, if successfully connect, then the data that described database poll thread obtains are sent to short message gateway device by interface processing unit; Booking information is sent to guest's mobile phone by described short message gateway device again.
Food and drink cloud plateform system of the present invention is when system brings into operation, pass through network, to interface unit transmitting apparatus linking request and initialization information, described equipment message receiving thread receives the equipment state information from equipment, judgment device state, then by cross-thread Message Transmission, state updating notice is sent to described state processing thread; When described state processing thread receives described state updating notice, upgrade according to the equipment state received the state recording that in state machine, this equipment is corresponding, equipment state is initialized as and successfully connects.
Although the foregoing describe the specific embodiment of the present invention; but be familiar with those skilled in the art to be to be understood that; specific embodiment described by us is illustrative; instead of for the restriction to scope of the present invention; those of ordinary skill in the art, in the modification of the equivalence done according to spirit of the present invention and change, should be encompassed in scope that claim of the present invention protects.

Claims (4)

1. a food and drink cloud plateform system, comprising service logic unit and the user interface for receiving user operation, it is characterized in that: described system also comprises storage function collection and the interface unit for management equipment; Described service logic unit reads needing the data sent to interface unit from user interface, and writes in a database; Described storage function collection is the set of multiple storage function;
The storage function that described storage function is concentrated encapsulates the data from service logic unit, the form enabling described data be converted to described equipment to identify; When user needs Update Table form, or when increasing traffic data type, only need upgrade described storage function;
Described interface unit manages described storage function collection and equipment by multithreading asynchronous operation, described interface unit comprises at least one interface processing unit for management equipment, each described interface processing unit all provides a database poll thread, a state processing thread and an equipment message receiving thread;
Described multithreading asynchronous operation comprises:
Storage function described in the thread dispatching of described database poll obtains the data exported to equipment, and sends data transmission notice to described state processing thread;
Described equipment message receiving thread receives the equipment state information from equipment, judgment device state, then by cross-thread Message Transmission, sends state updating notice to described state processing thread; Described equipment state information is regularly sent by equipment;
When described state processing thread receives described state updating notice, upgrade according to the equipment state received the state recording that in state machine, this equipment is corresponding; When described state processing thread receives described data transmission notice, inquire about described state machine, judge the current residing state of equipment for receiving data, if successfully connect, then the data that described database poll thread obtains are sent to this equipment by the interface processing unit that this equipment is corresponding; If be in the state of closedown or fault, then the data temporary cache of described database poll thread acquisition; Described state machine is the equipment state and data output that the described each interface processing unit of management is corresponding, is safeguarded by described state processing thread.
2. a kind of food and drink cloud plateform system according to claim 1, it is characterized in that: the equipment of described interface unit management comprises short message gateway device, wired POS printer and wireless POS printer, the configurable upper limit allowing the equipment of access of each interface processing unit, thus ensure that the handling property of each interface processing unit.
3. a kind of food and drink cloud plateform system according to claim 1, is characterized in that: described user interface comprises interface of ordering, booking interface, configuration interface, order management interface and Customer management interface; Described interface of ordering is for operation of ordering, described booking interface is used for Reserved seating operation, described configuration interface is used for the Data Enter at businessman's menu, seat, and described order management interface is for managing order, and described Customer management interface is used for management of consumer information and member's setting automatically.
4. a kind of food and drink cloud plateform system according to claim 2, is characterized in that: for the interface processing unit having access to Internet communication capacity equipment, also provides network communication processing threads.
CN201210274599.9A 2012-08-03 2012-08-03 Catering cloud platform system Active CN102830967B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210274599.9A CN102830967B (en) 2012-08-03 2012-08-03 Catering cloud platform system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210274599.9A CN102830967B (en) 2012-08-03 2012-08-03 Catering cloud platform system

Publications (2)

Publication Number Publication Date
CN102830967A CN102830967A (en) 2012-12-19
CN102830967B true CN102830967B (en) 2015-03-25

Family

ID=47334117

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210274599.9A Active CN102830967B (en) 2012-08-03 2012-08-03 Catering cloud platform system

Country Status (1)

Country Link
CN (1) CN102830967B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103338118B (en) * 2013-06-04 2016-09-14 北京搜狐新媒体信息技术有限公司 A kind of communication network method of attachment and device
CN108242008A (en) * 2016-12-27 2018-07-03 天津阳冰科技有限公司 A kind of novel manufacture cloud platform system
WO2019127482A1 (en) * 2017-12-29 2019-07-04 Nokia Shanghai Bell Co., Ltd. Apparatuses and methods for fronthaul network verification in cloud radio access network

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101958805A (en) * 2010-09-26 2011-01-26 中兴通讯股份有限公司 Terminal access and management method and system in cloud computing
CN102404399A (en) * 2011-11-18 2012-04-04 浪潮电子信息产业股份有限公司 Fuzzy dynamic allocation method for cloud storage resource

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2663954B1 (en) * 2011-01-10 2019-05-01 International Business Machines Corporation System and method for extending cloud services into the customer premise

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101958805A (en) * 2010-09-26 2011-01-26 中兴通讯股份有限公司 Terminal access and management method and system in cloud computing
CN102404399A (en) * 2011-11-18 2012-04-04 浪潮电子信息产业股份有限公司 Fuzzy dynamic allocation method for cloud storage resource

Also Published As

Publication number Publication date
CN102830967A (en) 2012-12-19

Similar Documents

Publication Publication Date Title
CN100531055C (en) Data synchronous system and its method
WO2021017301A1 (en) Management method and apparatus based on kubernetes cluster, and computer-readable storage medium
CN102340495B (en) Event center supporting cross-system service linkage and event processing method of event center
CN107395729A (en) A kind of consumption system of message queue, method and device
CN104639654A (en) Integrated access system and integrated access method for mass electricity information acquisition terminals
CN101582894B (en) Semantic gateway used for integration of enterprise informatization heterogeneous system
CN101996148B (en) Instrument test board configuration method for a plurality of communication protocols
CN103763443B (en) The mobile customer service system of a kind of many communication modes polymerization and method
CN102710793B (en) Network printing system based on cloud computing and data storage method thereof
CN102932431B (en) Message-routing-based state monitoring data interface configuration method
CN103077024A (en) Device and method for supporting customization and running of software-as-a-service (SaaS) application processes
CN103079178B (en) The message management method of a kind of NGCRM second filial generation CRM system and system
CN102830967B (en) Catering cloud platform system
CN105681115A (en) OnAir all-media cloud platform application method and system
CN104580532A (en) Cross-platform application system
CN103957188A (en) Symmetrical bidirectional decoupling enterprise service description method and service scheduling system
CN105245369B (en) Component issuing container method supporting multiple transport protocols
CN102541451A (en) Enterprise desktop application integrated platform realized based on FLEX AIR technology
CN103701720A (en) Communication method with Socket server and online transaction management system
CN115204125A (en) Form aggregation method and device
CN101339520B (en) Method for accessing EJB into enterprise service bus
CN101110700A (en) Explorer in resource management platform
CN105812241A (en) Enterprise application integration method and system based on Spring Integration
CN104811472A (en) Intelligent calendar system based on wireless communication technology and communication method thereof
CN103268264B (en) A kind of multi event synchronization RFID middleware system of low coupling and its implementation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 350000 No. 22 water head road Doumen, Jinan District, Fuzhou, Fujian

Patentee after: China Electric fufu Mdt InfoTech Ltd

Address before: 350000 No. 22 water head road Doumen, Jinan District, Fuzhou, Fujian

Patentee before: Fujian Fushitong Information Software Co.,Ltd.