CN105930178B - A kind of configurable dynamic state of parameters stowage and system - Google Patents

A kind of configurable dynamic state of parameters stowage and system Download PDF

Info

Publication number
CN105930178B
CN105930178B CN201510770053.6A CN201510770053A CN105930178B CN 105930178 B CN105930178 B CN 105930178B CN 201510770053 A CN201510770053 A CN 201510770053A CN 105930178 B CN105930178 B CN 105930178B
Authority
CN
China
Prior art keywords
time
sublist
parameter
load
shared drive
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510770053.6A
Other languages
Chinese (zh)
Other versions
CN105930178A (en
Inventor
刘淑娟
鲍鹏
邱鹏
杨燕明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Unionpay Co Ltd
Original Assignee
China Unionpay Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Priority to CN201510770053.6A priority Critical patent/CN105930178B/en
Publication of CN105930178A publication Critical patent/CN105930178A/en
Application granted granted Critical
Publication of CN105930178B publication Critical patent/CN105930178B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

Embodiments of the present invention provide a kind of configurable dynamic state of parameters stowage and system, this method comprises: configuration parameter and its load mode in sublist;The monitoring arrangement of each sublist is configured in summary table;The monitoring arrangement of each sublist is loaded from summary table and it is parsed, and obtains each time for initiating each sublist monitoring;Sublist is monitored according to each time for initiating sublist monitoring for each sublist, monitoring includes: the nearest loading time that sublist is loaded from summary table;Traverse each parameter in sublist;According to the load mode of parameter, nearest loading time and current time, judge whether to need to load;For the parameter that needs load, loading is executed according to its load mode;After traversal, the nearest loading time of sublist in summary table is updated.The present invention improves the efficiency of the practice of parameter loading, greatly reduces the workload of modification of program, is more flexible, and is more able to satisfy the timeliness of new business extension.

Description

A kind of configurable dynamic state of parameters stowage and system
Technical field
Embodiments of the present invention are related to field of computer technology, more specifically, embodiments of the present invention are related to one kind Configurable dynamic state of parameters stowage and system.
Background technique
Background that this section is intended to provide an explanation of the embodiments of the present invention set forth in the claims or context.Herein Description recognizes it is the prior art not because not being included in this section.
It is some to become parameter for system and the data of Service control in kernel business of bank system.With business datum phase Than parameter is preset and with certain life cycle (having entry-into-force time and out-of-service time), the significant difference of the two It is that parameter is metastable, and business datum changes at any time.
When there is new business to occur, kernel business of bank system needs to load a large amount of new parameters, parameter traditional at present Stowage is mainly to be realized by modifying the program of kernel business of bank system.
Summary of the invention
But since parameter stowage traditional at present needs to modify the program of kernel business of bank system, this side Method is there are heavy workload, the disadvantages of production cycle is long, and efficiency is lower, is unable to satisfy the timeliness of new business extension, is unfavorable for mentioning The online efficiency of the practice of high-new service parameter.
Thus, it is also very desirable to which a kind of improved parameter stowage meets new industry to improve the efficiency of the practice of parameter loading The timeliness of business extension.
In the present context, embodiments of the present invention are intended to provide a kind of configurable dynamic state of parameters stowage and are System.
In the first aspect of embodiment of the present invention, a kind of configurable dynamic state of parameters stowage is provided, comprising:
Corresponding sublist is created for every kind of parameter type, configuration belongs to the parameter of relevant parameter type in sublist, and Configure the load mode of each parameter;
Summary table is created, when configuring the monitoring arrangement of each sublist in summary table, and configuring the nearest loading of each sublist Between be current time;
The monitoring arrangement that each sublist is loaded from summary table parses the monitoring arrangement of each sublist, obtains to every A sublist initiates each time of monitoring;
The sublist is monitored, the monitoring for each sublist according to each time for initiating the sublist monitoring Include:
The nearest loading time of the sublist is loaded from summary table;
Traverse each parameter in the sublist;According to the load mode of the parameter traversed, the nearest loading time And current time, judge whether to need to load the parameter;For the parameter that needs load, it is immediately performed according to its load mode It loads;
After traversal, the nearest loading time of the sublist in summary table is updated to last time in this ergodic process Execute the time loaded.
In the second aspect of embodiment of the present invention, a kind of dynamic state of parameters Load System is provided, comprising:
Sublist configuration module, for creating corresponding sublist for every kind of parameter type, configuration belongs to corresponding ginseng in sublist The parameter of several classes of types, and the load mode of each parameter of configuration;
Summary table configuration module configures the monitoring arrangement of each sublist, and configuration is each for creating summary table in summary table The nearest loading time of sublist is current time;
Parsing module carries out the monitoring arrangement of each sublist for loading the monitoring arrangement of each sublist from summary table Parsing obtains each time for initiating each sublist monitoring;
Monitoring module, according to each time for initiating the sublist monitoring, carries out the sublist for being directed to each sublist Monitoring;
The monitoring module further comprises:
Loading module, for loading the nearest loading time of the sublist from summary table;
Spider module, for traversing each parameter in the sublist;
Judgement and loading module, for according to the load mode of the parameter traversed, the nearest loading time and Current time judges whether to need to load the parameter;For the parameter that needs load, dress is immediately performed according to its load mode It carries;
Update module, for after traversal, the nearest loading time of the sublist in summary table being updated to this time traverse Last time executes the time loaded in the process.
With the aid of the technical scheme, the present invention is with the load mode of the form configuration various parameters parameterized, by dynamic The mode of state monitoring sublist realizes the dynamic loading of parameter, improves the efficiency of the practice of parameter loading.Compared with the prior art, originally It is not necessary to modify the programs of kernel business of bank system for invention, greatly reduce the workload of modification of program, are more flexible, more can Meet the timeliness of new business extension.
Detailed description of the invention
The following detailed description is read with reference to the accompanying drawings, above-mentioned and other mesh of exemplary embodiment of the invention , feature and advantage will become prone to understand.In the accompanying drawings, if showing by way of example rather than limitation of the invention Dry embodiment, in which:
Fig. 1 schematically shows the flow diagram of configurable dynamic state of parameters stowage provided by the invention;
Fig. 2 schematically shows the processes being monitored in the present invention to each sublist;
Fig. 3 schematically shows a kind of structural framing figure of dynamic state of parameters Load System provided by the invention;
Fig. 4 schematically shows another structural framing figures of dynamic state of parameters Load System provided by the invention;
In the accompanying drawings, identical or corresponding label indicates identical or corresponding part.
Specific embodiment
The principle and spirit of the invention are described below with reference to several illustrative embodiments.It should be appreciated that providing this A little embodiments are used for the purpose of making those skilled in the art can better understand that realizing the present invention in turn, and be not with any Mode limits the scope of the invention.On the contrary, these embodiments are provided so that this disclosure will be more thorough and complete, and energy It is enough that the scope of the present disclosure is completely communicated to those skilled in the art.
Those skilled in the art will understand that embodiments of the present invention can be implemented as a kind of system, device, equipment, Method or computer program product.Therefore, the present disclosure may be embodied in the following forms, it may be assumed that complete hardware, complete soft The form that part (including firmware, resident software, microcode etc.) or hardware and software combine.
Embodiment according to the present invention proposes a kind of configurable dynamic state of parameters stowage and system.
Herein, it is to be understood that related term " shared drive " indicates institute in kernel business of bank system There is the shared drive of software equipment, hardware device.
In addition, any number of elements in attached drawing is used to example rather than limitation and any name are only used for distinguishing, Without any restrictions meaning.
Illustrative methods
The present invention provides a kind of configurable dynamic state of parameters stowage, as shown in Figure 1, including the following steps:
Step S11 configures sublist: creating corresponding sublist for every kind of parameter type, configuration belongs to corresponding ginseng in sublist The parameter of several classes of types, and the load mode of each parameter of configuration.
Specifically, for sublist for recording parameter and its load mode, a sublist corresponds to a kind of parameter type, can in sublist Multiple parameters are recorded, each parameter configuration has unique load mode.
User can in advance or configuration parameter and its load mode in sublist in real time.For example, having in bank a certain When new business is online, the parameter that a collection of new business is related to is configured in corresponding sublist by user according to parameter type in advance;It is right When the existing business of bank improves and needs to be packed into new parameter, user finds accordingly according to parameter type belonging to parameter Sublist, by its with merging sublist in.
Table 1 show the embodiment of parameter type and corresponding sublist and parameter.
Table 1
Optionally, the load mode of parameter can include but is not limited to be following several in the present invention:
1. periodically come into force type: being packed into shared drive in the preset time to come into force;
2. timing out type: deleting in the preset time from shared drive to fail;
3. periodically coming into force, failure type: being packed into shared drive in the preset time to come into force, and in another preset time It deletes from shared drive to fail;
4. come into force type in real time: being packed into shared drive in real time in the time being scanned to come into force.
When it is implemented, it is alternatively possible to using form as shown in Table 2 configuration parameter in sublist load mode: It is that each parameter creates two attributes " entry-into-force time " and " out-of-service time " in sublist;For the type that periodically comes into force, in parameter A preset time T1 is configured in " entry-into-force time " attribute, enables its " out-of-service time " attribute for sky;For timing out type, ginseng is enabled Several " entry-into-force time " attributes is sky, and a preset time T2 is configured in its " out-of-service time " attribute;For periodically coming into force, losing Acting type configures a preset time T1 in " entry-into-force time " attribute of parameter, configures in its " out-of-service time " attribute another Preset time T2;For the type that comes into force in real time, enabling " entry-into-force time " and " out-of-service time " two attributes of parameter is sky.
Table 2
Entry-into-force time Out-of-service time
T1 It is empty
It is empty T2
T1 T2
It is empty It is empty
When it is implemented, optionally, the loading side of form configuration parameter in sublist as shown in table 3 can also be used Formula: being that each parameter creates two attributes " load mode " and " preset time " in sublist;For the type that periodically comes into force, in parameter " load mode " attribute in configure binary digit 10, in its " preset time " attribute configure a preset time T1;It is right In timing out type, binary digit 01 is configured in " load mode " attribute of parameter, is matched in its " preset time " attribute Set a preset time T2;For periodically coming into force, failure type, configure binary digit in " load mode " attribute of parameter 11, in its " preset time " attribute configure two preset time T1 and T2, wherein between T1 and T2 with ";" separate;For Come into force type in real time, and binary digit 00 is configured in " load mode " attribute of parameter, enables its " preset time " attribute for sky.
Table 3
Load mode Preset time
10 T1
01 T2
11 T1;T2
00 It is empty
Step S12 configures summary table: creation summary table, the monitoring arrangement of each sublist is configured in summary table, and configuration is each The nearest loading time of sublist is current time.
Specifically, summary table be used for record sublist monitoring arrangement and the nearest loading time, needs when being monitored to sublist The corresponding monitoring of sublist is loaded from summary table to arrange and the nearest loading time.
Configured in summary table monitoring arrangement needs indicate when to corresponding sublist initiate monitoring, corresponding sublist is carried out altogether it is several The information such as secondary monitoring.
When it is implemented, it is alternatively possible to the configuration monitoring arrangement in summary table using form as shown in Figure 4: will be to phase Sublist is answered to initiate the time sequential (indicating when to initiate to monitor to sublist) of monitoring, and with unique identifier (in such as table 4 ", ") separate each time for initiating monitoring (expression is monitored several times altogether).Such as, wherein the monitoring peace of card bin information table Row indicates respectively initiate once in 0:00,3:00,6:00,9:00,12:00,15:00,18:00,21:00 to card bin information table Monitoring, in total to card bin information table monitor 8 times.
Table 4
Sublist Monitoring arranges
Trade company's blacklist table 0:00,4:00,8:00,12:00,16:00,20:00
Trade company's white list table 0:30,4:30,8:30,12:30,16:30,20:30
Block bin information table 0:00,3:00,6:00,9:00,12:00,15:00,18:00,21:00
Organization information table 0:15,3:15,6:15,9:15,12:15,15:15,18:15,21:15
When it is implemented, for the ease of load, it is alternatively possible to configure prison in summary table using form as shown in table 5 Control arranges: configuration initiates the time of monitoring to sublist for the first time, last initiates the time of monitoring to sublist, is monitored to sublist Total degree, and separate time and the last antithetical phrase that monitoring is initiated sublist for the first time using unique identifier (", " in such as table 5) Table initiate monitoring time between, using another unique identifier (in such as table 5 ";") separate total time be monitored to sublist Number.Such as, wherein the monitoring arrangement of trade company's blacklist table indicates that 6 should be monitored to trade company's blacklist table between 20:00 in 0:00 Secondary, i.e., 0:00,4:00,8:00,12:00,16:00,20:00 respectively initiate the once monitoring to trade company's blacklist table.
Table 5
Sublist Monitoring arranges
Trade company's blacklist table 0:00,20:00;6
Trade company's white list table 0:30,20:30;6
Block bin information table 0:00,21:00;8
Organization information table 0:15,21:15;8
The nearest loading time in summary table indicates to execute parameter loading during monitoring sublist every time for the last time Time, due to not being monitored to sublist also when configuration summary table, therefore, it is necessary to initial by the nearest loading time of each sublist Value is configured to current time.
Step S13, loads and parses: loading the monitoring arrangement of each sublist from summary table, pacifies to the monitoring of each sublist Capable parsing is discharged into, each time for initiating each sublist monitoring is obtained.
Such as summary table configures the monitoring arrangement of each sublist according to form as shown in table 5, then to trade company's blacklist table Monitoring arranges after being loaded and being parsed, and obtains initiating trade company's blacklist table each time of monitoring as 0:00,4:00,8: 00、 12:00、16:00、20:00。
Step S14, monitoring and loading: being directed to each sublist, according to each time for initiating the sublist monitoring, to the son Table is monitored, wherein including process as shown in Figure 2 to the monitoring that each sublist carries out.
Specifically, each time monitored, step are initiated to each sublist since step S13 has parsed to obtain Each time that S14 can be obtained in parsing initiates to monitor to corresponding sublist.
In view of bank's new business often relates to a greater number and compared with the parameter of polymorphic type, according to side provided by the invention When method is monitored, greater number of sublist will be related to, when it is implemented, if initiating according to what parsing obtained each sublist The time of monitoring initiates monitoring in real time and then needs to occupy more system resource, in order to reduce the occupancy of system resource, this hair It is bright to use following mode: corresponding for the creation of each sublist after the monitoring arrangement to each sublist parses Time queue;The each time (ought to initiate each time of monitoring) for initiating monitoring to each sublist that parsing is obtained deposits Enter in the corresponding time queue of corresponding sublist;Be periodically polled (such as every 1 minute or 5 minutes) each sublist it is corresponding when Between queue head of the queue element, and the head of the queue element is compared with current time;If the head of the queue element is exactly equal to current Between or before current time, then the corresponding sublist of time queue where the head of the queue element is monitored, at the same delete should Head of the queue element.
That is, the practical head of the queue member initiated primary monitoring, just delete in the corresponding time queue of sublist every to sublist Element arrives next poll correspondingly, this time practical time for initiating to initiate monitoring corresponding to monitoring is just deleted in this way When, the head of the queue element of the corresponding time queue of the sublist has reformed into the next time that ought to initiate monitoring, if this next time Current time in system when equal to next poll indicates that current time in system when next poll is precisely that ought to send out the sublist The next time for playing monitoring, then the sublist should be monitored immediately, if this time is earlier than current time, then it represents that next time Current time in system when poll has been over the next time that ought to initiate the sublist monitoring, it should also immediately to the son Table is monitored.
By way of this periodical poll, the present invention can be obtained periodically and ought to initiate to monitor to each sublist Time and system current time, then the two is compared, ought to initiate to supervise without monitoring each sublist in real time The time of control and the current time of system, are greatly saved resource occupation amount, operation caused by can effectively avoid because of inadequate resource The problems such as unstable.
It is illustrated in figure 2 the process being monitored to sublist:
Step S21 loads the nearest loading time of the sublist from summary table.
Specifically, when being monitored for the first time to sublist, when the nearest loading time being loaded into from summary table is configuration summary table Current time in system.
Step S22 traverses each parameter in the sublist;According to the load mode of the parameter traversed, recently loading Time and current time judge whether to need to load the parameter;For the parameter that needs load, immediately according to its load mode Execute loading.
Specifically, judge whether a parameter executes loading and need to analyze following three data: the loading of parameter The nearest loading time of sublist and the current time of system where mode, parameter.Wherein, using the load mode of parameter and it is When the current time of system can determine whether to have been subjected to the entry-into-force time of parameter and/or out-of-service time, sublist where parameter is utilized The nearest loading time parameter having been loaded into sublist can then be filtered off, to avoid repetition loading.
When it is implemented, the type that respectively periodically comes into force for load mode, timing out type, periodically coming into force, failure type, reality The parameter of Shi Shengxiao type, can be according to standard as shown in table 6 to determine whether needing to be implemented loading, it may be assumed that
Timing comes into force type: by the nearest loading time T0 and system of preset parameter entry-into-force time T1 and sublist it is current when Between T4 be compared;If parameter entry-into-force time T1 is exactly equal to the current time T4 of system or in the nearest loading of sublist Between after T0, before the current time T4 of system, it is determined that need to load the parameter, and be immediately packed into the parameter shared Memory;
Timing out type: by the nearest loading time T0 and system of preset parameter out-of-service time T2 and sublist it is current when Between T4 be compared;If parameter out-of-service time T2 is exactly equal to the current time T4 of system or in the nearest loading of sublist Between after T0, before the current time T4 of system, it is determined that need to load the parameter, and immediately by the parameter out of shared Deposit middle deletion;
It periodically comes into force, failure type: most by preset parameter entry-into-force time T1, preset parameter out-of-service time T2 and sublist Nearly loading time T0 and the current time T4 of system are compared;If parameter entry-into-force time T1 be exactly equal to system it is current when Between T4 or after the nearest loading time T0 of sublist, before the current time T4 of system, it is determined that need to load the ginseng Number, and the parameter is packed into shared drive immediately;If parameter out-of-service time T2 be exactly equal to system current time T4 or After the nearest loading time T0 of sublist, before the current time T4 of system, it is determined that need to load the parameter, and immediately will The parameter is deleted from shared drive;
Come into force type in real time: traversing the parameter i.e. determination and needs to load the parameter, and the parameter is packed into shared immediately It deposits.
Table 6
Load mode Judgment criteria Execute loading
Periodically come into force type T0 < T1≤T4 It is packed into shared drive
Timing out type T0 < T2≤T4 It is deleted from shared drive
It periodically comes into force, failure type T0 < T1≤T4 It is packed into shared drive
T0 < T2≤T4 It is deleted from shared drive
Come into force type in real time It is packed into shared drive
The nearest loading time of the sublist in summary table is updated in this ergodic process by step S23 after traversal Last time executes the time loaded.
The step was updated to the nearest loading time of sublist each in summary table, it is made to load feelings with actual parameter Condition matches, effect be it is subsequent judge whether parameter needs to be implemented loading when, will executed in sublist loading ginseng Number filters out, to avoid repetition loading.
To sum up, configurable dynamic state of parameters stowage provided by the invention, dynamically configurable various parameters and its loading Mode, and the dynamic loading of parameter is realized in such a way that dynamic monitors sublist, the efficiency of the practice of parameter loading is improved, is met The timeliness of new business extension.Compared with the prior art, it is not necessary to modify the programs of kernel business of bank system by the present invention, greatly The workload for reducing modification of program, is more flexible, and easy to accomplish and stable, has better applicability, can It is promoted the use of in different operation systems.
Exemplary system
The present invention also provides a kind of dynamic state of parameters Load Systems, as shown in figure 3, the system includes:
Sublist configuration module 31, for creating corresponding sublist for every kind of parameter type, configuration belongs to corresponding in sublist The parameter of parameter type, and the load mode of each parameter of configuration;
Summary table configuration module 32 configures the monitoring arrangement of each sublist, and configuration is often for creating summary table in summary table The nearest loading time of a sublist is current time;
Parsing module 33 is arranged into the monitoring of each sublist for loading the monitoring arrangement of each sublist from summary table Row parsing obtains each time for initiating each sublist monitoring;
Monitoring module 34, for be directed to each sublist, according to the sublist initiate monitoring each time, to the sublist into Row monitoring;
Monitoring module 34 further comprises:
Loading module 341, for loading the nearest loading time of the sublist from summary table;
Spider module 342, for traversing each parameter in the sublist;
Judgement and loading module 343, for according to the load mode of the parameter traversed, nearest loading time and working as The preceding time judges whether to need to load the parameter;For the parameter that needs load, loading is immediately performed according to its load mode;
Update module 344, for after traversal, the nearest loading time of the sublist in summary table to be updated to this time Last time executes the time loaded during going through.
Optionally, sublist configuration module 31 is specifically used for:
It is to be packed into shared drive in the preset time to come into force by parameter configuration;Or,
It is to delete in the preset time from shared drive to fail by parameter configuration;Or,
It is to be packed into shared drive in preset time to come into force for parameter configuration, and in another preset time from shared It deletes in memory to fail;Or,
It is to be packed into shared drive in real time in the time being scanned to come into force by parameter configuration.
Optionally, summary table configuration module 32 is specifically used for: configuration initiates the time monitored, last to sublist to sublist for the first time The time for initiating monitoring, the total degree that sublist is monitored.
Optionally, as shown in figure 4, the dynamic state of parameters Load System further include:
Queue creation module 35, for creating corresponding time queue for each sublist;
Queue memory module 36, when the corresponding sublist of deposit of each time for that will initiate each sublist monitoring is corresponding Between in queue;
Monitoring module 34 is specifically used for:
It is periodically polled the head of the queue element of the corresponding time queue of each sublist, and by the head of the queue element and current time It is compared;
If the head of the queue element is exactly equal to current time or before current time, to the time where the head of the queue element The corresponding sublist of queue is monitored, while deleting the head of the queue element.
Optionally, judgement and loading module 343 are specifically used for:
If the load mode of the parameter traversed is to be packed into shared drive in the preset time to come into force, one is preset Time be compared with nearest loading time and current time;If the preset time is exactly equal to current time or most After the nearly loading time, before current time, it is determined that need to load the parameter, and the parameter is packed into shared immediately It deposits;
If the load mode of the parameter traversed is to be deleted from shared drive in the preset time to fail, by one The preset time is compared with nearest loading time and current time;If the preset time be exactly equal to current time or After the nearest loading time, before current time, it is determined that need to load the parameter, and immediately by the parameter out of share Deposit middle deletion;
If the load mode of the parameter traversed is in a preset time loading shared drive to come into force, and another The preset time is deleted from shared drive to fail, by a preset time, another preset time and nearest loading time It is compared with current time;If the preset time be exactly equal to current time or after the nearest loading time, working as Before the preceding time, it is determined that need to load the parameter, and the parameter is packed into shared drive immediately;If another preset time Exactly equal to current time or after the nearest loading time, before current time, it is determined that need to load the parameter, exist side by side Will the parameter deleted from shared drive;
If the load mode of the parameter traversed is to be packed into shared drive in real time in the time being scanned to come into force, Determination needs to load the parameter, and the parameter is packed into shared drive immediately.
It should be noted that although being referred to several modules of dynamic state of parameters Load System in the above detailed description, this Kind divides only not enforceable.In fact, embodiment according to the present invention, two or more above-described modules Feature and function can embody in a module.Conversely, the feature and function of an above-described module can be into one Step, which is divided by multiple modules, to be embodied.
In addition, although describing the operation of the method for the present invention in the accompanying drawings with particular order, this do not require that or Hint must execute these operations in this particular order, or have to carry out shown in whole operation be just able to achieve it is desired As a result.Additionally or alternatively, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/or by one Step is decomposed into execution of multiple steps.
Although detailed description of the preferred embodimentsthe spirit and principles of the present invention are described by reference to several, it should be appreciated that, this It is not limited to the specific embodiments disclosed for invention, does not also mean that the feature in these aspects cannot to the division of various aspects Combination is benefited to carry out, this to divide the convenience merely to statement.The present invention is directed to cover appended claims spirit and Included various modifications and equivalent arrangements in range.
Particular embodiments described above has carried out further in detail the purpose of the present invention, technical scheme and beneficial effects Describe in detail it is bright, it should be understood that the above is only a specific embodiment of the present invention, the guarantor being not intended to limit the present invention Range is protected, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should be included in this Within the protection scope of invention.
Those skilled in the art will also be appreciated that the various illustrative components, blocks that the embodiment of the present invention is listed (illustrative logical block), unit and step can by electronic hardware, computer software, or both knot Conjunction is realized.For the replaceability (interchangeability) for clearly showing that hardware and software, above-mentioned various explanations Property component (illustrative components), unit and step universally describe their function.Such function It can be that the design requirement for depending on specific application and whole system is realized by hardware or software.Those skilled in the art Can be can be used by various methods and realize the function, but this realization is understood not to for every kind of specific application Range beyond protection of the embodiment of the present invention.
Various illustrative logical blocks or unit or device described in the embodiment of the present invention can be by general Processor, digital signal processor, specific integrated circuit (ASIC), field programmable gate array or other programmable logic dress It sets, discrete gate or transistor logic, discrete hardware components or above-mentioned any combination of design carry out function described in implementation or operation Energy.General processor can be microprocessor, and optionally, which may be any traditional processor, control Device, microcontroller or state machine.Processor can also realize by the combination of computing device, for example, digital signal processor and Microprocessor, multi-microprocessor, one or more microprocessors combine a digital signal processor core or any other class As configuration to realize.
The step of method described in the embodiment of the present invention or algorithm can be directly embedded into hardware, processor execute it is soft The combination of part module or the two.Software module can store in RAM memory, flash memory, ROM memory, EPROM storage Other any form of storaging mediums in device, eeprom memory, register, hard disk, moveable magnetic disc, CD-ROM or this field In.Illustratively, storaging medium can be connect with processor, so that processor can read information from storaging medium, and It can be to storaging medium stored and written information.Optionally, storaging medium can also be integrated into the processor.Processor and storaging medium can To be set in asic, ASIC be can be set in user terminal.Optionally, processor and storaging medium also can be set in In different components in the terminal of family.
In one or more exemplary designs, above-mentioned function described in the embodiment of the present invention can be in hardware, soft Part, firmware or any combination of this three are realized.If realized in software, these functions be can store and computer-readable On medium, or it is transferred on a computer readable medium in the form of one or more instructions or code forms.Computer readable medium includes electricity Brain storaging medium and convenient for so that computer program is allowed to be transferred to from a place telecommunication media in other places.Storaging medium can be with It is that any general or special computer can be with the useable medium of access.For example, such computer readable media may include but It is not limited to RAM, ROM, EEPROM, CD-ROM or other optical disc storages, disk storage or other magnetic storage devices or other What can be used for carry or store with instruct or data structure and it is other can be by general or special computer or general or specially treated The medium of the program code of device reading form.In addition, any connection can be properly termed computer readable medium, example Such as, if software is to pass through a coaxial cable, fiber optic cables, double from a web-site, server or other remote resources Twisted wire, Digital Subscriber Line (DSL) are defined with being also contained in for the wireless way for transmitting such as example infrared, wireless and microwave In computer readable medium.The disk (disk) and disk (disc) includes compress disk, radium-shine disk, CD, DVD, floppy disk And Blu-ray Disc, disk is usually with magnetic replicate data, and disk usually carries out optically replicated data with laser.Combinations of the above Also it may be embodied in computer readable medium.

Claims (10)

1. a kind of configurable dynamic state of parameters stowage characterized by comprising
Corresponding sublist is created for every kind of parameter type, configuration belongs to the parameter of relevant parameter type, and configuration in sublist The load mode of each parameter;
Summary table is created, the monitoring arrangement of each sublist is configured in summary table, and the nearest loading time of each sublist of configuration is Current time;
The monitoring arrangement that each sublist is loaded from summary table parses the monitoring arrangement of each sublist, obtains to every height Table initiates each time of monitoring;
The sublist is monitored according to each time for initiating the sublist monitoring for each sublist, the monitoring packet It includes:
The nearest loading time of the sublist is loaded from summary table;
Traverse each parameter in the sublist;According to the load mode of the parameter traversed, the nearest loading time and Current time judges whether to need to load the parameter;For the parameter that needs load, dress is immediately performed according to its load mode It carries;
After traversal, the nearest loading time of the sublist in summary table is updated to execute for the last time in this ergodic process The time of loading.
2. configurable dynamic state of parameters stowage according to claim 1, which is characterized in that each ginseng of the configuration Several load modes, comprising:
It is to be packed into shared drive in the preset time to come into force by parameter configuration;Or,
It is to delete in the preset time from shared drive to fail by parameter configuration;Or,
It is to be packed into shared drive in preset time to come into force for parameter configuration, and in another preset time from shared drive Middle deletion is to fail;Or,
It is to be packed into shared drive in real time in the time being scanned to come into force by parameter configuration.
3. configurable dynamic state of parameters stowage according to claim 2, which is characterized in that the every height of the configuration The monitoring arrangement of table, comprising:
Configuration for the first time to sublist initiate monitoring time, last to sublist initiate monitoring time, sublist is monitored it is total Number.
4. configurable dynamic state of parameters stowage according to claim 3, which is characterized in that
Described parses the monitoring arrangement of each sublist, after obtaining each time for initiating each sublist monitoring, Further include:
Corresponding time queue is created for each sublist;
It will be in the corresponding time queue of the corresponding sublist of deposit of each time for initiating each sublist monitoring;
Described is directed to each sublist, according to each time for initiating the sublist monitoring, is monitored to the sublist, comprising:
The head of the queue element of the corresponding time queue of each sublist is periodically polled, and the head of the queue element and current time are carried out It compares;
If the head of the queue element is exactly equal to current time or before current time, to the time queue where the head of the queue element Corresponding sublist is monitored, while deleting the head of the queue element.
5. configurable dynamic state of parameters stowage according to claim 2, which is characterized in that described according to being traversed The load mode of the parameter arrived, the nearest loading time and current time, judge whether to need to load the parameter;For needing The parameter to be loaded is immediately performed loading according to its load mode, comprising:
If the load mode of the parameter traversed is to be packed into shared drive in the preset time to come into force, described one is preset Time be compared with the nearest loading time and current time;If the preset time is exactly equal to current Between or after the nearest loading time, before current time, it is determined that need to load the parameter, and immediately by the parameter It is packed into shared drive;
If the load mode of the parameter traversed is to be deleted from shared drive in the preset time to fail, by described one The preset time is compared with the nearest loading time and current time;If the preset time is exactly equal to work as The preceding time or after the nearest loading time, before current time, it is determined that need to load the parameter, and immediately should Parameter is deleted from shared drive;
If the load mode of the parameter traversed is to be packed into shared drive in the preset time to come into force, and preset another Time delete from shared drive to fail, by described one preset time, another preset time and it is described recently Loading time and current time are compared;If the preset time is exactly equal to current time or in the nearest dress After the load time, before current time, it is determined that need to load the parameter, and the parameter is packed into shared drive immediately;Such as Another preset time described in fruit be exactly equal to current time or after the nearest loading time, before current time, Then determination needs to load the parameter, and immediately deletes the parameter from shared drive;
If the load mode of the parameter traversed is to be packed into shared drive in real time in the time being scanned to come into force, it is determined that It needs to load the parameter, and the parameter is packed into shared drive immediately.
6. a kind of dynamic state of parameters Load System characterized by comprising
Sublist configuration module, for creating corresponding sublist for every kind of parameter type, configuration belongs to relevant parameter class in sublist The parameter of type, and the load mode of each parameter of configuration;
Summary table configuration module configures the monitoring arrangement of each sublist, and each sublist of configuration for creating summary table in summary table The nearest loading time be current time;
Parsing module parses the monitoring arrangement of each sublist for loading the monitoring arrangement of each sublist from summary table, Obtain each time that monitoring is initiated each sublist;
Monitoring module, according to each time for initiating the sublist monitoring, supervises the sublist for being directed to each sublist Control;
The monitoring module further comprises:
Loading module, for loading the nearest loading time of the sublist from summary table;
Spider module, for traversing each parameter in the sublist;
Judgement and loading module, for according to the load mode of the parameter traversed, nearest loading time and current Time judges whether to need to load the parameter;For the parameter that needs load, loading is immediately performed according to its load mode;
Update module, for after traversal, the nearest loading time of the sublist in summary table to be updated to this ergodic process Middle last time executes the time loaded.
7. dynamic state of parameters Load System according to claim 6, which is characterized in that the sublist configuration module is specifically used In:
It is to be packed into shared drive in the preset time to come into force by parameter configuration;Or,
It is to delete in the preset time from shared drive to fail by parameter configuration;Or,
It is to be packed into shared drive in preset time to come into force for parameter configuration, and in another preset time from shared drive Middle deletion is to fail;Or,
It is to be packed into shared drive in real time in the time being scanned to come into force by parameter configuration.
8. dynamic state of parameters Load System according to claim 7, which is characterized in that the summary table configuration module is specifically used In:
Configuration for the first time to sublist initiate monitoring time, last to sublist initiate monitoring time, sublist is monitored it is total Number.
9. dynamic state of parameters Load System according to claim 8, which is characterized in that further include:
Queue creation module, for creating corresponding time queue for each sublist;
Queue memory module, for the corresponding time queue of the corresponding sublist of deposit of each time of monitoring will to be initiated each sublist In;
The monitoring module is specifically used for:
The head of the queue element of the corresponding time queue of each sublist is periodically polled, and the head of the queue element and current time are carried out It compares;
If the head of the queue element is exactly equal to current time or before current time, to the time queue where the head of the queue element Corresponding sublist is monitored, while deleting the head of the queue element.
10. dynamic state of parameters Load System according to claim 7, which is characterized in that the judgement and loading module are specific For:
If the load mode of the parameter traversed is to be packed into shared drive in the preset time to come into force, described one is preset Time be compared with the nearest loading time and current time;If the preset time is exactly equal to current Between or after the nearest loading time, before current time, it is determined that need to load the parameter, and immediately by the parameter It is packed into shared drive;
If the load mode of the parameter traversed is to be deleted from shared drive in the preset time to fail, by described one The preset time is compared with the nearest loading time and current time;If the preset time is exactly equal to work as The preceding time or after the nearest loading time, before current time, it is determined that need to load the parameter, and immediately should Parameter is deleted from shared drive;
If the load mode of the parameter traversed is to be packed into shared drive in the preset time to come into force, and preset another Time delete from shared drive to fail, by described one preset time, another preset time and it is described recently Loading time and current time are compared;If the preset time is exactly equal to current time or in the nearest dress After the load time, before current time, it is determined that need to load the parameter, and the parameter is packed into shared drive immediately;Such as Another preset time described in fruit be exactly equal to current time or after the nearest loading time, before current time, Then determination needs to load the parameter, and immediately deletes the parameter from shared drive;
If the load mode of the parameter traversed is to be packed into shared drive in real time in the time being scanned to come into force, it is determined that It needs to load the parameter, and the parameter is packed into shared drive immediately.
CN201510770053.6A 2015-11-12 2015-11-12 A kind of configurable dynamic state of parameters stowage and system Active CN105930178B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510770053.6A CN105930178B (en) 2015-11-12 2015-11-12 A kind of configurable dynamic state of parameters stowage and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510770053.6A CN105930178B (en) 2015-11-12 2015-11-12 A kind of configurable dynamic state of parameters stowage and system

Publications (2)

Publication Number Publication Date
CN105930178A CN105930178A (en) 2016-09-07
CN105930178B true CN105930178B (en) 2018-12-28

Family

ID=56840039

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510770053.6A Active CN105930178B (en) 2015-11-12 2015-11-12 A kind of configurable dynamic state of parameters stowage and system

Country Status (1)

Country Link
CN (1) CN105930178B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109150930B (en) * 2017-06-15 2020-12-18 北京金山云网络技术有限公司 Configuration information loading method and device and service processing method and device
TWI658368B (en) * 2017-06-21 2019-05-01 財團法人資訊工業策進會 Sensor estimation server and sensor estimation method
CN110941588A (en) * 2018-09-21 2020-03-31 北京国双科技有限公司 File configuration method and device
CN109829712B (en) * 2018-12-24 2020-11-10 口碑(上海)信息技术有限公司 Payment mode switching method and device, computer equipment and readable storage medium
CN112817661A (en) * 2021-02-23 2021-05-18 浙江大华技术股份有限公司 Equipment configuration method and device and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050193258A1 (en) * 2003-12-23 2005-09-01 Zhihong Sutton Method and system for testing a computer system by applying a load
CN102117292A (en) * 2009-12-30 2011-07-06 中国银联股份有限公司 File secondary generation and query method
CN103631610A (en) * 2012-08-23 2014-03-12 中国银联股份有限公司 Parameter loading method and system
CN104008178A (en) * 2014-06-09 2014-08-27 中国工商银行股份有限公司 Processing method and system for dynamic loading of data
CN104317660A (en) * 2014-11-18 2015-01-28 中国建设银行股份有限公司 Bank parameter managing system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050193258A1 (en) * 2003-12-23 2005-09-01 Zhihong Sutton Method and system for testing a computer system by applying a load
CN102117292A (en) * 2009-12-30 2011-07-06 中国银联股份有限公司 File secondary generation and query method
CN103631610A (en) * 2012-08-23 2014-03-12 中国银联股份有限公司 Parameter loading method and system
CN104008178A (en) * 2014-06-09 2014-08-27 中国工商银行股份有限公司 Processing method and system for dynamic loading of data
CN104317660A (en) * 2014-11-18 2015-01-28 中国建设银行股份有限公司 Bank parameter managing system

Also Published As

Publication number Publication date
CN105930178A (en) 2016-09-07

Similar Documents

Publication Publication Date Title
CN105930178B (en) A kind of configurable dynamic state of parameters stowage and system
CN110135985B (en) Parallel execution method and system for transactions on block chain
CN104699541B (en) Method, apparatus, data transfer components and the system of synchrodata
CN103078933B (en) A kind of method and apparatus determining data migration time
CN107911249B (en) Method, device and equipment for sending command line of network equipment
CN109428913B (en) Storage capacity expansion method and device
CN105574141B (en) Method and device for carrying out data migration on database
CN105049260B (en) Blog management method and device
CN108650501B (en) A kind of method, apparatus and electronic equipment for testing stability of set-top box
WO2022134725A1 (en) Large-scale k8s cluster monitoring method, apparatus, device, and readable medium
US11366788B2 (en) Parallel pipelined processing for snapshot data deletion
CN107341056A (en) A kind of method and device of the thread distribution based on NFS
CN107920131A (en) A kind of metadata management method and device of HDFS storage systems
CN108646987B (en) File volume management method and device, storage medium and terminal
CN110019527B (en) Slave library reading method, related device and equipment
CN111435329A (en) Automatic testing method and device
CN107341203A (en) The access control and optimiged index method and apparatus of a kind of distributed search engine
CN107704328A (en) Client accesses method, system, device and the storage medium of file system
US20190332484A1 (en) Method, device and program product for reducing data recovery time of storage system
CN109460193B (en) IO processing method, device and terminal in storage system
CN105488047B (en) Metadata reading/writing method and device
CN103095833A (en) Updating method of cloud service system and device
CN103714183B (en) Dynamic acquisition method and system for metadata lease time
CN105808556A (en) Operating method for database and database engine
CN110998524A (en) Method for processing configuration file, processing unit, touch chip, device and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant