CN106919447A - The acquisition methods and device of a kind of configuration information - Google Patents

The acquisition methods and device of a kind of configuration information Download PDF

Info

Publication number
CN106919447A
CN106919447A CN201710083654.9A CN201710083654A CN106919447A CN 106919447 A CN106919447 A CN 106919447A CN 201710083654 A CN201710083654 A CN 201710083654A CN 106919447 A CN106919447 A CN 106919447A
Authority
CN
China
Prior art keywords
configuration information
memory module
execute instruction
predetermined number
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710083654.9A
Other languages
Chinese (zh)
Inventor
汤永翔
符志清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201710083654.9A priority Critical patent/CN106919447A/en
Publication of CN106919447A publication Critical patent/CN106919447A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0875Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches with dedicated cache, e.g. instruction or stack

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides a kind of acquisition methods and device of configuration information, and methods described includes:During program is performed, configuration information is obtained from the first memory module;When the quantity of the configuration information got from first memory module after terminating from the first preset duration is more than or equal to the first predetermined number, stop the step of execution is described to obtain configuration information from the first memory module, and record stopping to perform the time point that acquisition is acted;When execute instruction is received in the second preset duration the time point, determine whether to stop performing described program based on the execute instruction.Using the embodiment of the present invention, the process for solving server acquisition configuration information cannot be interrupted, and server cannot timely respond to the problem of execute instruction.

Description

