CN105137839B - A kind of cloud platform control method and its system based on memory database - Google Patents
A kind of cloud platform control method and its system based on memory database Download PDFInfo
- Publication number
- CN105137839B CN105137839B CN201510506896.5A CN201510506896A CN105137839B CN 105137839 B CN105137839 B CN 105137839B CN 201510506896 A CN201510506896 A CN 201510506896A CN 105137839 B CN105137839 B CN 105137839B
- Authority
- CN
- China
- Prior art keywords
- cradle head
- head control
- task
- bit stream
- mission bit
- 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
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
A kind of cloud platform control method based on memory database, comprises the following steps:Step 1:Data syn-chronization, initializes memory database, a table of newly laying foundations, user right table and cradle head control mission bit stream table;Step 2:Receive the cradle head control information that client is sent, the mission bit stream with the presence or absence of the point position and the user in cradle head control mission bit stream table is first looked for, if it does not exist, then inserting the information into cradle head control mission bit stream table, otherwise, then the task generation time is updated to current time;Step 3:In the record that cradle head control mission bit stream table search task status is 0, the cradle head control task is then performed;Judge whether Permission Levels meet execution condition before execution;Repeat step 2~3 completes multiple users and realizes cradle head control function.And a kind of cloud platform control system based on memory database is provided.It is of the invention effectively to reduce request response time, it is to avoid operating experience sense during contention for resources problem, raising system use.
Description
Technical field
It is that one kind is based on specifically in terms of the invention belongs to technical field of video monitoring, more particularly to memory database
The cloud platform control method and its system of memory database.
Background technology
With the fast development of economic construction, scientific and technological level and various social undertakings, Chinese urbanization process is also continuous
Accelerate, while also bringing challenge for urban safety.With pay attention to day by day of the people to safety, image information is used as reflection directly perceived
The means of field condition, are paid attention to by more and more users.Build video monitoring system also from it is original only solve whether
The problem of having monitoring system, to pursue it is apparent and it is more preferable experience direction and develop, during correspondingly Video Supervision Technique develops
High-definition network video monitoring has been increasingly becoming the main selection of video monitoring system construction, while high-definition video monitoring is brought very
Many problems, such as video flowing and controlling stream are converted into network high definition framework by original analog architectures, cause Consumer's Experience sense to decline.
Existing video monitoring system technical scheme is using conventional physical database in the market.Ask each time
, it is necessary to which by client transmission request instruction to message server, message server is interior according to what is received during cradle head control order
Hold after the information stored in inquiry physical database, perform cradle head control order each time.When system applies big and medium-sized cities,
During with needing processing request amount increase, contention for resources situation is often caused, i.e., the different user in same control point position presses
It is controlled according to the wish of oneself.The simultaneously this expense based on conventional physical database mode is also one and can not be ignored
Problem.Therefore, because above variety of problems, reduces the promptness of system response time, Consumer's Experience sense decline is easily caused.
The content of the invention
In order to overcome the shortcomings of in existing video monitoring system that request response time is long, contention for resources, the present invention is provided
It is a kind of effectively to reduce request response time, it is to avoid contention for resources problem, improve operating experience sense during system use based on
The cloud platform control method and its system of memory database.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of cloud platform control method based on memory database, comprises the following steps:
Step 1:Data syn-chronization
In first time implementation procedure, memory database is initialized, a table of newly laying foundations, user right table and cradle head control are appointed
Business information table, and full table synchronous point position table and tables of client authority information.Follow-up point position table and the letter of user right table by change
Breath is synchronized in memory database
Step 2:The cradle head control information that client is sent is received, first looks for whether depositing in cradle head control mission bit stream table
In the point position and the mission bit stream of the user, if it does not exist, then insert the information into cradle head control mission bit stream table,
Including task time, command context, Customs Assigned Number, task status, point bit number, wherein task time acquiescence current time, times
Business state acquiescence 0,0 represents original state;If it is present the task generation time is updated into current time, task status is more
Newly into 0;
Step 3:Perform cradle head control task, cradle head control mission bit stream table search task status be 0 record, then
Perform the cradle head control task;Judge whether Permission Levels meet execution condition before execution, if it is satisfied, then performing the head
Control task;Otherwise, then the task status in cradle head control mission bit stream table is updated to the high user of 2,2 expression authorities in control
The state of system;
Repeat step 2~3 completes multiple users and realizes cradle head control function.
A kind of cloud platform control system based on memory database, including:
Data simultaneous module, for creating point position table, user right table and cradle head control mission bit stream table, first time full table
Synchronous point position table and tables of client authority information are into newly-built corresponding table.It is follow-up by the point position table of change and user right table
Synchronizing information is into memory database
Request and state receiving module, for receiving client cradle head control solicited message, including command context, Yong Hubian
Number, point bit number and status information;Receive cradle head control object information, including cradle head control task whether perform, whether authority
High user is in control etc.
Request and status information processing module, represent original state, together for the cradle head control task that reading state is 0,0
When judge whether whether Permission Levels meet;If it is satisfied, then performing cradle head control task, and task status information renewal is arrived
In cradle head control mission bit stream table;If be unsatisfactory for, the task status in cradle head control mission bit stream table is updated.
Beneficial effects of the present invention are mainly manifested in:This method introduces the concept of memory database, substitutes original message
Server, and the characteristics of memory database enquiry machine retrieval rate is fast is utilized, effectively alleviating needs processing in original scheme
When a large amount of requests and Large Copacity comparison, larger interaction expense is caused, so as to reduce the promptness of system response time, is held
The problem of easily causing request failure.Meanwhile, using memory database retrieval and inquisition it is quick the characteristics of, utilize authority mechanism, solve
The problem of contention for resources.Operating experience sense during raising system use.
Brief description of the drawings
Fig. 1 is the cloud platform control method flow chart based on memory database.
Embodiment
To make the purpose of the present invention, technical scheme and effect clearer, clear and definite, below to the present invention further specifically
It is bright.Therefore, the specific embodiments described herein are merely illustrative of the present invention, is not intended to limit the present invention.
A kind of reference picture 1, cloud platform control method based on memory database, step is as follows:
Step S1:As shown in figure 1, it is necessary to initialize main memory database table in data synchronization process, these tables include
Point position information table (table 1), user right table (table 2) and cradle head control mission bit stream table (table 3), the particular content such as following table of each table
It is shown:
Sequence number | Title | Remarks |
1 | From increasing sequence | Major key |
2 | Number control point | |
3 | Zone number | |
4 | Control point title |
5 | Device numbering | |
6 | IP address of equipment | |
7 | Logic number | |
8 | Monitor dotted state |
Table 1
Sequence number | Title | Remarks |
1 | From increasing sequence | Major key |
2 | Customs Assigned Number | |
3 | Number control point | |
4 | It is whether online | |
5 | Affiliated area | |
6 | Control hierarchy | |
7 | Hour of log-on |
Table 2
Sequence number | Title | Remarks |
1 | From increasing sequence | Major key |
2 | Customs Assigned Number | |
3 | Command context | |
4 | Point bit number | |
5 | Task status | |
6 | Task time |
Table 3
Wherein control hierarchy is the numeral between 1~255, and the smaller explanation control hierarchy of numeral is higher;Task status includes
Three kinds of states:0:Represent original state;1:Expression is carrying out state;2:Represent the high user of authority in control;Command context
The content operated for head, shown in specific dictionary table figure table 4 below:
01 | On |
02 | Under |
03 | It is left |
04 | It is right |
05 | Upper right |
06 | Upper left |
07 | Bottom right |
08 | Lower-left |
09 | Stop |
Table 4
Step S11:After table 1, table 2 and the structure of table 3 are formed, by the way of multilist is associated, by physical database
Content, it would be desirable to field it is fully synchronized into Tables 1 and 2.It is subsequently in the running of program, the content after change is same
Walk in Tables 1 and 2
Step S2:The cradle head control order of client is received, searches whether there is the bit number and the use in table 3
The mission bit stream at family, if it does not exist, then cradle head control order is written in the table 3 of memory database, sequence of the generation from increasing
Row write Customs Assigned Number as major key, and head content is put bit number, task status and task time, and wherein task status is 0,
Task time is current time;If it is present the task generation time is updated into current time, task status is updated to 0
Step S3:Cradle head control task is performed, the record that task status is 0 is searched in table 3, if it does not exist, then waiting
After step S3 is performed after 10ms again;If it is present the content of association Tables 1 and 2, obtains this cradle head control midpoint position letter
After breath and user right information, step S31 is performed
Specifically, when the record that task status is 0 is searched in table 3, during if there is a plurality of cradle head control task, passing through
The content of Tables 1 and 2 is associated, the point position information and user right information of each task can be obtained, then, according to each task
Priority be ranked up, preferential execution priority not high cradle head control task, if there is priority identical situation, then
It is preferential to perform task time cradle head control task earlier.Such as table 5 is the inquiry knot that there is a plurality of cradle head control task situation
Really:
Table 5
Step S31:The head control of same point position different user is judged whether according to the information of cradle head control task
Task processed, and task status is not equal to 0, if it does not exist, then performing step S32;If it is present performing step S33
If specifically, the task 1 being currently executing in table 4, is if there is point bit number in cradle head control table
3301001, and Customs Assigned Number is not equal to 1001, and task status is not equal to 0 task, then performs step S32, otherwise, then hold
Row step S33
Step S32:Head task status is updated to 1, and performs this cradle head control task, this head task is waited
After having performed, this cradle head control task is deleted.
Step S33:Judge whether task user's control rank is more than the control hierarchy of original task, if it is greater, then holding
Row step S32;If it is not greater, then performing step S34
Step S34:Task status is updated, this cradle head control task status is updated to 2
If specifically, the task 2 being currently executing in table 4, is if there is point bit number in cradle head control table
3301002, task status is equal to 1 task, then is more 2 by the state of the task 2 in table 4;Otherwise, then step S32 is performed.
Wherein client is sent after cradle head control order, and the state of the task in the task list of cradle head control is inquired about every 20ms,
If task status is 2, the user for pointing out the point position Permission Levels high is using, and please controls again later, instantly during secondary control,
Cradle head control order is then initiated again.
By after the cradle head control task for performing this inquiry, step S3 is re-executed, above step is repeated and realizes head control
Task processed.
A kind of cloud platform control system based on memory database, including:
Data simultaneous module, for creating point position table, user right table and cradle head control mission bit stream table, first time full table
Synchronous point position table and tables of client authority information are into newly-built corresponding table.It is follow-up by the point position table of change and user right table
Synchronizing information is into memory database
Request and state receiving module, for receiving client cradle head control solicited message, including command context, Yong Hubian
Number, point bit number and status information;Receive cradle head control object information, including cradle head control task whether perform, whether authority
High user is in control etc.
Request and status information processing module, represent original state, together for the cradle head control task that reading state is 0,0
When judge whether whether Permission Levels meet;If it is satisfied, then performing cradle head control task, and task status information renewal is arrived
In cradle head control mission bit stream table;If be unsatisfactory for, the task status in cradle head control mission bit stream table is updated.
The technical thought of above example only to illustrate the invention, it is impossible to which protection scope of the present invention is limited with this, it is every
According to technical thought proposed by the present invention, any change done on the basis of technical scheme each falls within the protection model of the present invention
In enclosing.
Claims (2)
1. a kind of cloud platform control method based on memory database, it is characterised in that:The cloud platform control method includes following step
Suddenly:
Step 1:Data syn-chronization
In first time implementation procedure, memory database, a table of newly laying foundations, user right table and cradle head control task letter are initialized
Table, and full table synchronous point position table and tables of client authority information are ceased, it is subsequently that the information of the point position table of change and user right table is same
Walk in memory database;
Step 2:The cradle head control information that client is sent is received, first looks for whether there is point in cradle head control mission bit stream table
Position and the mission bit stream of the user, if it does not exist, then the cradle head control information is inserted into cradle head control mission bit stream table
In, including task time, command context, Customs Assigned Number, task status, point bit number, wherein task time acquiescence current time,
Task status acquiescence 0,0 represents original state;If it is present the task generation time is updated into current time, task status
It is updated to 0;
Step 3:Cradle head control task is performed, in the record that cradle head control mission bit stream table search task status is 0, is then performed
The cradle head control task;Judge whether Permission Levels meet execution condition before execution, if it is satisfied, then performing the cradle head control
Task;Otherwise, then the task status in cradle head control mission bit stream table is updated to the high user of 2,2 expression authorities in control
State;
Repeat step 2~3 completes multiple users and realizes cradle head control function.
2. a kind of system for realizing the cloud platform control method as claimed in claim 1 based on memory database, it is characterised in that:
The system includes:
Data simultaneous module, for creating point position table, user right table and cradle head control mission bit stream table, full table is synchronous for the first time
Point position table and tables of client authority information are into newly-built corresponding table, subsequently by the point position table and the information of user right table of change
It is synchronized in memory database;
Request and state receiving module, for receiving client cradle head control solicited message, including command context, Customs Assigned Number,
Point bit number and status information;Cradle head control object information is received, including whether cradle head control task performs, whether authority is high
User is in control;
Request and status information processing module, represent original state for the cradle head control task that reading state is 0,0, sentence simultaneously
Whether disconnected Permission Levels meet execution condition;If it is satisfied, then performing cradle head control task, and task status information renewal is arrived
In cradle head control mission bit stream table;If be unsatisfactory for, the task status in cradle head control mission bit stream table is updated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510506896.5A CN105137839B (en) | 2015-08-18 | 2015-08-18 | A kind of cloud platform control method and its system based on memory database |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510506896.5A CN105137839B (en) | 2015-08-18 | 2015-08-18 | A kind of cloud platform control method and its system based on memory database |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105137839A CN105137839A (en) | 2015-12-09 |
CN105137839B true CN105137839B (en) | 2017-11-07 |
Family
ID=54723219
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510506896.5A Active CN105137839B (en) | 2015-08-18 | 2015-08-18 | A kind of cloud platform control method and its system based on memory database |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105137839B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109144739A (en) * | 2018-08-08 | 2019-01-04 | 上海电气集团股份有限公司 | A kind of method and system of multi-user's contention control based on Argus video monitoring |
CN111131704A (en) * | 2019-12-26 | 2020-05-08 | 武汉兴图新科电子股份有限公司 | Method for managing control authority of holder |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101753832A (en) * | 2008-12-04 | 2010-06-23 | 北京中星微电子有限公司 | Cloud mirror control method in video monitoring system, system and central platform server |
CN101964901A (en) * | 2010-10-11 | 2011-02-02 | 杭州海康威视数字技术股份有限公司 | Right management method and equipment for video monitoring equipment |
CN102164272A (en) * | 2011-04-07 | 2011-08-24 | 天津市亚安科技电子有限公司 | Method for reducing cloud deck control delay in network video monitoring platform |
CN103902646A (en) * | 2013-12-27 | 2014-07-02 | 北京天融信软件有限公司 | Distributed task managing system and method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100767756B1 (en) * | 2007-07-19 | 2007-10-17 | 진영정보통신 주식회사 | Electric notice board management system and method for multi user |
-
2015
- 2015-08-18 CN CN201510506896.5A patent/CN105137839B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101753832A (en) * | 2008-12-04 | 2010-06-23 | 北京中星微电子有限公司 | Cloud mirror control method in video monitoring system, system and central platform server |
CN101964901A (en) * | 2010-10-11 | 2011-02-02 | 杭州海康威视数字技术股份有限公司 | Right management method and equipment for video monitoring equipment |
CN102164272A (en) * | 2011-04-07 | 2011-08-24 | 天津市亚安科技电子有限公司 | Method for reducing cloud deck control delay in network video monitoring platform |
CN103902646A (en) * | 2013-12-27 | 2014-07-02 | 北京天融信软件有限公司 | Distributed task managing system and method |
Non-Patent Citations (1)
Title |
---|
基于C/S模式的远程云台控制系统设计与实现;张梦娜等;《电视技术》;20140702;第145-148页 * |
Also Published As
Publication number | Publication date |
---|---|
CN105137839A (en) | 2015-12-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10516633B2 (en) | Method, system, and storage medium for message processing | |
US10834556B2 (en) | Mobile application state identifier framework | |
US20160330208A1 (en) | Method and apparatus for implementing document sharing between user groups | |
CN104396185B (en) | Picture synchronization control system and the method and device for carrying out synchronizing picture using the system | |
JP2014532938A5 (en) | ||
US10853440B2 (en) | Displaying an object having a link to a database record in response to a user selection of a highlighted reference | |
CN106448297A (en) | Cloud audio-video remote interactive class system | |
US20180053101A1 (en) | Remote and local predictions | |
CN102664009B (en) | System and method for implementing voice control over video playing device through mobile communication terminal | |
CN109462769A (en) | Direct broadcasting room pendant display methods, device, terminal and computer-readable medium | |
CN103491176A (en) | Method and system for automatically releasing micro-blogs | |
CN106802762B (en) | Synchronizing server-side keyboard layout with client-side layout in virtual session | |
JP2021193559A (en) | Video processing method, device, electronic apparatus, and storage medium | |
CN109634764A (en) | Work-flow control method, apparatus, equipment, storage medium and system | |
CN109376015A (en) | Solution and system are blocked in log for task scheduling system | |
CN101089852B (en) | Method for support multi-language operation system | |
KR20230144582A (en) | Live streaming video-based interaction method and apparatus, device and storage medium | |
CN105137839B (en) | A kind of cloud platform control method and its system based on memory database | |
CN104835004A (en) | Guest room information management method and system | |
CN106250007B (en) | A kind of system and method realizing branching selection and playing | |
WO2019062019A1 (en) | Data list exporting method and terminal using same | |
US20180365333A1 (en) | Enhanced web browsing | |
CN103312808B (en) | A kind of cloud operating system bus and communication means | |
US20220231980A1 (en) | Enhancing a social media post with content that is relevant to the audience of the post | |
CN108600347A (en) | A kind of distributed computational data synchronous method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
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: 310012 floor 1, building 1, No. 223, Yile Road, Xihu District, Hangzhou City, Zhejiang Province Patentee after: Yinjiang Technology Co.,Ltd. Address before: 310012 floor 1, building 1, No. 223, Yile Road, Xihu District, Hangzhou City, Zhejiang Province Patentee before: ENJOYOR Co.,Ltd. |