CN100382003C - Resource management system, resource management program, resource management method - Google Patents

Resource management system, resource management program, resource management method Download PDF

Info

Publication number
CN100382003C
CN100382003C CNB2005100228998A CN200510022899A CN100382003C CN 100382003 C CN100382003 C CN 100382003C CN B2005100228998 A CNB2005100228998 A CN B2005100228998A CN 200510022899 A CN200510022899 A CN 200510022899A CN 100382003 C CN100382003 C CN 100382003C
Authority
CN
China
Prior art keywords
resource
conversion
functional module
higher limit
stock number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2005100228998A
Other languages
Chinese (zh)
Other versions
CN1815433A (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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Publication of CN1815433A publication Critical patent/CN1815433A/en
Application granted granted Critical
Publication of CN100382003C publication Critical patent/CN100382003C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

A resource management system, which manages resources to be utilized by a functional module, includes a resource measuring unit that measures a resource amount to be utilized by the functional module in a first execution environment, a resource converting unit that converts the resource amount measured by the resource measuring unit into a resource amount to be utilized by the functional module in a second execution environment, a resource limitation information acquiring unit that acquires resource limitation information indicating a resource limitation condition, and a resource limitation notifying unit that performs a notification of resource limitation on the basis of the resource amount converted by the resource converting unit and the resource limitation information acquired by the resource limitation information acquiring unit.

Description

Resource management system and method for managing resource
Technical field
The present invention relates to a kind of system and program and method of management resource, thereby relate in particular to a kind of being suitable for by verify earlier before being imported into execution environment at software that the stock number that this software uses makes the software development transfiguration develop resource management system and the resource manager and the method for managing resource of the high software of stability easily, simultaneously under this execution environment.
Background technology
In mounting equipments such as printer, assembling is called the software of assembling with application program, controls its action.But,, generally need special-purpose development environment and special-purpose hardware, so no one can make simply in order to make the assembling application program.In order to address this problem, the signal conditioning package of patent documentation 1 record has been proposed.
The invention of patent documentation 1 record has can be at the emulator (emulator) of carrying out the application program of carrying out on the PC on image processing system.Thus, even if do not use mounting equipment can develop the assembling application program yet.
In addition, the assembling of being made by the people who is unfamiliar with programming technique causes unexpected action with application program, the problem that the action of generation mounting equipment self can not be proceeded.In order to address this problem, the resource management system of patent documentation 2 records has been proposed.
The invention of patent documentation 2 record has: limit setting portion, but its resource settings actuating range that is utilized when software is carried out by information equipment; With the actuating range proof department, but its checking can be moved in the actuating range that limit setting portion sets.The actuating range proof department is when having the utilization of resources from software to require, but the actuating range of relatively setting and the stock number of requirement, but when exceeding actuating range, make the execution termination of this software.
Patent documentation 1: the spy opens the 2004-185595 communique
Patent documentation 2: the spy opens the 2004-94782 communique
In the invention of patent documentation 1 record, use application program because assembling can be carried out virtually on PC, so the degree that can be used as on the PC is verified the action of assembling with application program.
But, carrying out assembling on the PC with the situation of application program with in fact carrying out this assembling on the mounting equipment with under the situation of application program, this assembling uses application program employed resource (for example amount of memory) under each execution environment not quite identical.This comes from carries out the environment difference of assembling with application program.For example, use application program in order to carry out assembling, service routine storehouse (library), but this routine library is because the difference of hardware formation, program structure PC use with mounting equipment with in have nothing in common with each other.Therefore, even if using under the situation of same functions, on the PC with mounting equipment on, also linking functions is identical but program constitutes different routine libraries, formation object.These objects are owing to the program structure difference, and the stock number of using is also not quite identical certainly.Therefore, even if the assembling application program of on PC, suitably moving, when in fact being assembled in the mounting equipment, also can be owing to the stock number of using is excessive, a plurality of assemblings with application program under situation about starting on the mounting equipment, might disturb with application program with other assembling, action is unstable.Especially mounting equipment such as printer is different with PC, and spendable stock number is considerably less, thus manage in detail stock number that each assembling uses with application program realize on the operating stably extremely important.
On the other hand, in the invention of patent documentation 2 records, thoroughly prevent carry out on the mounting equipment assembling with under the situation of application program, action is unstable, stock number that can not the checking assembling is used with application program before assembling imports mounting equipment with application program.
This problem is not limited to carry out the situation of assembling with application program on mounting equipment, with regard to regard to the situation of developing the software of carrying out under other execution environment under particular execution environment, also can make same hypothesis.
Summary of the invention
Therefore, the present invention is conceived to the unsolved problem that this prior art has and makes, thus its purpose be to provide a kind of be suitable for by before being imported into execution environment at software earlier the stock number under this execution environment, used of this software of checking make the software development transfiguration easily, resource management system and the resource manager and the method for managing resource of software that exploitation stability simultaneously is high.
[mode 1] to achieve these goals, the resource management system of mode 1, the resource that the management function module is used is characterized in that possessing: the resource components of assays, it measures the stock number that described functional module is used under the 1st execution environment; The resource higher limit obtains parts, and it obtains the resource higher limit under the 2nd execution environment; Resource conversion parts, it is obtained resource higher limit that parts obtain with described resource higher limit and is scaled resource higher limit under described the 1st execution environment; With resource limit notice parts, the resource higher limit that stock number that it determines according to described resource components of assays and described resource conversion parts converse is carried out the notice about resource limit.
According to this formation, by the resource components of assays, the stock number that the measurement function module is used under the 1st execution environment.In addition, obtain parts, obtain the resource higher limit under the 2nd execution environment,, the resource higher limit that obtains is scaled resource higher limit under the 1st execution environment by resource conversion parts by the resource higher limit.By resource limit notice parts,, carry out notice about resource limit according to stock number that determines and the resource higher limit that converses.
Thus, can be before importing the 2nd execution environment, whether the stock number that the authentication function module is used under the 2nd execution environment reaches the higher limit of resource.Therefore, and compared in the past, obtaining can be in executive software exploitation easily, can develop the effect of the high software of stability.
At this, so-called resource is meant the spendable resource of functional module, is not limited to hardware resource, also comprises other resources such as software resource.Below, in the method for managing resource of mode 2 and 4 resource management system, mode 13,14 and 16 resource manager and mode 25~28,30 and 31 too.
In addition, as stock number, for example comprise the amount of memory of functional module use or the quantity of bootable functional module.In addition, for example comprise the stock number (amount of memory, functional module quantity) that the application program of utilizing functional module is guaranteed.Below, in the method for managing resource of mode 2 and 4 resource management system, mode 13,14 and 16 resource manager and mode 25~28,30 and 31 too.
In addition, as the conversion method of resource, for example consider following method.The 1st method (constant ratio conversion method) increases or reduces the stock number of constant ratio to the stock number of measuring, and obtains the stock number after the conversion.The 2nd method (constant basis conversion method) regardless of the stock number of measuring, after all this stock number being increased or reducing constant basis, is obtained the stock number after the conversion.The 3rd method (constant conversion method) regardless of the stock number of measuring, all is replaced as constant with this stock number, obtains the stock number after the conversion.The 4th method (mixed type conversion method) selects from the 1st~the 3rd method according to the kind of resource or the stock number that determines, and obtains stock number after the conversion by the method for selecting.The selection of conversion method for example can following setting threshold A, B be carried out.When stock number<A, the selectivity constant conversion method when A<stock number<B, is selected the constant basis conversion method, when B<stock number, selects the constant ratio conversion method.Wherein, A<B.Below, in the method for managing resource of mode 2 and 4 resource management system, mode 13,14 and 16 resource manager and mode 25~28,30 and 31 too.
In addition, as the mode of measuring resource, for example comprise and catch application program and guarantee the action of resource, obtain the action of the stock number that will guarantee again.Below, in the method for managing resource of mode 2 and 4 resource management system, mode 13,14 and 16 resource manager and mode 25~28,30 and 31 too.
In addition, as notice, for example comprise the notice of notice that stock number that the presentation function module uses reaches restrictive condition or higher limit, stock number that expression limitation function module is used or note or recommend to answer the notice of the stock number that the limitation function module is used about resource limit.In addition, for example also comprise and show that stock number that the expression functional module is used reaches the message of the upper limit, generates the log information that stock number that the presentation function module uses reaches the upper limit.Below, in the method for managing resource of mode 2 and 4 resource management system, mode 13,14 and 16 resource manager and mode 25~28,30 and 31 too.
In addition, as the restrictive condition of resource, for example can be set in the resource higher limit under the 2nd execution environment.Below, in the method for managing resource of mode 2 and 4 resource management system, mode 13,14 and 16 resource manager and mode 25~28,30 and 31 too.
In addition, the resource higher limit obtains parts, as long as obtain the higher limit of resource, it then can be any formation, for example, can be from the higher limit of input such as input media resource, can obtain or receive the higher limit of resource from the device of outside etc., the higher limit of resource can be read from memory storage or storage medium (medium) etc., the higher limit of resource can be from data such as functional module, extracted.Therefore, comprise input at least, obtain, receive, read and extract in obtaining.Below, in mode 2 and 4 the resource management system too.
In addition, this system also can be used as miscellaneous equipments such as single device, terminal and realizes, or realizes as the network system that can connect equipment such as multiple arrangement, terminal communicatedly.In the latter case, as long as each inscape can connect respectively communicatedly, then can belong to the arbitrary equipment in a plurality of equipment etc.Below, in mode 2 and 4 the resource management system too.
[mode 2] and then, the resource management system of mode 2 is managed the 1st functional module and need the employed resource of a plurality of the 2nd functional modules of described the 1st functional module in it is carried out, and it is characterized in that possessing:
The resource components of assays, it measures the stock number that described the 2nd functional module is used under the 1st execution environment; The resource higher limit obtains parts, and it obtains the resource higher limit under the 2nd execution environment; Resource conversion parts, it is obtained resource higher limit that parts obtain with described resource higher limit and is scaled resource higher limit under described the 1st execution environment; With resource limit notice parts, the resource higher limit that stock number that it determines according to described resource components of assays and described resource conversion parts converse is carried out the notice about resource limit.
According to this formation,, measure the stock number that the 2nd functional module is used under the 1st execution environment by the resource components of assays.In addition, obtain parts, obtain the resource higher limit under the 2nd execution environment,, the resource higher limit that obtains is scaled resource higher limit under described the 1st execution environment by resource conversion parts by the resource higher limit.And,,, carry out notice about resource limit according to stock number that determines and the resource higher limit that converses by resource limit notice parts.
Thus, can be before importing the 2nd execution environment, verify whether stock number that the 2nd functional module is used reaches the higher limit of resource under the 2nd execution environment.Therefore, and compared in the past, obtaining can be in executive software exploitation easily, can develop the effect of the high software of stability.
[mode 3] and then, the resource management system of mode 3 is characterized in that with regard to the resource management system of mode 2:
Make described resource components of assays, measure described the 2nd functional module the stock number of using under described the 1st execution environment and make described the 1st functional module under described the 1st execution environment when the 2nd functional module is carried out employed stock number.
According to this formation, by the resource components of assays, measure the 2nd functional module the stock number of using under the 1st execution environment and the 1st functional module under the 1st execution environment when the 2nd functional module is carried out employed stock number.
Thus, obtain can the 2nd functional module unit verifying whether stock number that the 1st functional module is used reaches the effects such as higher limit of resource under the 2nd execution environment.
[mode 4] and then, the resource management system of mode 4 is managed the 1st functional module and need the employed resource of a plurality of the 2nd functional modules of described the 1st functional module in it is carried out, and it is characterized in that possessing:
The resource components of assays, its measure described the 1st functional module under described the 1st execution environment when described the 2nd functional module is carried out employed stock number; The resource higher limit obtains parts, and it obtains the resource higher limit under the 2nd execution environment; Resource conversion parts, it is obtained resource higher limit that parts obtain with described resource higher limit and is scaled resource higher limit under described the 1st execution environment; With resource limit notice parts, the resource higher limit that stock number that it determines according to described resource components of assays and described resource conversion parts converse is carried out the notice about resource limit.
According to this formation, by the resource components of assays, measure the 1st functional module under the 1st execution environment when the 2nd functional module is carried out employed stock number.In addition, obtain parts, obtain the resource higher limit under the 2nd execution environment,, the resource higher limit that obtains is scaled resource higher limit under the 1st execution environment by resource conversion parts by the resource higher limit.And, by resource limit notice parts,, carry out notice about resource limit according to stock number that determines and the resource higher limit that converses.
Thus, can be before importing the 2nd execution environment, verify the 1st functional module under the 2nd execution environment in the execution of the 2nd functional module employed stock number whether reach the higher limit of resource.Therefore, and compared in the past, obtaining can be in executive software exploitation easily, can develop the effect of the high software of stability.
[mode 5] and then, the resource management system of mode 5 is characterized in that with regard to each resource management system of mode 2~4:
Possess the resource limit parts, the resource higher limit that stock number that it is measured to according to described resource components of assays and described resource conversion parts converse forbids guaranteeing based on the resource of described functional module.
According to this formation,,, forbid guaranteeing based on the resource of functional module according to stock number that is measured to and the resource higher limit that converses by the resource limit parts.
Thus, but obtain the limitation function module and surpass the effect that the upper limit is used stock number.
[mode 6] and then, the resource management system of mode 6 is characterized in that with regard to each resource management system of mode 1~5:
Described resource conversion parts, according to the resource conversion table lattice, convert: these resource conversion table lattice logined based under described the 1st execution environment in accordance with regulations the stock number used of condition and under described the 2nd execution environment the determined coefficient of conversion of stock number that uses of condition in accordance with regulations.
According to this formation,, convert according to the resource conversion table lattice by resource conversion parts.
Thus, obtain between the 1st execution environment and the 2nd execution environment, more correctly the to convert effect of stock number or higher limit.
At this,, for example be included under the equivalent environment (be not meant resource, but carry out simultaneously etc.) as rated condition and no matter carry out all executable test procedure under the 1st execution environment, the 2nd execution environment with other program.Below, in the method for managing resource of the resource manager of mode 18 and mode 33 too.
In addition, the so-called coefficient of conversion of determining according to stock number for example is meant the ratio that comparison is calculated behind the resource consumption between resulting two execution environments of result of carrying out test procedure.That is, comprise in determining and calculate.Below, in the method for managing resource of the resource manager of mode 18 and mode 33 too.
[mode 7] and then, the resource management system of mode 7 with regard to the resource management system of mode 6, is characterized in that:
Described resource conversion table lattice have been logined described coefficient of conversion by each resource kind,
Described resource conversion parts corresponding to the resource kind that described functional module is used, are obtained corresponding described coefficient of conversion, and are converted according to the coefficient of conversion of obtaining from described resource conversion table lattice.
According to this formation, by resource conversion parts,, from the resource conversion table lattice, obtain corresponding coefficient of conversion corresponding to the resource kind that functional module is used, convert according to the coefficient of conversion of obtaining.
Thus, because can carry out the conversion of the kind of the resource of using corresponding to functional module, so the effect of obtain between the 1st execution environment and the 2nd execution environment, further correctly to convert stock number or higher limit.
At this, kind as resource, for example can storer, under the situation of occupying the resource that ratio defines of hardware such as file system, the kind of this hardware comprises the kind of this notion respectively under the notion situation of the software that depends on saddle (sled) or plug-in unit OS (operating System) such as (socket).Below, in the method for managing resource of the resource manager of mode 19 and mode 34 too.
In addition, the resource conversion table lattice then can be any formations as long as login coefficient of conversion by each resource kind, but particularly, also can select conversion method, by the conversion method of choosing according to the kind of resource, kind by each resource is calculated coefficient of conversion, and logins the coefficient of conversion of calculating.As conversion method, for example as mentioned above, consider constant ratio conversion method, constant basis conversion method, constant conversion method, mixed type conversion method.Below, in the method for managing resource of the resource manager of mode 19 and mode 34 too.
[mode 8] and then, the resource management system of mode 8 is characterized in that with regard to each resource management system of mode 6 and 7:
Described resource conversion table lattice use form to login described coefficient of conversion by each resource,
Described resource conversion parts corresponding to the resource form that described functional module is used, are obtained corresponding described coefficient of conversion, and are converted according to the coefficient of conversion of obtaining from described resource conversion table lattice.
According to this formation,, corresponding to the resource form that functional module is used, from the resource conversion table lattice, obtain corresponding coefficient of conversion, and convert according to the coefficient of conversion of obtaining by resource conversion parts.
Thus, because can carry out the conversion of the form of the resource of using corresponding to functional module, so the effect of obtain between the 1st execution environment and the 2nd execution environment, further correctly to convert stock number or higher limit.
At this, the use form of so-called resource is meant the different resource of application target in the resource of identical type.Particularly, with regard to the example of storer, in storer of being guaranteed by JAVA (registered trademark) compiler or the storer mode guaranteed by the Zip routine library, have the different situation of use-pattern, coefficient of conversion has nothing in common with each other, so need to handle respectively.Below, in the method for managing resource of the resource manager of mode 20 and mode 35 too.
[mode 9] and then, the resource management system of mode 9 is characterized in that with regard to each resource management system of mode 6~8:
Described resource conversion table lattice, for each of a plurality of test modules, according to the stock number that this test module uses under described the 1st execution environment and described the 2nd execution environment, determine described coefficient of conversion, and logined the maximal value in the described coefficient of conversion that described each test module is determined.
Thus, because in the resource conversion table lattice, logining maximal value in the coefficient of conversion that each test module is determined, so the stock number used of assessment function module how.Therefore, obtain the effect of the action of assurance function module more positively.
At this, so-called test module is meant action in the 1st execution environment and the 2nd execution environment both sides, carries out the module of consumption of natural resource because of it.Below, in the method for managing resource of the resource management system of mode 10, mode 21 and 22 resource manager and mode 36 and 37 too.
[mode 10] and then, the resource management system of mode 10 is characterized in that with regard to each resource management system of mode 6~8:
Described resource conversion table lattice, for each of a plurality of test modules, according to the stock number that this test module uses under described the 1st execution environment and described the 2nd execution environment, determine described coefficient of conversion, and logined the mean value of the described coefficient of conversion that described each test module is determined.
Thus, because in the resource conversion table lattice, logining the mean value in the coefficient of conversion that each test module is determined, so obtain when can having to a certain degree certainty and coming the action of assurance function module, can be suppressed at the effect of the stock number of using under the 2nd execution environment.
[mode 11] and then, the resource management system of mode 11 is characterized in that with regard to each resource management system of mode 1~10:
Described resource limit notice parts show that the stock number of the described functional module use of expression reaches the message of the upper limit.
According to this formation,, show that the stock number of expression functional module use reaches the message of the upper limit by resource limit notice parts.
Thus, obtain and to hold the effect that stock number that functional module uses reaches the upper limit by reference message.
At this, resource limit notice parts are showing message, but as alternate manner, also consider to utilize Flush, the demonstration of icon, mail, phone, the FAX of sound, picture to wait and notify.Below, in the method for managing resource of the resource manager of mode 23 and mode 38 too.
[mode 12] and then, the resource management system of mode 12 is characterized in that with regard to each resource management system of mode 1~10:
Described resource limit notice parts make it to generate the log information that the stock number of representing described functional module use reaches the upper limit.
According to this formation,, make it to generate the log information that stock number that the presentation function module uses reaches the upper limit by resource limit notice parts.
Thus, to obtain and to hold the effect that stock number that functional module uses reaches the upper limit by the reference log information.
[mode 13] on the other hand, to achieve these goals, the resource that the resource manager management function module of mode 13 is used is characterized in that: comprise and be used to allow computing machine carry out the program of the processing that constitutes by following steps,
The resource determination step, it measures the stock number that described functional module is used under the 1st execution environment; The resource higher limit obtains step, and it obtains the resource higher limit under the 2nd execution environment; Resource conversion step, it is obtained resource higher limit that step obtains with described resource higher limit and is scaled resource higher limit under described the 1st execution environment; With the resource limit notifying process, the resource higher limit that stock number that it determines according to described resource determination step and described resource conversion step converse is carried out the notice about resource limit.
According to this formation, if by the computing machine fetch program, computing machine is carried out processing according to the program that reads, and then obtains effect and the effect identical with the resource management system of mode 1.
At this, as long as the resource higher limit obtains the higher limit that step obtains resource, it then can be any-mode, for example, can be from the higher limit of input resources such as input media, can obtain or receive the higher limit of resource from the device of outside etc., can read the higher limit of resource, can from data such as functional module, extract the higher limit of resource from memory storage or storage medium etc.Therefore, comprise input at least, obtain, receive, read and extract in obtaining.Below, in the method for managing resource of mode 14 and 16 resource manager and mode 25~28,30 and 31 too.
[mode 14] and then, the resource manager of mode 14, manage the 1st functional module and in it is carried out, need the employed resource of a plurality of the 2nd functional modules of described the 1st functional module, it is characterized in that: comprise and be used to allow computing machine carry out the program of the processing that constitutes by following steps
The resource determination step, it measures the stock number that described the 2nd functional module is used under the 1st execution environment; The resource higher limit obtains step, and it obtains the resource higher limit under the 2nd execution environment; Resource conversion step, it is obtained resource higher limit that step obtains with described resource higher limit and is scaled resource higher limit under described the 1st execution environment; With the resource limit notifying process, the resource higher limit that stock number that it determines according to described resource determination step and described resource conversion step converse is carried out the notice about resource limit.
According to this formation, if by the computing machine fetch program, computing machine is carried out processing according to the program that reads, and then obtains effect and the effect identical with the resource management system of mode 2.
[mode 15] and then, the resource manager of mode 15 is characterized in that with regard to the resource manager of mode 14:
Described resource determination step, measure described the 2nd functional module the stock number of using under described the 1st execution environment and described the 1st functional module under described the 1st execution environment when the 2nd functional module is carried out employed stock number.
According to this formation, if by the computing machine fetch program, computing machine is carried out processing according to the program that reads, and then obtains effect and the effect identical with the resource management system of mode 3.
[mode 16] and then, the resource manager of mode 16 is managed the 1st functional module and need the employed resource of a plurality of the 2nd functional modules of described the 1st functional module in it is carried out, it is characterized in that: comprise and be used to allow computing machine carry out the program of the processing that constitutes by following steps
The resource determination step, its measure described the 1st functional module under described the 1st execution environment when described the 2nd functional module is carried out employed stock number; The resource higher limit obtains step, and it obtains the resource higher limit under the 2nd execution environment; Resource conversion step, it is obtained resource higher limit that step obtains with described resource higher limit and is scaled resource higher limit under described the 1st execution environment; With the resource limit notifying process, the resource higher limit that stock number that it determines according to described resource determination step and described resource conversion step converse is carried out the notice about resource limit.
According to this formation, if by the computing machine fetch program, computing machine is carried out processing according to the program that reads, and then obtains effect and the effect identical with the resource management system of mode 4.
[mode 17] and then, the resource manager of mode 17 with regard to each resource manager of mode 14~16, is characterized in that:
Comprise the program that allows computing machine carry out the processing that constitutes by the resource limit step, this resource limit step, the resource higher limit that stock number that is measured to according to described resource determination step and described resource conversion step converse forbids guaranteeing based on the resource of described functional module.
According to this formation, if by the computing machine fetch program, computing machine is carried out processing according to the program that reads, and then obtains effect and the effect identical with the resource management system of mode 5.
[mode 18] and then, the resource manager of mode 18 with regard to each resource manager of mode 13~17, is characterized in that:
Described resource conversion step is according to the resource conversion table lattice, convert, these resource conversion table lattice logined based under described the 1st execution environment in accordance with regulations the stock number used of condition and under described the 2nd execution environment the determined coefficient of conversion of stock number that uses of condition in accordance with regulations.
According to this formation, if by the computing machine fetch program, computing machine is carried out processing according to the program that reads, and then obtains effect and the effect identical with the resource management system of mode 6.
[mode 19] and then, the resource manager of mode 19 with regard to the resource manager of mode 18, is characterized in that:
Described resource conversion table lattice have been logined described coefficient of conversion by each resource kind,
Described resource conversion step corresponding to the resource kind that described functional module is used, obtains corresponding described coefficient of conversion, and converts according to the coefficient of conversion of obtaining from described resource conversion table lattice.
According to this formation, if by the computing machine fetch program, computing machine is carried out processing according to the program that reads, and then obtains effect and the effect identical with the resource management system of mode 7.
[mode 20] and then, the resource manager of mode 20 with regard to each resource manager of mode 18 and 19, is characterized in that:
Described resource conversion table lattice use form to login described coefficient of conversion by each resource,
Described resource conversion step corresponding to the resource form that described functional module is used, obtains corresponding described coefficient of conversion, and converts according to the coefficient of conversion of obtaining from described resource conversion table lattice.
According to this formation, if by the computing machine fetch program, computing machine is carried out processing according to the program that reads, and then obtains effect and the effect identical with the resource management system of mode 8.
[mode 21] and then, the resource manager of mode 21 with regard to each resource manager of mode 18~20, is characterized in that:
Described resource conversion table lattice, for each of a plurality of test modules, according to the stock number that this test module uses under described the 1st execution environment and described the 2nd execution environment, determine described coefficient of conversion, and logined the maximal value in the described coefficient of conversion that described each test module is determined.
According to this formation, if by the computing machine fetch program, computing machine is carried out processing according to the program that reads, and then obtains effect and the effect identical with the resource management system of mode 9.
[mode 22] and then, the resource manager of mode 22 with regard to each resource manager of mode 18~20, is characterized in that:
Described resource conversion table lattice, for each of a plurality of test modules, according to the stock number that this test module uses under described the 1st execution environment and described the 2nd execution environment, determine described coefficient of conversion, and logined the mean value of the described coefficient of conversion that described each test module is determined.
According to this formation, if by the computing machine fetch program, computing machine is carried out processing according to the program that reads, and then obtains effect and the effect identical with the resource management system of mode 10.
[mode 23] and then, the resource manager of mode 23 with regard to each resource manager of mode 13~22, is characterized in that:
Described resource limit notifying process shows that the stock number of the described functional module use of expression reaches the message of the upper limit.
According to this formation, if by the computing machine fetch program, computing machine is carried out processing according to the program that reads, and then obtains effect and the effect identical with the resource management system of mode 11.
[mode 24] and then, the resource manager of mode 24 is characterized in that with regard to each resource manager of mode 13~22:
Described resource limit notifying process, the stock number that generates the described functional module use of expression reaches the log information of the upper limit.
According to this formation, if by the computing machine fetch program, computing machine is carried out processing according to the program that reads, and then obtains effect and the effect identical with the resource management system of mode 12.
[mode 25] on the other hand, to achieve these goals, the method for managing resource of mode 25, the resource that the management function module is used is characterized in that, comprises following steps:
The resource determination step, it measures the stock number that described functional module is used under the 1st execution environment; The resource higher limit obtains step, and it obtains the resource higher limit under the 2nd execution environment; Resource conversion step, it is obtained resource higher limit that step obtains with described resource higher limit and is scaled resource higher limit under described the 1st execution environment; With the resource limit notifying process, the resource higher limit that stock number that it determines according to described resource determination step and described resource conversion step converse is carried out the notice about resource limit.
Thus, obtain the effect identical with the resource management system of mode 1.
[mode 26] and then, the method for managing resource of mode 26, the resource that the management function module is used is characterized in that, comprises following steps:
The resource determination step, it makes arithmetic unit measure the stock number that described functional module is used under the 1st execution environment;
The resource higher limit obtains step, and it makes described arithmetic unit obtain resource higher limit under the 2nd execution environment;
Resource conversion step, it makes described arithmetic unit that described resource higher limit is obtained resource higher limit that step obtains and is scaled resource higher limit under described the 1st execution environment; With
The resource limit notifying process, the resource higher limit that it converses stock number that described arithmetic unit determines according to described resource determination step and described resource conversion step is carried out the notice about resource limit.
Thus, obtain the effect identical with the resource management system of mode 1.
[mode 27] and then, the method for managing resource of mode 27 is managed the 1st functional module and need the employed resource of a plurality of the 2nd functional modules of described the 1st functional module in it is carried out, and it is characterized in that, comprises following steps:
The resource determination step, it measures the stock number that described the 2nd functional module is used under the 1st execution environment; The resource higher limit obtains step, and it obtains the resource higher limit under the 2nd execution environment; Resource conversion step, it is obtained resource higher limit that step obtains with described resource higher limit and is scaled resource higher limit under described the 1st execution environment; With the resource limit notifying process, the resource higher limit that stock number that it determines according to described resource determination step and described resource conversion step converse is carried out the notice about resource limit.
Thus, obtain the effect identical with the resource management system of mode 2.
[mode 28] and then, the method for managing resource of mode 28 is managed the 1st functional module and need the employed resource of a plurality of the 2nd functional modules of described the 1st functional module in it is carried out, and it is characterized in that, comprises following steps:
The resource determination step, it makes arithmetic unit measure the stock number that described the 2nd functional module is used under the 1st execution environment;
The resource higher limit obtains step, and it makes described arithmetic unit obtain resource higher limit under the 2nd execution environment;
Resource conversion step, it makes described arithmetic unit that described resource higher limit is obtained resource higher limit that step obtains and is scaled resource higher limit under described the 1st execution environment; With
The resource limit notifying process, the resource higher limit that it converses stock number that described arithmetic unit determines according to described resource determination step and described resource conversion step is carried out the notice about resource limit.
Thus, obtain the effect identical with the resource management system of mode 2.
[mode 29] and then, the method for managing resource of mode 29 with regard to each method for managing resource of mode 27 and 28, is characterized in that:
Described resource determination step, measure described the 2nd functional module the stock number of using under described the 1st execution environment and described the 1st functional module under described the 1st execution environment when the 2nd functional module is carried out employed stock number.
Thus, obtain the effect identical with the resource management system of mode 3.
[mode 30] and then, the method for managing resource of mode 30 is managed the 1st functional module and need the employed resource of a plurality of the 2nd functional modules of described the 1st functional module in it is carried out, and it is characterized in that, comprises following steps:
The resource determination step, its measure described the 1st functional module under described the 1st execution environment when described the 2nd functional module is carried out employed stock number; The resource higher limit obtains step, and it obtains the resource higher limit under the 2nd execution environment; Resource conversion step, it is obtained resource higher limit that step obtains with described resource higher limit and is scaled resource higher limit under described the 1st execution environment; With the resource limit notifying process, the resource higher limit that stock number that it determines according to described resource determination step and described resource conversion step converse is carried out the notice about resource limit.
Thus, obtain the effect identical with the resource management system of mode 4.
[mode 31] and then, the method for managing resource of mode 31 is managed the 1st functional module and need the employed resource of a plurality of the 2nd functional modules of described the 1st functional module in it is carried out, and it is characterized in that, comprises following steps:
The resource determination step, it makes arithmetic unit, measure described the 1st functional module under described the 1st execution environment when described the 2nd functional module is carried out employed stock number;
The resource higher limit obtains step, and it makes described arithmetic unit obtain resource higher limit under the 2nd execution environment;
Resource conversion step, it makes described arithmetic unit that described resource higher limit is obtained resource higher limit that step obtains and is scaled resource higher limit under described the 1st execution environment; With
The resource limit notifying process, the resource higher limit that it converses stock number that described arithmetic unit determines according to described resource determination step and described resource conversion step is carried out the notice about resource limit.
Thus, obtain the effect identical with the resource management system of mode 4.
[mode 32] and then, the method for managing resource of mode 32 with regard to each method for managing resource of mode 27~31, is characterized in that:
Comprise the resource limit step, the resource higher limit that stock number that this resource limit step is measured to according to described resource determination step and described resource conversion step converse forbids guaranteeing based on the resource of described functional module.
Thus, obtain the effect identical with the resource management system of mode 5.
[mode 33] and then, the method for managing resource of mode 33 with regard to each method for managing resource of mode 25~32, is characterized in that:
Described resource conversion step is according to the resource conversion table lattice, convert, these resource conversion table lattice logined based under described the 1st execution environment in accordance with regulations the stock number used of condition and under described the 2nd execution environment the determined coefficient of conversion of stock number that uses of condition in accordance with regulations.
Thus, obtain the effect identical with the resource management system of mode 6.
[mode 34] and then, the method for managing resource of mode 34 with regard to the method for managing resource of mode 33, is characterized in that:
Described resource conversion table lattice have been logined described coefficient of conversion by each resource kind,
Described resource conversion step corresponding to the resource kind that described functional module is used, obtains corresponding described coefficient of conversion, and converts according to the coefficient of conversion of obtaining from described resource conversion table lattice.
Thus, obtain the effect identical with the resource management system of mode 7.
[mode 35] and then, the method for managing resource of mode 35 is characterized in that with regard to each method for managing resource of mode 33 and 34:
Described resource conversion table lattice use form to login described coefficient of conversion by each resource,
Described resource conversion step corresponding to the resource form that described functional module is used, obtains corresponding described coefficient of conversion, and converts according to the coefficient of conversion of obtaining from described resource conversion table lattice.
Thus, obtain the effect identical with the resource management system of mode 8.
[mode 36] and then, the method for managing resource of mode 36 with regard to each method for managing resource of mode 33~35, is characterized in that:
Described resource conversion table lattice are for each of a plurality of test modules, the stock number of under described the 1st execution environment and described the 2nd execution environment, using according to this test module, determine described coefficient of conversion, and logined the maximal value in the described coefficient of conversion that described each test module is determined.
Thus, obtain the effect identical with the resource management system of mode 9.
[mode 37] and then, the method for managing resource of mode 37 with regard to each method for managing resource of mode 33~35, is characterized in that:
Described resource conversion table lattice are for each of a plurality of test modules, the stock number of under described the 1st execution environment and described the 2nd execution environment, using according to this test module, determine described coefficient of conversion, and logined the mean value of the described coefficient of conversion that described each test module is determined.
Thus, obtain the effect identical with the resource management system of mode 10.
[mode 38] and then, the method for managing resource of mode 38 is characterized in that with regard to each method for managing resource of mode 25~37:
Described resource limit notifying process shows that the stock number of the described functional module use of expression reaches the message of the upper limit.
Thus, obtain the effect identical with the resource management system of mode 11.
[mode 39] and then, the method for managing resource of mode 39 with regard to each method for managing resource of mode 25~37, is characterized in that:
Described resource limit notifying process, the stock number that generates the described functional module use of expression reaches the log information of the upper limit.
Thus, obtain the effect identical with the resource management system of mode 12.
Description of drawings
Fig. 1 is the figure of the formation of expression JAVA (registered trademark) software.
Fig. 2 is the functional block diagram of the feature summary of expression host terminal 100.
Fig. 3 is the block diagram that the hardware of expression host terminal 100 constitutes.
Fig. 4 is the figure of the data configuration of expression resource limit information 400.
Fig. 5 is the figure of the data configuration of representation module information 420.
Fig. 6 is the figure of the data configuration of expression execution environment information registration form 440.
Fig. 7 is the figure of the data configuration of expression resource conversion table lattice 22.
Fig. 8 is the figure of the data configuration of expression resource management form 460.
Fig. 9 is the figure of the data configuration of presentation of events audience (listener) form 480.
Figure 10 is the process flow diagram of the independent functional module control and treatment of expression.
Figure 11 is the process flow diagram that expression could be carried out determination processing.
Figure 12 is that representation module starts the process flow diagram of handling.
Figure 13 is the process flow diagram of presentation of events audience login process.
Figure 14 is the process flow diagram that presentation class reads in processing.
Figure 15 is the process flow diagram of presentation of events audience control and treatment.
Figure 16 is the process flow diagram that the presentation of events audience carries out processing.
Figure 17 is the process flow diagram that the deletion of expression example is handled.
The figure of the content of the journal file when Figure 18 is expression generation mistake.
Figure 19 is the figure of the content of the journal file when representing not produce mistake.
Figure 20 is the time diagram that the situation of the independent functional module b, the c that constitute the resource management object is carried out in expression side by side.
Figure 21 is the functional block diagram of the feature summary of expression host terminal 100.
Figure 22 is the figure of the data configuration of expression resource conversion table lattice 22.
Figure 23 is the figure of the data configuration of expression resource management form 460.
Figure 24 is the process flow diagram that expression could be carried out determination processing.
Figure 25 is the figure of the data configuration of expression execution result login form 520.
Figure 26 is that expression uses stock number to measure the process flow diagram of handling.
Figure 27 is that expression resource conversion table lattice generate the process flow diagram of handling.
Figure 28 is illustrated in by the network printer to carry out execution result table under the situation of 3 test module T1~T3.
Figure 29 be illustrated in stand-by time be set at ' 0 ', by the execution result table under the situation of carrying out 3 test module T1~T3 in the host terminal 100.
Figure 30 be illustrated in stand-by time be set at ' 10 ', by the execution result table under the situation of carrying out 3 test module T1~T3 in the host terminal 100.
Figure 31 is the process flow diagram of representation module authentication processing.
Among the figure: 100... host terminal, 110...OS, 120... common function module, 130... independent functional module, 10,16... the resource determination part, 12,20... resource limit portion, the independent managing functional module of 14... portion, 18... higher limit obtaining section, 22... the resource conversion table lattice, 24,28... resource conversion portion, 26... log information generating unit, 30...CPU, 32...ROM, 34...RAM, 38...I/F, 40... input media, 42... memory storage, 44... display device, 400... resource limit information, 420... module information, 440... execution environment information registration form, 460... resource management form, 480... incident audience form, 520... execution result login form, the 199... network
Embodiment
Below, with reference to accompanying drawing the 1st embodiment of the present invention is described.Fig. 1~Figure 20 is the figure of the 1st embodiment of expression resource management system of the present invention and program and method.
Present embodiment is suitable for resource management system of the present invention and program and method as shown in Figure 2 under the execution environment of the JAVA on host terminal 100 (registered trademark) application program, during JAVA (registered trademark) classification setting of Simulation Control network printer action usefulness.
At first, the feature summary that is suitable for host terminal 100 of the present invention is described.
Fig. 1 is the pie graph of expression JAVA (registered trademark) software.
Under the execution environment of JAVA (registered trademark) application program, on OS, carry out the common function module that JAVA (registered trademark) classifies and JVA (Java (registered trademark) Virtual Machine) constitutes of the execution of control JAVA (registered trademark) classification setting, on the common function module, carry out independent functional module as JAVA (registered trademark) classification setting.At this, JAVA (registered trademark) software is made of common function module and independent functional module.
The common function module can be carried out a plurality of independent functional modules as shown in Figure 1.In the example of Fig. 1, be illustrated in common function module a and go up the situation of carrying out two independent functional module b, c.At this, being made as x1, common function module a in the stock number that independent functional module b is used is made as under x2, the independent situation of the spendable resource higher limit of functional module b as Xmax in the stock number that functional module b separately uses in carrying out, in the present embodiment, the restriction stock number makes x1+x2≤Xmax.
Fig. 2 is the functional block diagram of the feature summary of expression host terminal 100.
Host terminal 100 has OS110, common function module 120 and a plurality of independent functional module 130 and constitutes as shown in Figure 2.
OS110 has the resource limit portion 12 of the resource determination part 10 of the stock number that mensuration JAVA (registered trademark) software uses and the whole stock number of using of restriction JAVA (registered trademark) software and constitutes.
The resource that resource limit portion 12 restriction JAVA (registered trademark) softwares use is so that the stock number deficiency that resource determination part 10 is measured to is distributed to the set upper limit value of JAVA (registered trademark) software.
Common function module 120 has: manage the execution of independent functional module 130 independent managing functional module portion 14, measure independent managing functional module portion 140 and resource determination part 16, the resource conversion table lattice 22 of having logined the coefficient of conversion that the stock number used under identical rated condition at the stock number of using under the rated condition and the network printer according to host terminal 100 determines and the resource conversion portion 24 of conversion stock number of the stock number used of functional module 130 separately.
Resource determination part 16 is measured the stock number of these independent functional module 130 uses and the stock number that independent managing functional module portion 14 uses by each independent functional module 130 in this independent functional module 130 is carried out.
Resource conversion portion 24 is according to resource conversion table lattice 22, and the stock number that resource determination part 16 is measured to is scaled the stock number of using in the network printer.
Common function module 120 also has: obtain the higher limit obtaining section 18, the independent managing functional module of restriction portion 14 of the resource higher limit of independent functional module 130 in the network printer and separately the stock number used of functional module 130 resource limit portion 20 and generate the log information generating unit 26 of log information.
The stock number that stock number that the independent functional module 130 of resource limit portion 20 restrictions is used and independent managing functional module portion 14 use in this independent functional module 130 is carried out is so that the higher limit that the not enough higher limit obtaining section 18 of stock number that is conversed by resource conversion portion 24 obtains.
Log information generating unit 26 is the higher limit that obtains of higher limit obtaining section 18 when above when being judged to be stock number that resource conversion portion 24 converses, generates the log information that stock number that the independent functional module 130 of expression uses reaches the upper limit.
Below, the formation of detailed description host terminal 100.
Fig. 3 is the block diagram that the hardware of expression host terminal 100 constitutes.
Host terminal 100 as shown in Figure 3, by the CPU30 that controls computing and entire system according to control program, in the regulation zone the prior RAM34 of the operation result of needs and the I/F38 of the input and output of external device (ED) intermediary data constituted the calculating process of the ROM32 of the control program of storage CPU30 etc., the storage data of reading from ROM32 etc. or CPU30, these parts by the bus 39 of the signal wire of using as the transmission data mutually and exchange data ground connect.
As external device (ED), on I/F38, connecting the input media 40 that constitutes by the keyboard that can import data or mouse etc. as man-machine interface, with data or form etc. as the memory storage 42 of file storage, come the display device 44 of display frame and be used to be connected signal wire on the network 199 according to picture signal.
Below, the data configuration of detailed description memory storage 42.
Memory storage 42 stores common function module 120 and a plurality of independent functional module 130.
Functional module 130 comprises the resource limit information of the resource higher limit that is stored in the network printer separately.
Fig. 4 is the figure of the data configuration of expression resource limit information 400.
Resource limit information 400 comprises the field 402 of storage independent functional module 130 and common function module 120 higher limit of spendable storer (RAM34) in the execution of this independent functional module 130 and stores independent functional module 130 and the field 404 of common function module 120 bootable number of categories in the execution of this independent functional module 130 and constituting as shown in Figure 4.
Separately functional module 130 also comprises about the module information of independent functional module 130 and constitutes.
Fig. 5 is the figure of the data configuration of representation module information 420.
Module information 420 as shown in Figure 5, comprise stock number that the independent functional module of storage 130 uses and whether be the restriction object (below be called the resource management object.) the field 424 of type of field 422, the independent functional module 130 executable network printers of storage and the field 426 of store electrons signature information and constitute.
In the example of Fig. 5, in field 422, store ' effectively '.This expression is managed independent functional module 130 as the resource management object.And, storing ' TypeA ' on the field 424, in field 426, storing ' X society ' respectively.This represents that independent functional module 130 executable types are ' TypeA ', accept the digital electronic signature of X society.
Memory storage 42 also stores the execution environment information registration form of the execution environment information of the execution environment of having logined expression common function module 120.
Fig. 6 is the figure of the data configuration of expression execution environment information registration form 440.
Execution environment information registration form 440 as shown in Figure 6, the name that the name of comprise the field 442 of having logined limit value on the independent functional module 130 bootable numbers, having logined the independent functional module 130 that should carry out is referred to as field 444, logined the independent functional module 130 that should delete is referred to as field 446, logined emulation the network printer type field 448 and logined the field 450 of digital electronic signature information that can be corresponding and constituted.
In the example of Fig. 6, in field 442, logining ' 5 ' respectively, in field 444, logining ' functional module b, d ', in field 446, logining ' separately functional module c ' separately.This expression can start 5 independent functional modules 130 at most, when common function module 120 starts, carries out independent functional module b, d, should delete independent functional module c.And, in field 448, logining respectively and logining ' X society ' in ' TypeA ', the field 450.The type of the network printer of this expression emulation is ' TypeA ', can carry out the independent functional module 130 of the digital electronic signature information that comprises X society.
Memory storage 42 also stores resource conversion table lattice 22.
Fig. 7 is the figure of the data configuration of expression resource conversion table lattice 22.
In resource conversion table lattice 22, as shown in Figure 7, to each resource kind or record of use-pattern login.Each record comprises the field 502 of login resource name and logins the field 504 of coefficient of conversion and constitute.
In the example of Fig. 7, in the 1st record, ' storer use-pattern A ' is as the title of resource, and login ' 1 ' is as coefficient of conversion in login respectively.This is illustrated in independent functional module 130 and makes under the use-pattern A under the memory-aided situation, by multiply by coefficient of conversion ' 1 ' on the amount of memory of in host terminal 100, using to independent functional module 130, carry out the conversion of the amount of memory of in the network printer, using.Equally, make under use-pattern B, the C under the memory-aided situation, adopting coefficient of conversion corresponding to use-pattern B, C in independent functional module 130.
The use-pattern A of storer~C is determined by the function or the routine library of common function module 120 and functional module 130 uses separately.For example, under the situation of routine library that use to handle the integer type variable etc., become use-pattern A, under the situation of the routine library of the variable that uses double (double) type of processing etc., become use-pattern B.
In addition, in the 4th record, logining ' number of categories ' respectively, as the title of resource, login ' 1 ' is as coefficient of conversion.This expression is carried out the conversion of the number of categories that starts by multiply by coefficient of conversion ' 1 ' on the number of categories that starts to independent functional module 130 in host terminal 100 in the network printer.
In addition, in resource conversion table lattice 22,,, determine coefficient of conversion, and login is to the maximal value in the definite coefficient of conversion of each test module according to the stock number that this test module in the host terminal 100 and the network printer uses to a plurality of test modules each.Describe the generation of resource conversion table lattice 22 in the embodiment below in detail.
In memory storage 42,, store the resource management form of the stock number of these independent functional module 130 uses of management also by each each independent functional module 130 that constitutes the resource management object.The resource management form is under the situation of resource management object in independent functional module 130, follows its startup to generate.
Fig. 8 is the figure of the data configuration of expression resource management form 460.
In resource management form 460, as shown in Figure 8, each resource kind is being logined a record.Each record comprise the field 462 of login resource name, the resource higher limit of the independent functional module 130 of login in the network printer field 464, login the field 466 of the stock number that independent functional module 130 using and the value of field 466 is converted into the field 468 of the value of the stock number of in the network printer, using in host terminal 100.
In the example of Fig. 8, in the 1st record, logining ' storer ' title respectively as resource, login ' 1000000 ' is as higher limit, to the use-pattern A~C of each storer, login ' 200000 ', ' 100000 ' and ' 150000 ' is as currency, login ' 650000 ' is as scaled value.This represents that the amount of memory higher limit of independent functional module 130 in the network printer is 1000000[byte], under use-pattern A, use 200000[byte] current storage, under use-pattern B, use 100000[byte] current storage, under use-pattern C, use 150000[byte] current storage.And expression is converted into the amount of memory of using in the network printer value (below be called the conversion amount of memory) is 650000[byte].The conversion amount of memory can be with reference to the resource conversion table lattice 22 of Fig. 7, and can calculate is 200000 * 1+100000 * 1.5+150000 * 2=650000.
In addition, in the 2nd record, logining ' number of categories ' respectively, as the title of resource, login ' 100 ', as higher limit, login ' 20 ', as currency, login ' 20 ' is as scaled value.This represent independent functional module 130 in the network printer on the bootable number of categories limit value be 100,20 classification of current startup.And then, the expression be converted into the number of categories that under the network printer, starts value (below be called the conversion classification number.) be 20.The conversion classification number can be with reference to the resource conversion table lattice 22 of Fig. 7, and calculating is 20 * 1=20.
Memory storage 42 also stores incident audience form 480, and this forms entry is handled the incident audience of the incident of independent functional module 130 receptions.
Fig. 9 is the figure of the data configuration of presentation of events audience (listener) form 480.
In incident audience form 480, as shown in Figure 9, to each incident audience of independent functional module 130 logins, login record.The name that each record comprises the log-in events audience is referred to as field 482 and logins.
Return Fig. 3, CPU30 is made of microprocessing unit etc., established procedure in the regulation zone that is stored in ROM32 is started, according to this program, processing, incident audience's control and treatment and example deletion processing are read in independent functional module control and treatment, classification shown in the process flow diagram of time-division execution Figure 10, Figure 14, Figure 15 and Figure 17 respectively, as the processing of common function module 120.
At first, describe independent functional module control and treatment in detail with reference to Figure 10.
Figure 10 is the process flow diagram of the independent functional module control and treatment of expression.
The functional module control and treatment is the deletion of the independent functional module 130 of control and the processing of execution separately, if carried out by CPU30, then as shown in figure 10, at first moves to step S100.
In step S100, the title of the independent functional module 130 that from execution environment information registration form 440, obtains the title of the independent functional module 130 that should carry out and should delete, and move to step S102, judge whether there is the independent functional module 130 that to delete, when the independent functional module 130 that is judged to be that existence should delete (being), move to step S104.
In step S104, according to the title that obtains, this independent functional module 130 of deletion from memory storage 42, and move to step S106, according to the module information 420 that comprises in this independent functional module 130, judge whether this independent functional module 130 is resource management objects,, move to step S108 when being judged to be this independent functional module 130 when being the resource management object (being).
In step S108, from memory storage 42, delete resource management form 460, and move to step S110 corresponding to this independent functional module 130, deduct ' 1 ' in the variate-value of the number of modules from represent current startup, and move to step S102.
On the other hand, in step S106,, move to step S102 when being judged to be this independent functional module 130 when not being the resource management object (denying).
On the other hand, in step S102, when being judged to be (denying) when not having the independent functional module 130 that to delete, move to step S112, judge whether there is the independent functional module 130 that to carry out, when the independent functional module 130 that is judged to be that existence should carry out (being), move to step S114.
In step S114, whether the variate-value of judging the number of modules in the current startup of expression not enough set upper limit value, when being judged to be not enough set upper limit value (being), moves to step S116.
In step S116, according to the title that obtains, from memory storage 42, read in this independent functional module 130, move to step S118, what the independent functional module 130 that the execution judgement is read in could be carried out could carry out determination processing, moves to step S120.
In step S120, whether judgement returns the rreturn value that expression allows the execution of independent functional module 130 from carrying out determination processing, when being judged to be the rreturn value of returning expression permission execution (being), moves to step S122.
In step S122, according to the module information 420 that comprises in this independent functional module 130, judge whether this independent functional module 130 is resource management objects, when being judged to be this independent functional module 130 when being the resource management object (being), move to step S124.
In step S124, generation is corresponding to the resource management form 460 of this independent functional module 130, obtain higher limit in the resource limit information 400 that from this independent functional module 130, comprises, the higher limit that obtains is logined in the resource management form 460 that generates, and move to step S126, the variate-value of the number of modules in the current startup of expression adds ' 1 ', moves to step S128.
In step S128, with the address setting of the resource management form 460 that generates be resource guarantee object with reference to pointer, and move to step S130, carry out the module that starts this independent functional module 130 and start processing, move to step S132, the zero clearing resource guarantee object with reference to pointer, and move to step S112.
On the other hand, in step S122,, move to step S134, carry out the module the same and start and handle, and move to step S112 with step S130 when being judged to be this independent functional module 130 when not being the resource management object (denying).
On the other hand, in step S120,, move to step S112 when being judged to be from could carry out determination processing and return expression and do not allow the rreturn value of execution of independent functional module 130 time (denying).
On the other hand, in step S114, when the variate-value that is judged to be the number of modules of expression in the current startup is that the set upper limit value is when above (denying), move to step S136, generate the representation module number and reach the log information of the upper limit, and finish a succession of processing, return to original processing.
On the other hand, in step S112,, finish a succession of processing, return to original processing when being judged to be (denying) when not having the independent functional module 130 that to carry out.
Below, could carry out determination processing with reference to what Figure 11 described step S118 in detail.
Figure 11 is the process flow diagram that expression could be carried out determination processing.
Could carry out determination processing if in step S118, carry out, then as shown in figure 11, at first move to step S200.
In step S200, obtain model information in the module information 420 from be contained in independent functional module 130, and move to step S202, whether the model information that judgement obtains is consistent with the model information of execution environment information registration form 440, when being judged to be these model information unanimities (being), move to step S204.
In step S204, obtain digital electronic signature information in the module information 420 that from independent functional module 130, comprises, and move to step S206, according to execution environment information registration form 440, whether the digital electronic signature information that judgement obtains can be corresponding, when be judged to be can be corresponding digital electronic signature information the time (being), move to step S208.
In step S208, according to the module information 420 that comprises in the independent functional module 130, judge whether independent functional module 130 is resource management objects, and, move to step S209 when being judged to be (being) when being the resource management object.
In step S209, judge the resource conversion table lattice 22 that whether exist corresponding to execution environment information registration form 440, when being judged to be the resource conversion table lattice 22 that have correspondence (being), move to step S210, from memory storage 42, read in corresponding resource conversion table lattice 22, move to step S211.
In step S211, obtain higher limit in the resource limit information 400 that from independent functional module 130, comprises, and move to step S212, judge the whether success that obtains of higher limit, when being judged to be the achieving success of higher limit (being), move to step S214.
In step S214, whether not enough the higher limit that judgement obtains all storer surpluses when being judged to be not enough all storer surpluses (being), move to step S216, return the rreturn value that expression allows the execution of independent functional module 130, finish a succession of processing, return to original processing.
On the other hand, in step S214, when being judged to be the higher limit that obtains is that whole storer surpluses are when above (denying), move to step S217, generating the expression higher limit is the above log informations of whole storer surpluses, and moves to step S218, returns the rreturn value that expression allows the execution of independent functional module 130, finish a succession of processing, return to original processing.
On the other hand, obtain when failure (denying) when what in step S212, be judged to be higher limit, when in step S206, be judged to be not can be corresponding digital electronic signature information the time (denying) and when in step S202, being judged to be model information when inconsistent (denying), all move to step S218.
On the other hand, in step S209, when being judged to be the resource conversion table lattice 22 that do not exist corresponding to execution environment information registration form 440 (denying), move to step S211.
On the other hand, in step S208,, move to step S216 when being judged to be independent functional module 130 when not being the resource management object (denying).
Below, the module that describes step S130, S134 with reference to Figure 12 in detail starts processing.
Figure 12 is that representation module starts the process flow diagram of handling.
Module starts to be handled if carry out in step S130, S134, then as shown in figure 12, at first moves to step S300.
In step S300, instruction is read in the classification that output should be read in classification from independent functional module 130, and moves to step S302, judges the whether success of reading in of classification, when being judged to be the reading in successfully of classification (being), moves to step S304.
In step S304, judge whether set resource guarantee object with reference to pointer, and when be judged to be the setting resource guarantee object with reference to pointer the time (being), move to step S305, calculate the required amount of memory of execution of the classification of reading, and move to step S306.
In step S306, the routine library that uses from the classification of reading etc., the use-pattern of specific memory, from the resource conversion table lattice 22 that read in, obtain coefficient of conversion corresponding to specific memory device use-pattern, and multiply by the coefficient of conversion of obtaining, thereby carry out the conversion of the amount of memory of in the network printer, using to the amount of memory of calculating.
Afterwards, move to step S307, to resource guarantee object the resource management form 460 with reference to pointer indication (below be called with reference to resource management form 460.) the use amount of memory in add the conversion amount of memory, and move to step S308, judge the total amount of memory not enough higher limit whether after the addition with reference to resource management form 460, (be) to move to step S310 when being judged to be not enough higher limit.
In step S310, on storer, generate the example of the classification of reading in, and move to step S312, the expression resource is guaranteed that the resource with reference to pointer value of object guarantees that object is kept in the example of generation with reference to information, and move to step S313, the conversion amount of memory is kept in the example of generation, and moves to step S314.
In step S314, whether the generation of judging example is successful, and when the generation success that is judged to be example (being), move to step S316, the classification feature that the function of reading in classification is called in execution calls processing, and moves to step S318, carries out incident audience's login process of the incident audience of the independent functional module 130 of login, finish a succession of processing, return to original processing.
On the other hand, in step S308, to add up to amount of memory be higher limit when above (denying) when being judged to be, and moves to step S320, deducts the conversion amount of memory from the use amount of memory of reference resource management form 460, and move to step S321.
In step S321, the amount of memory that generates independent functional module 130 uses of expression reaches the log information of the upper limit, and moves to step S322, and notification error moves to step S314.
On the other hand, in step S304, when be judged to be do not set resource guarantee object with reference to pointer the time (denying), move to step S324, on storer, generate the example of the classification read in, and move to step S314.
On the other hand, in step S314, be judged to be and be judged to be the reading in when failing (denying) of classification among generation when failure (deny) of example and the step S302, all move to step S318.
Below, describe incident audience's login process of step S318 in detail with reference to Figure 13.
Figure 13 is the process flow diagram of presentation of events audience login process.
Incident audience's login process then as shown in figure 13, at first moves to step S400 if carry out in step S318.
In step S400, from independent functional module 130, export the classification of reading in incident audience classification and read in instruction, and move to step S402, judge whether reading in of incident audience classification be successful, when being judged to be the reading in successfully of incident audience classification (being), move to step S404.
In step S404, judge whether set resource guarantee object with reference to pointer, and be judged to be set resource guarantee object with reference to pointer the time (being), move to step S405, calculate the required amount of memory of execution of incident audience's classification of reading in, move to step S406.
In step S406, from the classify use-pattern of specific memory the routine library that uses etc. of the incident audience of reading in, from the resource conversion table lattice 22 that read in, obtain coefficient of conversion corresponding to specific memory device use-pattern, multiply by the coefficient of conversion of obtaining to the amount of memory of calculating, thereby carry out the conversion of the amount of memory of in the network printer, using.
Afterwards, move to step S407, on the use amount of memory of reference resource management form 460, add the conversion amount of memory, move to step S408, judge the total amount of memory not enough higher limit whether after the addition with reference to resource management form 460, (be) to move to step S410 when being judged to be not enough higher limit.
In step S410, on storer, generate the example of incident audience's classification of reading in, and move to step S412, the expression resource is guaranteed that the resource with reference to pointer value of object guarantees that object is kept in the example of generation with reference to information, move to step S413, the conversion amount of memory is kept in the example of generation, and moves to step S414.
In step S414, judge whether the generation of example is successful, and when being judged to be the generation success of example (being), move to step S416, incident audience's login of the example that generates is carried out in the tabulation the incident audience, finished a succession of processing, return to original processing.
On the other hand, in step S408, to add up to amount of memory be higher limit when above (denying) when being judged to be, and moves to step S418, deducts the conversion amount of memory from the use amount of memory of reference resource management form 460, and move to step S419.
In step S419, the amount of memory that generates independent functional module 130 uses of expression reaches the log information of the upper limit, and moves to step S420, and notification error moves to step S414.
On the other hand, in step S404, when be judged to be do not set resource guarantee object with reference to pointer the time (denying), move to step S422, on storer, generate the example of the incident audience's classification read in, and move to step S414.
On the other hand,, finish a succession of processing, return to original processing when being judged to be reading in of incident audience classification among generation when failure (deny) that is judged to be example among the step S414 and the step S402 when failing (denying).
Below, describe classification in detail with reference to Figure 14 and read in processing.
Figure 14 is the process flow diagram that presentation class reads in processing.
It is to read in the processing that classification is read in instruction corresponding to classification that processing is read in classification, if carried out by CPU30, then as shown in figure 14, at first moves to step S500.
In step S500, judge that whether obtaining classification reads in instruction, when being judged to be (being) when obtaining classification and reading in instruction, move to step S502, otherwise (deny), in step S500 standby, play that obtaining classifies reads in till the instruction.
In step S502, judge whether the classification of reading in instruction about classification is logged in the cache memory form, when being judged to be (denying) when not logining in the cache memory form, move to step S504.
In step S504, independent functional module 130 under the specific classification of reading in instruction about classification, and move to step S506, according to the module information 420 that comprises in this specific independent functional module 130, judge whether this independent functional module 130 is resource management objects, when being judged to be (being) when being the resource management object, move to step S508.
In step S508, will be corresponding to the address setting of the resource management form 460 of this independent functional module 130 resource guarantee object with reference to pointer, and move to step S509.
In step S509, from the resource conversion table lattice 22 that read in, obtain coefficient of conversion, and multiply by the coefficient of conversion of obtaining to the number of categories ' 1 ' that reads in instruction about classification corresponding to number of categories, thus the conversion of the number of categories that execution starts in the network printer.
Afterwards, move to step S510, startup number of categories to reference resource management form 460 adds the conversion classification number, and move to step S512, judge the total number of categories not enough higher limit whether after the addition with reference to resource management form 460, and (be) to move to step S514 when being judged to be not enough higher limit.
In step S514, from independent functional module 130, read in the classification of reading in instruction about classification, move to step S516, the classification of reading in is logined in the cache memory form, move to step S517.
In step S517, the conversion classification number is kept in the classification of reading in, and moves to step S518, the zero clearing resource guarantee object with reference to pointer, finish a succession of processing, return to original processing.
On the other hand, in step S512,, move to step S520, from the startup number of categories of reference resource management form 460, deduct the conversion classification number, and move to step S521 when the number of categories that is judged to be total is higher limit when above (denying).
In step S521, the number of categories that generates independent functional module 130 startups of expression reaches the log information of the upper limit, and moves to step S522, and notification error moves to step S518.
On the other hand, in step S506, when being judged to be this independent functional module 130 when not being the resource management object (denying), move to step S524, from independent functional module 130, read in the classification of reading in instruction about classification, move to step S526, the classification of reading in is logined in the cache memory form, finish a succession of processing, return to original processing.
On the other hand, in step S502,, finish a succession of processing, return to original processing when being judged to be the classification of reading in instruction about classification when being logged in the cache memory form (being).
Below, describe incident audience control and treatment in detail with reference to Figure 15.
Figure 15 is the process flow diagram of presentation of events audience control and treatment.
Incident audience's control and treatment is the processing of control event audience's execution, if carried out by CPU30, then as shown in figure 15, at first moves to step S600.
In step S600, the incident audience of obtaining carries out tabulation, moves to step S602, carries out tabulation according to the incident audience who obtains, and judges whether there is the incident audience that should carry out, and when being judged to be the incident audience that existence should carry out (being), moves to step S604.
In step S604, this incident of specific formation audience generates the independent functional module 130 in source, and move to step S606, according to the module information 420 that comprises in this specific independent functional module 130, judge whether this independent functional module 130 is resource management objects, when being judged to be (being) when being the resource management object, move to step S608.
In step S608, to be corresponding to the address setting of the resource management form 460 of this independent functional module 130 resource guarantee object with reference to pointer, and move to step S610, execution is carried out processing to the incident audience that this incident audience carries out, and move to step S612, the zero clearing resource guarantee object with reference to pointer, and move to step S614.
In step S614, carry out this incident of deletion audience the tabulation from the incident audience, and move to step S602.
On the other hand, in step S606,, move to step S616, carry out this incident audience, and move to step S614 when being judged to be this independent functional module 130 when not being the resource management object (denying).
On the other hand, in step S602,, finish a succession of processing, return to original processing when being judged to be (denying) when not having the incident audience that should carry out.
Below, the incident audience who describes step S610 with reference to Figure 16 in detail carries out processing.
Figure 16 is the process flow diagram that the presentation of events audience carries out processing.
Incident audience carries out and handles if carry out in step S610, then as shown in figure 16, at first moves to step S700.
In step S700, program pointer is moved to the beginning of the instruction list that comprises among the incident audience, and move to step S702, whether there is the instruction that to carry out in the address of decision procedure pointer indication, when being judged to be the instruction that existence should carry out (being), move to step S703, calculate instruction and carry out required amount of memory, move to step S704.
In step S704, the use-pattern of specific memory in the routine library that from instruction is carried out, uses etc., from the resource conversion table lattice 22 that read in, obtain coefficient of conversion corresponding to specific memory device use-pattern, and multiply by the coefficient of conversion of obtaining, thereby carry out the conversion of the amount of memory of in the network printer, using to the amount of memory of calculating.
Afterwards, move to step S705, on the use amount of memory of reference resource management form 460, add the conversion amount of memory, and move to step S706, judge the total amount of memory not enough higher limit whether after the addition with reference to resource management form 460, (be) to move to step S708 when being judged to be not enough higher limit.
In step S708, guarantee storer, move to step S710, the instruction of the address of executive routine pointer indication, and move to step S712, program pointer is moved to after the instruction list that comprises among the incident audience, and move to step S713, the stand-by time of regulation is handled in standby, moves to step S702.In the embodiment of back, describe determining of this stand-by time in detail.
On the other hand, in step S706,, move to step S714, from the use amount of memory of reference resource management form 460, deduct the conversion amount of memory, and move to step S715 when the amount of memory that is judged to be total is higher limit when above (denying).
In step S715, the amount of memory that generates independent functional module 130 uses of expression reaches the log information of the upper limit, and moves to step S716, and notification error moves to step S712.
On the other hand, in step S702,, finish a succession of processing, return to original processing when being judged to be (denying) when not having the instruction that to carry out.
Below, describe the example deletion in detail with reference to Figure 17 and handle.
Figure 17 is the process flow diagram that the deletion of expression example is handled.
It is the processing of deletion example that the example deletion is handled, if carried out by CPU30, then as shown in figure 17, at first moves to step S800.
In step S800, obtain and logined the example deletion tabulation that to delete example, and move to step S802, according to the example deletion tabulation that obtains, judge whether there is the example that to delete, and when being judged to be the example that existence should delete (being), move to step S804.
In step S804, obtain resource and guarantee object with reference to information from this example, and move to step S805, the judgement resource guarantees whether object is successful with reference to obtaining of information, when being judged to be resource when guaranteeing object (being), move to step S806 with reference to the achieving success of information.
In step S806, guarantee that according to the resource that obtains object is with reference to information, set resource guarantee object with reference to pointer, and move to step S808, delete this example, move to step S810, from the use amount of memory of reference resource management form 460, deduct this example and carry out required amount of memory, and move to step S812.
In step S812, the zero clearing resource guarantee object with reference to pointer, move to step S814, this example of deletion moves to step S802 from example deletion tabulation.
On the other hand, in step S805, when be judged to be resource guarantee object with reference to information obtain when failure (denying), move to step S816, delete this example, move to step S814.
On the other hand, in step S802,, finish a succession of processing, return to original processing when being judged to be (denying) when not having the example that to delete.
Below, the action of present embodiment is described.
At first, the situation of carrying out the independent functional module 130 that constitutes the resource management object is described.
In host terminal 100, carry out independent functional module control and treatment by the execution of common function module 120.In independent functional module control and treatment,, under the situation that has the independent functional module 130 that to delete, delete this independent functional module 130 through step S102~S110.Afterwards, through step S114, if the number of modules that is judged to be in the current startup is not enough set upper limit value, then pass through step S116, S118, read in this independent functional module 130, the independent functional module 130 that judgement is read in could be carried out.Could carry out in the determination processing, with regard to independent functional module 130, have consistent model information and can corresponding digital electronic signature information, and the higher limit of spendable amount of memory be under the situation of not enough all storer surpluses, allow execution.
If allow the execution of independent functional module 130, then pass through step S124~S128, generate resource management form 460, the number of modules in the current startup is added ' 1 ', functional module 130 starts separately.In module start to be handled, through step S509, S510, S305~S307, with the startup number of categories of independent functional module 130 with use amount of memory to be converted at the startup number of categories under the network printer and addition after using amount of memory.At this moment, if start number of categories and use one of amount of memory as more than the higher limit, then pass through step S521, S522 or step S321, S322, generate the startup number of categories of the independent functional module 130 of expression or use amount of memory to reach the log information of the upper limit, simultaneously, notification error is ended reading in or the generation of example of classification.
Relative therewith, starting number of categories and using under the situation of the equal not enough higher limit of amount of memory,, read in the classification of independent functional module 130 through step S514, S310, S318, generate the example of the classification of reading in, the incident audience who logins independent functional module 130.In incident audience login process, through step S509, S510, S405~S407, with the startup number of categories of independent functional module 130 with use amount of memory to be converted at the startup number of categories under the network printer and addition after using amount of memory.At this moment, if start number of categories and use the either party of amount of memory as more than the higher limit, then pass through step S521, S522 or step S419, S420, generate the startup number of categories of the independent functional module 130 of expression or use amount of memory to reach the log information of the upper limit, simultaneously, notification error, the reading in or the generation of example of break event audience classification.
Relative therewith, starting number of categories and using under the situation of the equal not enough higher limit of amount of memory,, read in incident audience classification through step S514, S410, S416, the example of generation incident audience classification is carried out incident audience's login of the example that generates in the tabulation the incident audience.
On the other hand, host terminal 100 is carried out incident audience control and treatment by the execution of common function module 120.In incident audience control and treatment,, the use amount of memory that constitutes the independent functional module 130 in the generation source that should carry out the incident audience is converted into addition after the use amount of memory under the network printer through step S703~S705.At this moment, if use amount of memory as more than the higher limit, then pass through step S715, S716, the amount of memory that generates independent functional module 130 uses of expression reaches the log information of the upper limit, simultaneously, and notification error, break event audience's execution.
Relative therewith, under the situation of using the not enough higher limit of amount of memory,, carry out the instruction that is contained among the incident audience through step S710.
On the other hand, carrying out the example deletion by the execution of common function module 120 in host terminal 100 handles.In the example deletion is handled, under the situation that has the example that should delete,, delete this example through step S808, S810, deduct the use amount of memory of the independent functional module 130 in the generation source that constitutes this incident audience.
The figure of the content of the journal file when Figure 18 is expression generation mistake.
Producing under the wrong situation, in journal file, as shown in figure 18, except that the log information that the independent functional module 130 of expression starts or stops, also record is represented the startup number of categories of independent functional module 130 or is used amount of memory to reach the log information of the upper limit.
Figure 19 is the figure of the content of the journal file when representing not produce mistake.
Relative therewith, not producing under the wrong situation, in journal file, as shown in figure 19, only the log information that independent functional module 130 starts and stops to be represented in record.
Below, the situation of carrying out the independent functional module 130 that is not the resource management object is described.
If carry out independent functional module control and treatment, then pass through step S116, S118 in host terminal 100, read in this independent functional module 130, the independent functional module 130 that judgement is read in could be carried out.
If allow the execution of independent functional module 130, then pass through step S134, functional module 130 starts separately.Start in the processing in module,, read in the classification of independent functional module 130, generate the example of the classification of reading in, the incident audience who logins independent functional module 130 through step S524, S324, S318.In incident audience login process, through step S524, S422, S416, read in incident audience classification, generate the example of incident audience classification, incident audience's login of the example that generates is carried out in the tabulation the incident audience.
On the other hand,, then pass through step S616, carry out the instruction that is contained among the incident audience that should carry out if in host terminal 100, carry out incident audience control and treatment.
On the other hand, handle, then under the situation that has the example that to delete,, delete this example through step S816 if in host terminal 100, carry out the example deletion.
Figure 20 is the time diagram that the situation of the independent functional module b, the c that constitute the resource management object is carried out in expression side by side.
Among Figure 20, solid line is represented in the saddle of the saddle of independent functional module b and common function module 120 saddle that uses in the execution of functional module b separately.And dot-and-dash line is represented in the saddle of the saddle of independent functional module c and common function module 120 saddle that uses in the execution of functional module c separately.
If carry out independent functional module b, then carry out the AM saddle (startup handling part) of common function module 120, functional module b starts separately, carries out this saddle.In addition, carry out the AM saddle of common function module 120, generate the incident audience of independent functional module b.Afterwards,, read in the classification of independent functional module b, generate the example that reads in if generation corresponding to the incident of independent functional module b, is then carried out the AM saddle (event handling portion) of common function module 120.Under the situation that does not need independent functional module b, carry out the example deletion saddle of common function module 120, delete the example of independent functional module b.In this a succession of processing, the startup number of categories and the use amount of memory of managing the execution of the saddle of following common function module 120 and independent functional module b and increasing and decreasing, as the stock number of independent functional module b use, and restriction becomes the not enough set upper limit value that independent functional module b is set.
This action to independent functional module c too.Wherein, in this a succession of processing, the startup number of categories and the use amount of memory of managing the execution of the saddle of following common function module 120 and independent functional module c and increasing and decreasing, as the stock number of independent functional module c use, and restriction becomes the not enough set upper limit value that independent functional module c is set.
Therefore, in the present embodiment, measure the stock number that independent functional module 130 is used in host terminal 100, and the stock number that is measured to is converted into the stock number of under the network printer, using, obtain higher limit from independent functional module 130, according to stock number that converses and the higher limit that obtains, the stock number that generates independent functional module 130 uses of expression reaches the log information of the upper limit.
Thus, can be before importing the network printer, verify whether stock number that independent functional module 130 is used reaches the higher limit of resource under the network printer.Therefore, and compared in the past, can easily carry out software development, simultaneously, can develop the high software of stability.
And, in the present embodiment, to each each independent functional module 130 that constitutes the resource management object, measure the amount of memory that amount of memory that this independent functional module 130 uses and common function module 120 use and the number of categories of startup in the execution of this independent functional module 130.
Thus, functional module 130 units verify whether stock number that common function module 120 is used reaches the higher limit of resource under the network printer separately.
And, in the present embodiment,, forbid guaranteeing based on the resource of independent functional module 130 according to stock number that converses and the higher limit that obtains.
Thus, can limit independent functional module 130 and use stock number above higher limit.
And in the present embodiment, the resource conversion table lattice 22 according to having logined the coefficient of conversion that the stock number used under identical rated condition at the stock number of using under the rated condition and the network printer based on host terminal 100 determines convert.
Thus, the stock number that can between the host terminal 100 and the network printer, more correctly convert.
And then in the present embodiment, the resource kind corresponding to common function module 120 and independent functional module 130 uses obtains corresponding coefficient of conversion, and converts according to the coefficient of conversion of obtaining from resource conversion table lattice 22.
Thus, owing to can carry out corresponding to common function module 120 and the conversion of the resource kind of functional module 130 uses separately, so the stock number that can between the host terminal 100 and the network printer, further correctly convert.
And in the present embodiment, the resource mode corresponding to common function module 120 and independent functional module 130 uses obtains corresponding coefficient of conversion, and converts according to the coefficient of conversion of obtaining from resource conversion table lattice 22.
Thus, owing to can carry out corresponding to common function module 120 and the conversion of the resource mode of functional module 130 uses separately, so the stock number that can between the host terminal 100 and the network printer, further correctly convert.
And, in the present embodiment, each of 22 pairs of a plurality of test modules of resource conversion table lattice determined coefficient of conversion according to the stock number that this test module uses under the host terminal 100 and the network printer, and logined the maximal value in the coefficient of conversion that each test module is determined.
Thus, because in resource conversion table lattice 22, logining, so can how to estimate the stock number that common function module 120 and independent functional module 130 are used to the maximal value in the definite coefficient of conversion of each test module.Therefore, can more positively guarantee the action of independent functional module 130.
Below, with reference to accompanying drawing the 2nd embodiment of the present invention is described.Figure 21~Figure 24 is the figure of the 2nd embodiment of expression resource management system of the present invention and program and method.
In the present embodiment, resource management system of the present invention and program and method are as shown in figure 21, the situation that be applicable in the execution environment of JAVA (registered trademark) application program on host terminal 100, emulation is used for JAVA (registered trademark) classification setting of Control Network printer action is with the difference of above-mentioned the 1st embodiment be the to convert higher limit of resource.In addition, only illustrate below and the different part of above-mentioned the 1st embodiment,, omit explanation to adding same-sign with the part of above-mentioned the 1st embodiment repetition.
At first, the feature summary that is suitable for host terminal 100 of the present invention is described.
Figure 21 is the functional block diagram of the feature summary of expression host terminal 100.
Common function module 120 as shown in figure 21, except that independent managing functional module portion 14, resource determination part 16, higher limit obtaining section 18, resource limit portion 20, resource conversion table lattice 22 and log information generating unit 26, also have the resource conversion portion 28 of conversion stock number and constitute.
Resource conversion portion 28 is according to resource conversion table lattice 22, and the stock number that higher limit obtaining section 18 is obtained is scaled the resource higher limit under the host terminal 100.
The stock number that stock number that the independent functional module 130 of resource limit portion 20 restrictions is used and independent managing functional module portion 14 use in this independent functional module 130 is carried out is so that the higher limit that the not enough resource conversion of the stock number that resource determination part 16 is measured to portion 28 converses.
Log information generating unit 26 is the higher limit that converses of resource conversion portion 28 when above when being judged to be stock number that resource determination part 16 is measured to, generates the log information that stock number that the independent functional module 130 of expression uses reaches the upper limit.
Below, the formation of detailed description host terminal 100.
Memory storage 42 replaces the resource conversion table lattice 22 of Fig. 7, stores the resource conversion table lattice 22 of Figure 22.
Figure 22 is the figure of the data configuration of expression resource conversion table lattice 22.
In resource conversion table lattice 22, as shown in figure 22,, logining a record by the kind or the use-pattern of each resource.Each record comprises the field 502 of logining resource name and the field 504 of logining coefficient of conversion and constitutes.
In the example of Figure 22, in the 1st record, login ' storer ' is as the title of resource respectively, and login ' 1 ' is as coefficient of conversion.This expression is carried out the conversion of the amount of memory higher limit under host terminal 100 by with the higher limit of coefficient of conversion ' 1 ' divided by the independent amount of memory of functional module 130 under the network printer.
In addition, in the 2nd record, login ' number of categories ' respectively, as the title of resource, login ' 1 ' is as coefficient of conversion.This expression is carried out to the conversion at 100 times bootable number of categories of host terminal by using coefficient of conversion ' 1 ' divided by independent functional module 130 bootable number of categories higher limit under the network printer.
In addition, in resource conversion table lattice 22,,, determine coefficient of conversion, and login is to the maximal value in the definite coefficient of conversion of each test module according to the stock number that this test module in the host terminal 100 and the network printer uses to a plurality of test modules each.Describe the generation of resource conversion table lattice 22 in the embodiment below in detail.
The resource management form 460 that memory storage 42 also stores Figure 23 replaces the resource management form 460 of Fig. 8.
Figure 23 is the figure of the data configuration of expression resource management form 460.
In resource management form 460, as shown in figure 23, to record of each resource kind login.Each record comprise the field 462 of login resource name, the resource higher limit of the independent functional module 130 of login in the network printer field 464, login the field 466 that value with field 464 is scaled in the field 470 of the value of the resource higher limit under the host terminal 100 and logins the stock number that independent functional module 130 using in host terminal 100.
In the example of Figure 23, in the 1st record, logining ' 1000000 ' respectively, as higher limit, login ' 666666 ' is as scaled value.This represents that the amount of memory higher limit of independent functional module 130 in the network printer is 1000000[byte], be converted into the amount of memory higher limit under host terminal 100 value (below be called conversion storer higher limit.) be 666666[byte].Conversion storer higher limit can be with reference to the resource conversion table lattice 22 of Figure 22, calculate to be 1000000/1.5=666666.
In addition, in the 2nd record, login ' 100 ' respectively, as higher limit, login ' 20 ' is as scaled value.This represent independent functional module 130 in the network printer on the bootable number of categories limit value be 100, be converted into value in 100 times bootable number of categories higher limits of host terminal (below be called the conversion classification higher limit.) be 20.The conversion classification higher limit can be with reference to the resource conversion table lattice 22 of Figure 22, calculate to be 20/1=20.
Below, the processing of carrying out in the host terminal 100 is described.
CPU30 carries out and could carry out determination processing shown in the process flow diagram of Figure 24, replaces that Figure 11's could carry out determination processing.
Figure 24 is the process flow diagram that expression could be carried out determination processing.
Could carry out determination processing if in step S118, carry out, then as shown in figure 24, at first pass through step S200~S212 after, move to step S213.
In step S213, from the resource conversion table lattice 22 that read in, obtain coefficient of conversion, and, carry out the conversion of the higher limit under host terminal 100 by using the coefficient of conversion of obtaining divided by the higher limit that obtains corresponding to the higher limit that obtains.
Afterwards, move to step S214, judge whether not enough all storer surpluses of conversion storer higher limit, when being judged to be not enough all storer surpluses (being), move to step S216, otherwise (denying) moves to step S217.
In addition, in above-mentioned the 1st embodiment, the processing of design procedure S306, S406, S509, S704, but in the present embodiment, do not need these processing.
In addition, in above-mentioned the 1st embodiment, handle conversion amount of memory and conversion classification number by the processing of step S313, S320, S418, S517, S520, S714, but in the present embodiment, use amount of memory under the processing host terminal 100 and startup number of categories.
In addition, in above-mentioned the 1st embodiment, handle the use amount of memory under the network printer and start number of categories by step S308, S408, S512, S706, but in the present embodiment, handle conversion storer higher limit and conversion storer.
Below, the action of present embodiment is described.
At first, the situation of carrying out the independent functional module 130 that constitutes the resource management object is described.
In host terminal 100, carry out independent functional module control and treatment by the execution of common function module 120.In independent functional module control and treatment,, under the situation that has the independent functional module 130 that to delete, delete this independent functional module 130 through step S102~S110.Afterwards, through step S114, if the number of modules that is judged to be in the current startup is not enough set upper limit value, then pass through step S116, S118, read in this independent functional module 130, the independent functional module 130 that judgement is read in could be carried out.Could carry out in the determination processing,, will be scaled the higher limit under the host terminal 100 from the higher limit that resource limit information 400 obtains through step S213.In addition, with regard to independent functional module 130, have consistent model information and can corresponding digital electronic signature information, and conversion storer higher limit be under the situation of not enough all storer surpluses, allow execution.
If allow the execution of independent functional module 130, then pass through step S124~S128, generate resource management form 460, the number of modules in the current startup is added ' 1 ', functional module 130 starts separately.Start in the processing in module, through step S510, S305, S307, with the startup number of categories and the addition of use amount of memory of independent functional module 130.At this moment, if start number of categories and use the either party of amount of memory (to be called conversion classification number or conversion storer higher limit as the conversion higher limit.Below.) more than, then pass through step S521, S522 or step S321, S322, generate the startup number of categories of the independent functional module 130 of expression or use amount of memory to reach the log information of the upper limit, simultaneously, notification error is ended reading in or the generation of example of classification.
Relative therewith, starting number of categories and using under the situation of the equal not enough conversion higher limit of amount of memory,, read in the classification of independent functional module 130 through step S514, S310, S318, the example of the classification that generation is read in, the incident audience who logins independent functional module 130.In incident audience login process, through step S510, S405, S407, with the startup number of categories and the addition of use amount of memory of independent functional module 130.At this moment, if start number of categories and use the either party of amount of memory as more than the conversion higher limit, then pass through step S521, S522 or step S419, S420, generate the startup number of categories of the independent functional module 130 of expression or use amount of memory to reach the log information of the upper limit, simultaneously, notification error, the reading in or the generation of example of break event audience classification.
Relative therewith, starting number of categories and using under the situation of the equal not enough conversion higher limit of amount of memory,, read in incident audience classification through step S514, S410, S416, the example of generation incident audience classification is carried out incident audience's login of the example that generates in the tabulation the incident audience.
On the other hand, host terminal 100 is carried out incident audience control and treatment by the execution of common function module 120.In incident audience control and treatment,, the use amount of memory addition of the independent functional module 130 in the generation source that should carry out the incident audience will be constituted through step S703, S705.At this moment, if use amount of memory as more than the conversion higher limit, then pass through step S715, S716, the amount of memory that generates independent functional module 130 uses of expression reaches the log information of the upper limit, simultaneously, and notification error, break event audience's execution.
Relative therewith, under the situation of using the not enough conversion higher limit of amount of memory,, carry out the instruction that is contained among the incident audience through step S710.
Like this, in the present embodiment, measure the stock number that independent functional module 130 is used in host terminal 100, and obtain higher limit from independent functional module 130, the higher limit that obtains is converted into resource higher limit under host terminal 100, according to stock number that determines and the higher limit that is converted to, the stock number that generates independent functional module 130 uses of expression reaches the log information of the upper limit.
Thus, can be before importing the network printer, verify whether stock number that independent functional module 130 is used reaches the higher limit of resource under the network printer.Therefore, and compared in the past, can easily carry out software development, simultaneously, can develop the high software of stability.
In above-mentioned the 2nd embodiment, resource determination part 16 and step S305, S405, S703 are corresponding to the resource components of assays of mode 1~5, step S305, S405, S703 are corresponding to the resource determination step of mode 13~17,25~32, and resource conversion portion 28 and step S213 are corresponding to the resource conversion parts of mode 1,2,4~18.In addition, step S213 is corresponding to the resource conversion step of mode 13,14,16~20,25~28,30~35, higher limit obtaining section 18 and step S211 obtain parts corresponding to the resource higher limit of mode 1,2 or 4, and step S211 obtains step corresponding to the resource higher limit of mode 13,14,16,25~28,30 or 31.
In addition, in above-mentioned the 2nd embodiment, log information generating unit 26 and step S321, S419, S521, S715 be corresponding to the resource limit notice parts of mode 1,2,4 or 12, and step S321, S419, S521, S715 are corresponding to the resource limit notifying process of mode 13,14,16,24~28,30,31 or 39.In addition, resource limit portion 20 and step S308, S408, S512, S706 are corresponding to the resource limit parts of mode 5, step S308, S408, S512, S706 are corresponding to the resource limit step of mode 17 or 32, and common function module 120 is corresponding to the 1st functional module of mode 2~4,14~16,27~31.
In addition, in above-mentioned the 2nd embodiment, functional module 130 is corresponding to the 2nd functional module of mode 2~4,14~16,27~31 separately, and CPU30 is corresponding to the arithmetic unit of mode 26,28 or 31.
Below, with reference to accompanying drawing the 3rd embodiment of the present invention is described.Figure 25~Figure 30 is the figure of the embodiment of expression resource management system of the present invention and program and method.
In the present embodiment, resource management system of the present invention and program and method are applicable to the situation that generates the resource conversion table lattice 22 that use in the above-mentioned the 1st and the 2nd embodiment.In addition, only illustrate below and the above-mentioned the 1st and the 2nd different part of embodiment,, omit explanation to adding same-sign with the part of the above-mentioned the 1st and the 2nd embodiment repetition.
At first, describe the formation of the network printer in detail.
The network printer has the general computing machine identical functions that is connected CPU, ROM, RAM and I/F etc. with bus.
On I/F, as external device (ED), connect as man-machine interface by can import the guidance panel that constitutes with the touch-screen of video data etc., with data or form etc. as the memory storage of file storage, other is printed the printer engine (enginee) that required mechanism constitutes and is used to be connected signal wire on the network 199 by printhead, a drive division etc.
Memory device stores has login to carry out the execution result login form of the execution result of test module under the network printer.
Figure 25 is the figure of the data configuration of expression execution result login form 520.
In the execution result login form 520, as shown in figure 25, to record of each login of each test module.Each record comprise the field 526 of the field 524 of the field 522 of login test module title, amount of memory that the login test module uses under the network printer, number of categories that the login test module starts under the network printer and login test module processing time field 528 and be logged.
In the example of Figure 25, in the 1st record, logining ' T1 (only under use-pattern A, using storer) ' respectively, as the title of test module, login ' 100 ', as amount of memory, login ' 5 ', as number of categories, login ' 30 ' is as the processing time.This expression test module T1 only uses storer under use-pattern A, by its execution, use 100[byte under the network printer] amount of memory, and, start 30 classification.
CPU starts the established procedure in the regulation zone that is stored in ROM, and according to this program, the use stock number shown in the process flow diagram of execution Figure 26 is measured and handled.
Figure 26 is that expression uses stock number to measure the process flow diagram of handling.
Use stock number to measure and handle, then as shown in figure 26, at first move to step S900 if carry out by CPU30.
In step S900, obtain the test module tabulation of having logined the test module that should carry out, and move to step S902, according to the test module tabulation that obtains, carry out test module, move to step S904.
In step S904, measure the amount of memory of the test module use of carrying out and the number of categories of startup, and move to step S906, measure the processing time of the test module of carrying out, and move to step S908, the use amount of memory, the startup number of categories that are measured to is corresponding with the title of test module with minute, and login is logined in the form 520 at execution result, and moves to step S910.
In step S910, according to the tabulation of the test module obtained, judge whether there is the test module that should carry out, when being judged to be the test module that existence should carry out (being), move to step S902, otherwise (denying) finishes a succession of processing, returns to original processing.
Be used for generating resource conversion table lattice 22 by the execution result login form 520 that uses the processing of stock number mensuration to obtain at host terminal 100.
Below, the formation of detailed description host terminal 100.
CPU30 starts the established procedure in the regulation zone that is stored in ROM32, and according to this program, the resource conversion table lattice shown in the process flow diagram of execution Figure 27 generate to be handled.
Figure 27 is that expression resource conversion table lattice generate the process flow diagram of handling.
The resource conversion table lattice generate and handle is the processing of the stand-by time when generating resource conversion table lattice 22, among the determining step S713, if carried out by CPU30, then as shown in figure 27, at first moves to step S1000.
In step S1000, obtain the test module tabulation, and move to step S1002, initialization resource conversion table lattice 22, and move to step S1004, and stand-by time is set at ' 0 ', move to step S1006.
In step S1006,, carry out whole test modules according to the test module tabulation that obtains.At this, test module is carried out by the processing shown in the process flow diagram of Figure 10~Figure 17 and Figure 24 with functional module 130 is the same separately.Therefore, by handling stand-by time, adjust the processing time in step S713 standby.
Afterwards, move to step S1008, measure the amount of memory of each test module use of carrying out and the number of categories of startup, and move to step S1010, measure the processing time of each test module of carrying out, move to step S1012.
In step S1012, from execution result login form 520, read processing time corresponding to each test module, and move to step S1014, judge the processing time read total, with or its difference whether consistent to the total in processing time of each test module mensuration whether below defined threshold, when inconsistent or its differential ratio defined threshold is big when the total that is judged to be the processing time (denying), move to step S1016.
In step S1016, it is short whether the total of judging the processing time read compares the total in the processing time that each test module measures, and (be) to move to step S1018 in short-term when being judged to be the total in the processing time of reading, stand-by time is subtracted ' 1 ', move to step S1006.
On the other hand, in step S1016, (deny) in short-term, move to step S1020, stand-by time is added ' 1 ', move to step S1006 when the total that is judged to be the processing time that each test module is measured.
On the other hand, in step S1014, consistent or its difference is that defined threshold is when following (being) when the total that is judged to be the processing time, move to step S1022, from execution result login form 520, read use amount of memory and startup number of categories, move to step S1024 corresponding to each test module.
In step S1024, to each of each test module, according to the use amount of memory that this test module is measured and start number of categories, with the use amount of memory of reading with start in the number of categories corresponding to the use amount of memory of this test module and start number of categories, calculate coefficient of conversion, and move to step S1026, kind and use-pattern by each resource, maximal value login in the coefficient of conversion that will calculate each test module is in resource conversion table lattice 22, finish a succession of processing, return to original processing.
Below, the action of present embodiment is described.
The network printer passes through step S902~S908 repeatedly, carry out each test module, measure use amount of memory, startup number of categories and the processing time of each test module of carrying out, the use amount of memory, startup number of categories and the processing time that are measured to are logined in execution result login form 520.
Afterwards, the execution result login form 520 that the network printer is obtained is stored in the host terminal 100, generates processing by carrying out the resource conversion table lattice in the host terminal 100.
Host terminal 100 is carried out each test module through step S1006~S1010, measures the processing time of each test module of carrying out.Afterwards,, from execution result login form 520, read processing time, judge the total, whether consistent in the processing time of reading with total to processing time of each test module mensuration corresponding to each test module through step S1012, S1014.As a result, inconsistent as if being judged to be the total in processing time, then under the short situation of the total in the processing time of reading, through step S1018, deduct stand-by time, and under the short situation of the total in the processing time that each test module is measured, through step S1020, add stand-by time.The processing of execution in step S1006~S1020 is repeatedly played till the total unanimity in processing time.
Figure 28 is illustrated in by the network printer to carry out execution result table under the situation of 3 test module T1~T3.
Carry out at the network printer under the situation of test module T1~T3, the total in the processing time of test module T1~T3 for example is ' 120 ' as shown in figure 28.
Figure 29 be illustrated in stand-by time be set at ' 0 ', by the execution result table under the situation of carrying out 3 test module T1~T3 in the host terminal 100.
Stand-by time is being set at ' 0 ', carrying out under the situation of test module T1~T3 in by host terminal 100, the total in the processing time of test module T1~T3 for example is ' 80 ' as shown in figure 29.At this moment, because the total in the processing time under the total in the processing time under the network printer and the host terminal 100 is inconsistent,, adjust the processing time so add stand-by time.
Figure 30 be illustrated in stand-by time be set at ' 10 ', by the execution result table under the situation of carrying out 3 test module T1~T3 in the host terminal 100.
Afterwards, stand-by time is being set at ' 10 ', carrying out under the situation of test module T1~T3 in by host terminal 100, the total in the processing time of test module T1~T3 for example is ' 120 ' as shown in figure 30.At this moment, because the total in the processing time under the total in the processing time under the network printer and the host terminal 100 is consistent, so stand-by time is defined as ' 10 '.
Determine stand-by time if so, then pass through step S1022, S1024, from execution result login form 520, read use amount of memory and startup number of categories corresponding to each test module, according to the use amount of memory that determines and startup number of categories and use amount of memory of reading and startup number of categories, each calculates coefficient of conversion to each test module.Afterwards, through step S1026, the maximal value login in the coefficient of conversion that will calculate each test module is in resource conversion table lattice 22.
The stand-by time and the resource conversion table lattice 22 that obtain by this processing can be used in the above-mentioned the 1st and the 2nd embodiment.
Like this, in the present embodiment, from execution result login form 520, read the stock number that test module uses under the network printer, and the mensuration test module is in the stock number of 100 times uses of host terminal, stock number according to stock number of reading and mensuration, calculate coefficient of conversion,, generate resource conversion table lattice 22 so that according to the coefficient of conversion of calculating.
Thus, get final product because only carry out test module, so can easily generate resource conversion table lattice 22 by the host terminal 100 and the network printer.
And then, in the present embodiment, the processing time of from execution result login form 520, reading the test module in the network printer, measure the processing time of the test module in the host terminal 100, and, calculate the stand-by time under the host terminal 100 according to processing time of processing time of reading and mensuration.
Thus, in host terminal 100, carry out under the situation of independent functional module 130,, then can adjust, make in the host terminal 100 and the network printer, the processing time of independent functional module 130 is equated if the stand-by time that obtains in commission is set.
Below, with reference to accompanying drawing the 4th embodiment of the present invention is described.Figure 31 is the figure of the embodiment of expression method for managing resource of the present invention and program and method.
In the present embodiment, method for managing resource of the present invention and program and method are applicable to the situation that authenticates independent functional module 130 according to the log information that generates in the above-mentioned the 1st and the 2nd embodiment.In addition, below, only explanation and the above-mentioned the 1st and the 2nd different part of embodiment to adding same-sign with the part of the above-mentioned the 1st and the 2nd embodiment repetition, are omitted explanation.
At first, describe the formation of host terminal 100 in detail.
CPU30 starts the established procedure in the regulation zone that is stored in ROM32, and according to this program, the module authentication shown in the process flow diagram of execution Figure 31 is handled.
Figure 31 is the process flow diagram of representation module authentication processing.
Module authentication is handled if carried out by CPU30, then as shown in figure 31, at first moves to step S1100.
In step S1100, from the journal file of memory storage 42, read log information, move to step S1102, according to the log information of reading, judge the startup number of categories of independent functional module 130 or use amount of memory whether to reach the upper limit, and, move to step S1104 when being judged to be the startup number of categories or using amount of memory not reach (denying) in limited time.
In step S1104, according to the log information of reading, judge whether independent functional module 130 can not be installed in the network printer, when being judged to be independent functional module 130 can install the time (denying), move to step S1106.
In step S1106, whether there is untreated log information in the journal file of judgement memory storage 42, when being judged to be (denying) when not having untreated log information, move to step S1108, from memory storage 42, read the execute file of independent functional module 130, move to step S1110.
In step S1110, additional electron signature information on the execute file of reading, and move to step S1112, and the execute file that has added digital electronic signature information is kept in the memory storage 42, finish a succession of processing, return to original processing.
On the other hand, in step S1106,, move to step S1100 when being judged to be (being) when having untreated log information.
On the other hand, in step S1104, when being judged to be independent functional module 130 can not install the time (being), in step S1102, start number of categories or use amount of memory to reach in limited time when being judged to be, all move to step S1114, in display device 44, show the message that the independent functional module 130 of expression can not authenticate, finish a succession of processing, return to original processing.
Below, the action of present embodiment is described.
Host terminal 100 is if generate journal file in the above-mentioned the 1st and the 2nd embodiment, then pass through step S1100~S1106 repeatedly, from journal file, read log information successively, judge the startup number of categories of independent functional module 130 or use amount of memory whether reach the upper limit and separately functional module 130 whether can not be installed in the network printer.Journal file as shown in figure 19 is such, for the whole log informations that comprise in the journal file, start number of categories or use amount of memory not reach the upper limit and can install if be judged to be, then pass through step S1108~S1112, read the execute file of independent functional module 130, to preserving after the additional electron signature information on the execute file of reading.
Relative therewith, journal file as shown in figure 18 is such, for the arbitrary log information that comprises in the journal file, as if being judged to be the startup number of categories or using amount of memory to reach the upper limit and maybe can not install, then passes through step S1114, shows the message that expression can not authenticate.
Like this, in the present embodiment, from journal file, read log information, according to the log information of reading, judge whether the stock number that independent functional module 130 is used reaches the upper limit, and do not reach in limited time when being judged to be stock number, sign information to the execute file additional electron of independent functional module 130.
Thus, because only the stock number of using is not reached the independent functional module 130 additional electron signature information of the upper limit, so can more positively guarantee the action of independent functional module 130.
And, in the present embodiment, from journal file, read log information, according to the log information of reading, judge whether independent functional module 130 can not be installed in the network printer, and when being judged to be to install the time, to become execute file additional electron signature information to independent functional module 130.
Thus, because only to being installed on the independent functional module 130 additional electron signature information in the network printer, so can further positively guarantee the action of independent functional module 130.
In addition, in the above-mentioned the 1st and the 2nd embodiment, resource conversion table lattice 22 are logined the maximal value in the definite coefficient of conversion of each test module, but are not limited thereto, and also can login the mean value in the definite coefficient of conversion of each test module is constituted.
Thus, because the mean value in the coefficient of conversion that login is determined each test module in resource conversion table lattice 22, so can when having to a certain degree certainty and coming the action of assurance function module, suppress the stock number of using in the network printer.
In addition, in the above-mentioned the 1st and the 2nd embodiment, the stock number that the independent functional module 130 of generation expression is used reaches the log information of the upper limit, but is not limited thereto, and also can constitute the message that the stock number that shows independent functional module 130 uses of expression in display device 44 reaches the upper limit.
In addition, in the above-mentioned the 1st and the 2nd embodiment, be illustrated in the resource conversion table lattice 22 login ' 1 ' and be used as coefficient of conversion, but be not limited thereto, also can login value beyond 1 according to the host terminal 100 and the specification difference of the network printer.
In addition, in the above-mentioned the 1st and the 2nd embodiment, restriction is used amount of memory and is started number of categories and is used as stock number, but be not limited thereto, also can constitute restriction plug-in unit linking number, file linking number, number of files, file size, classification size, ZIP memory span, CPU utilization, the plug-in unit traffic and file read-write amount.
In addition, in above-mentioned the 1st~the 4th embodiment, explanation is in the processing shown in the process flow diagram of carrying out Figure 10~Figure 17, Figure 24, Figure 27 and Figure 31, all carry out the situation that is stored in the control program among the ROM32 in advance, but be not limited thereto, carry out after also can making it from the storage medium of having stored the program of representing these steps, to read in this program among the RAM34.
In addition, in above-mentioned the 3rd embodiment, explanation is in the processing shown in the process flow diagram of carrying out Figure 26, all carry out the situation of the control program among the ROM that is stored in the network printer in advance, but be not limited thereto, also can make it from the storage medium of having stored the program of representing these steps, this program to be read among the RAM of the network printer back and carry out.
At this, so-called storage medium is that semiconductor storage mediums such as RAM, ROM, FD, HD equimagnetic storage-type storage medium, CD, CDV, optical profile types such as LD, DVD read mode storage medium, MO equimagnetic storage-type/optically read mode storage medium, no matter be which of read method of electronics, magnetic, optics etc., so long as the storage medium that can be read by computing machine then comprises all storage mediums.
In addition, in above-mentioned the 1st~the 4th embodiment, with resource management system of the present invention and resource manager and method for managing resource is applicable under the execution environment of the JAVA on the host terminal 100 (registered trademark) application program, the situation of JAVA (registered trademark) classification setting of Simulation Control network printer action usefulness, but be not limited thereto, under the scope that does not break away from spirit of the present invention, also applicable to other situation.Can replace the network printer, for example be applicable in projector, Electronic Paper (paper), local gateway, personal computer, PDA (Personal Digital Assistant), network memory, audio frequency apparatus, mobile phone, PHS (registered trademark) (Personal Handyphone System), Wristwatch-type PDA, STB (Set Top Box), POS (Point Of Sale) terminal, the mechanical, electrical words of the FAX devices such as (also comprising IP phone etc.).

Claims (27)

1. resource management system, the resource that the management function module is used is characterized in that possessing:
The resource components of assays, it measures the stock number that described functional module is used under the 1st execution environment;
The resource higher limit obtains parts, and it obtains the resource higher limit under the 2nd execution environment;
Resource conversion parts, it is obtained resource higher limit that parts obtain with described resource higher limit and is scaled resource higher limit under described the 1st execution environment; With
Resource limit notice parts, the resource higher limit that stock number that it determines according to described resource components of assays and described resource conversion parts converse is carried out the notice about resource limit.
2. resource management system according to claim 1 is characterized in that:
Described resource conversion parts are according to the resource conversion table lattice, convert, these resource conversion table lattice logined based under described the 1st execution environment in accordance with regulations the stock number used of condition and under described the 2nd execution environment the determined coefficient of conversion of stock number that uses of condition in accordance with regulations.
3. resource management system according to claim 2 is characterized in that:
Described resource conversion table lattice have been logined described coefficient of conversion by each resource kind,
Described resource conversion parts corresponding to the resource kind that described functional module is used, are obtained corresponding described coefficient of conversion, and are converted according to the coefficient of conversion of obtaining from described resource conversion table lattice.
4. according to claim 2 or 3 described resource management systems, it is characterized in that:
Described resource conversion table lattice become by each resource and use form to login described coefficient of conversion,
Described resource conversion parts corresponding to the resource form that described functional module is used, are obtained corresponding described coefficient of conversion, and are converted according to the coefficient of conversion of obtaining from described resource conversion table lattice.
5. resource management system according to claim 2 is characterized in that:
Described resource conversion table lattice, become each for a plurality of test modules, the stock number of under described the 1st execution environment and described the 2nd execution environment, using according to this test module, determine described coefficient of conversion, and logined the maximal value in the definite described coefficient of conversion of described each test module or the mean value of described coefficient of conversion.
6. resource management system according to claim 1 is characterized in that:
Described resource limit notice parts become the message that the stock number that shows the described functional module use of expression reaches the upper limit.
7. resource management system according to claim 1 is characterized in that:
The stock number that described resource limit notice parts generate the described functional module use of expression reaches the log information of the upper limit.
8. resource management system is managed the 1st functional module and need the employed resource of a plurality of the 2nd functional modules of described the 1st functional module in it is carried out, and it is characterized in that possessing:
The resource components of assays, it measures the stock number that described the 2nd functional module is used under the 1st execution environment;
The resource higher limit obtains parts, and it obtains the resource higher limit under the 2nd execution environment;
Resource conversion parts, it is obtained resource higher limit that parts obtain with described resource higher limit and is scaled resource higher limit under described the 1st execution environment; With
Resource limit notice parts, the resource higher limit that stock number that it determines according to described resource components of assays and described resource conversion parts converse is carried out the notice about resource limit.
9. resource management system according to claim 8 is characterized in that:
Described resource components of assays measure described the 2nd functional module the stock number of using under described the 1st execution environment and described the 1st functional module under described the 1st execution environment when the 2nd functional module is carried out employed stock number.
10. resource management system according to claim 8 is characterized in that:
Possess the resource limit parts, the resource higher limit that stock number that it is measured to according to described resource components of assays and described resource conversion parts converse forbids guaranteeing based on the resource of described functional module.
11. resource management system according to claim 8 is characterized in that:
Described resource conversion parts are according to the resource conversion table lattice, convert, these resource conversion table lattice logined based under described the 1st execution environment in accordance with regulations the stock number used of condition and under described the 2nd execution environment the determined coefficient of conversion of stock number that uses of condition in accordance with regulations.
12. resource management system according to claim 11 is characterized in that:
Described resource conversion table lattice have been logined described coefficient of conversion by each resource kind,
Described resource conversion parts corresponding to the resource kind that described functional module is used, are obtained corresponding described coefficient of conversion, and are converted according to the coefficient of conversion of obtaining from described resource conversion table lattice.
13., it is characterized in that according to claim 11 or 12 described resource management systems:
Described resource conversion table lattice become by each resource and use form to login described coefficient of conversion,
Described resource conversion parts corresponding to the resource form that described functional module is used, are obtained corresponding described coefficient of conversion, and are converted according to the coefficient of conversion of obtaining from described resource conversion table lattice.
14. resource management system according to claim 11 is characterized in that:
Described resource conversion table lattice, become each for a plurality of test modules, the stock number of under described the 1st execution environment and described the 2nd execution environment, using according to this test module, determine described coefficient of conversion, and logined the maximal value in the definite described coefficient of conversion of described each test module or the mean value of described coefficient of conversion.
15. resource management system according to claim 8 is characterized in that:
Described resource limit notice parts become the message that the stock number that shows the described functional module use of expression reaches the upper limit.
16. resource management system according to claim 8 is characterized in that:
The stock number that described resource limit notice parts generate the described functional module use of expression reaches the log information of the upper limit.
17. a resource management system is managed the 1st functional module and need the employed resource of a plurality of the 2nd functional modules of described the 1st functional module in it is carried out, and it is characterized in that possessing:
The resource components of assays, its measure described the 1st functional module under described the 1st execution environment when described the 2nd functional module is carried out employed stock number;
The resource higher limit obtains parts, and it obtains the resource higher limit under the 2nd execution environment;
Resource conversion parts, it is obtained resource higher limit that parts obtain with described resource higher limit and is scaled resource higher limit under described the 1st execution environment; With
Resource limit notice parts, the resource higher limit that stock number that it determines according to described resource components of assays and described resource conversion parts converse is carried out the notice about resource limit.
18. resource management system according to claim 17 is characterized in that:
Possess the resource limit parts, the resource higher limit that stock number that it is measured to according to described resource components of assays and described resource conversion parts converse forbids guaranteeing based on the resource of described functional module.
19. resource management system according to claim 17 is characterized in that:
Described resource conversion parts are according to the resource conversion table lattice, convert, these resource conversion table lattice logined based under described the 1st execution environment in accordance with regulations the stock number used of condition and under described the 2nd execution environment the determined coefficient of conversion of stock number that uses of condition in accordance with regulations.
20. resource management system according to claim 19 is characterized in that:
Described resource conversion table lattice have been logined described coefficient of conversion by each resource kind,
Described resource conversion parts corresponding to the resource kind that described functional module is used, are obtained corresponding described coefficient of conversion, and are converted according to the coefficient of conversion of obtaining from described resource conversion table lattice.
21., it is characterized in that according to claim 19 or 20 described resource management systems:
Described resource conversion table lattice become by each resource and use form to login described coefficient of conversion,
Described resource conversion parts corresponding to the resource form that described functional module is used, are obtained corresponding described coefficient of conversion, and are converted according to the coefficient of conversion of obtaining from described resource conversion table lattice.
22. resource management system according to claim 19 is characterized in that:
Described resource conversion table lattice, become each for a plurality of test modules, the stock number of under described the 1st execution environment and described the 2nd execution environment, using according to this test module, determine described coefficient of conversion, and logined the maximal value in the definite described coefficient of conversion of described each test module or the mean value of described coefficient of conversion.
23. resource management system according to claim 17 is characterized in that:
Described resource limit notice parts become the message that the stock number that shows the described functional module use of expression reaches the upper limit.
24. resource management system according to claim 17 is characterized in that:
The stock number that described resource limit notice parts generate the described functional module use of expression reaches the log information of the upper limit.
25. a method for managing resource, the resource that the management function module is used is characterized in that, comprises following steps:
The resource determination step, it measures the stock number that described functional module is used under the 1st execution environment;
The resource higher limit obtains step, and it obtains the resource higher limit under the 2nd execution environment;
Resource conversion step, it is obtained resource higher limit that step obtains with described resource higher limit and is scaled resource higher limit under described the 1st execution environment; With
The resource limit notifying process, the resource higher limit that stock number that it determines according to described resource determination step and described resource conversion step converse is carried out the notice about resource limit.
26. a method for managing resource is managed the 1st functional module and need the employed resource of a plurality of the 2nd functional modules of described the 1st functional module in it is carried out, and it is characterized in that, comprises following steps:
The resource determination step, it measures the stock number that described the 2nd functional module is used under the 1st execution environment;
The resource higher limit obtains step, and it obtains the resource higher limit under the 2nd execution environment;
Resource conversion step, it is obtained resource higher limit that step obtains with described resource higher limit and is scaled resource higher limit under described the 1st execution environment; With
The resource limit notifying process, the resource higher limit that stock number that it determines according to described resource determination step and described resource conversion step converse is carried out the notice about resource limit.
27. a method for managing resource is managed the 1st functional module and need the employed resource of a plurality of the 2nd functional modules of described the 1st functional module in it is carried out, and it is characterized in that, comprises following steps:
The resource determination step, its measure described the 1st functional module under described the 1st execution environment when described the 2nd functional module is carried out employed stock number;
The resource higher limit obtains step, and it obtains the resource higher limit under the 2nd execution environment;
Resource conversion step, it is obtained resource higher limit that step obtains with described resource higher limit and is scaled resource higher limit under described the 1st execution environment; With
The resource limit notifying process, the resource higher limit that stock number that it determines according to described resource determination step and described resource conversion step converse is carried out the notice about resource limit.
CNB2005100228998A 2005-02-01 2005-12-09 Resource management system, resource management program, resource management method Expired - Fee Related CN100382003C (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2005024983 2005-02-01
JP2005024983 2005-02-01
JP2005244162 2005-08-25

Publications (2)

Publication Number Publication Date
CN1815433A CN1815433A (en) 2006-08-09
CN100382003C true CN100382003C (en) 2008-04-16

Family

ID=36907657

Family Applications (2)

Application Number Title Priority Date Filing Date
CNB2005100228998A Expired - Fee Related CN100382003C (en) 2005-02-01 2005-12-09 Resource management system, resource management program, resource management method
CNB2005100229045A Expired - Fee Related CN100367182C (en) 2005-02-01 2005-12-09 Resource management system, resource conversion table generation system, software authentication system

Family Applications After (1)

Application Number Title Priority Date Filing Date
CNB2005100229045A Expired - Fee Related CN100367182C (en) 2005-02-01 2005-12-09 Resource management system, resource conversion table generation system, software authentication system

Country Status (1)

Country Link
CN (2) CN100382003C (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004094782A (en) * 2002-09-03 2004-03-25 Ricoh Co Ltd Resource management system, program and recording medium
JP2004185595A (en) * 2002-07-26 2004-07-02 Ricoh Co Ltd Information processor and program therefor
CN1570857A (en) * 2003-07-23 2005-01-26 英业达股份有限公司 Modular game design system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004185595A (en) * 2002-07-26 2004-07-02 Ricoh Co Ltd Information processor and program therefor
JP2004094782A (en) * 2002-09-03 2004-03-25 Ricoh Co Ltd Resource management system, program and recording medium
CN1570857A (en) * 2003-07-23 2005-01-26 英业达股份有限公司 Modular game design system

Also Published As

Publication number Publication date
CN1815434A (en) 2006-08-09
CN100367182C (en) 2008-02-06
CN1815433A (en) 2006-08-09

Similar Documents

Publication Publication Date Title
CN100370411C (en) Software authentication system, software authentication program, and software authentication method
KR100750770B1 (en) Resource managing system, resource managing method and computer readable recording medium having resource managing program recorded therein
Riebisch Towards a more precise definition of feature models
US9294484B2 (en) System, service providing device, and service providing method
US9332004B2 (en) Digital content acquisition system and techniques
KR100679527B1 (en) Resource management system, resource conversion table generation system, software authentication system, computer readable recording medium having resource management program recorded therein, computer readable recording medium having resource conversion table generation program recorded therein, computer readable recording medium having software authentication program recorded therein, resource management method, resource conversion table generation method, and software authentication method
CN105556533A (en) Automatically generating certification documents
CN100382003C (en) Resource management system, resource management program, resource management method
CN101334738B (en) Techniques for parsing electronic files
CN100435084C (en) Resource management system, resource management method, printer, and printer network card
Shen et al. A Proposed architecture for building NFC tag services
TWM587773U (en) Device for displaying signature information in portable document format on webpage
JP2006244457A (en) Resource management system, resource management program, and resource management method
JP2006293980A (en) System, program, and method for software authentication
KR102371028B1 (en) Device independent re-grab based integrated content processing method and apparatus
JP2006244456A (en) Resource management system, resource conversion table generation system, software authentication system, resource managing program, resource conversion table generation program and software authenticating program, resource management method, resource conversion table generation method, and software authenticating method
KR100591546B1 (en) Billing verification method and apparatus by event broker
CN114331619A (en) AI service management method, device, equipment and storage medium
US20080288999A1 (en) Information processing apparatus for authentication setting of model that requires confidentiality
CN107210992A (en) Uploaded and downloading data between secure data transmission system and external data systems
JP2023037139A (en) Information processing system, information processing apparatus, information processing method, and program
CN112612696A (en) Data generation method and related equipment
JP2022129830A (en) Electronic device, library, and processing method
US20190155670A1 (en) Detecting system and detection method
CN113641962A (en) Service providing system, service providing method, information processing system, and computer readable 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
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080416

Termination date: 20161209

CF01 Termination of patent right due to non-payment of annual fee