CN104079599A - Real-time message synchronizing method and container wharf operation system - Google Patents

Real-time message synchronizing method and container wharf operation system Download PDF

Info

Publication number
CN104079599A
CN104079599A CN201310102110.4A CN201310102110A CN104079599A CN 104079599 A CN104079599 A CN 104079599A CN 201310102110 A CN201310102110 A CN 201310102110A CN 104079599 A CN104079599 A CN 104079599A
Authority
CN
China
Prior art keywords
business datum
real
message
client
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.)
Pending
Application number
CN201310102110.4A
Other languages
Chinese (zh)
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 MERCHANTS HOLDINGS (INTERNATIONAL) INFORMATION TECHNOLOGY Co Ltd
Original Assignee
CHINA MERCHANTS HOLDINGS (INTERNATIONAL) INFORMATION 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 CHINA MERCHANTS HOLDINGS (INTERNATIONAL) INFORMATION TECHNOLOGY Co Ltd filed Critical CHINA MERCHANTS HOLDINGS (INTERNATIONAL) INFORMATION TECHNOLOGY Co Ltd
Priority to CN201310102110.4A priority Critical patent/CN104079599A/en
Publication of CN104079599A publication Critical patent/CN104079599A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention is suitable for the field of container wharf management, and provides a real-time message synchronizing method and a container wharf operation system. From a client side, the method comprises the following steps: issuing a service request and receiving input to-be-updated service data, wherein the service data comprises a real-time message ID (Identity) uniquely identifying the type of the service data; transmitting the service data; receiving service data pushed by a server, and refreshing display. Different types of service data are marked by real-time message IDs, the service data of the real-time message IDs is transmitted to the server after clients issue service requests, and the service data can be accurately pushed to clients reserving message types to which the service data belongs according to the real-time message IDs without pushing data to all clients during pushing of data to the clients by the server, so that the data size of network transmission is reduced, and the consistence and synergy of data are ensured.

Description

