CN1331042C - Message service device and method for console of machine group mornitoring-controlling system - Google Patents

Message service device and method for console of machine group mornitoring-controlling system Download PDF

Info

Publication number
CN1331042C
CN1331042C CNB2004100314630A CN200410031463A CN1331042C CN 1331042 C CN1331042 C CN 1331042C CN B2004100314630 A CNB2004100314630 A CN B2004100314630A CN 200410031463 A CN200410031463 A CN 200410031463A CN 1331042 C CN1331042 C CN 1331042C
Authority
CN
China
Prior art keywords
message
queue
task
ethernet
message queue
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.)
Expired - Fee Related
Application number
CNB2004100314630A
Other languages
Chinese (zh)
Other versions
CN1677340A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CNB2004100314630A priority Critical patent/CN1331042C/en
Publication of CN1677340A publication Critical patent/CN1677340A/en
Application granted granted Critical
Publication of CN1331042C publication Critical patent/CN1331042C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The present invention provides a message service device for a console of a cluster monitoring system. The present invention comprises a card assembling device, a node intermediate agency device and a basic service provider device, wherein the basic service provider device is used for collecting the hardware data and the software data of all the nodes of the cluster system. The basic service provider device comprises a serial communication device, an Ethernet communication device, a serial message queue memory, an Ethernet message queue memory, a task message queue memory, a serial message queue operating device, an Ethernet message queue operating device, a task message queue operating device and a task processing device, wherein the serial message queue memory is used for storing serial message queues; the Ethernet message queue memory is used for storing Ethernet message queues; the task message queue memory is used for storing task message queues; the task processing device is used for processing management tasks which are sent to the nodes through a console by a cluster administrator. Besides, the present invention also discloses a message service method. Thus, by using the message service device and the massage service method, the efficiency for the console to manage all the communication messages can be improved.

Description