The acquisition methods and device of a kind of configuration information
Technical field
The present invention relates to field of computer technology, more particularly to a kind of configuration information acquisition methods and device.
Background technology
Generally, server obtains configuration information, and the configuration information that will be got from memory module from memory module Preset buffer memory space is cached to, when server gets whole configuration informations from memory module and caches whole configuration informations To after preset buffer memory space, server is based on the execute instruction that terminal sends, to what is cached in terminal transmission preset buffer memory space Configuration information, terminal is shown by visual interface, the configuration information to receiving.
In the prior art, when needing the quantity that configuration information is obtained from memory module more huge, configuration information Time-consuming for acquisition process and process of caching, and the process that server obtains configuration information from memory module cannot be interrupted, server Execute instruction cannot be timely responded to.
The content of the invention
In view of this, the present invention provides a kind of acquisition methods and device of configuration information, with settlement server from storage mould The process that configuration information is obtained in block cannot be interrupted, and server cannot timely respond to the problem of execute instruction.
To achieve the above object, present invention offer technical scheme is as follows:
According to the first aspect of the invention, it is proposed that a kind of acquisition methods of configuration information, methods described includes:
During program is performed, configuration information is obtained from the first memory module;
When the quantity of the configuration information got from first memory module after terminating from the first preset duration is big When the first predetermined number, stop the step of execution is described to obtain configuration information from the first memory module, and remember Record stops performing the time point of acquisition action;
It is true based on the execute instruction when when execute instruction is received in the second preset duration the time point It is fixed whether to stop performing described program.
According to the second aspect of the invention, it is proposed that a kind of acquisition device of configuration information, including:
Configuration information acquiring unit, during being performed in program, configuration information is obtained from the first memory module;
First program stopped unit, for when in the configuration information acquiring unit after terminating from the first preset duration When the quantity of the configuration information got from first memory module is more than or equal to the first predetermined number, stop performing The step of described in the configuration information acquiring unit obtains configuration information from the first memory module, and record stopping and perform The time point of acquisition action;
First determining unit, for second when the time point recorded since the first program stopped unit When receiving execute instruction in preset duration, determine whether to stop performing described program based on the execute instruction.
From above technical scheme, when needing, the quantity that configuration information is obtained from the first memory module is more huge When, the quantity of the configuration information that server gets from the first memory module often reaches the first predetermined number, and server stops The step of obtaining configuration information from the first memory module is performed, execute instruction to be received or the execute instruction to having been received by is waited Responded, the process for solving server acquisition configuration information cannot be interrupted, and server cannot timely respond to execute instruction Problem.
Brief description of the drawings
Fig. 1 is the embodiment flow chart for the acquisition methods of configuration information that the present invention is provided;
Fig. 2 is the embodiment flow chart of the acquisition methods of another configuration information that the present invention is provided;
Fig. 3 is the embodiment flow chart of the acquisition methods of another configuration information that the present invention is provided;
Fig. 4 is the embodiment flow chart of the acquisition methods of another configuration information that the present invention is provided;
Fig. 5 is a kind of hardware structure diagram of server that the present invention is provided;
Fig. 6 is the embodiment block diagram of the acquisition device for configuration information that the present invention is provided;
Fig. 7 is the embodiment block diagram of the acquisition device of another configuration information that the present invention is provided.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in implementation method do not represent and the consistent all implementation methods of the present invention.Conversely, they be only with it is such as appended The example of the consistent apparatus and method of some aspects being described in detail in claims, of the invention.
It is the purpose only merely for description specific embodiment in terminology used in the present invention, and is not intended to be limiting the present invention. " one kind ", " described " and " being somebody's turn to do " of singulative used in the present invention and appended claims is also intended to include majority Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wraps May be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the present invention A little information should not necessarily be limited by these terms.These terms are only used for being distinguished from each other open same type of information.For example, not departing from In the case of the scope of the invention, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determining ".
Generally, the interactive software that administrative staff pass through installation in terminal, from the inputting interface that interactive software is provided Input execute instruction, when server receives execute instruction, server performs corresponding actions according to execute instruction.Implement one In example, when server receives the execute instruction for obtaining configuration information, server starts to perform the program for obtaining configuration information, Wherein, configuration information can including port information, IP address of equipment information, equipment running status information etc. information.Held in program In capable process, server obtains configuration information from the first memory module, it will be appreciated by persons skilled in the art that due to The position that different types of configuration information is stored in the server is different, for example, equipment running status information can be stored in In CPU module, IP address of equipment information can be stored in memory modules, the first memory module herein is comprising having configuration All modules of information storage function, for example, the first memory module includes CPU module, memory modules etc..When default from first After length terminates, the quantity of the configuration information that server gets from the first memory module is more than or equal to the first present count During amount, server stops performing the step of obtaining configuration information from the first memory module, and records stopping execution acquisition action Time point.Wherein, the first preset duration is that last server stopping execution obtaining configuration information from the first memory module By the duration gone through, the time period of the execute instruction to be received such as the first preset duration is, the start-stop of the first preset duration can lead to Cross various timing modes such as timer, counter to realize, do not limit herein.When in the second preset duration since time point When receiving execute instruction, server determines whether to stop execution procedures based on execute instruction, herein the second preset duration and the The setting principle of one preset duration is identical, and the first preset duration can also be identical with the second preset duration, for example, 1 second, herein First preset duration does not form limitation of the present invention with the specific duration of the second preset duration.Additionally, execute instruction can be wrapped Include:" output a line configuration information ", " one screen configuration information of output ", " stopping output configuration information " etc., specifically, " output A line configuration information " can be input into " enter key " and realize by administrative staff in inputting interface;" one screen configuration information of output " " space bar " can be input into by administrative staff in inputting interface to realize;" stopping output configuration information " can be by administrative staff Realized in inputting interface input " ctrl+c ".When the execute instruction that the second preset duration server is received is " output a line When configuration information " or " one screen configuration information of output ", server is based on two kinds of execute instructions and determines not stop execution procedures; When the execute instruction that the second preset duration server is received is for " stopping output configuration information ", server is based on the execution Instruction determination stops execution procedures.It will be appreciated by persons skilled in the art that execute instruction can also include herein:" output Two row configuration informations ", " half screen configuration information of output ", " two screen configuration informations of output " etc., herein to execute instruction Specific instruction content is not limited, and for each execute instruction, and the content being input into inputting interface with administrative staff is in one by one Corresponding relation, the present invention is not limited the content being input into, for example:" one screen configuration information of output " can be by administrative staff Realized in inputting interface input " A ";" stopping output configuration information " can be input into " B " and realize by administrative staff in inputting interface Deng.By the embodiment of the present invention, when needing the quantity that configuration information is obtained from the first memory module more huge, server The quantity of the configuration information got from the first memory module often reaches the first predetermined number, and server stops performing from first The step of obtaining configuration information in memory module, waits execute instruction to be received or the execute instruction to having been received by respond, The process for obtaining configuration information from memory module with settlement server cannot be interrupted, and program cannot timely respond to execute instruction Problem.
It is that the present invention is further described, there is provided the following example:
Fig. 1 is the embodiment flow chart for the acquisition methods of configuration information that the present invention is provided, as shown in figure 1, including Following steps:
Step 101:During program is performed, configuration information is obtained from the first memory module.
Step 102:When the number of the configuration information got from the first memory module after terminating from the first preset duration When amount is more than or equal to the first predetermined number, stop performing the step of obtaining configuration information from the first memory module, and remember Record stops performing the time point of acquisition action.
Step 103:It is true based on execute instruction when when execute instruction is received in the second preset duration time point It is fixed whether to stop execution procedures.
In a step 101, in one embodiment, configuration information can include port information, IP address of equipment information, equipment The information such as running state information.It will be appreciated by persons skilled in the art that because different types of configuration information is in server The position of middle storage is different, for example, during equipment running status information can be stored in CPU module, IP address of equipment information can To be stored in memory modules, the first memory module herein includes all modules with configuration information store function, example Such as, the first memory module includes CPU module, memory modules etc..
In a step 102, in one embodiment, the first preset duration is that last server stops performing from the first storage Obtain duration through going through after configuration information in module, the time period of the execute instruction to be received such as the first preset duration is, first is pre- If the start-stop of duration can be realized by various timing modes such as timer, counter, do not limit herein.First predetermined number For example, 30, time point is, for example, 12:00:00.
In step 103, in one embodiment, the setting principle phase of the second preset duration and the first preset duration herein Together, the first preset duration can also be identical with the second preset duration, for example, 1 second, and the first preset duration is preset with second herein The specific duration of duration does not form limitation of the present invention.Additionally, execute instruction can include:" output a line configuration information ", " one screen configuration information of output ", " stopping output configuration information " etc., specifically, " output a line configuration information " can be by pipe Reason personnel realize in inputting interface input " enter key ";" one screen configuration information of output " can be by administrative staff on input circle Realize in face input " space bar ";" stopping output configuration information " can be input into " ctrl+c " in fact by administrative staff in inputting interface It is existing.The execute instruction received when the second preset duration server is for " output a line configuration information " or " one screen of output is matched somebody with somebody Confidence ceases " when, server is based on two kinds of execute instructions and determines not stop execution procedures;When the second preset duration server connects When the execute instruction for receiving is for " stopping output configuration information ", server is based on the execute instruction and determines to stop execution procedures.This Art personnel are it is understood that execute instruction can also include herein:" two row configuration informations of output ", " output half screen Curtain configuration information ", " two screen configuration informations of output " etc., the specific instruction content to execute instruction is not limited herein, and For each execute instruction, in one-to-one relationship, the present invention is to input for the content being input into inputting interface with administrative staff Content is not limited, for example:" one screen configuration information of output " can be input into " A " and realize by administrative staff in inputting interface; " stopping output configuration information " can be input into " B " realization etc. by administrative staff in inputting interface.
In the embodiment of the present invention, when needing the quantity that configuration information is obtained from the first memory module more huge, clothes The quantity of configuration information that business device gets from the first memory module often reaches the first predetermined number, server stop performing from The step of obtaining configuration information in first memory module, waits execute instruction to be received or the execute instruction to having been received by ring Should, the process for solving server acquisition configuration information cannot be interrupted, and server cannot timely respond to the problem of execute instruction.
Fig. 2 is the embodiment flow chart of the acquisition methods of another configuration information that the present invention is provided, the embodiment of the present invention It is illustrative on the basis of step 101- steps 103 with reference to Fig. 1, Fig. 2, as shown in Fig. 2 comprising the following steps:
Step 201:Stop position record when will stop obtaining configuration information from the first memory module is stored second In module.
Step 202:At the time point that the second preset duration terminates, the stop position of record from the second memory module, after It is continuous to perform the step of obtaining configuration information from the first memory module.
Step 203:When being more than since the quantity of the configuration information got from the first memory module stop position or When person is equal to the first predetermined number, stop performing the step of obtaining configuration information from the first memory module.
In step 201, stop position when server will stop obtaining configuration information from the first memory module is recorded In the second memory module, the interface index, lookup device configuration when stop position can be specifically lookup interface message are general Module I D etc. of configuration general view when looking at, the second memory module is the memory module for storing stop position, specifically, to the Two memory modules set up process and the locus residing for the second memory module are not limited, for example, the second storage mould Block can be one piece of memory headroom of server provisional application.
In step 202., with reference in step 102, time point is 12:00:00, with reference in step 103, the second preset duration It it is 1 second, at the time point 12 that the second preset duration terminates:00:When 01, the stop position that server is recorded from the second memory module Put, continue executing with the step of obtaining configuration information from the first memory module.
In step 203, so that the first predetermined number is 30 as an example, when since being obtained from the first memory module stop position When the quantity of the configuration information got is more than or equal to the first predetermined number 30, server stops performing from the first memory module The step of middle acquisition configuration information.
In the embodiment of the present invention, server will stop obtaining stop position note during configuration information from the first memory module Record is in the second memory module so that the time point that server terminates in the second preset duration, can be from the second memory module The stop position of record, continues executing with the step of obtaining configuration information from the first memory module, it is to avoid server obtains configuration Omission is produced during information, while ensure that server can continue to perform to be obtained from the first memory module from the stop position to match somebody with somebody The step of confidence ceases.
Fig. 3 is the embodiment flow chart of the acquisition methods of another configuration information that the present invention is provided, the embodiment of the present invention With reference to Fig. 1, Fig. 2, Fig. 3, the configuration information of caching in preset buffer memory space how is processed server, carry out exemplary theory It is bright, as shown in figure 3, comprising the following steps:
Step 301:The configuration information got from the first memory module is cached to preset buffer memory space.
Step 302:When determining not stop execution procedures based on execute instruction, send default to terminal based on execute instruction The configuration information cached in spatial cache.
Optionally, after step 301, can also carry out step 303 (not shown) and step 304 (is not shown in figure Go out).
Step 303:Whether the quantity of the configuration information that judgement is cached in preset buffer memory space is more than or equal to first 3rd predetermined number.
Step 304:The quantity of the configuration information in preset buffer memory space is cached to is for first more than or equal to the 3rd During predetermined number, the configuration information and default prompt message of the 3rd predetermined number are sent to terminal.
In step 301, preset buffer memory space is used to delay the configuration information got from the first memory module Deposit, when server gets configuration information from the first memory module, the configuration information that server will get is cached to default Spatial cache.
In step 302, by taking the execute instruction that server receives " output a line configuration information " as an example, when server base When the execute instruction determines not stop execution procedures, server is based on the execute instruction in terminal transmission preset buffer memory space The configuration information of caching.Specifically, server is based on the execute instruction sends the configuration cached in preset buffer memory space to terminal The process of information refers to associated description step in Fig. 4.
In step 303, server judges whether the quantity of the configuration information being cached in preset buffer memory space is big first In or equal to the 3rd predetermined number, the 3rd predetermined number can be the screen that is shown in inputting interface with confidence The quantity of breath, the 3rd predetermined number is, for example, 25, and the 3rd predetermined number is not limited herein.
In step 304, the quantity of the configuration information in preset buffer memory space is cached to is to be more than or equal to first During three predetermined numbers, server sends the configuration information and default prompt message of the 3rd predetermined number to terminal.Default prompting Information is, for example, " -- More (CTRL+C break) -- ", and presetting prompt message is used for prompt terminal, and server is held in reception The state of row instruction.Generally, after administrative staff obtain the execute instruction of configuration information in inputting interface input, inputting interface is first First show the configuration information of a screen, while the default prompt message " -- More (CTRL+C break) -- " of displaying, points out management Personnel continue to obtain a line configuration information, a screen configuration information etc. by being input into execute instruction.
In the embodiment of the present invention, the configuration information got from the first memory module is cached to preset buffer memory by server Space, when server is based on execute instruction to be determined not stop execution procedures, server is based on execute instruction and sends pre- to terminal If the configuration information cached in spatial cache, so that the configuration information that end-on is received is on the inputting interface of interactive software It is shown, is easy to administrative staff that server is safeguarded and managed by the configuration information shown on inputting interface;When slow When the quantity of the configuration information being stored in preset buffer memory space to be more than or equal to three predetermined numbers first, server is to end End sends the configuration information and default prompt message of the 3rd predetermined number so that when the quantity of the configuration information for getting is big first When three predetermined numbers, the configuration information of the 3rd predetermined number is sent to terminal in time, and then pass through in time Inputting interface is shown to the acquisition situation of configuration information, greatly shortens server and sends preset buffer memory space to terminal Taking for the configuration information of middle caching, saves the time that administrative staff check configuration information by inputting interface.
Fig. 4 is the embodiment flow chart of the acquisition methods of another configuration information that the present invention is provided, the embodiment of the present invention With reference to Fig. 1, Fig. 2, Fig. 3, Fig. 4, how the configuration information cached in preset buffer memory space is processed to service implement body, shown Example property explanation, as shown in figure 4, comprising the following steps:
Step 401:Based on execute instruction, determine in preset buffer memory space with the presence or absence of the second predetermined number with confidence Breath.When in preset buffer memory space in the absence of the configuration information of the second predetermined number, step 402 is performed, when preset buffer memory space During the configuration information of the second predetermined number of middle presence, step 405 is performed.
Step 402:Determine whether to get whole configuration informations from the first memory module, when it is determined that being stored from first When whole configuration informations are not got in module, step 403 is performed, all matched somebody with somebody when it is determined that being got from the first memory module When confidence ceases, step 404 is performed.
Step 403:At the time point that the second preset duration terminates, the stop position of record from the second memory module, after It is continuous to perform the step of obtaining configuration information from the first memory module.
Step 404:Stop execution procedures.
Step 405:The configuration information of the second predetermined number is sent to terminal.
Step 406:The configuration information of the second predetermined number is deleted from preset buffer memory space.
Step 407:Determine to whether there is not deleted configuration information in preset buffer memory space, when it is determined that preset buffer memory space In in the absence of not deleted configuration information when, perform step 402, when it is determined that existing in preset buffer memory space not deleted with confidence During breath, step 408 is performed.
Step 408:Default prompt message is sent to terminal.
In step 401, server is based on execute instruction, determines to whether there is the second predetermined number in preset buffer memory space Configuration information, the configuration information of the second predetermined number to be carried in execute instruction the need for obtain the quantity of configuration information, when When execute instruction is for " output a line configuration information ", then the second predetermined number is the quantity of a line configuration information, works as execute instruction During for " one screen configuration information of output ", then the second predetermined number is the quantity of a screen configuration information, a screen configuration information Quantity be, for example, 25, then the second predetermined number is 25, and server is based on the execute instruction of " output one screen configuration information ", really Determine to whether there is 25 configuration informations in preset buffer memory space.When not existing 25 configuration informations in preset buffer memory space, hold Row step 402, when in preset buffer memory space in the presence of the configuration information of the second predetermined number, performs step 405.
In step 402, server determines whether to get whole configuration informations from the first memory module, specifically , server determines whether that the method for the configuration information for getting whole from the first memory module can be to be in determining program It is no to there is timer, it will be appreciated by persons skilled in the art that when program performs completion, the timer quilt set in program Delete, when program is not carried out completing, timer is still suffered from program, therefore, when there is timer in program, representation program Be not carried out complete, can using this as the configuration information for determining whether to get whole from the first memory module method, this The method of the configuration information how invention determines whether to get whole from the first memory module to server is not limited.When Server determined when whole configuration informations are not got from the first memory module, performs step 403, when server determine from When getting whole configuration informations in the first memory module, step 404 is performed.
In step 403, the time point for terminating in the second preset duration, what server was recorded from the second memory module stops Stop bit is put, and continues executing with the step of obtaining configuration information from the first memory module.
In step 404, server stops performing the program for obtaining configuration information.
In step 405, server sends the configuration information of the second predetermined number to terminal.
In a step 406, server deletes the configuration information of the second predetermined number from preset buffer memory space.Release in time Put spatial cache.
In step 407, determine to whether there is not deleted configuration information in preset buffer memory space, when it is determined that preset buffer memory When not existing not deleted configuration information in space, step 402 is performed, when server determines not obtained from the first memory module During to whole configuration informations, default prompt message is sent to terminal.When it is determined that there is not deleted matching somebody with somebody in preset buffer memory space When confidence ceases, step 408 is performed.
In a step 408, default prompt message is sent to terminal, presetting prompt message is used for prompt terminal, at server In the state for receiving execute instruction.
In the embodiment of the present invention, how to process server the configuration information cached in preset buffer memory space has been carried out in detail State, based on execute instruction, server sends the configuration information cached in preset buffer memory space to terminal, and terminal will be by that will receive Configuration information be shown in inputting interface, be easy to administrative staff to check analysis configuration information in time.
Corresponding to the acquisition methods of above-mentioned configuration information, the invention allows for the hardware configuration of the server shown in Fig. 5 Figure.Fig. 5 is refer to, in hardware view, the server includes processor, internal bus, network interface, internal memory and non-volatile Memory, the hardware required for other business are also possible that certainly.Processor reads corresponding from nonvolatile memory Computer program forms the acquisition device of configuration information to then operation in internal memory on logic level.Certainly, except software reality Outside existing mode, the present invention is not precluded from other implementations, such as mode of logical device or software and hardware combining etc., That is the executive agent of following handling process is not limited to each logic unit, or hardware or logical device.
Fig. 6 is the embodiment block diagram of the acquisition device for configuration information that the present invention is provided, as shown in fig. 6, the configuration The acquisition device of information can include:Configuration information acquiring unit 61, the first program stopped unit 62, the first determining unit 63, Wherein:
Configuration information acquiring unit 61, during being performed in program, obtains from the first memory module and matches somebody with somebody confidence Breath;
First program stopped unit 62, in the configuration information acquiring unit 61 after terminating from the first preset duration When the quantity of the configuration information got from the first memory module is more than or equal to the first predetermined number, stopping performs configuration In information acquisition unit 61 from the first memory module obtain configuration information the step of, and record stop perform acquisition action Time point;
First determining unit 63, presets for second when the time point recorded since the first program stopped unit 62 When receiving execute instruction in duration, determine whether to stop execution procedures based on execute instruction.
Fig. 7 is the embodiment block diagram of the acquisition device of another configuration information that the present invention is provided, as shown in fig. 7, upper State on the basis of embodiment illustrated in fig. 6, the acquisition device of configuration information also includes:
Stop position recording unit 64, for the first program stopped unit 62 in will stop from the first memory module obtain Stop position when taking configuration information is recorded in the second memory module, at the time point that the second preset duration terminates, from second The stop position recorded in memory module, continues executing with being obtained from the first memory module in configuration information acquiring unit 61 and matches somebody with somebody The step of confidence ceases.
In one embodiment, the acquisition device of configuration information also includes:
Configuration information buffer unit 65, for configuration information acquiring unit 61 in will be got from the first memory module Configuration information be cached to preset buffer memory space;
First transmitting element 66, for determining not stop holding when the execute instruction for being based on being received in the first determining unit 63 During line program, the configuration information cached in preset buffer memory space is sent to terminal based on execute instruction.
In one embodiment, the first transmitting element 66 includes:
Second determination subelement 661, for based on the execute instruction received in the first determining unit 63, it is determined that default slow Deposit the configuration information with the presence or absence of the second predetermined number in space;
Second transmission sub-unit 662, for having second in preset buffer memory space is determined in the second determination subelement 661 During the configuration information of predetermined number, the configuration information of the second predetermined number is sent to terminal.
In one embodiment, the acquisition device of configuration information also includes:
3rd determining unit 67, for not existing second in preset buffer memory space is determined in the second determination subelement 661 During the configuration information of predetermined number, it is determined whether whole configuration informations are got from the first memory module, when it is determined that from When whole configuration informations are not got in one memory module, at the time point that the second preset duration terminates, from the second storage mould The stop position recorded in block, continues executing with configuration information acquiring unit 61 and obtains configuration information from the first memory module The step of;
Second program stopped unit 68, for that ought determine to be got from the first memory module entirely in the 3rd determining unit 67 During portion's configuration information, stop execution procedures.
In one embodiment, the acquisition device of configuration information also includes:
Configuration information deletes unit 69, for deleting the configuration information of the second predetermined number from preset buffer memory space;
4th determining unit 70, for determining in preset buffer memory space with the presence or absence of not deleted configuration information, when it is determined that When not existing not deleted configuration information in preset buffer memory space, determining whether in the 3rd determining unit 67 of execution is deposited from first The step of whole configuration informations being got in storage module;
3rd transmitting element 71, for that ought determine there is not deleted matching somebody with somebody in preset buffer memory space in the 4th determining unit 70 When confidence ceases, default prompt message is sent to terminal, presetting prompt message is used to point out the state in execute instruction is received.
In one embodiment, the acquisition device of configuration information also includes:
Quantity judging unit 72, for the configuration for judging to be cached in configuration information buffer unit 65 in preset buffer memory space Whether the quantity of information is more than or equal to the 3rd predetermined number first;
4th transmitting element 73, for when in quantity judging unit 72 judge be cached to preset buffer memory space in confidence When the quantity of breath to be more than or equal to three predetermined numbers first, the configuration information of the 3rd predetermined number and pre- is sent to terminal If prompt message.
In one embodiment, the acquisition device of configuration information also includes:
3rd program stopped unit 74, for when since being got from the first memory module stop position with confidence When the quantity of breath is more than or equal to the first predetermined number, mould is stored from first in stopping execution configuration information acquiring unit 61 The step of configuration information being obtained in block.
The function of unit and the implementation process of effect correspond to step in specifically referring to the above method in said apparatus Implementation process, will not be repeated here.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is referring to method reality Apply the part explanation of example.Device embodiment described above is only schematical, wherein described as separating component The unit of explanation can be or may not be physically separate, and the part shown as unit can be or can also It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality Selection some or all of module therein is needed to realize the purpose of the present invention program.Those of ordinary skill in the art are not paying In the case of going out creative work, you can to understand and implement.
As seen from the above-described embodiment, when needing the quantity that configuration information is obtained from the first memory module more huge, The quantity of the configuration information that server gets from the first memory module often reaches the first predetermined number, and server stops performing The step of obtaining configuration information from the first memory module, waits execute instruction to be received or the execute instruction to having been received by carry out Response, the process for solving server acquisition configuration information cannot be interrupted, and server cannot timely respond to the problem of execute instruction.
Those skilled in the art considering specification and after putting into practice invention disclosed herein, will readily occur to it is of the invention its Its embodiment.It is contemplated that cover any modification of the invention, purposes or adaptations, these modifications, purposes or Person's adaptations follow general principle of the invention and including undocumented common knowledge in the art of the invention Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following Claim is pointed out.
Also, it should be noted that term " including ", "comprising" or its any other variant be intended to nonexcludability Comprising so that process, method, commodity or equipment including a series of key elements not only include those key elements, but also wrapping Include other key elements being not expressly set out, or also include for this process, method, commodity or equipment is intrinsic wants Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanted including described Also there is other identical element in process, method, commodity or the equipment of element.
Presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the invention, it is all in essence of the invention Within god and principle, any modification, equivalent substitution and improvements done etc. should be included within the scope of protection of the invention.