A kind of message real-time synchronization method and container terminal system system
Technical field
The invention belongs to container terminal management domain, relate in particular to a kind of message real-time synchronization method and container terminal system system.
Background technology
Along with Container Transport amount continue soaring, after the ever-increasing opportunity of container line, container terminal Challenge.The development trend of ships that transport maximization (surpassing 10000TEU), specialization and alliance of shipping company is day by day obvious, thereby has improved the negotiation status, market of shipping company, also forces harbour further to deep water, maximization and specialized future development; Ships that transport maximizes and makes harbour is the competition at contention main line port; The demand of door-to-door transport is brought and be take supply chain management and be the seamless movement requirement on basis, and the development of the multimodal transports such as Hai Tie makes the service quality, inland transport facility etc. at container terminal and harbour become the focus of competition.
In order to improve the service level of harbour, promote the core competitiveness of harbour, harbour is accelerated the application to advanced ICT (information and communication technology) one after another, promotes the harbour level of IT application.Container terminal system system (CTOS) is the core system of pier support operation, comprising the business modules such as ship plan, berth plan, marshalling plan, wireless vehicle mounted system, sluice gate management, EDI system, forms management, is the basis of building intelligent harbour.In the Planning and controlling of construction module of CTOS, real-time property is required high especially, as the container of sluice gate turnover all must real-time reflecting in stockyard and ship plan; When doing boats and ships shipment or unloading a ship plan, corresponding change all should be made in the position of container on stockyard or ship; Middle control sends the real-time that instruction or activation production line etc. all need to meet data; In addition, certain operating personnel wants realtime uniform and is updated to other operating personnel's operation interface to the operation of a certain data.
And in existing CTOS system when Data Update, comprise input data or revise and delete data etc., client is connected to after system, because business datum is not classified, make client need to from server, download total data when new data more, data transmission in network amount is excessive makes client data renewal show slower, and when a plurality of clients are initiated service data updating request simultaneously, easily cause clogged with messages, consistency and the concertedness of client data be can not be guaranteed, wherein said consistency refers to that when different clients is accessed same attribute data, data are identical, described concertedness refers to when client is carried out Data Update will update to other clients.
Summary of the invention
In view of the above problems, the object of the present invention is to provide a kind of message real-time synchronization method, client, server and a kind of container terminal system system, be intended to solve in existing container terminal system system Data Update slow, the technical problem that the consistency of business datum and concertedness can not be guaranteed.
On the one hand, from client-side, described message real-time synchronization method comprises the steps:
Initiating business request also receives the business datum to be updated of inputting, and described business datum includes the real-time messages ID of this traffic data type of unique identification;
Send described business datum;
Reception comes from the business datum of server push, and refreshes demonstration.
On the other hand, from server side, described message real-time synchronization method comprises the steps:
Start that socket is monitored and message queue scanning thread, link information is added to the list of sockets of client when client being detected and be connected to server;
Reception comes from the business datum of client;
Call business intermediate layer interface and resolve and process described business datum, process successfully after by service data updating in database, and form in real time and write message queue after bag;
Read the business datum in message queue, and according to the real-time messages ID in described business datum, described business datum is pushed to client.
The third aspect, described client comprises:
Business is initiated unit, and for the business datum to be updated of initiating business request reception input, described business datum includes the real-time messages ID of this traffic data type of unique identification;
Data transmission unit, for sending described business datum;
Refresh Data display unit, for receiving the business datum that comes from server push, and refreshes demonstration.
Fourth aspect, described server comprises:
Message monitoring unit, for starting, socket is monitored and message queue scanning thread, link information is added to the list of sockets of client when client being detected and be connected to server;
Data receiver unit, for receiving the business datum that comes from client;
Message Processing writing unit, resolves and processes described business datum for calling business intermediate layer interface, process successfully after by service data updating in database, and form in real time and write message queue after bag;
Data read push unit, for reading the business datum of message queue, and according to the real-time messages ID in described business datum, described business datum are pushed to client.
The 5th aspect, described container terminal system system comprises the client described at least one, a server and the database being connected with described server, described client is connected with described server is wired or wireless.
The invention has the beneficial effects as follows: technical solution of the present invention is carried out each dissimilar business datum of mark with real-time messages ID, after client initiating business request, the business datum of real-time messages ID is sent to server, when described server is stored in message queue like this server to client push data by business datum, according to real-time messages ID, business datum can be pushed to exactly in the client of type of message under predetermined this business datum, without the client push data to all, reduced the data volume of Internet Transmission, consistency and the concertedness of data have been guaranteed.
Accompanying drawing explanation
Fig. 1 is the flow chart of the message real-time synchronization method that provides of first embodiment of the invention;
Fig. 2 is the flow chart of the message real-time synchronization method that provides of second embodiment of the invention;
Fig. 3 is the flow chart of the message real-time synchronization method that provides of third embodiment of the invention;
Fig. 4 is the flow chart of the message real-time synchronization method that provides of fourth embodiment of the invention;
Fig. 5 is the block diagram of the client that provides of fifth embodiment of the invention;
Fig. 6 is the block diagram of the client that provides of sixth embodiment of the invention;
Fig. 7 is the block diagram of the server that provides of seventh embodiment of the invention;
Fig. 8 is the block diagram of the server that provides of eighth embodiment of the invention;
Fig. 9 is the structure chart of the container terminal system system that provides of ninth embodiment of the invention;
Figure 10 is the structure chart of the container terminal system system that provides of tenth embodiment of the invention;
Figure 11 is the structure chart of the container terminal system system that provides of eleventh embodiment of the invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
For technical solutions according to the invention are described, below by specific embodiment, describe.
embodiment mono-:
Fig. 1 shows the flow process of the message real-time synchronization method that first embodiment of the invention provides, and only shows for convenience of explanation the part relevant to the embodiment of the present invention.
The present embodiment has been described the step of message real-time synchronization method from client-side, comprising:
Step S101, initiating business request also receive the business datum to be updated of inputting, and described business datum includes the real-time messages ID of this traffic data type of unique identification;
Step S102, send described business datum;
Step S103, reception come from the business datum of server push, and refresh demonstration.
Described business datum to be updated is the current data that need change in container terminal system system, comprise increase, revise, delete data etc., can be particularly vessel position data, storage yard container data, the a series of data of sluice gate data etc., these data need to be reacted timely in each client, in business datum to be updated in the present embodiment, include the real-time messages ID for this traffic data type of unique identification, after getting business datum to be updated, send described business datum, server is again by the queue of described business datum storing message, owing to may there are a plurality of clients, carry out data manipulation simultaneously, therefore in server by the business datum arriving with message queue mode storing received, according to the real-time messages ID in described business datum, message (being business datum) is pushed in the client of predetermined this traffic data type again, without being pushed to all clients, reduced transmitted data on network amount, be conducive to accelerate Data Update speed.
embodiment bis-:
Fig. 2 shows the flow process of the message real-time synchronization method that second embodiment of the invention provides, and only shows for convenience of explanation the part relevant to the embodiment of the present invention.
The present embodiment has been described the step of message real-time synchronization method equally from client-side, specifically comprise:
The type of message of step S201, the required concern of registration current window;
Step S202, judge whether described type of message exists, if exist, current window handle is added in corresponding real-time messages list.Otherwise first create the real-time messages ID that described type of message is corresponding and add again window handle.
Above-mentioned two steps have mainly been described the process that creates real-time messages ID, conventionally in a window of client, the type of message that this window is paid close attention to need to be set, that is which data current window need to upgrade, here the type of message of the required concern of log-in window first, concrete, by relevant registration function (such as m_spBaseMain->RegisterMessage function), if being registered to current window, the corresponding type of message of oneself concern exists, directly the window handle of the current window of client is added in corresponding real-time messages list, otherwise first create the real-time messages ID that described type of message is corresponding, then adding window handle to real-time messages list, here each type of message has a corresponding real-time messages list.
Step S203, when window without pay close attention to wherein type of message time, from corresponding real-time messages list, delete window handle corresponding to institute's window.
When window without pay close attention to wherein certain or certain several type of message time, by deleting function (such as m_spBaseMain->UnRegisterMessage), from corresponding real-time messages list, delete window handle corresponding to institute's window, so just represent that current window no longer upgrades such business datum.
Step S204, initiating business request also receive the business datum to be updated that user inputs, and described business datum includes the real-time messages ID of this traffic data type of unique identification;
The legitimacy of the business datum to be updated of step S205, detection input.
Preferably, in the present embodiment, client, before sending data to server, also will detect the legitimacy of the business datum to be updated of described user's input, after detection is qualified, just sends business datum.
Step S206, send described business datum;
Step S207, startup real-time listening thread initialization, be connected to server;
Step S208, receive after the business datum of server push, analyze described business datum and be organized into the packet of Table form;
Step S209, the real-time processing method that calls all operation layers carry out Data Update to described packet;
Step S210, more after new data, according to the window interface of predetermined this message of real-time messages ID notice in described packet, and upgrade and show.
Above-mentioned steps S207-S210 be step S103 in embodiment mono-a kind of specifically preferred embodiment.
First FTP client FTP starts real-time listening thread RealTimeMonitorThread initialization, and call CTSocket and be connected to service end, after receiving the business datum of server push, call nRecv=CTSocket.Receive (szBuffer+nRecieve, 8-nRecieve) method return data, then call ITOSParse->SetResult ((BYTE*) (STRLMSGNODE.pszMsgContent), STRLMSGN ODE.nLen) resolve bag content, business datum is organized into the packet of Table form, ITOSParse is with Table form canned data, then calling all operation layers operation layer that the method for processing business DoRealTime (IUnknown*) of instantiation has carried out real-time messages processes, after new data more, according to real-time messages ID, call m_clMessage.SendRealTime (uRealTimeMessageID, VOID*) method notice is subscribed to the window interface of this message, client is after TOS_COMMON_REALTIME message, by LPARAM parameter institute information, operation is upgraded in interface.
embodiment tri-:
Fig. 3 shows the flow process of the message real-time synchronization method that third embodiment of the invention provides, and only shows for convenience of explanation the part relevant to the embodiment of the present invention.
The present embodiment has been described the step of message real-time synchronization method from server side, specifically comprise:
Step S301, start that socket is monitored and message queue scanning thread, link information is added to the list of sockets of client when client being detected and be connected to server.
In the present embodiment, first server needs monitor client to connect, concrete, with asynchronous mode, starting socket monitors, then start the thread ReadMSMQThread of scanning message queue, when client is connected to server, link information is joined to client Socket list, and server just can be known so currently has be connected to server for which client.
Step S302, reception come from the business datum of client;
Step S303, call business intermediate layer interface and resolve and process described business datum, process successfully after by service data updating in database, and form in real time and write message queue after bag.
In the present embodiment, business datum sends to after server reception through the legal detection of client, calling business intermediate layer interface carries out Data Analysis, processes service logic, if processed successfully, by described service data updating in database, guarantee that the data in data are latest data, then described business datum is formed to bag in real time and writes message queue, if failure, does not write.
Step S304, read the business datum in message queue, and according to the real-time messages ID in described business datum, described business datum is pushed to client.
Owing to may exist a plurality of clients to operate simultaneously, therefore the business datum in the present embodiment, client being sent is stored in message queue, server reads the business datum in message queue again, server is according to the real-time messages ID in business datum, by the client of type of message under extremely predetermined this business datum of data-pushing, client, after business datum, according to the window interface of predetermined this message of real-time messages ID notice in packet, and upgrades demonstration.The present embodiment has adopted real-time messages ID to carry out the affiliated type of message of identification service, server is without all message receiving (being business datum) is pushed to all clients, so just can reduce transmitted data on network amount, be conducive to data client fast refresh data.
embodiment tetra-:
Fig. 4 shows the flow process of the message real-time synchronization method that fourth embodiment of the invention provides, and only shows for convenience of explanation the part relevant to the embodiment of the present invention.
The present embodiment has been described the step of message real-time synchronization method equally from server side, specifically comprise:
Step S401, start that socket is monitored and message queue scanning thread, link information is added to the list of sockets of client when client being detected and be connected to server;
Step S402, reception come from the business datum of client;
Step S403, call business intermediate layer interface and resolve and process described business datum, process successfully after by service data updating in database, and form in real time and write message queue after bag;
Step S404, read the business datum in message queue; Step S405, according to the real-time messages ID in described business datum, adopt multicasting method described business datum to be pushed to the client of type of message under predetermined this business datum.
Above-mentioned steps S404, S405 be execute step S304 in example three a kind of specifically preferred embodiment, message queue described here can be for one or more, the multicast mode of message queue (as: MSMQ of Microsoft) is used in this enforcement, realize a plurality of message queues sends simultaneously, both can realize the business datum that once transmits all clients, also can reach the object that only particular clients is transmitted data.
The present embodiment has further been taked multicasting technology on the basis of embodiment tri-, can realize a plurality of message queues and send simultaneously, has further improved the stability of system.
embodiment five:
Fig. 5 shows the structure of the client that fifth embodiment of the invention provides, and only shows for convenience of explanation the part relevant to the embodiment of the present invention.
The client that the present embodiment provides comprises:
Business is initiated unit 501, and for the business datum to be updated of initiating business request reception input, described business datum includes the real-time messages ID of this traffic data type of unique identification;
Data transmission unit 502, for sending described business datum;
Refresh Data display unit 503, for receiving the business datum that comes from server push, and refreshes demonstration.
Each functional unit correspondence that the present embodiment provides has realized the step S101-S103 in embodiment mono-, concrete, in business datum to be updated in the present embodiment, include the real-time messages ID for this traffic data type of unique identification, after getting business datum to be updated, send described business datum, server is again by the queue of described business datum storing message, owing to may there are a plurality of clients, carry out data manipulation simultaneously, therefore in server by the business datum arriving with message queue mode storing received, according to the real-time messages ID in described business datum, by message, be business datum again, be pushed in the client of predetermined this traffic data type, without being pushed to all clients, reduced transmitted data on network amount, be conducive to accelerate Data Update speed.
embodiment six:
Fig. 6 shows the structure of the client that sixth embodiment of the invention provides, and only shows for convenience of explanation the part relevant to the embodiment of the present invention.
The client that the present embodiment provides comprises:
Numbering creating unit 61, for according to the required predetermined type of message of current window, creates real-time messages ID;
Business is initiated unit 62, and for the business datum to be updated of initiating business request reception input, described business datum includes the real-time messages ID of this traffic data type of unique identification;
Data Detection unit 63, for detection of the legitimacy of the business datum to be updated of inputting.
Data transmission unit 64, for sending described business datum;
Refresh Data display unit 65, for receiving the business datum that comes from server push, and refreshes demonstration.
Wherein, described numbering creating unit 61 comprises:
Message Registering modules 611, for registering the type of message of the required concern of current window;
Type judging treatmenting module 612, for judging whether described type of message exists, adds current window handle in corresponding real-time messages list to if exist.Otherwise first create the real-time messages ID that described type of message is corresponding and add again window handle;
Handle delete cells 613, for when window without pay close attention to wherein type of message time, from corresponding real-time messages list, delete window handle corresponding to institute's window.
Wherein, described Refresh Data display unit 65 comprises:
Connection initialization module 651, for starting real-time listening thread initialization, is connected to server;
Data analysis module 652, for receiving after the business datum of server push, analyzes described business datum and is organized into the packet of Table form;
Service Processing Module 653, carries out Data Update for calling the real-time processing method of all operation layers to described packet;
Refresh Data display module 654, for after new data more, according to the window interface of predetermined this message of real-time messages ID notice in described packet, and upgrades and shows.
Each functional unit that this enforcement provides and functional module correspondence have realized each step of implementing in two, on the other hand, the present embodiment has increased numbering creating unit 61 on the basis of embodiment five, Data Detection unit 63, and a kind of concrete preferred structure that discloses numbering creating unit 61 and Refresh Data display unit 65, in the present embodiment, client can arrange or cancel the type of message that needs concern, server is pushed to business datum in the client of type of message under predetermined this business datum according to implementing message id, thereby reduced the data volume of transmitting in network, accelerated client data renewal speed.
embodiment seven:
Fig. 7 shows the structure of the server that seventh embodiment of the invention provides, and only shows for convenience of explanation the part relevant to the embodiment of the present invention.
The server that the present embodiment provides comprises:
Message monitoring unit 701, for starting, socket is monitored and message queue scanning thread, link information is added to the list of sockets of client when client being detected and be connected to server;
Data receiver unit 702, for receiving the business datum that comes from client;
Message Processing writing unit 703, resolves and processes described business datum for calling business intermediate layer interface, process successfully after by service data updating in database, and form in real time and write message queue after bag;
Data read push unit 704, for reading the business datum of message queue, and according to the real-time messages ID in described business datum, described business datum are pushed to client.
Each functional unit correspondence that this enforcement provides has realized each step of implementing in three, owing to may exist a plurality of clients to operate simultaneously, therefore the business datum in the present embodiment, client being sent is stored in message queue, server reads the business datum in message queue again, server is according to the real-time messages ID in business datum, by the client of type of message under extremely predetermined this business datum of data-pushing.The present embodiment has adopted real-time messages ID to carry out the affiliated type of message of identification service, server is without by all message receiving, and business datum, is pushed to all clients, so just can reduce transmitted data on network amount, be conducive to data client fast refresh data.
embodiment eight:
Fig. 8 shows the structure of the server that eighth embodiment of the invention provides, and only shows for convenience of explanation the part relevant to the embodiment of the present invention.
The server that the present embodiment provides comprises:
Message monitoring unit 81, for starting, socket is monitored and message queue scanning thread, link information is added to the list of sockets of client when client being detected and be connected to server;
Data receiver unit 82, for receiving the business datum that comes from client;
Message Processing writing unit 83, resolves and processes described business datum for calling business intermediate layer interface, process successfully after by service data updating in database, and form in real time and write message queue after bag;
Data read push unit 84, for reading the business datum of message queue, and according to the real-time messages ID in described business datum, described business datum are pushed to client.
Wherein, described data read push unit 84 and comprise:
Data read module 841, for reading the business datum of message queue;
Multicast pushing module 842, for according to the real-time messages ID of described business datum, adopts multicasting method described business datum to be pushed to the client of type of message under predetermined this business datum.
Each functional unit that the present embodiment provides and functional module correspondence have realized each step of implementing in four, on the other hand, the present embodiment is on the basis of embodiment seven, a kind of preferred structure that data read push unit 84 is further disclosed, originally be implemented on the basis of embodiment seven and further taked multicasting technology, can realize a plurality of message queues and send simultaneously, further improve the stability of system.
embodiment nine:
Fig. 9 shows the structure of the container terminal system system that ninth embodiment of the invention provides, and only shows for convenience of explanation the part relevant to the embodiment of the present invention.
The container terminal system system that the present embodiment provides comprise at least one client as described in embodiment five or embodiment six, the server as described in embodiment seven or embodiment eight and with as described in the database that is connected of server, described client is connected with described server is wired or wireless.In container terminal system system, described client can comprise one or more, and such as middle control, prestowage, sluice gate, wireless terminal etc. can be as clients, client and server, by wired or wireless mode, connect by IP/TCP agreement.
As shown in Figure 9, here all clients have all been registered the type of message of its business datum of being concerned about, suppose that client 4 has sent service data updating request to server, described business datum includes the real-time messages ID of this traffic data type of unique identification, after checking business datum is legal, to server, send described business datum, described business datum is resolved and processed to server calls business intermediate layer interface, after processing successfully by service data updating in database, then business datum is formed to bag in real time and write message queue MQ, server reads the business datum in MQ again, according to the real-time messages ID in described business datum, adopt multicasting method described business datum to be pushed to the client of type of message under predetermined this business datum.Under predetermined this business, the client of type of message is after the business datum pushing, the real-time processing method that calls all operation layers carries out Data Update to described packet, more after new data, according to the window interface of predetermined this message of real-time messages ID notice in described packet, and upgrade demonstration.
In the container terminal system system providing in this enforcement, the Data Update on client end interface shows rapid, can the high container terminal system system of requirement of real time.
embodiment ten:
Figure 10 shows the structure of the container terminal system system that tenth embodiment of the invention provides, and only shows for convenience of explanation the part relevant to the embodiment of the present invention.
The container terminal system system that the present embodiment provides comprises all parts described in embodiment nine, comprise client, server and database, because server in embodiment nine need to be processed all service logics, data manipulation, this performance to server has higher requirement, in order to alleviate the burden of server, in the present embodiment, according to function, divide, described server is divided into middle tier server and real-time messages server, here hypothesis has a middle tier server S and two real-time messages server S 1 and S2, suppose that client 4 has sent service data updating request to middle tier server S, described business datum includes the real-time messages ID of this traffic data type of unique identification, after checking business datum is legal, client 4 sends described business datum to middle tier server S, middle tier server S resolves and processes described business datum to calling business intermediate layer interface, after processing successfully by service data updating in database, then business datum is formed to bag in real time and write message queue MQ, then middle tier server S reads in MQ business datum multicast mode push to real-time messages server S 1, S2, real-time messages server S 1, S2 is again according to the real-time messages ID in business datum, described business datum is pushed to the client of type of message under predetermined this business datum.Under predetermined this business, the client of type of message is after the business datum pushing, the real-time processing method that calls all operation layers carries out Data Update to described packet, more after new data, according to the window interface of predetermined this message of real-time messages ID notice in described packet, and upgrade demonstration.
The present embodiment is divided into server an intermediate server and a plurality of real-time messages server on the basis of embodiment nine, described real-time messages server is responsible for specially according to real-time messages ID transmission service data, alleviated the burden of server, make system layout more reasonable, data retransmission is more rapid.
embodiment 11:
Figure 11 shows the structure of the container terminal system system that eleventh embodiment of the invention provides, and only shows for convenience of explanation the part relevant to the embodiment of the present invention.
The container terminal system system that the present embodiment provides comprises the client described in embodiment ten, middle tier server, real-time messages server and database, the system that the present embodiment provides is different from the data flow of system described in embodiment ten, in the present embodiment, client also can send service data updating request to real-time messages server, in Figure 11, suppose that client 1 is a kind of hand-held wireless device, it sends service data updating request to real-time server S1, after checking business datum is legal, to real-time server S1, send business datum, real-time server S1 is transmitted to this business datum after intermediate server S, middle tier server S resolves and processes described business datum to calling business intermediate layer interface, after processing successfully by service data updating in database, then business datum is formed to bag in real time and write message queue MQ, then middle tier server S reads in MQ business datum multicast mode push to real-time messages server S 1, S2, real-time messages server S 1, S2 is again according to the real-time messages ID in business datum, described business datum is pushed to the client of type of message under predetermined this business datum.Under predetermined this business, the client of type of message is after the business datum pushing, the real-time processing method that calls all operation layers carries out Data Update to described packet, more after new data, according to the window interface of predetermined this message of real-time messages ID notice in described packet, and upgrade demonstration.
Above-described embodiment ten and embodiment 11 provide two kinds of different system data transmitting procedures, concrete relevant with the way of realization of client, if described client is middle control, prestowage, sluice gate etc., client sends business update request to middle tier server conventionally, if described client is radio hand-held equipment, client sends business update request to real-time server conventionally.In embodiment ten and embodiment 11, realized the function of server described in embodiment ten with middle tier server and several real-time messages servers, this server distribution formula layout type is more reasonable, and data retransmission is more rapid.One of ordinary skill in the art will appreciate that, the all or part of step realizing in above-described embodiment method is to come the hardware that instruction is relevant to complete by program, described program can be in being stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk, CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.