The message service apparatus and the method thereof that are used for the computers group monitoring control desk
Technical field
The present invention relates to computers group monitoring, be specifically related to realize employed message queue service method of computers group monitoring control desk and device.
Background technology
Network of Workstation is the gathering of the node computer (normally server) of many platform independent.These node computers condense together by private high network and supportive software and hardware, externally show as a single supercomputer.Network of Workstation is the system of a complexity normally, and managerial personnel need to be grasped a large amount of management datas in the whole Network of Workstation of management, and these data are done complicated analysis, also will manage operation to some member of Network of Workstation simultaneously.If it is quite difficult finishing these work by hand with the keeper, computers group monitoring is gathered the various management datas of a group of planes for cluster management person exactly, and these data are done complicated the analysis, and the while is to the system of some member transmission keeper's of a group of planes operational order.In order to collect all management datas, the monitoring management system control desk needs the acquisition hardware data, also needs the acquisition software data, and control desk also will send the bookkeeping order to node.Realize that monitoring management system gathers various management datas and send administration order to some node of Network of Workstation, this just needs the supervisory system control desk not only will communicate by letter with all node hardware data harvesters, also to communicate by letter with all software data harvesters, and these communications are all carried out simultaneously, so, need handle a large amount of communication informations at the supervisory system control desk, how manage these various communication informations, be a great problem that the supervisory system control desk faces.
Summary of the invention
In order to address the above problem, the present invention proposes a kind of by the supervisory system control desk use in order to the message service apparatus of managing all communication informations and a kind of message service method of supervisory communications message.Described message service apparatus is clear in structure not only, be difficult for makeing mistakes, and efficient is very high.
Comprise according to the employed message service apparatus of supervisory system control desk of the present invention: compile card device, be used for gathering the hardware data of all nodes in rack of Network of Workstation; Node middle-agent (NP) installs, and is used for gathering the software data of all nodes in rack of Network of Workstation; Basic service supplier device (BSP) is used for compiling card with all by serial ports respectively with Ethernet and communicates by letter with all NP devices, gathers the hardware data and the software data of all nodes in the Network of Workstation; Wherein, described basic service supplier device comprises: the serial communication device be used for serial ports is operated, thereby card device sends or receive message from compiling card device to compiling; The ethernet communication device is used for Ethernet is operated, thereby receives message to the transmission of NP device or from the NP device; Serial ports message queue storer, being used to store all need be to compiling the message that card sends and all are from compiling the message that clamping is received, as the serial ports message queue; Ethernet message queue storer, being used to store all need be to the message of NP device transmission and the message that all receive from the NP device, as the Ethernet message queue; The task message queue memory is used to store all and need sends to the operation task of compiling card or NP device, as the task message formation; Serial ports message queue operating means is used for directly serial ports message queue operation and maintenance serial ports message queue, thus for and the serial communication device service of giving information that compiles cartoon letters; Ethernet message queue operating means is used for directly Ethernet message queue operation and maintenance Ethernet message queue, thus the ethernet communication device service of giving information for communicating by letter with the NP device; Task message queue operation device is used for directly task message queue operation and maintenance task message queue, thus for the NP device and compile the serial communication device of cartoon letters and the ethernet communication device about the communications portion service of giving information of task; Task Processing Unit is used for cluster management person is handled by the management role of the node of control desk transmission.
According to the message service method that is used for the computers group monitoring control desk of the present invention, being used for basic service supplier device compiles card with all through serial ports respectively with Ethernet and communicates by letter with all NP devices, thereby the hardware data of all nodes and software data in the collection Network of Workstation, described method comprises:
Thereby serial ports message queue executable operations is provided the serial ports messenger service and receives the step of feedback message from compiling clamping to compiling card by the serial communication device;
Thereby Ethernet message queue executable operations is provided the Ethernet messenger service and receives the step of feedback message from Ethernet to the NP device by the ethernet communication device;
Thereby task message formation executable operations is provided task and the step of task action result is provided to serial ports message queue and Ethernet message queue.
Message service apparatus and method by the invention described above provides can improve the efficient that the supervisory system control desk manages all communication informations, have alleviated the heavy management role of system console thus.
In addition, summary of the invention also comprises and is used in each message queue comprising with method, mechanism and the device of cooperating synchronously between three kinds of message queues: session number mechanism (session) and recording mechanism writing time (timeval), and the mechanism of round (timeid), these mechanism are illustrated by following specific embodiment.
Description of drawings
Above-mentioned purpose of the present invention and feature thereof will become more obvious by the explanation of with reference to accompanying drawing preferred embodiment being done subsequently, wherein:
Fig. 1 is the schematic diagram that the present invention is used for the message service apparatus of computers group monitoring control desk;
Fig. 2 is the schematic diagram of the serial ports message queue being operated by the serial ports message queue operating means of message service apparatus of the present invention;
Fig. 3 is the serial ports processing flow chart;
Fig. 4 is the schematic diagram of the Ethernet message queue being operated by the Ethernet message queue operating means of message service apparatus of the present invention;
Fig. 5 describes to send the process flow diagram of the operation of message to Ethernet among Fig. 4;
Fig. 6 describes to receive the process flow diagram of the operation of message from Ethernet among Fig. 4;
Fig. 7 is the task message queue operation device schematic diagram that formation is operated to task message by message service apparatus of the present invention.
Embodiment
As shown in Figure 1, the message service apparatus that is used for the computers group monitoring control desk comprises: be used to gather all nodes in rack of Network of Workstation hardware data compile card device 110; Be used for gathering node middle-agent (NP) device 111 of the software data of all nodes in rack of Network of Workstation; Basic service supplier device (BSP) 120 is used for compiling card with all by serial ports respectively with Ethernet and communicates by letter with all NP devices, thereby gathers the hardware data and the software data of all nodes in the Network of Workstation.BSP120 comprises a plurality of message queue storeies: all that are used to store as the serial ports message queue need be to compiling serial ports message queue storer 103 from the message compiling clamping and receive of message that card sends and all, being used to store the Ethernet message queue storer 109 of the message that receives from the NP device as all message that need send to the NP device of Ethernet message queue and all; All that are used to store as the task message formation need send to the task message queue memory 106 of the operation task of compiling card or NP device; Be used to handle the serial ports message queue operating means 102 of serial ports message queue; Be used to handle the Ethernet message queue operating means 108 of Ethernet message queue; The task message queue operation device 105 that is used for the operation of Processing tasks message queue; Serial communication device 101, be used for the direct control serial ports, with the messenger service of utilizing serial ports message queue operating means 102 to provide, be that the serial communication device obtains the message that needs transmission by serial ports message queue operating means 102 from message queue storer 103, serial communication device 101 is stored in the message that receives in the serial ports message queue storer 103 by serial ports message queue operating means 102; Ethernet communication device 107, be used for the direct control Ethernet, in order to the messenger service that provides with ether network information queue operation device 108, to be ethernet communication device 107 by Ethernet message queue operating means 108 obtain from Ethernet message queue storer 109 needs the message that sends, and ethernet communication device 107 deposits the message that receives too in the network information queue memory 109.Task Processing Unit 104, be used to handle all keepers' management role, Task Processing Unit 104 deposits in the task message queue memory 106 by the management role of task message queue operation device 105 with the keeper simultaneously, to send to the task of compiling card by serial ports message queue operating means 102 and insert in the serial ports message queue of serial ports message queue storer 103, the task that will send to the NP device by ethernet communication device 107 is inserted in the Ethernet message queue of Ethernet message queue storer 109.
Below the serial ports message queue in the serial ports message queue storer 103 among Fig. 1, task message formation in the task message queue memory 106 and the definition of the Ethernet message queue in the Ethernet message queue storer 109 and the structure of each message queue operating means are elaborated.
The serial ports message queue is defined as follows:
typedef?struct
{
Int first; The call number of // article one message
Int last; The call number of // the last item message
Int len; The sum of // message
SERIAL_CMD_ELEMENT?element[SERIAL_CMD_MAXSIZE];
}SERIAL_CMD_QUEUE;
Wherein SERIAL_CMD_ELEMENT is a message structure, and it is defined as follows:
typedef?struct{
Int session; // session id is in order to identification message
Int been_sent; // the number of times that has been sent out
Int try_times; // repeating transmission number of times
Struct timespec timeout_tv; // time-out time
CMD_PACKET command; // send to the packet that compiles card
SERIAL_CALLBACK before_callback; // message initialization process function
SERIAL_CALLBACK after_callback; Processing function after the // reception message
SERIAL_CALLBACK timeout_callback; // timeout treatment function
}SERIAL_CMD_ELEMENT;
The Ethernet message queue is made up of three message queues, sends message queue, and the resend message formation receives message queue.
The structure that wherein sends message queue and resend message formation is the same, is defined as follows:
typedef?struct?request_queue{
Rqst_queue_element_element[MAXQUEUELEN];
gint16?next[MAXQUEUELEN];
Guint16 first; The call number of // article one message
Guint16 last; The call number of // the last item message
Guint16 length; The sum of // message
}request_queue;
Wherein Rqst_queue_element is the structure of message, is defined as follows:
typedef?struct?Rqst_queue_element{
Packet_Header request; // data packet head
Guint16 receiver_id; // take over party ID
Gchar out_content[BSP_RECEIVE_BUFLEN]; // data inclusion
Guint16 resend_times; // repeating transmission number of times
Gdouble out_time_s; // transmission point the time, second
Gulong out_time_us; // microsecond
Gdouble in_time_s; // checkpoint the time, second
Gulong in_time_us; // microsecond
Gboolean need_resend; // whether need to retransmit
Below/the * be the various call back functions of Message Processing and parameter * thereof/
QueueCallback?before_rqst_callback_wrapper;
gpointer?before_rqst_parameter;
gpointer?before_rqst_object;
QueueCallback?after_rqst_callback_wrapper;
gpointer?after_rqst_parameter;
gpointer?after_rqst_object;
QueueCallback?discard_rqst_callback_wrapper;
gpointer?discard_rqst_parameter;
gpointer?discard_rqst_object;
The interface of/* and other internal modules, comprise session id and call back function */
Int cms_session; // session id is in order to identification message
EtherCallback?ether_after_callback;
EtherCallback?ether_timeout_callback;
}Rqst_queue_element;
The reception message queue is defined as follows:
typedef?struct?request_command_queue{
CommandSession?element[MAXQUEUELEN];
gint16?next[MAXQUEUELEN];
Guint16 first; // article one message index number
Guint16 last; // the last item message index number
Guint16 length; // message-length
}?request_command_queue;
Wherein CommandSession is the structure of message, is defined as follows:
typedef?struct?CommandSession{
Gulong session; // session id is in order to identification message
Guint8 type; // type of message
Gdouble s_time_s; // be used for computing time, second
Gulong s_time_us; // microsecond
Gulong limit_time; // binding hours
Gchar data[COMMAND_DATA_LEN]; // reception packet
Guint pos; // node number
gboolean?has_response[FRAME_NUMBER_MAX+1];
gboolean?has_response2[FRAME_NUMBER_MAX+1][NODE_NUMBER_MAX+1];
Guint response_num; // by what nodes return
Gboolean has_send; // whether send
Gboolean finished; // whether finish
The interface of/* and other internal modules, comprise session id and call back function */
gulong?cms_session;
EtherCallback?ether_after_callback;
EtherCallback?ether_timeout_callback;
}CommandSession;
The task message queue definitions is as follows:
typedef?struct{
Int length; // queue length
ELEMENT element[JOB_LIST_SIZE+1];
}?JOB_LIST;
Wherein ELEMENT is the task message structure, is defined as follows:
typedef?struct{
Int used; / * 0 expression is not used, luxuriant and rich with fragrance O represent to use */
Int prev; // previous task
Int next; // next task
JOB cmd;
}?ELEMENT;
Wherein JOB is the main body of task message structure, is defined as follows:
typedef?struct{
Int session; // session id is in order to identification message
Time_t time_point; // task execution time
Int serial_status; // com-state
Int ether_status; // Ethernet state
Int turn; // execution number of times
Job_Info?job;
}?JOB;
Serial ports message queue operating means 102 comprises:
Serial ports message queue initialization module (serial_cmd_queue_init () function) is used for doing some necessary initial work before using the serial ports message queue.Initialization operation comprises the formation zero clearing, and the last index value of formation is set.
Create the module (gen_serial_cmd () function) of message in the serial ports message queue, be used to create a message that meets the serial ports message structure.
In message queue, insert the module (register_serial_cmd () function) of a piece of news.
The module (serial_cmd_queue_remove () function) of deletion a piece of news from message queue.
Message goes out group module (serial_cmd_queue_first () function) in the message queue.
The module of query messages queue length (serial_cmd_queue_length () function).
Message queue protection module, the operational module that locks when comprising the access message formation (lock_serial_cmd_queue () function) and unlock operation module (unlock_serial_cmd_queue () function).
Ethernet message queue operating means 108 comprises:
The protection module of message queue; comprise following lock management module: lock_unsent_queue () function; unlock_unsent_queue () function; lock_unreplied_queue () function; unlock_unreplied_queue () function; lock_command_queue () function, unlock_command_queue () function.
Send the initialization module (rqst_unsent_queue_init () function) of message queue.
Create the operational module that sends message queue
(rqst_unsent_queue_element_new_outer () function).
Send the operational module of joining the team (rqst_unsent_queue_append () function) of message queue.
What send message queue goes out group operational module (rqst_unsent_queue_get_first () function).
Deletion sends the module of article one message in the message queue
(rqst_unsent_queue_delete_first () function).
Inquiry sends the module (rqst_unsent_queue_length () function) of the length of message queue.
The initialization module of resend message formation (rqst_unreplied_queue_init () function).
Create the operational module (rqst_unreplied_queue_element_new_outer () function) of resend message formation
The operational module of joining the team of resend message formation (rqst_unreplied_queue_append () function).
The resend message formation go out group operational module (rqst_unreplied_queue_get_first () function).
The module (rqst_unreplied_queue_delete first () function) of article one message in the formation of deletion resend message.
The module (rqst_unreplied_queue_length () function) of the length of inquiry resend message formation.
The module of query messages in the resend message formation (rqst_unreplied_queue_find () function).
The module of any message in the formation of deletion resend message
(rqst_unreplied_queue_delete () function).
Receive message queue initialization module (command_queue_init () function).
Create the module (command_queue_new () function) that receives message, this function is not to create a complete reception message, because the content that receives be can not determine, this function is just created a position that receives message in receiving formation, and a session number that sends message is stored in this message, so that can find corresponding deposit position after receiving message.
Deletion receives the module (command_queue_free () function) of a piece of news in the message queue.
Search the module (command_queue_find () function) of message according to session number, this function is used for can finding corresponding memory location according to session number after receiving a piece of news.
Inquiry receives the module (command_queue_length () function) of the length of message queue
Whether receive message queue and check module (command_queue_check () function), this function is used to make regular check on the situation that receives message, receive to determine message on time.
Task message queue operation device 105 comprises:
Task message formation initialization module (job_list_init () function).
The module of query task message queue length (job_list_length () function)
The task message formation is gone into operational module (job_list_append () function).
The module (job_list_remove () function) of a piece of news in the formation of deletion task message.
Search the module (job_list_search_session () function) of message according to session number.
The protection module of task message formation (lock_job_list () function and unlock_job_list () function).
In the BSP device, by compiling card and NP device image data and all being undertaken by round to compiling card and NP device transmission administration order.
The schematic diagram of Fig. 2 for the serial ports message queue being operated by serial ports message queue operating means; As shown in Figure 2, take turns at each, BSP main thread 202 is taken turns the order insertion serial ports message queue 204 that compiles the required transmission of card by serial ports message queue operating means 203 gathering one.Task processing threads 201 searches at first whether the task of needing transmission is arranged in the user task database, if have, then by message queue operating means 203 task is inserted in the serial ports message queue 204 by Task Processing Unit, simultaneously, the BSP main thread is by the quantity of cluster configuration information acquisition rack, thereby determine to compile the quantity of card, to each rack, the BSP main thread generates a data acquisition message by the gen_serial_cmd () function in the serial ports message queue operating means and by register_serial_cmd () function message is inserted in the serial ports message queue.
Reading information and sending from serial ports message queue 204 is to be finished by a special operation of serial-port thread to compiling card, and the operation of serial-port thread also be responsible for to receive simultaneously and compiles the message that card returns, and calls corresponding processing function and further process.The serial ports processing flow chart as shown in Figure 3.
At first in step 301, the operation of serial-port thread reads the message that will be sent out by serial ports message queue operating means and forms communications packets from the serial ports message queue, and initialization should be wrapped; The repeating transmission number of times that writes down in the structure of step 302 according to serial ports message judges whether the transmission number of times of this bag exceeds predetermined repeating transmission number of times; When if the transmission number of times of this bag exceeds predetermined repeating transmission number of times, then call the failure call back function of this bag, and communications packets is deleted from the serial ports message queue.When if the transmission number of times of this bag does not exceed predetermined repeating transmission number of times, then send this bag to compiling card, and make and send number of times and add 1 in step 304 item; Judge whether receive corresponding return state bag within the predetermined time in step 305,, then return step 302, otherwise carry out step 306 if do not receive from compiling card.Whether the form of the bag that judge to receive in step 306 is correct, if its format error is then returned step 302, otherwise carry out step 307: call the data processing call back function so that the bag that receives is handled, and be inserted in the serial ports message queue as feedback message.
Equally, in the BSP main thread, also in the Ethernet message queue, insert collection one all message of taking turns the required transmission of NP data.What be different from serial ports is: the transmission of Ethernet message is what separate with receiving employed message queue, and also is independently to the operation thread that sends message queue and reception message queue.To the operation of Ethernet message queue as shown in Figure 4, and Fig. 5 and Fig. 6 illustrate sending the operation of message and receive the flow process of the operation of message from Ethernet to Ethernet among Fig. 4.
In Fig. 4, in task processing threads 401, at first from the user task database, watch whether the task of needing transmission is arranged, if have, then task is inserted in the Ethernet message send queue 406 by Task Processing Unit, simultaneously, the BSP main thread inserts collection one all message of taking turns the required transmission of NP data by the quantity of cluster configuration information acquisition rack in Ethernet message send queue 406.Ethernet sends thread 409 and take out message from transmit queue 406, sends to the NP device, preserves portion simultaneously in re-transmit queue 407, and deletes the message that has sent in the transmit queue 406.If receiving thread 410 receives Ethernet message in official hour, put into and receive formation 408, corresponding message in the deletion re-transmit queue 407 if do not receive message in official hour, is then inserted transmit queue 406 to corresponding message in the re-transmit queue 407 and is retransmitted once.Corresponding relation between the message is that session number according to message judged, and has stored temporal information in message structure, and is overtime in order to judge whether.
Fig. 5 describes the flow process that the Ethernet message queue to Ethernet transmission message among Fig. 4 is operated in detail.At first, from the Ethernet transmit queue, read a piece of news by Ethernet message queue device, before step 502 judges to send message, whether will carry out call back function then in step 501.Carry out if desired, then carry out call back function in step 503 pair message.Otherwise this message is sent in step 504.Simultaneously, in re-transmit queue, preserve a copy in step 505 by Ethernet message queue operating means.And pass through Ethernet message queue operating means in step 506 this message in the transmit queue is deleted.
Fig. 6 describes the flow process that the Ethernet message queue from Ethernet reception message among Fig. 4 is operated in detail.At first, constantly monitor the Ethernet receiving port at step 601 receiving trap.Make regular check on whether receive message in step 602 then from Ethernet.If the message of receiving is then receiving in the formation by session (session) number in step 603 and is searching the deposit position of message to deposit this message.Owing to all write down the call back function behind the message sink in every message, called this function in step 604 message is further handled.If do not receive message, then each the bar message in step 605 inspection re-transmit queue has judged whether time exceeded message.If there is not time exceeded message, then continue step 601.If judged time exceeded message, then judge to retransmit number of times whether within stipulated number, if then the message that will need by Ethernet message queue operating means to retransmit in step 607 is inserted in the transmit queue, to retransmit in step 607.Otherwise continue to monitor.
Below in conjunction with Fig. 7 the operation that the task message queue operation device by message service apparatus of the present invention carries out the task message formation is described.In Fig. 7, each takes turns task processing threads 702 and all will visit database 701 one time, check whether to have and to send to the operation task of compiling card or NP device, if have, be task message then with task creation, insert task message formation 704, check each the bar message in the task message formation 704 then, needs are sent to the message of compiling card put into the serial ports message queue, needs are sent to the transmit queue that the message of NP device sends in the Ethernet message queue by Ethernet message queue operating means 706 by serial ports message queue operating means 705.
Serial ports processing threads and Ethernet processing threads are responsible for task message is sent, and are responsible for the feedback information of reception task implementation status simultaneously, and corresponding condition of information in the updating task message queue.
Task processing threads 702 is checked the task executions situation termly, revise the task executions state and task action result is write in the database, thereby control desk reads in the result from database, report to the keeper.
Therefore, though invention has been described, obviously, the present invention can change in many aspects.Such variation should not be counted as breaking away from the variation of the spirit and scope of the present invention, and for a person skilled in the art, modification that should all are such limits within the scope of the appended claims.