Claims (10)

1. a kind of acquisition methods of configuration information, it is characterised in that methods described includes:
During program is performed, configuration information is obtained from the first memory module;
When the configuration information got from first memory module after terminating from the first preset duration quantity be more than or When person is equal to the first predetermined number, stop the step of execution is described to obtain configuration information from the first memory module, and record stops Only perform the time point of acquisition action;
When execute instruction is received in the second preset duration the time point, determined based on the execute instruction be It is no to stop performing described program.
2. method according to claim 1, it is characterised in that methods described also includes:
Stop position when stopping obtaining configuration information from first memory module is recorded in the second memory module;
At the time point that second preset duration terminates, the stop position of record from second memory module, after The step of configuration information being obtained described in continuous execution from the first memory module.
3. method according to claim 2, it is characterised in that methods described also includes:
The configuration information got from first memory module is cached to preset buffer memory space;
When determining not stop performing described program based on the execute instruction, send described to terminal based on the execute instruction The configuration information cached in preset buffer memory space.
4. method according to claim 3, it is characterised in that described to send described pre- to terminal based on the execute instruction If the configuration information cached in spatial cache, including:
Based on the execute instruction, the configuration information with the presence or absence of the second predetermined number in the preset buffer memory space is determined;
When there is the configuration information of second predetermined number in the preset buffer memory space, described second is sent to terminal pre- If the configuration information of quantity.
5. method according to claim 4, it is characterised in that methods described also includes:
When in the preset buffer memory space in the absence of the configuration information of second predetermined number, it is determined whether from described first Whole configuration informations are got in memory module;
When it is determined that not getting whole configuration informations from first memory module, terminate in second preset duration Time point, the stop position recorded from second memory module continues executing with described from the first memory module The step of obtaining configuration information;
When it is determined that getting whole configuration informations from first memory module, stop performing described program.
6. method according to claim 5, it is characterised in that the configuration that second predetermined number is sent to terminal After the step of information, methods described also includes:
The configuration information of second predetermined number is deleted from the preset buffer memory space;
Determine to whether there is not deleted configuration information in the preset buffer memory space;
When it is determined that not existing not deleted configuration information in the preset buffer memory space, perform described in determine whether from described the The step of whole configuration informations are got in one memory module;
When it is determined that there is not deleted configuration information in the preset buffer memory space, default prompting letter is sent to the terminal Breath, the default prompt message is used to point out the state in execute instruction is received.
7. according to any described methods of claim 3-6, it is characterised in that described to be obtained from first memory module To configuration information be cached to preset buffer memory space the step of after, methods described also includes:
Whether the quantity that judgement is cached to the configuration information in the preset buffer memory space is preset more than or equal to the 3rd first Quantity;
When it is described be cached to the preset buffer memory space in configuration information quantity for first more than or equal to the 3rd preset During quantity, the configuration information and the default prompt message of the 3rd predetermined number are sent to the terminal.
8. method according to claim 2, it is characterised in that methods described also includes:
When being more than or wait since the quantity of the configuration information got from first memory module the stop position When first predetermined number, stop the step of execution is described to obtain configuration information from the first memory module.
9. a kind of acquisition device of configuration information, it is characterised in that described device includes:
Configuration information acquiring unit, during being performed in program, configuration information is obtained from the first memory module;
First program stopped unit, for when in the configuration information acquiring unit after terminating from the first preset duration from institute When the quantity for stating the configuration information got in the first memory module is more than or equal to the first predetermined number, stop execution described The step of described in configuration information acquiring unit obtains configuration information from the first memory module, and record stopping and perform acquisition The time point of action;
First determining unit, presets for second when the time point recorded since the first program stopped unit When receiving execute instruction in duration, determine whether to stop performing described program based on the execute instruction.
10. device according to claim 9, it is characterised in that described device also includes:
Stop position recording unit, for the first program stopped unit in will stop from first memory module obtain Stop position when taking configuration information is recorded in the second memory module, at the time point that second preset duration terminates, from The stop position recorded in second memory module, continues executing with described from the in the configuration information acquiring unit The step of configuration information being obtained in one memory module.
CN201710083654.9A 2017-02-16 2017-02-16 The acquisition methods and device of a kind of configuration information Pending CN106919447A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710083654.9A CN106919447A (en) 2017-02-16 2017-02-16 The acquisition methods and device of a kind of configuration information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710083654.9A CN106919447A (en) 2017-02-16 2017-02-16 The acquisition methods and device of a kind of configuration information