Claims (17)

1. a message real-time synchronization method, is characterized in that, described method comprises:
Initiating business request also receives the business datum to be updated of inputting, and described business datum includes the real-time messages ID of this traffic data type of unique identification;
Send described business datum;
Reception comes from the business datum of server push, and refreshes demonstration.
2. method as claimed in claim 1, is characterized in that, described initiating business request also receives the business datum to be updated of user's input, and described business datum also comprises before including the real-time messages ID step of this traffic data type of unique identification:
According to the required predetermined type of message of current window, create real-time messages ID.
3. method as claimed in claim 2, is characterized in that, described according to the type of message of the required concern of current window, creates real-time messages ID step, specifically comprises:
The type of message of the required concern of registration current window;
Judge whether described type of message exists, if exist, current window handle is added in corresponding real-time messages list.Otherwise first create the real-time messages ID that described type of message is corresponding and add again window handle.
4. method as claimed in claim 3, is characterized in that, describedly judges whether described type of message exists, if exist, current window handle is added in corresponding real-time messages list.Otherwise first create after real-time messages ID that described type of message is corresponding adds window handle step again, comprising:
When window without pay close attention to wherein type of message time, from corresponding real-time messages list, delete window handle corresponding to institute's window.
5. method as claimed in claim 4, is characterized in that, before the described business datum step of described transmission, also comprises:
Detect the legitimacy of the business datum to be updated of input.
6. method as described in claim 1-5 any one, is characterized in that, described reception comes from the business datum of server push, and refreshes step display and specifically comprise:
Start real-time listening thread initialization, be connected to server;
Receive after the business datum of server push, analyze described business datum and be organized into the packet of Table form;
The real-time processing method that calls all operation layers carries out Data Update to described packet;
More, after new data, according to the window interface of predetermined this message of real-time messages ID notice in described packet, and upgrade demonstration.
7. a message real-time synchronization method, is characterized in that, described method comprises:
Start that socket is monitored and message queue scanning thread, link information is added to the list of sockets of client when client being detected and be connected to server;
Reception comes from the business datum of client;
Call business intermediate layer interface and resolve and process described business datum, process successfully after by service data updating in database, and form in real time and write message queue after bag;
Read the business datum in message queue, and according to the real-time messages ID in described business datum, described business datum is pushed to client.
8. method as claimed in claim 7, is characterized in that, described in read the business datum in message queue, and according to the real-time messages ID in described business datum, described business datum is pushed to client step and specifically comprises:
Read the business datum in message queue;
According to the real-time messages ID in described business datum, adopt multicasting method described business datum to be pushed to the client of type of message under predetermined this business datum.
9. a client, is characterized in that, described client comprises:
Business is initiated unit, and for the business datum to be updated of initiating business request reception input, described business datum includes the real-time messages ID of this traffic data type of unique identification;
Data transmission unit, for sending described business datum;
Refresh Data display unit, for receiving the business datum that comes from server push, and refreshes demonstration.
10. client as claimed in claim 9, is characterized in that, described client also comprises:
Numbering creating unit, for according to the required predetermined type of message of current window, creates real-time messages ID.
11. as power require 10 as described in client, it is characterized in that, described numbering creating unit comprises:
Message Registering modules, for registering the type of message of the required concern of current window;
Type judging treatmenting module, for judging whether described type of message exists, adds current window handle in corresponding real-time messages list to if exist.Otherwise first create the real-time messages ID that described type of message is corresponding and add again window handle.
12. clients as claimed in claim 11, is characterized in that, described numbering creating unit also comprises:
Handle delete cells, for when window without pay close attention to wherein type of message time, from corresponding real-time messages list, delete window handle corresponding to institute's window.
13. clients as claimed in claim 12, is characterized in that, described client also comprises:
Data Detection unit, for detection of the legitimacy of the business datum to be updated of inputting.
14. as described in claim 9-13 client, it is characterized in that, described Refresh Data display unit comprises:
Connection initialization module, for starting real-time listening thread initialization, is connected to server;
Data analysis module, for receiving after the business datum of server push, analyzes described business datum and is organized into the packet of Table form;
Service Processing Module, carries out Data Update for calling the real-time processing method of all operation layers to described packet;
Refresh Data display module, for after new data more, according to the window interface of predetermined this message of real-time messages ID notice in described packet, and upgrades and shows.
15. 1 kinds of servers, is characterized in that, described server comprises:
Message monitoring unit, for starting, socket is monitored and message queue scanning thread, link information is added to the list of sockets of client when client being detected and be connected to server;
Data receiver unit, for receiving the business datum that comes from client;
Message Processing writing unit, resolves and processes described business datum for calling business intermediate layer interface, process successfully after by service data updating in database, and form in real time and write message queue after bag;
Data read push unit, for reading the business datum of message queue, and according to the real-time messages ID in described business datum, described business datum are pushed to client.
16. servers as claimed in claim 15, is characterized in that, described data read push unit and comprise:
Data read module, for reading the business datum of message queue;
Multicast pushing module, for according to the real-time messages ID of described business datum, adopts multicasting method described business datum to be pushed to the client of type of message under predetermined this business datum.
17. 1 kinds of container terminal system systems, it is characterized in that, described system comprise at least one client as described in claim 9-14 any one, the server as described in claim 15 or 16 and with as described in the database that is connected of server, described client is connected with described server is wired or wireless.
CN201310102110.4A 2013-03-27 2013-03-27 Real-time message synchronizing method and container wharf operation system Pending CN104079599A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310102110.4A CN104079599A (en) 2013-03-27 2013-03-27 Real-time message synchronizing method and container wharf operation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310102110.4A CN104079599A (en) 2013-03-27 2013-03-27 Real-time message synchronizing method and container wharf operation system

Publications (1)

Publication Number Publication Date
CN104079599A true CN104079599A (en) 2014-10-01

Family

ID=51600641

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310102110.4A Pending CN104079599A (en) 2013-03-27 2013-03-27 Real-time message synchronizing method and container wharf operation system

Country Status (1)

Country Link
CN (1) CN104079599A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106815250A (en) * 2015-12-01 2017-06-09 招商局国际信息技术有限公司 A kind of method for sending data, data server and server
CN108509184A (en) * 2018-03-28 2018-09-07 武汉斗鱼网络科技有限公司 Message distributing method, computer readable storage medium and electronic equipment
CN108712476A (en) * 2018-04-27 2018-10-26 华迪计算机集团有限公司 A kind of method and system carrying out data update based on push technology
CN109766347A (en) * 2017-07-21 2019-05-17 腾讯科技(深圳)有限公司 A kind of data-updating method, device, system, computer equipment and storage medium
CN110019671A (en) * 2017-11-07 2019-07-16 北京京东尚科信息技术有限公司 A kind of method and system handling real-time messages
CN110035108A (en) * 2018-12-26 2019-07-19 阿里巴巴集团控股有限公司 A kind of information-pushing method and system
CN110740195A (en) * 2019-11-20 2020-01-31 山东鲁能软件技术有限公司 distributed system data synchronization method and system based on message engine
CN111047278A (en) * 2019-11-19 2020-04-21 青岛港国际股份有限公司 Automatic dock production operation support system
CN112121413A (en) * 2020-09-30 2020-12-25 腾讯科技(深圳)有限公司 Response method, system, device, terminal and medium of function service
CN112799860A (en) * 2021-01-27 2021-05-14 浪潮云信息技术股份公司 Method for realizing service callback based on message queue and search engine
CN115037712A (en) * 2016-02-25 2022-09-09 元平台公司 Techniques for rich communication for messaging robots
WO2024001564A1 (en) * 2022-06-27 2024-01-04 中兴通讯股份有限公司 Configuration data refreshing method, apparatus, system, storage medium, and electronic apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436288A (en) * 2008-12-03 2009-05-20 腾讯科技(深圳)有限公司 Method for advertisement delivery, system, terminal equipment and server equipment
CN101764828A (en) * 2008-12-23 2010-06-30 华为终端有限公司 Establishing method for push conversation, push system and relevant equipment
CN101957857A (en) * 2010-09-30 2011-01-26 华为终端有限公司 Automatic information push method and server
CN102209084A (en) * 2010-03-30 2011-10-05 华为终端有限公司 Processing method of Push message, apparatus thereof and communication system
CN102932439A (en) * 2012-10-26 2013-02-13 华为终端有限公司 Method and device for synchronizing content

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436288A (en) * 2008-12-03 2009-05-20 腾讯科技(深圳)有限公司 Method for advertisement delivery, system, terminal equipment and server equipment
CN101764828A (en) * 2008-12-23 2010-06-30 华为终端有限公司 Establishing method for push conversation, push system and relevant equipment
CN102209084A (en) * 2010-03-30 2011-10-05 华为终端有限公司 Processing method of Push message, apparatus thereof and communication system
CN101957857A (en) * 2010-09-30 2011-01-26 华为终端有限公司 Automatic information push method and server
CN102932439A (en) * 2012-10-26 2013-02-13 华为终端有限公司 Method and device for synchronizing content

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106815250A (en) * 2015-12-01 2017-06-09 招商局国际信息技术有限公司 A kind of method for sending data, data server and server
CN115037712A (en) * 2016-02-25 2022-09-09 元平台公司 Techniques for rich communication for messaging robots
CN109766347A (en) * 2017-07-21 2019-05-17 腾讯科技(深圳)有限公司 A kind of data-updating method, device, system, computer equipment and storage medium
CN110019671A (en) * 2017-11-07 2019-07-16 北京京东尚科信息技术有限公司 A kind of method and system handling real-time messages
CN108509184A (en) * 2018-03-28 2018-09-07 武汉斗鱼网络科技有限公司 Message distributing method, computer readable storage medium and electronic equipment
CN108712476B (en) * 2018-04-27 2021-11-02 华迪计算机集团有限公司 Method and system for updating data based on push technology
CN108712476A (en) * 2018-04-27 2018-10-26 华迪计算机集团有限公司 A kind of method and system carrying out data update based on push technology
CN110035108A (en) * 2018-12-26 2019-07-19 阿里巴巴集团控股有限公司 A kind of information-pushing method and system
CN111047278A (en) * 2019-11-19 2020-04-21 青岛港国际股份有限公司 Automatic dock production operation support system
CN110740195A (en) * 2019-11-20 2020-01-31 山东鲁能软件技术有限公司 distributed system data synchronization method and system based on message engine
CN110740195B (en) * 2019-11-20 2022-05-20 山东鲁能软件技术有限公司 Distributed system data synchronization method and system based on message engine
CN112121413A (en) * 2020-09-30 2020-12-25 腾讯科技(深圳)有限公司 Response method, system, device, terminal and medium of function service
CN112799860A (en) * 2021-01-27 2021-05-14 浪潮云信息技术股份公司 Method for realizing service callback based on message queue and search engine
CN112799860B (en) * 2021-01-27 2023-02-21 浪潮云信息技术股份公司 Method for realizing service callback based on message queue and search engine
WO2024001564A1 (en) * 2022-06-27 2024-01-04 中兴通讯股份有限公司 Configuration data refreshing method, apparatus, system, storage medium, and electronic apparatus