Claims (15)

1, a kind of message service apparatus that is used for the computers group monitoring control desk comprises: compile card device, be used for gathering the hardware data of all nodes in rack of Network of Workstation; Node middle-agent device is used for gathering the software data of all nodes in rack of Network of Workstation; Basic service supplier device is used for compiling card with all and communicates by letter with all node middle-agent devices, gathers the hardware data and the software data of all nodes in the Network of Workstation; Wherein, described basic service supplier device comprises:
The serial communication device is used for serial ports is operated, thereby card device sends or receive message from compiling card device to compiling;
The ethernet communication device is used for Ethernet is operated, thereby receives message to the transmission of node middle-agent device or from node middle-agent device;
Serial ports message queue storer, being used to store all need be to compiling the message that card sends and all are from compiling the message that clamping is received, as the serial ports message queue;
Ethernet message queue storer, being used to store all need be to the message of node middle-agent device transmission and the message that all receive from node middle-agent device, as the Ethernet message queue;
The task message queue memory is used to store all and need sends to the operation task of compiling card or node middle-agent device, as the task message formation;
Serial ports message queue operating means is used for directly serial ports message queue operation and maintenance serial ports message queue, thus for and the serial communication device service of giving information that compiles cartoon letters;
Ethernet message queue operating means is used for directly Ethernet message queue operation and maintenance Ethernet message queue, thus the ethernet communication device service of giving information for communicating by letter with node middle-agent device;
Task message queue operation device, be used for directly task message queue operation and maintenance task message queue, thus for node middle-agent device and compile the serial communication device of cartoon letters and the ethernet communication device about the communications portion service of giving information of task;
Task Processing Unit is used for cluster management person is handled by the management role that control desk sends to node.
2. message service apparatus as claimed in claim 1 is characterized in that described Ethernet message queue by sending message queue, receives message queue, and the resend message formation is formed.
3. message service apparatus as claimed in claim 1 is characterized in that described serial ports message queue operating means comprises:
Initialization module, create join the team module and message of message module, message insert module, message deletion module, message and go out group module, length enquiry module, and be used for serial ports message queue protection module that the visit of serial ports message queue is protected.
4. message service apparatus as claimed in claim 3 is characterized in that this serial ports message queue protection module is included in and adds lock module and the module of unblanking after operation is finished to the serial ports message queue when serial ports message queue operated.
5. message service apparatus as claimed in claim 1 is characterized in that described Ethernet message queue operating means comprises:
Initialization module, the Ethernet message queue protection module of creating message module, queue operation module and being used for the Ethernet message queue of visit is protected.
6. message service apparatus as claimed in claim 5 is characterized in that described Ethernet message queue protection module is included in and adds lock module and the module of unblanking after operation is finished to the Ethernet message queue when Ethernet message queue operated.
7. message service apparatus as claimed in claim 2 is characterized in that described Ethernet message queue operating means comprises:
Initialization module, Ethernet message send queue protection module, Ethernet message retransmission formation protection module, the Ethernet message sink formation protection module creating message module, transmit queue operational module, re-transmit queue operational module, reception queue operation module and be used for the reception formation of visit is protected.
8. message service apparatus as claimed in claim 7 is characterized in that described each Ethernet message queue protection module all is included in and adds lock module and the module of unblanking after operation is finished to the Ethernet message queue when Ethernet message queue operated.
9. message service apparatus as claimed in claim 1 is characterized in that described task message queue operation device comprises:
Initialization module, create join the team module and message of message module, message deletion module, message and go out group module, length enquiry module, be used for searching the task message formation protection module that the message of message is searched module and is used for the task message formation of visit is protected according to session number.
10. message service apparatus as claimed in claim 9 is characterized in that task message formation protection module is included in task message and adds lock module and the module of unblanking after the task message queue operation is finished when formation is operated.
11. message service method that is used for the computers group monitoring control desk, compile card with all respectively through serial ports and Ethernet and communicate by letter with all node middle-agent devices and gather the hardware data and the software data of all nodes of Network of Workstation thereby be used for basic service supplier device, described method comprises:
Thereby serial ports message queue executable operations is provided the serial ports messenger service and receives the step of feedback message from compiling clamping to compiling card by the serial communication device;
Thereby Ethernet message queue executable operations is provided the Ethernet messenger service and receives the step of feedback message from Ethernet to node middle-agent device by the ethernet communication device;
Thereby task message formation executable operations is provided task and the step of task action result is provided to serial ports message queue and Ethernet message queue.
12. message service method as claimed in claim 11 is characterized in that the serial ports messenger service is provided and receives the step of feedback message and comprising from compiling clamping to compiling card:
(a) take turns the order insertion serial ports message queue that compiles the required transmission of card by serial ports message queue operating means gathering one;
(b) check the task that whether the user task database has needs transmission, when defining the task of needing transmission, by serial ports message queue operating means task is inserted in the serial ports message queue by Task Processing Unit;
(c) determine to compile the quantity of card according to the quantity of rack, to each rack, by generating a data acquisition message in the serial ports message queue operating means and this message being inserted in serial ports message queue;
(d) from the serial ports message queue, read information and sending to compiling card and receiving message from compiling clamping.
13. message service method as claimed in claim 12 is characterized in that step (d) comprising:
(i) from the serial ports message queue, read the message that will be sent out and form communications packets, and initialization should be wrapped;
Whether the transmission number of times of (ii) judging this bag exceeds predetermined repeating transmission number of times;
(iii) when the transmission number of times of this bag exceeds predetermined repeating transmission number of times, should wrap from the serial ports message queue and delete;
(iv) when the transmission number of times of this bag does not exceed predetermined repeating transmission number of times, then send this bag, and make the transmission number of times add 1 to compiling card;
If (v) do not receive corresponding return state bag from compiling card within the predetermined time, then repeating step (ii);
(whether the form of vi) checking bag is correct;
(vii) repeating step is (ii) when the form of this bag is incorrect;
(viii) this bag is carried out predetermined process and be inserted in the serial ports message queue as feedback message.
14. message service method as claimed in claim 11 is characterized in that the Ethernet messenger service is provided and comprises from the step that node middle-agent device receives feedback message to node middle-agent device:
(a) check whether the task of needing transmission is arranged,, then task is inserted in the Ethernet message send queue in the user task database by Task Processing Unit if having;
(b) in the Ethernet message send queue, insert collection one all message of taking turns the required transmission of node middle-agent data;
(c) from transmit queue, take out message, send to node middle-agent device, in re-transmit queue, preserve the copy of this message simultaneously;
(d) judge whether to receive the Ethernet return messages from node middle-agent device;
(e) when receiving the Ethernet return messages, in receiving formation, search the deposit position of this message to insert this message by session number;
(f) this message is carried out predetermined process;
This transmission message deletion that (g) in transmit queue, will send;
(h) when not receiving the Ethernet return messages, check in the re-transmit queue whether have time exceeded message;
(i) when having time exceeded message, judge to retransmit number of times whether within pre-determined number;
(j) when the repeating transmission number of times is within pre-determined number, retransmit this message;
(k) message of retransmitting is inserted in the transmit queue.
15. message service method as claimed in claim 11 is characterized in that to the serial ports message queue and the Ethernet message queue provides task and provide the step of task action result to comprise:
(a) from the user task database, read in keeper's administration order as task by Task Processing Unit;
(b) creating message according to the type of task also inserts this message in task message formation;
(c) judging that this message sends to compiles card or sends to node middle-agent device;
(d) be when sending to the message of compiling card in this message, message inserted in the serial ports message queue by serial ports message queue operating means,
(e) be when sending to the message of node middle-agent device, message to be inserted in the Ethernet message queue in this message by Ethernet message queue operating means;
(f) make regular check on the task executions situation by Task Processing Unit, and revise the task executions state;
(g) task action result is write in the database, thereby cluster management person reads this result by control desk from database.
CNB2004100314630A 2004-03-29 2004-03-29 Message service device and method for console of machine group mornitoring-controlling system Expired - Fee Related CN1331042C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100314630A CN1331042C (en) 2004-03-29 2004-03-29 Message service device and method for console of machine group mornitoring-controlling system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100314630A CN1331042C (en) 2004-03-29 2004-03-29 Message service device and method for console of machine group mornitoring-controlling system

