Realize user configured method, system and main nuclear and from nuclear
Technical field
The present invention relates to data communication technology field, be specifically related to a kind ofly in multiple nucleus system, realize user configured method, and multiple nucleus system, main nuclear and from nuclear.
Background technology
The generation of polycaryon processor is the very big raising in the past single core processor handling property, and it finishes the treatment capacity of several times of single core processor and even tens times by the concurrent working of a plurality of individual core processors.
In polycaryon processor, in order to realize data processing, the user need be on each nuclear configuration as: information such as transmission control protocol (TCP) link information, secure authenticated information.
Fig. 1 has provided the existing user configured process flow diagram of realizing in multiple nucleus system, as shown in Figure 1, its concrete steps are as follows:
Step 101: the user determines and will carry out data configuration to nuclear, to this nuclear input configuration order.
Step 102: nuclear is received this configuration order, resolves this configuration order, determines to carry out the required configuration operation that carries out of this configuration order, carries out this configuration operation.
Step 103: nuclear judges according to the configuration operation execution result whether this configuration is successful, if, execution in step 104; Otherwise, execution in step 105.
Step 104: give user, process ends with the configuration successful information indicating.
Step 105: give the user with the configuration failure information indicating.
The shortcoming of prior art is: the user usually needs multiple nucleus system is carried out global configuration promptly: all nuclear is carried out identical configuration respectively, perhaps, part nuclear is carried out identical configuration respectively, and this moment, the user needed to examine the input configuration order to each successively, and this greatly reduces allocative efficiency.
Summary of the invention
The invention provides the user configured method of a kind of realization, multiple nucleus system and main nuclear and from nuclear, to improve the user's allocative efficiency in the multiple nucleus system.
Technical scheme of the present invention is achieved in that
The user configured method of a kind of realization comprises:
A nuclear of setting in the multiple nucleus system is main nuclear, and other nuclear is from nuclear;
Main nuclear is received the configuration order that the user sends, that notifies this configuration order of need execution respectively enters the configuration order executing state from nuclear, and configuration operation information notification that will be relevant with this configuration order is described respectively from nuclear, respectively carries out user's configuration from nuclear according to described configuration operation information.
A nuclear in the described setting multiple nucleus system be other nuclear of main nuclear for after nuclear, main nuclear further comprises before receiving configuration order: main nuclear monitoring is respectively from the state of nuclear, write down disabled from nuclear information,
Described main nuclear is received after the configuration order, notice needs to carry out respectively further comprising before nuclear enters configuration order executing state notice of this configuration order: main nuclear determines to need to carry out the available from nuclear of this configuration order according to described unavailable from nuclear information;
Described main nuclear notice needs to carry out respectively entering the configuration order executing state from nuclear and being of this configuration order: main nuclear is notified and is describedly availablely entered the configuration order executing state from nuclear.
Described main nuclear monitoring respectively comprises from the state of nuclear: main nuclear is when starting, for respectively a heartbeat inspecting timer being set from nuclear, respectively from examining every pre-set time interval, authorize to the master and to send heartbeat notice, if main nuclear does not receive before the heartbeat inspecting timer expiry from authorizing the heartbeat that comes and notifies that determining should be unavailable from examining.
A nuclear in the described setting multiple nucleus system be other nuclear of main nuclear for after nuclear, main nuclear further comprises before receiving the configuration order that the user sends: main nuclear is when starting, for respectively being provided for first shared drive of stored configuration operation information, this first shared drive address information is sent to respectively from nuclear from nuclear;
Described main nuclear will be relevant with this configuration order the configuration operation information notification describedly respectively comprise from nuclear: main nuclear is resolved this configuration order, write described first shared drive that needs to carry out this configuration order with carrying out the required configuration operation information of carrying out of this configuration order from nuclear, respectively receive that from nuclear described indication enters the notice of configuration order executing state, read configuration operation information from described first shared drive.
A nuclear in the described setting multiple nucleus system be other nuclear of main nuclear for after nuclear, main nuclear further comprises before receiving the configuration order that the user sends: main nuclear is when starting, for respectively be provided for second shared drive of stored configuration object information from nuclear;
Described main nuclear with the configuration operation information notification respectively after nuclear, respectively carry out further comprising before user's configuration according to described configuration operation information from nuclear:
Respectively resolve this configuration operation information,, then carry out user's configuration according to this configuration operation information if resolve successfully from nuclear; If resolve failure, then configuration failure information write described second shared drive;
Describedly respectively carry out further comprising after the user configuration according to described configuration operation information from nuclear: main nuclear reads described configuration failure information from described second shared drive from nuclear, and is somebody's turn to do to user prompt and put failure from caryogamy.
A nuclear in the described setting multiple nucleus system be other nuclear of main nuclear for after nuclear, main nuclear further comprises before receiving the configuration order that the user sends: main nuclear is when starting, for respectively being provided for second shared drive of stored configuration object information, and this second shared address information sent to respectively from nuclear from nuclear;
Describedly respectively carry out further comprising after the user configuration according to described configuration operation information from nuclear:
Judge whether success of this configuration from nuclear, if configuration successful information is write described second shared drive, and authorize delivery to the master and put and finish notice; Otherwise, configuration failure information is write described second shared drive, and authorizes to provide and deliver to put to the master and finish notice;
Main nuclear is received from authorizing the described configuration that comes and is finished notice, reads described configuration successful or failure information from this second shared drive from nuclear, should be set to merit or failure from caryogamy to user prompt.
Described authorize to provide and deliver to put to finish to notify to master from nuclear be: authorize to the master by internuclear interrupt mode and send described configuration to finish notice.
Described main nuclear notice respectively further comprises when nuclear enters the configuration order executing state: carry out timer for respectively from nuclear configuration being set respectively;
Described main nuclear notice respectively further comprises after nuclear enters the configuration order executing state: main nuclear is not received when timer expiry is carried out in configuration from authorizing the configuration that comes and is finished notice, and determine not satisfy the predefined configuration condition that stops, then be fed into configuration order executing state notice to this from authorizing once more, and reset configuration and carry out timer.
Described master's nuclear receives that configuration order further comprises afterwards: main nuclear is unavailable from nuclear information according to described record, and is definite no available from the described configuration order of nuclear execution, do not possess the configuration order executive condition to user prompt.
Described main nuclear is received after the configuration order that the user sends, notice respectively further comprised before nuclear enters the configuration order executing state:
Main nuclear is unavailable from nuclear information according to described record, determine to need to carry out the unavailable of this configuration order from the nuclear part, then do not possess the configuration order executive condition from nuclear to the user prompt part, and show that this is unavailable from the nuclear sign, if that receives that the user sends proceeds the configuration indication, then availablely be fed into configuration order executing state notice from authorizing to each; Indicate if receive the configuration that stops that the user sends, then process ends.
Described main nuclear notice respectively enters the configuration order executing state from nuclear and is: notify respectively by the mode of internuclear interruption to enter the configuration order executing state from nuclear.
Described configuration order is carried main nuclear sign,
Described main nuclear receives that the configuration order that the user sends further comprises afterwards: main nuclear is notified with internuclear interrupt mode and self is entered the configuration order executing state, determine the configuration operation information relevant, carry out user's configuration according to described configuration operation information with this configuration order.
The user configured multiple nucleus system of a kind of realization comprises: main nuclear and at least one are from nuclear, wherein:
Main nuclear receives the configuration order that the user sends, and respectively be fed into the configuration order executing state from authorizing to what need were carried out this configuration order, and configuration operation information notification that will be relevant with this configuration order is described respectively from examining;
From nuclear, receive the described configuration order executing state notice that enters, carry out user's configuration according to described configuration operation information.
Described main nuclear comprises:
The first shared drive distribution module for respectively dividing first shared drive be used in the stored configuration operation information from nuclear, sends the first shared drive address information and corresponding relation from nuclear information;
The configuration order processing module, receive and preserve the first shared drive address information that the first shared drive distribution module sends and corresponding relation from nuclear information, receive the configuration order that the user sends, respectively be fed into configuration order executing state notice to what need were carried out this configuration order from authorizing, resolve described configuration order, write described respectively first shared drive from examining with carrying out the required configuration operation information of carrying out of this configuration order.
Describedly comprise from nuclear:
The first shared drive address memory module receives and preserves the main first next shared drive address information of authorizing;
The configuration execution module receives the main configuration order executing state that enters of coming of authorizing and notifies, and will resolve indication and send, and receives configuration operation information, according to this configuration operation information and executing configuration operation;
The Command Line Parsing module, receive the parsing indication that the configuration execution module is sent, read the first shared drive address information from the first shared drive address memory module, read configuration operation information, this configuration operation information is sent to the configuration execution module from first shared drive.
The user configured main nuclear of a kind of realization comprises:
The first shared drive distribution module for respectively dividing first shared drive be used in the stored configuration operation information from nuclear, sends the first shared drive address information and corresponding relation from nuclear information;
The configuration order processing module, receive and preserve the first shared drive address information that the first shared drive distribution module sends and corresponding relation from nuclear information, receive the configuration order that the user sends, respectively be fed into configuration order executing state notice to what need were carried out this configuration order from authorizing, resolve described configuration order, write described respectively first shared drive from examining with carrying out the required configuration operation information of carrying out of this configuration order.
Described main nuclear further comprises:
From the nuclear state monitoring modular, monitoring respectively from the state of nuclear, is write down unavailable from nuclear information;
Described configuration order processing module is further, according to unavailable from nuclear information from what read from the nuclear state monitoring modular, determines to need to carry out the available from nuclear of described configuration order.
Described main nuclear further comprises: the second shared drive distribution module for respectively dividing second shared drive that is used in the stored configuration object information from nuclear, sends the second shared drive address information and corresponding relation from nuclear information;
Described configuration order processing module is further, receive and preserve the second shared drive address information that the second shared drive distribution module sends and corresponding relation from nuclear information, receive respectively and finish notice from authorizing the configuration that comes, read configuration result information from this second shared drive from nuclear, from authorizing next configuration result information, determine this configuration result according to all.
Described configuration order processing module comprises:
The configuration order receiver module receives the configuration order that the user imports, and this configuration order is sent;
The configuration notification module, receive the configuration order that the configuration order receiver module is sent, unavailable from reading from nuclear information from the nuclear state monitoring modular, with this unavailable from nuclear information and configuration order carry from nuclear information relatively, if determining needs to carry out all unavailable from nuclear of this configuration order, do not possess the configuration order executive condition to user prompt; If determine to need carry out all available of this configuration order from nuclear, though perhaps configuration is proceeded in the available user's indication of part, send from nuclear information with available, availablely be fed into the configuration order executing state and notify to each from authorizing;
The configuration order parsing module, receive and preserve the first shared drive address information that the first shared drive distribution module sends and corresponding relation from nuclear information, receive the configuration order that the configuration order receiver module is sent, receive available that the configuration notification module sends, write described available first shared drive from nuclear with carrying out the required configuration operation information of carrying out of this configuration order from nuclear information.
Described configuration order processing module further comprises: the configuration result reporting module, receive respectively the configuration result information that the configuration notification module is sent from examining, and determine this configuration result, this configuration result information is reported the user;
Described configuration notification module is further, receive and preserve the second shared drive address information that the second shared drive distribution module sends and corresponding relation from nuclear information, reception is finished notice from authorizing the configuration that comes, read this configuration result information from this second shared drive, this configuration result information from nuclear is sent to described configuration result reporting module from nuclear from nuclear.
Described configuration notification module is further, to each available from authorize be fed into configuration order executing state notice in, being respectively each availablely is provided with a configuration from nuclear and carries out timer, if when timer expiry, do not receive from authorizing the configuration that comes and finish notice, perhaps receive from authorizing the configuration that comes and finish the configuration result information indication configuration failure of notifying but reading from this from second shared drive of examining, then repeat to be fed into configuration order executing state notice from authorizing, until receiving that this is from authorizing the configuration result information indication configuration successful that notice is finished in the configuration that comes and second shared drive from nuclear reads from this to this, perhaps satisfy the predefined configuration condition that stops.
A kind of realization is user configured from nuclear, comprising:
The first shared drive address memory module receives and preserves the main first next shared drive address information of authorizing;
The configuration execution module receives the main configuration order executing state that enters of coming of authorizing and notifies, and will resolve indication and send, and receives configuration operation information, according to this configuration operation information and executing configuration operation;
The Command Line Parsing module, receive the parsing indication that the configuration execution module is sent, read the first shared drive address information from the first shared drive address memory module, read configuration operation information, this configuration operation information is sent to the configuration execution module from first shared drive.
Describedly further comprise from nuclear: the heartbeat notification module, every predetermined time interval, authorize to master and to send heartbeat to notify.
Describedly further comprise from nuclear: the second shared drive address memory module receives and also to preserve the main second shared drive address information of coming of authorizing;
Described Command Line Parsing module is further, when definite configuration operation runs succeeded, read the second shared drive address information from the second shared drive address memory module, configuration result information that will the indication configuration successful writes second shared drive, and authorizes delivery to master and put and finish notice.
Described Command Line Parsing module is further, resolves the configuration operation information that reads from first shared drive, if resolve successfully, sends the successful configuration operation information of resolving to the configuration execution module; If resolve failure, will resolve the failure indication and send;
Described configuration execution module is further, receives the described parsing failure indication that the Command Line Parsing module is sent, and configuration result information that will the indication configuration failure writes second shared drive, and authorizes delivery to master and put and finish notice.
Described configuration execution module is further, and when definite configuration operation was carried out failure, configuration result information that will the indication configuration failure write second shared drive, and authorizes delivery to master and put and finish notice.
Compared with prior art, the nuclear that the present invention sets in the multiple nucleus system is main nuclear, other nuclear is from nuclear, when main nuclear is received the configuration order that the user sends, what notice need to be carried out this configuration order respectively enters the configuration order executing state from nuclear, and configuration operation information notification that will be relevant with this configuration order is described respectively from nuclear, respectively is configured according to described configuration operation information from examining, realized that the user is configured simultaneously to a plurality of nuclears in the multiple nucleus system, improved user's allocative efficiency.
Description of drawings
Fig. 1 is the existing user configured process flow diagram of realizing in multiple nucleus system;
The user configured process flow diagram of realization in multiple nucleus system that Fig. 2 provides for the embodiment of the invention;
Fig. 3 for the embodiment of the invention provide from examining now user configured process flow diagram;
The structural representation of the main nuclear in the user configured multiple nucleus system of realization that Fig. 4 provides for the embodiment of the invention;
Structural representation in the user configured multiple nucleus system of realization that Fig. 5 provides for the embodiment of the invention from nuclear.
Embodiment
The present invention is further described in more detail below in conjunction with drawings and the specific embodiments.
The user configured process flow diagram of realization in multiple nucleus system that Fig. 2 provides for the embodiment of the invention, as shown in Figure 2, its concrete steps are as follows:
Step 201: a nuclear in the multiple nucleus system is set to main nuclear in advance, and other nuclear is set to from nuclear; Main nuclear is when starting, for respectively dividing second shared drive that is used in first shared drive of stored configuration operation information and is used for the stored configuration object information, that this is corresponding to nuclear for first, second shared drive address information of respectively distributing from nuclear is notified to from nuclear.
Main endorsing to all distributed same first shared drive that is used for the stored configuration operation information from nuclear, also can be respectively and distributes first shared drive that is used for the stored configuration operation information respectively from nuclear; Main nuclear need be for respectively distributing second shared drive that is used for the stored configuration object information respectively from nuclear.
Step 202: main nuclear is provided with a heartbeat inspecting timer in the multiple nucleus system each from nuclear, with monitoring from authorizing the heartbeat notice of coming.
Each, can be authorized to the master and send heartbeat notice every the predefined heartbeat notice time interval from nuclear.Main nuclear is that each is provided with a heartbeat inspecting timer from nuclear, if main nuclear is being received this from authorizing next heartbeat notice before the heartbeat inspecting timer expiry of nuclear, then determining should be from endorsing usefulness; Otherwise determining should be unavailable from examining.
Step 203: main nuclear is received before the heartbeat inspecting timer expiry from authorizing the heartbeat that comes and is notified, and determines and should restart this heartbeat inspecting timer from endorsing usefulness, goes to step 205.
Step 204: main nuclear does not receive when the heartbeat inspecting timer expiry from authorizing the heartbeat that comes and notifies that determining should be unavailable from examining, and in this unavailable sign from nuclear of self record, deletes this heartbeat inspecting timer.
Step 205: the configuration order of main stone grafting receipts user input, this configuration order is carried needs to carry out identifying from nuclear of this configuration order.
Step 206: main nuclear is unavailable from the nuclear sign according to self record, judges whether this configuration order is carried respectively all unavailable from nuclear from nuclear sign correspondence, if, execution in step 207; Otherwise, execution in step 208.
Step 207: main nuclear does not possess configuration order executive condition, process ends to user prompt.
Step 208: main nuclear judges whether this configuration order is carried respectively all available from nuclear from nuclear sign correspondence, if, execution in step 211; Otherwise, execution in step 209.
Step 209: main nuclear determining section is unavailable from examining, and does not possess the configuration order executive condition to the user prompt part from nuclear, and shows that this is unavailable from the nuclear sign.
Step 210: main nuclear is received the indication of whether proceeding to dispose that the user imports, judges whether the user indicates to proceed to dispose, if, execution in step 211; Otherwise, process ends.
Step 211: main nuclear is resolved this configuration order, will required configuration operation information of carrying out be written as each available first shared drive that distributes from nuclear when nuclear is carried out this configuration order.
Step 212: main nuclear availablely is fed into configuration order executing state notice from authorizing with internuclear interrupt mode to each, and availablely from nuclear configuration is set respectively and carries out timer for this each.
Step 213: available from nuclear for each, main nuclear judges whether before timer expiry is carried out in configuration, receives that this configuration of sending with internuclear interrupt mode from nuclear finishes notice, if, execution in step 214; Otherwise, execution in step 216.
Step 214: main nuclear reads the configuration result information that this writes from nuclear from being this second shared drive from the nuclear distribution.
Step 215: main nuclear judges whether the configuration result information that reads indicates configuration successful, if, execution in step 218; Otherwise, execution in step 216.
Step 216: main nuclear judges whether to satisfy the predefined configuration condition that stops, if, execution in step 218; Otherwise, execution in step 217.
Main endorsing preestablishes a repeated configuration number of times, and at every turn to repeating from nuclear to send when entering configuration order executing state notice, record has repeated to send the number of times of this notice from nuclear to this, at this moment, the predefined configuration condition that stops is: main nuclear has reached described predefined repeated configuration number of times to repeat to send the number of times that enters configuration order executing state notice from nuclear; Perhaps, main endorsing preestablishes a repeated configuration timer duration, and, main nuclear repeat for the first time to from authorize be fed into configuration order executing state notice in, for this is provided with a repeated configuration timer from nuclear, at this moment, the predefined configuration condition that stops is: this repeated configuration timer expiry.
Step 217: main nuclear repeats to be fed into configuration order executing state notice to this from authorizing, and goes to step 213.
Step 218: main nuclear is determined this configuration result according to all available configuration result information from nuclear, gives the user with this configuration result information indicating.
If all are available from examining all configuration successfuls, then main endorsing directly to the success of user's configurations shown; Part is available to be set to merit from caryogamy as if having only, and then main nuclear needs identifying from nuclear to the success of user's configurations shown.
In actual applications, also may carry main nuclear sign in the configuration order that the user sends, at this moment, because also can internuclear interrupt mode notifying, main nuclear self enters the configuration order executing state, finish notice etc. with internuclear interrupt mode to self reporting to dispose, so main nuclear is after receiving this configuration order, self preserving the resulting configuration operation information of this configuration order of resolving, notify with internuclear interrupt mode then and self enter the configuration order executing state, again according to the described configuration operation information and executing configuration operation of self preserving, and after configuration is finished, notify self to dispose with internuclear interrupt mode and finish, and at self record configuration successful or failure information; Perhaps, main nuclear also can adopt prior art to finish this user's configuration.
Fig. 3 for the embodiment of the invention provide from examining now user configured process flow diagram, as shown in Figure 3, its concrete steps are as follows:
Step 301: start from nuclear, notify the time interval, authorize to the master and send the heartbeat notice every predefined heartbeat.
This step is corresponding with step 202: main nuclear is after startup, for each is provided with a heartbeat inspecting timer from nuclear.If main nuclear is being received this from authorizing next heartbeat notice before the heartbeat inspecting timer expiry of nuclear, then determining should be from endorsing usefulness; Otherwise determining should be unavailable from examining.
Step 302: receive the main configuration order executing state that enters of coming of authorizing from stone grafting and notify.
Step 303: according to main address information of authorizing first shared drive that is used for the stored configuration operation information that comes, read the configuration operation information that main nuclear writes from this first shared drive from nuclear.
Step 304: judge whether successfully to resolve this configuration operation information from nuclear, if, execution in step 306; Otherwise, execution in step 305.
Step 305: the address information of authorizing second shared drive that is used for the stored configuration object information that comes from nuclear according to the master, write configuration result information to this second shared drive: configuration failure, and write failure cause: resolve the failure of configuration operation information, and authorize to provide and deliver to put to the master with internuclear interrupt mode and finish notice, process ends.
Step 306: according to resolving successful configuration operation information, carry out configuration operation from nuclear.
Step 307: according to the configuration operation execution result, judge whether this configuration is successful from nuclear, if, execution in step 308; Otherwise, execution in step 309.
Step 308: write configuration result information to second shared drive from nuclear: configuration successful, and authorize delivery with internuclear interrupt mode to master and put and finish notice, process ends.
Step 309: write configuration result information from nuclear to second shared drive: configuration failure, and write failure cause: carry out the configuration operation failure, and authorize delivery with internuclear interrupt mode to master and put and finish notice.
In the embodiment of the invention, main nuclear with between examining by internuclear interruption but not the message loop mode carry out disposing relevant communicating by letter with the user, like this, just reduced taking to the message loop resource, avoided influence to the data processing of the datum plane that carries out data transmission in the message loop mode, also avoided simultaneously because datum plane load when excessive, data transmission takies too much message loop resource and the generation of the situation that the configuration information that causes can't in time transmit has guaranteed user configured efficient.Simultaneously, main nuclear with from disposing relevant communicating by letter by internuclear interrupt mode realization with the user between the nuclear, can be so that need not first shared drive is carried out polling operation from nuclear, only need when receiving internuclear interrupt notification, to visit again first shared drive, reduced interlocking access frequency, further guaranteed user configured efficient first shared drive.
Fig. 4 is the composition diagram of the user configured main nuclear of the realization that provides of the embodiment of the invention, and as shown in Figure 4, it mainly comprises: shared drive distribution module 41, from nuclear state monitoring modular 42 and configuration order processing module 43, wherein:
Shared drive distribution module 41: be used for when starting, for respectively dividing second shared drive that is used in first shared drive of stored configuration operation information and is used for the stored configuration object information from nuclear, this first, second shared drive address information and the corresponding relation that identifies from nuclear are sent to configuration order processing module 43, will send to for first, second shared drive address information correspondence of respectively distributing respectively from nuclear from nuclear.
In actual applications, shared drive distribution module 41 can comprise: the first shared drive distribution module and the second shared drive distribution module, wherein:
The first shared drive distribution module: be used for when starting, for respectively dividing first shared drive that is used in the stored configuration operation information from nuclear, this first shared drive address information and the corresponding relation that identifies from nuclear are sent to configuration order processing module 43, will send to for the first shared drive address information correspondence of respectively distributing respectively from nuclear from nuclear.
The second shared drive distribution module: be used for when starting, for respectively dividing second shared drive that is used in the stored configuration object information from nuclear, this second shared drive address information and the corresponding relation that identifies from nuclear are sent to configuration order processing module 43, will send to for the second shared drive address information correspondence of respectively distributing respectively from nuclear from nuclear.
From examining monitoring modular 42: be used to each a heartbeat inspecting timer to be set, notify from authorizing the heartbeat that comes, determine to be somebody's turn to do, restart this timer from endorsing usefulness if before the heartbeat inspecting timer expiry, receive this from nuclear; If receive the heartbeat notice of coming from authorizing when the heartbeat inspecting timer expiry, then determining should be unavailable from examining, and write down unavailablely to identify from examining, and deleted this timer.
Configuration order processing module 43: be used to receive and preserve shared drive distribution module 41 first, second shared drive address information sent and the corresponding relation that identifies from nuclear, receive the configuration order of user's input, unavailable from reading from the nuclear sign from nuclear state monitoring modular 42, this is unavailable from identifying relatively from nuclear that nuclear sign and configuration order are carried, if what definite configuration order was carried identifies the respectively all unavailable from nuclear of correspondence from nuclear, then do not possess the configuration order executive condition to user prompt; If what definite configuration order was carried identifies the respectively all available from nuclear of correspondence from nuclear, though perhaps configuration is proceeded in the available but user of part indication, then resolve this configuration order, write first shared drive with carrying out the required configuration operation information of carrying out of this configuration order, available be fed into configuration order executing state notice with internuclear interrupt mode to each from authorizing, receive from examining the configuration of sending and finish notice with internuclear interrupt mode, from for this reads configuration result information from second shared drive that nuclear distributes, will respectively report the user from the configuration result information of examining.
As shown in Figure 4, configuration order processing module 43 mainly comprises: configuration order receiver module 431, configuration notification module 432, configuration order parsing module 433 and configuration result reporting module 434, wherein:
Configuration order receiver module 431: be used to receive the configuration order that identifies from nuclear of carrying of user's input, this configuration order is sent to configuration notification module 432 and configuration order parsing module 433.
Configuration notification module 432: be used to receive and preserve shared drive distribution module 41 second shared drive address information of sending and the corresponding relation that identifies from nuclear, receive the configuration order that configuration order receiver module 431 is sent, unavailable from reading from the nuclear sign from nuclear state monitoring modular 42, this is unavailable from identifying relatively from nuclear that nuclear sign and configuration order are carried, if what definite configuration order was carried identifies the respectively all unavailable from nuclear of correspondence from nuclear, then do not possess the configuration order executive condition to user prompt; If what definite configuration order was carried identifies the respectively all available from nuclear of correspondence from nuclear, though perhaps configuration is proceeded in the available but user of part indication, then send and carry available parsing indication, and availablely be fed into configuration order executing state notice to each from authorizing with internuclear interrupt mode from the nuclear sign to configuration order parsing module 433; Receive from authorizing the configuration that comes and finish notice, determine that this from the second corresponding shared drive address information of nuclear sign, reads configuration result information from this second shared drive, sends to configuration result reporting module 434 with each available configuration result information from nuclear.
In this enforcement, configuration notification module 432 also can be used for, to each available from authorize be fed into configuration order executing state notice in, being respectively each availablely is provided with a configuration from nuclear and carries out timer, if when timer expiry, do not receive from authorizing the configuration that comes and finish notice, perhaps receive from authorizing the configuration that comes and finish the configuration result information indication configuration failure of notifying but reading from this from second shared drive of examining, then repeat to be fed into configuration order executing state notice from authorizing, until receiving that this is from authorizing the configuration result information indication configuration successful that notice is finished in the configuration that comes and second shared drive from nuclear reads from this to this, perhaps satisfy the predefined configuration condition that stops.
Configuration order parsing module 433: receive and preserve shared drive distribution module 41 first shared drive address information of sending and the corresponding relation that identifies from nuclear, receive the configuration order that configuration order receiver module 431 is sent, receive the available parsing indication of carrying that configuration notification module 432 sends from the nuclear sign, according to described corresponding relation, determine described availablely, will carry out first shared drive that the required configuration operation information of carrying out of this configuration order writes the described definite first shared drive address information correspondence from nuclear from the first corresponding shared drive address information of nuclear sign.
Configuration result reporting module 434: be used to receive respectively the configuration result information that configuration notification module 432 is sent, respectively from the configuration result information of nuclear, this configuration result information reported the user according to this from examining.
The user configured composition diagram of realization that Fig. 5 provides for the embodiment of the invention from nuclear, as shown in Figure 5, it mainly comprises: heartbeat notification module 51, shared drive address memory module 52, configuration execution module 53 and Command Line Parsing module 54, wherein:
Heartbeat notification module 51: be used for every the predefined heartbeat notice time interval, authorize to the master and send heartbeat notice.
Shared drive address memory module 52: be used to receive and preserve main first, second the next shared drive address information of authorizing.
In actual applications, shared drive address memory module 52 can comprise: the first shared drive address memory module and the second shared drive address memory module, wherein:
The first shared drive address memory module: be used to receive and preserve the main first next shared drive address information of authorizing.
The second shared drive address memory module: be used to receive and preserve the main second next shared drive address information of authorizing.
Configuration execution module 53: be used to receive the main configuration order executing state that enters of coming of authorizing and notify, send the parsing indication to Command Line Parsing module 54, receive the parsing failure indication that Command Line Parsing module 54 is sent, read the second shared drive address information from shared drive address memory module 52, according to this second shared drive address information, the configuration result information of indication configuration failure is write second shared drive, and write failure cause exactly: resolve the configuration information failure, authorize to provide and deliver to put to the master with internuclear interrupt mode simultaneously and finish notice; Receive the configuration operation information that Command Line Parsing module 54 is sent, according to this configuration operation information and executing configuration operation, if run succeeded, configuration result information that will the indication configuration successful writes second shared drive, and authorizes delivery with internuclear interrupt mode to master and put and finish notice; If carry out failure, then will indicate the configuration result information of configuration failure to write second shared drive, and write failure cause exactly: carry out the configuration operation failure, authorize to provide and deliver to put to the master with internuclear interrupt mode simultaneously and finish notice.
Command Line Parsing module 54: be used to receive the parsing indication that configuration execution module 53 is sent, read the first shared drive address information from shared drive address memory module 52, according to this first shared drive address information, read configuration operation information from first shared drive, resolve this configuration operation information, if resolve successfully, send the successful configuration operation information of resolving to configuration execution module 53; If resolve failure, resolve the failure indication to 53 transmissions of configuration execution module.
The above only is process of the present invention and method embodiment, in order to restriction the present invention, all any modifications of being made within the spirit and principles in the present invention, is not equal to replacement, improvement etc., all should be included within protection scope of the present invention.