Similar Documents

Publication Publication Date Title
CN104079599A (en) Real-time message synchronizing method and container wharf operation system
US11108630B2 (en) Hierarchical configuration of networked communication devices
US10530726B2 (en) Email notifications
EP2559313B1 (en) Method and device of managing mtc devices in a mtc network environment
CN103607428A (en) Method of accessing shared memory and apparatus thereof
CN104468299B (en) Enterprise Service Bus system based on user policy
CN112995239B (en) Data processing method and device
CN110012534A (en) Equipment state synchronous method, device, equipment and computer readable storage medium
CN101567861A (en) Data synchronization method and application system between heterogeneous application systems
CN104486111A (en) 1553B data bus system network management method
CN109299173A (en) Data transmission method, device and storage medium
CN105792025A (en) Device information obtaining method and terminal
CN112838980B (en) Message processing method, system, device, electronic equipment and storage medium
CN103685576A (en) Interaction method for CDN (Content Delivery Network) nodes and CDN management system
CN103997509A (en) Service oriented architecture-based service processing method and apparatus
CN110351107A (en) Configuring management method and device
CN106302432B (en) A kind of communication device and control method based on car networking
CN103092951A (en) Conventional data exchange method and conventional data exchange system based on information presentation layers
CN111669445A (en) Information subscription method and device of arbitration system
CN104243483A (en) Message processing method and message processing equipment
CN104660664A (en) Method and apparatus for managing storage system
CN104639379A (en) Proxy testing method and device
CN208079095U (en) A kind of elevator long distance information integrated system
CN115665172A (en) Management system and management method of embedded terminal equipment
CN110166955A (en) A kind of method and apparatus carrying out calendar prompting

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20141001