Summary of the invention
The invention provides a kind of method and device of setting the trigger interval cycle, can be that a second level triggers with the time set of trigger.
The establishing method in a kind of trigger interval cycle comprises:
Input interface receives the information of user's input, and said information comprises the timing proxy title that several are different, and the corresponding agency of each said timing proxy title carries out frequency and the corresponding timing proxy of each said timing proxy title triggers sign;
Preserving the unit is kept at said information in the domino database;
Receiving element receives user's notification message, and said notification message is used to notify fetch interface to begin to read information; The every information that reads the whole said user's input in the said domino database at a distance from during cycle of said fetch interface; And comparing unit compares whether the time that said fetch interface reads information experience is the integral multiple that the corresponding said agency of current said timing proxy title carries out frequency; And if the corresponding timing proxy of current said timing proxy title triggers sign and be in the state that triggers of allowing, then trigger element triggers the corresponding timing proxy of said timing proxy title; If not, the said agency who then skips current comparison carries out frequency, compares next said agency and carries out frequency, and to the last an agency carries out frequency.
The setting device in a kind of trigger interval cycle comprises:
Input interface is used to receive the information that the user imports, and said information comprises the timing proxy title that several are different, and the corresponding agency of each said timing proxy title carries out frequency, and corresponding timing proxy triggering identifies with each said timing proxy title;
Preserve the unit, be used for said information is kept at the domino database;
Receiving element is used to receive user's notification message, and said notification message is used to notify fetch interface to begin to read information;
Fetch interface is used for every information that reads whole said user's input of said domino database at a distance from during cycle;
Comparing unit is used to compare whether the time that said fetch interface reads the information experience is the integral multiple that the corresponding said agency of current said timing proxy title carries out frequency;
Trigger element is used at said comparing unit comparison result for being, and the corresponding timing proxy of current said timing proxy title triggers the corresponding timing proxy of said timing proxy title when triggering sign and being in the state that allows to trigger;
Said comparing unit also is used at said comparison result for not the time, and the said agency who skips current comparison carries out frequency, compares next said agency and carries out frequency, and to the last an agency carries out frequency.
Can find out that from above technical scheme the embodiment of the invention has the following advantages:
The every timing proxy information that reads whole user's inputs at a distance from during cycle of the establishing method in trigger interval cycle of the present invention and device; Whether the time that the comparison fetch interface reads the information experience is the integral multiple that the agency carries out frequency in the timing proxy information; If then trigger this timing proxy; Then turn to next timing proxy if not, carry out the comparison step again, to the last a timing proxy information comparison is accomplished.Thereby the user can change the gap periods in timing proxy triggered time as required, has reduced maintenance cost.
Embodiment
To combine the accompanying drawing among the present invention below, the technical scheme among the present invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The invention provides a kind of method and device of setting the trigger interval cycle, can be that a second level triggers with the time set of trigger.
Embodiment one:
See also Fig. 1, the process flow diagram of the establishing method in a kind of trigger interval cycle that Fig. 1 provides for the embodiment of the invention one.As shown in Figure 1, this method can comprise step:
101, input interface receives the information of user's input.
Wherein, The information that the user imports comprises the timing proxy title that several are different, and the agency of each timing proxy title correspondence carries out frequency and the corresponding timing proxy triggering of each timing proxy title identifies, the timing proxy of each timing proxy title correspondence belongs to server address and the corresponding database path of each timing proxy title.Wherein, timing proxy triggers to identify and is used to represent whether the corresponding timing proxy of each timing proxy title allows to trigger.
Optional, timing proxy triggers sign and is divided into: allow to trigger and forbid triggering two kinds.Among the embodiment, the user can select when input information as required.The agency of user input carries out frequency can be integer second.Input interface receives above-mentioned all information.Subsequent step triggers detailed introducing system according to these information process.
102, preserving the unit is kept at the information that the user imports in the domino database.
As shown in Figure 5, among the embodiment, system can all ensembles of communication to one timing proxy trigger parameter configuration list with user input in.The user need in a list, fill in the timing proxy title and the corresponding agency of each timing proxy title carries out frequency, timing proxy triggers sign, server address and database path; Thereby generate timing proxy trigger parameter configuration list, each timing proxy trigger parameter configuration list is preserved becomes a timing proxy configuration documentation again.
Wherein, preserve the unit all timing proxy configuration documentations can be saved in the domino database, i.e. the information of user's input all is stored in the domino database.As shown in Figure 6, the user can also be provided with a view, is used to collect the timing proxy configuration documentation, thereby obtains the proxy configurations lists of documents.Can delete or revise the timing proxy configuration documentation through this view user.
103, receiving element receives user's notification message.
Wherein, this notification message is used to notify fetch interface to begin to read information.
As shown in Figure 7, optional, the user can design a list; In list, increase code; When the user clicks navigation " startup trigger ", agent triggers device list starts, and can notify fetch interface to begin from the domino database, to read the information of user's input simultaneously.
104, the every information that reads the whole user's inputs in the domino database at a distance from during cycle of fetch interface.
Wherein, fetch interface reads the information of whole user's inputs once from the domino database in order, and the time interval of reading can be set to preset period, and present embodiment did not limit the cycle in the time interval.Promptly from the domino database, read the information of all user's inputs first second, after the time, repeat this once more and read process through preset period.
Optional, the concrete grammar that reads can be:
Fetch interface is obtained the domino database object, through the domino database object, obtains the view object of proxy configurations tabulation, through view object, obtains all the configuration documentation collection objects in the view.Need further be pointed out that, when fetch interface reads first configuration documentation information in the set of timing proxy configuration documentation, execution in step 105.Read the information in the next timing proxy configuration documentation then, execution in step 105.When fetch interface whenever reads a information in the timing proxy configuration documentation, just carry out and once compare step.
105, comparing unit comparison fetch interface reads whether the time of information experience is the integral multiple that the corresponding agency of current timing proxy title carries out frequency; If, and the corresponding timing proxy of current timing proxy title triggers sign and is in the state that triggers of allowing, and then execution in step 106; If not, execution in step 107 then.
106, trigger element triggers the corresponding timing proxy of timing proxy title.
Wherein, fetch interface each second can be carried out the agency in the information of all users' inputs frequency and compared with the time that fetch interface reads information one by one, and then triggers corresponding timing proxy.Introduce with a concrete example below:
The information of the whole users input of from the domino database, reading in first second when fetch interface, to carry out frequency be 3 seconds timing proxy if comprise the agency in the information of user's input, can not trigger this timing proxy; The information that the whole users that from the domino database, read in second second when fetch interface import is 2 seconds because fetch interface reads the time of information experience, and 2 seconds is not that this agency carries out 3 seconds integral multiple of frequency, can not trigger this timing proxy equally; Read the information of user's input for the third time up to fetch interface; Be that fetch interface reads time that information experiences when being 3 seconds; Comparing out fetch interface, to read the time that information experiences be that timing proxy triggers the frequency integral multiple of second, then can trigger this timing proxy.
107, the agency who skips current comparison carries out frequency, turns to next agency to carry out frequency, and returns execution in step 105, and to the last an agency carries out frequency.
Optional; The agency that comparing unit can be skipped current comparison carries out frequency; Turn to the agency in the next timing proxy configuration documentation to carry out frequency; And the agency who returns in the next timing proxy configuration documentation of step 105 comparison carries out frequency, and the agency in having compared last timing proxy configuration documentation carries out frequency.
In the present embodiment; The every timing proxy information that reads whole user's inputs at a distance from during cycle of fetch interface; Whether the time that comparing unit comparison fetch interface reads the information experience is the integral multiple that the agency carries out frequency in the timing proxy information, if then trigger this timing proxy, then turns to next timing proxy if not; Again carry out the comparison step, to the last a timing proxy information comparison is accomplished.Thereby the user can change the gap periods in timing proxy triggered time as required, has reduced maintenance cost.
Embodiment two:
See also Fig. 2, the process flow diagram of the establishing method in a kind of trigger interval cycle that Fig. 2 provides for the embodiment of the invention two.As shown in Figure 2, this method can comprise step:
201, input interface receives the information of user's input.
Wherein, The information that the user imports comprises the timing proxy title that several are different, and the agency of each timing proxy title correspondence carries out frequency and the corresponding timing proxy triggering of each timing proxy title identifies, the timing proxy of each timing proxy title correspondence belongs to server address and the corresponding database path of each timing proxy title.Need be pointed out that further that it can be integer second that the agency carries out frequency.
202, preserving the unit is kept at the information that the user imports in the domino database.
203, receiving element receives user's notification message.
Wherein, notification message notice reading unit begins to read the information of user's input.
204, fetch interface whenever reads the information of the whole user's inputs in the domino database at a distance from a second.
Wherein, fetch interface reads the information of whole user's inputs once from the domino database in order, and the time interval of reading can be set to for 1 second.Promptly from the domino database, read the information of all user's inputs first second, in a next second, repeat this once more and read process.
205, comparing unit comparison fetch interface reads whether the time of information experience is the integral multiple that the corresponding agency of current timing proxy title carries out frequency; If, and the corresponding timing proxy of current timing proxy title triggers the state that sign is in the permission triggering, then execution in step 206 and 207; If not, execution in step 208 then.
206, acquisition module obtains server address, database path and the timing proxy title at the corresponding timing proxy place of timing proxy title.
207, sending module sends to the corresponding database of the timing proxy title that gets access to and triggers proxy instructs, carries out said instruction by domino server task manager.
208, the agency who skips current comparison carries out frequency, turns to next agency to carry out frequency, and returns execution in step 205, and to the last an agency carries out frequency.
In the present embodiment; The every timing proxy information that reads whole user's inputs at a distance from during cycle of fetch interface; Whether the time that comparing unit comparison fetch interface reads the information experience is the integral multiple that the agency carries out frequency in the timing proxy information, if then trigger this timing proxy, then turns to next timing proxy if not; Again carry out the comparison step, to the last a timing proxy information comparison is accomplished.Thereby the user can change the gap periods in timing proxy triggered time as required, has reduced maintenance cost.
Embodiment three:
See also Fig. 3, the structural drawing of the setting device in a kind of trigger interval cycle that Fig. 3 provides for the embodiment of the invention three.As shown in Figure 3, this device can comprise step:
Input interface 301 is used to receive the information that the user imports, and this information comprises the timing proxy title that several are different, and the corresponding agency of each timing proxy title carries out frequency, and corresponding timing proxy triggering identifies with each timing proxy title;
Preserve unit 302, be used for information is kept at the domino database;
Receiving element 303 is used to receive user's notification message, and notification message is used to notify fetch interface to begin to read information;
Fetch interface 304 is used for every information that reads whole user's inputs of domino database at a distance from during cycle;
Comparing unit 305 is used to compare whether the time that fetch interface reads the information experience is the integral multiple that the corresponding agency of current timing proxy title carries out frequency;
Trigger element 306 is used at the comparing unit comparison result for being, and the corresponding timing proxy of current timing proxy title triggers the corresponding timing proxy of timing proxy title when triggering sign and being in the state that allows to trigger;
Comparing unit 305 also is used at comparison result for not the time, and the agency who skips current comparison carries out frequency, and the next agency of comparison carries out frequency, and to the last an agency carries out frequency.
Please consult Fig. 4, the structural drawing of the setting device in the another kind of trigger interval cycle that Fig. 4 provides for the embodiment of the invention three in the lump.Wherein, the setting device in trigger interval cycle shown in Figure 4 is that setting device by the trigger interval cycle shown in Figure 3 is optimized and obtains.In the setting device in trigger interval cycle shown in Figure 4, trigger element 306 can comprise:
Acquisition module 3061 is used to obtain server address, database path and the timing proxy title at the corresponding timing proxy place of timing proxy title;
Sending module 3062 is used for sending the triggering proxy instructs to the corresponding database of the timing proxy title that gets access to, and carries out this proxy instructs by domino server task manager.
Fetch interface 304 specifically is used for whenever reading at a distance from a second full detail of domino database.
In the present embodiment; The every timing proxy information that reads whole user's inputs at a distance from during cycle of fetch interface; Whether the time that comparing unit comparison fetch interface reads the information experience is the integral multiple that the agency carries out frequency in the timing proxy information, if then trigger this timing proxy, then turns to next timing proxy if not; Again carry out the comparison step, to the last a timing proxy information comparison is accomplished.Thereby the user can change the gap periods in timing proxy triggered time as required, has reduced maintenance cost.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of the foregoing description is to instruct relevant hardware to accomplish through program; This program can be stored in the computer-readable recording medium; Storage medium can comprise: flash disk, ROM (read-only memory) (Read-Only Memory; ROM), random access device (Random Access Memory, RAM), disk or CD etc.
More than the establishing method and the device in a kind of trigger interval cycle provided by the present invention carried out detailed introduction; For one of ordinary skill in the art; Thought according to the embodiment of the invention; The part that on embodiment and range of application, all can change, in sum, this description should not be construed as limitation of the present invention.