Publications (1)

Publication Number Publication Date
CN106919447A true CN106919447A (en) 2017-07-04

Family

ID=59453865

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710083654.9A Pending CN106919447A (en) 2017-02-16 2017-02-16 The acquisition methods and device of a kind of configuration information

Country Status (1)

Country Link
CN (1) CN106919447A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632078A (en) * 2018-03-13 2018-10-09 网宿科技股份有限公司 A kind of acquisition methods of configuration

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102801605A (en) * 2012-02-13 2012-11-28 北京星网锐捷网络技术有限公司 Method and device for displaying information
CN103714046A (en) * 2013-12-27 2014-04-09 南京国电南自电网自动化有限公司 Interface displaying method of large amount of information
CN103984762A (en) * 2008-12-16 2014-08-13 富媒体俱乐部有限责任公司 Content rendering control system and method
CN104331263A (en) * 2014-10-29 2015-02-04 国家电网公司 Method and device for displaying large amount of spatial data at front end
CN105528261A (en) * 2015-11-30 2016-04-27 武汉烽火网络有限责任公司 Method and system for intelligently outputting debugging information for embedded device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984762A (en) * 2008-12-16 2014-08-13 富媒体俱乐部有限责任公司 Content rendering control system and method
CN102801605A (en) * 2012-02-13 2012-11-28 北京星网锐捷网络技术有限公司 Method and device for displaying information
CN103714046A (en) * 2013-12-27 2014-04-09 南京国电南自电网自动化有限公司 Interface displaying method of large amount of information
CN104331263A (en) * 2014-10-29 2015-02-04 国家电网公司 Method and device for displaying large amount of spatial data at front end
CN105528261A (en) * 2015-11-30 2016-04-27 武汉烽火网络有限责任公司 Method and system for intelligently outputting debugging information for embedded device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632078A (en) * 2018-03-13 2018-10-09 网宿科技股份有限公司 A kind of acquisition methods of configuration
CN108632078B (en) * 2018-03-13 2021-07-23 网宿科技股份有限公司 Configuration acquisition method

Similar Documents

Publication Publication Date Title
US6904597B2 (en) Inter-thread communications between different components using double buffer
US6601173B1 (en) Multi-user internet access and security system
US9424108B2 (en) Launching and managing unattended application programs
CN103092700B (en) Internal memory method for cleaning, device and terminal unit
CN104346148B (en) Obtain method, the apparatus and system of program feature consumption information
JP2007095074A5 (en)
TWI743163B (en) Chat record processing method and device of instant chat tool
CN109491928A (en) Buffer control method, device, terminal and storage medium
CN105516321B (en) A kind of collecting method and device
JPH04501027A (en) Multi-processing system with cache memory
TW200813719A (en) Avoiding cache line sharing in virtual machines
CN108834086A (en) Method, apparatus, computer equipment and the storage medium that short message is sent
CN104268473B (en) Method and device for detecting application programs
CN103902355B (en) A kind of quick loading method of medical image
CN105897694B (en) A kind of client session recognition methods and system
CN107391106A (en) The initial method and terminal of camera parameter
CN104268012B (en) A kind of image data processing method and processing device
CN109842621A (en) A kind of method and terminal reducing token storage quantity
CN108829342A (en) A kind of log storing method, system and storage device
CN115048142A (en) Cache access command processing system, method, device, equipment and storage medium
CN106919447A (en) The acquisition methods and device of a kind of configuration information
CN105471955B (en) Write method, client device and the distributed file system of distributed file system
US20060069821A1 (en) Capture of data in a computer network
CN109413001A (en) The method and device of safeguard protection is carried out to the interaction data in cloud computing system
CN106888268A (en) A kind of analysis method and device of domain name

Legal Events

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

Application publication date: 20170704