Publications (2)

Publication Number Publication Date
CN1677340A CN1677340A (en) 2005-10-05
CN1331042C true CN1331042C (en) 2007-08-08

Family

ID=35049878

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100314630A Expired - Fee Related CN1331042C (en) 2004-03-29 2004-03-29 Message service device and method for console of machine group mornitoring-controlling system

Country Status (1)

Country Link
CN (1) CN1331042C (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103607421A (en) * 2013-10-10 2014-02-26 深圳市同洲电子股份有限公司 Data interaction method and intelligent terminal
CN105574158B (en) * 2015-12-15 2019-03-12 广州品唯软件有限公司 The method for refreshing and its system of database caches data
CN108694107B (en) * 2017-04-10 2022-01-07 北京京东尚科信息技术有限公司 Message queue backlog monitoring method and device, readable medium and electronic equipment
CN108509277A (en) * 2018-04-03 2018-09-07 中国电子科技集团公司第七研究所 Electronic lock serial ports Asynchronous Reception processing system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020016867A1 (en) * 2000-05-02 2002-02-07 Sun Microsystems, Inc. Cluster event service method and system
WO2003005194A2 (en) * 2001-07-05 2003-01-16 Softwired Ag Method for ensuring operation during node failures and network partitions in a clustered message passing server
CN1466095A (en) * 2002-06-10 2004-01-07 联想(北京)有限公司 Method and system for collecting sofeware and hardware information in cluster node
CN1466053A (en) * 2002-06-10 2004-01-07 联想(北京)有限公司 Method and system for cluster fault localization and alarm

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020016867A1 (en) * 2000-05-02 2002-02-07 Sun Microsystems, Inc. Cluster event service method and system
WO2003005194A2 (en) * 2001-07-05 2003-01-16 Softwired Ag Method for ensuring operation during node failures and network partitions in a clustered message passing server
CN1466095A (en) * 2002-06-10 2004-01-07 联想(北京)有限公司 Method and system for collecting sofeware and hardware information in cluster node
CN1466053A (en) * 2002-06-10 2004-01-07 联想(北京)有限公司 Method and system for cluster fault localization and alarm

Also Published As

Publication number Publication date
CN1677340A (en) 2005-10-05

Similar Documents

Publication Publication Date Title
CA2270112C (en) Fail-safe event driven transaction processing system and method
US8402131B2 (en) Hierarchy for characterizing interactions with an application
US9053218B2 (en) Data transmission capture in support of medication preparation
US7421546B2 (en) Intelligent state engine system
US5964831A (en) Distributed on-line data communications system and method
US6292801B1 (en) System and method for managing computer and phone network resources
Martin et al. Small Byzantine quorum systems
US20070266149A1 (en) Integrating traffic monitoring data and application runtime data
CN101002190A (en) E-mail delivery system using metadata on e-mails to manage virtual storage
CN105989539A (en) Financial trading condition acquisition system and method
UA65638C2 (en) Method and system for synchronization and management of a data base
CN101371496A (en) Automatic generation method for interfered workflow model in telecommunication network
WO2003031999A1 (en) Method and apparatus for monitoring and logging the operation of a distributed processing system
EP2486698B1 (en) Method and system for reconstructing transactions in a communication network
CN100566327C (en) The method and system of received communication data
Cooper Circus: A replicated procedure call facility
CN106656971A (en) Service behavior data acquisition system
CN1331042C (en) Message service device and method for console of machine group mornitoring-controlling system
CN107783728A (en) Date storage method, device and equipment
CN103888481A (en) Method and system for filtering DHCP data package of local area network
CN116346680A (en) Inter-process network flow tracking control method and system based on topology sniffing
US7653742B1 (en) Defining and detecting network application business activities
WO2003052636A2 (en) System and method for processing a request using multiple database units
Cisco CiscoWorks User Guide Software Release 1.0
Coleman Geographic Information Systems performance in a broadband communications environment

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20070808

Termination date: 20210329