CN100435084C - Resource management system, management method, printer, network card for printer - Google Patents
Resource management system, management method, printer, network card for printer Download PDFInfo
- Publication number
- CN100435084C CN100435084C CNB2005100228983A CN200510022898A CN100435084C CN 100435084 C CN100435084 C CN 100435084C CN B2005100228983 A CNB2005100228983 A CN B2005100228983A CN 200510022898 A CN200510022898 A CN 200510022898A CN 100435084 C CN100435084 C CN 100435084C
- Authority
- CN
- China
- Prior art keywords
- functional module
- resource
- execution
- resource 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
Links
- 238000007726 management method Methods 0.000 title description 137
- 238000000034 method Methods 0.000 claims description 111
- 230000006870 function Effects 0.000 abstract description 265
- 230000008569 process Effects 0.000 description 93
- 238000012545 processing Methods 0.000 description 62
- 230000000694 effects Effects 0.000 description 24
- 238000010586 diagram Methods 0.000 description 19
- 238000012217 deletion Methods 0.000 description 13
- 230000037430 deletion Effects 0.000 description 13
- 238000001994 activation Methods 0.000 description 11
- 230000004913 activation Effects 0.000 description 7
- 238000005259 measurement Methods 0.000 description 5
- 230000009471 action Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000000605 extraction Methods 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000013468 resource allocation Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Landscapes
- Stored Programmes (AREA)
Abstract
Description
技术领域 technical field
本发明涉及一种管理资源的系统、打印机、打印机用网卡和资源管理程序及资源管理方法,尤其涉及一种适于降低软件动作变得不稳定的可能性、同时抑制资源使用量增加之资源管理系统、打印机、打印机用网卡和资源管理程序及资源管理方法。The present invention relates to a system for managing resources, a printer, a network card for a printer, a resource management program, and a resource management method, and particularly relates to a resource management suitable for reducing the possibility of software operations becoming unstable while suppressing an increase in resource usage A system, a printer, a network card for the printer, a resource management program and a resource management method.
背景技术 Background technique
以前,作为管理硬件等资源的技术,例如已知专利文献1记载的资源管理系统和专利文献2记载的图像形成装置。Conventionally, as technologies for managing resources such as hardware, for example, a resource management system described in Patent Document 1 and an image forming apparatus described in Patent Document 2 are known.
专利文献1记载的发明具有:限制设定部,其对软件由信息设备执行时利用的资源设定可动作的范围;和动作范围验证部,其验证在由限制设定部设定的可动作范围内动作。动作范围验证部当有来自软件的资源利用要求时,比较设定的可动作范围与要求的资源量,当超出可动作范围时,使该软件的执行中止。The invention described in Patent Document 1 includes: a restriction setting unit that sets an operable range for resources used when software is executed by an information device; action within the range. The operating range verification unit compares the set operable range with the requested resource amount when there is a resource utilization request from the software, and stops execution of the software when the operable range is exceeded.
专利文献2记载的发明中,就具有第1执行环境与第2执行环境的图像形成装置而言,具有管理第2执行环境使用的存储器等资源的资源管理部。资源管理部限制第2执行环境可使用的资源。In the invention described in Patent Document 2, an image forming apparatus having a first execution environment and a second execution environment includes a resource management unit that manages resources such as memory used by the second execution environment. The resource management unit limits the resources available to the second execution environment.
专利文献1:特开2004-94782号公报Patent Document 1: JP-A-2004-94782
专利文献2:特开2003-330732号公报Patent Document 2: JP-A-2003-330732
但是,JAVA(注册商标)应用程序的执行环境,由在OS(Operating System)上执行被称为JVM(Java(注册商标)Virtual Machine)的应用程序、且在JVM上执行由多个JAVA(注册商标)分类构成的JAVA(注册商标)分类设置等3个执行环境构成。However, the execution environment of the JAVA (registered trademark) application program is composed of an application program called JVM (Java (registered trademark) Virtual Machine) executed on the OS (Operating System), and multiple JAVA (registered trademark) virtual machines are executed on the JVM. Trademark) classification constituted by JAVA (registered trademark) classification settings, etc. 3 execution environment configuration.
图18是用于说明JAVA(注册商标)应用程序的执行环境的图。FIG. 18 is a diagram for explaining an execution environment of a JAVA (registered trademark) application.
若对这种环境适用专利文献1、2记载的发明,则如图18(a)所示,可以限制OS资源中JVM使用的资源量。If the invention described in Patent Documents 1 and 2 is applied to such an environment, as shown in FIG. 18( a ), the resource amount used by JVM among OS resources can be limited.
在JVM上,有时并行执行多个JAVA(注册商标)分类设置。此时,即便能限制JVM使用的资源量,在JVM上,JAVA(注册商标)分类设置也可在其限制范围内自由地使用资源。因此,若某个JAVA(注册商标)分类设置使用资源至JVM可使用的上限值附近,则产生其它JAVA(注册商标)分类设置不能执行、动作变得不稳定的问题。On the JVM, a plurality of JAVA (registered trademark) class settings are sometimes executed in parallel. In this case, even if the amount of resources used by the JVM can be limited, the JAVA (registered trademark) classification setting on the JVM can freely use resources within its limited range. Therefore, if a certain JAVA (registered trademark) category setting uses resources near the upper limit value that can be used by the JVM, other JAVA (registered trademark) category settings cannot be executed and the operation becomes unstable.
JAVA(注册商标)分类设置由于在其执行中需要JVM,所以不能在OS上直接执行。因此,若适用专利文献1、2记载的发明来限制各JAVA(注册商标)分类设置使用的资源量,则如图18(b)所示,只能对一个JAVA(注册商标)分类设置分别执行JVM。但是,在这种执行方法中,伴随JAVA(注册商标)分类设置的增加,JVM也增加,资源的使用量作为整体增大,不现实。Since the JAVA (registered trademark) class setting requires a JVM for its execution, it cannot be directly executed on the OS. Therefore, if the invention described in Patent Documents 1 and 2 is applied to limit the amount of resources used by each JAVA (registered trademark) category setting, as shown in FIG. 18(b), only one JAVA (registered trademark) category setting can be executed separately. JVM. However, in such an execution method, as JAVA (registered trademark) classification settings increase, JVMs also increase, and resource usage increases as a whole, which is unrealistic.
另外,在除JAVA(注册商标)分类设置自身使用的资源量外,JVM在该JAVA(注册商标)分类设置的执行中使用的资源量也大的情况下,产生上述同样的问题。例如,与同时生成多个实例的JAVA(注册商标)分类设置一致,JVM为了生成实例而使用大量的资源量。In addition, when the amount of resources used by the JVM for execution of the JAVA (registered trademark) category setting is large in addition to the amount of resources used by the JAVA (registered trademark) category setting itself, the same problem as described above occurs. For example, in accordance with the JAVA (registered trademark) classification setting that simultaneously generates a plurality of instances, the JVM uses a large amount of resources to generate instances.
发明内容 Contents of the invention
因此,本发明着眼于这种现有技术具有的未解决的课题而做出,其目的在于提供一种适于降低软件动作变得不稳定的可能性、同时抑制资源使用量增加之资源管理系统、打印机、打印机用网卡和资源管理程序及资源管理方法。Therefore, the present invention has been made focusing on such unsolved problems in the prior art, and an object of the present invention is to provide a resource management system suitable for reducing the possibility of software operation becoming unstable and suppressing an increase in resource usage. , printer, network card for printer, resource management program and resource management method.
[方式1]为了实现上述目的,方式1的资源管理系统,管理第1功能模块和多个第2功能模块所使用的资源,在所述第2功能模块的执行中需要所述第1功能模块,其特征在于,具备:[Mode 1] In order to achieve the above object, the resource management system of Mode 1 manages resources used by a first functional module and a plurality of second functional modules, and the first functional module is required for execution of the second functional module. , characterized by having:
第1资源限制部件,其限制所述第1功能模块和所述多个第2功能模块整体使用的资源量;资源限制信息取得部件,其取得表示资源的限制条件的资源限制信息;和第2资源限制部件,其根据由所述资源限制信息取得部件取得的资源限制信息,限制所述多个第2功能模块中至少一个使用的资源量。a first resource limiting unit that limits the amount of resources used by the first functional module and the plurality of second functional modules as a whole; a resource limitation information acquisition unit that acquires resource limitation information indicating resource limitation conditions; and a second A resource limiting unit that limits the amount of resources used by at least one of the plurality of second functional modules based on the resource limitation information acquired by the resource limitation information acquisition unit.
根据这种构成,利用第1资源限制部件,限制第1功能模块和多个第2功能模块整体使用的资源量。另外,利用资源限制信息取得部件,取得资源限制信息,利用第2资源限制部件,根据取得的资源限制信息,限制多个第2功能模块中至少一个使用的资源量According to such a configuration, the amount of resources used by the first functional module and the plurality of second functional modules as a whole is restricted by the first resource limiting means. In addition, resource restriction information is obtained by using the resource restriction information obtaining part, and the amount of resources used by at least one of the plurality of second functional modules is restricted by the second resource restriction part based on the obtained resource restriction information
由此,由于可在由第1功能模块和多个第2功能模块整体限制资源量的同时,还由第2功能模块单位来限制资源量,所以与以前相比,得到可降低软件的动作由于资源不足等原因而变得不稳定的可能性之效果。另外,由于以第2功能模块单位来限制资源量,所以即便不执行多个第1功能模块也行,故与以前相比,还得到可抑制资源使用量增加的效果。As a result, since the amount of resources can be restricted by the first functional module and the plurality of second functional modules as a whole, the amount of resources can also be restricted by the unit of the second functional module, so compared with the past, it is possible to reduce the operation of the software. The effect of the possibility of becoming unstable due to insufficient resources, etc. In addition, since the amount of resources is limited in units of second functional modules, it is not necessary to execute a plurality of first functional modules, so that an increase in the amount of resource usage can be suppressed compared to conventional ones.
在此,所谓资源是指软件可使用的资源,不限于硬件资源,还包含软件资源等资源。另外,也指为了使功能模块动作所需的执行环境提供的资源。下面,方式3的资源管理系统、方式6和8的打印机、方式11和13的打印机用网卡、方式16和18的资源管理程序以及方式21、22、24和25的资源管理方法也一样。Here, the so-called resources refer to resources that can be used by software, and are not limited to hardware resources, but also include resources such as software resources. In addition, it also refers to the resources provided by the execution environment required to operate the functional modules. The same applies to the resource management system of mode 3, printers of modes 6 and 8, network cards for printers of modes 11 and 13, resource management programs of modes 16 and 18, and resource management methods of modes 21, 22, 24 and 25.
另外,作为资源量,例如包含功能模块使用的存储器量、或可启动的功能模块的数量。另外,例如包含利用功能模块的应用程序确保的资源量(存储器量、功能模块数量)。下面,方式3的资源管理系统、方式6和8的打印机、方式11和13的打印机用网卡、方式16和18的资源管理程序以及方式21、22、24和25的资源管理方法也一样。In addition, the amount of resources includes, for example, the amount of memory used by the functional modules and the number of activatable functional modules. In addition, for example, the amount of resources (the amount of memory, the number of functional modules) secured by the application using the functional modules is included. The same applies to the resource management system of mode 3, printers of modes 6 and 8, network cards for printers of modes 11 and 13, resource management programs of modes 16 and 18, and resource management methods of modes 21, 22, 24 and 25.
另外,作为资源的限制条件,例如可设定资源的上限值。下面,方式3的资源管理系统、方式6和8的打印机、方式11和13的打印机用网卡、方式16和18的资源管理程序以及方式21、22、24和25的资源管理方法也一样。In addition, as the restriction condition of resources, for example, an upper limit value of resources may be set. The same applies to the resource management system of mode 3, printers of modes 6 and 8, network cards for printers of modes 11 and 13, resource management programs of modes 16 and 18, and resource management methods of modes 21, 22, 24 and 25.
另外,作为使用资源,例如包含确保资源。下面,方式3的资源管理系统、方式6和8的打印机、方式11和13的打印机用网卡、方式16和18的资源管理程序以及方式21、22、24和25的资源管理方法也一样。In addition, secured resources are included, for example, as used resources. The same applies to the resource management system of mode 3, printers of modes 6 and 8, network cards for printers of modes 11 and 13, resource management programs of modes 16 and 18, and resource management methods of modes 21, 22, 24 and 25.
另外,作为管理资源,例如包含限制资源。另外,作为限制资源,例如包含不执行超过绝对量的资源确保,以不超过某个特定的绝对量。具体而言,包含如下一连串处理,即捕捉资源使用动作,测定正在使用的资源量,累计资源量,比较资源限制值与累计值,并判定资源的使用允许,在不允许的情况下,不进行资源确保,在允许的情况下,进行资源确保。下面,方式3的资源管理系统、方式6和8的打印机、方式11和13的打印机用网卡、方式16和18的资源管理程序以及方式21、22、24和25的资源管理方法也一样。In addition, as management resources, for example, limit resources are included. In addition, limiting resources includes, for example, not performing resource securing exceeding an absolute amount so as not to exceed a certain absolute amount. Specifically, it includes the following series of processes, that is, capturing resource usage actions, measuring the amount of resources being used, accumulating the amount of resources, comparing the resource limit value with the accumulated value, and judging that the resource usage is allowed, and not proceeding if it is not allowed. Resource assurance, where allowed, resource assurance. The same applies to the resource management system of mode 3, printers of modes 6 and 8, network cards for printers of modes 11 and 13, resource management programs of modes 16 and 18, and resource management methods of modes 21, 22, 24 and 25.
另外,资源限制信息取得部件只要取得资源限制信息,则可以是任意构成,例如可以从输入装置等输入资源限制信息,可从外部的装置等获得或接收资源限制信息,可从存储装置或存储介质等读出资源限制信息,可从软件等数据中抽取资源限制信息。因此,取得中至少包含输入、获得、接收、读出和抽取。下面,方式3的资源管理系统、方式6和8的打印机、及方式11和13的打印机用网卡也一样。In addition, the resource restriction information obtaining means may have any configuration as long as it obtains the resource restriction information. For example, the resource restriction information may be input from an input device or the like, the resource restriction information may be obtained or received from an external device, etc., or the resource restriction information may be obtained from a storage device or a storage medium. The resource limitation information can be extracted from data such as software by reading out the resource limitation information. Therefore, acquisition includes at least input, acquisition, reception, reading, and extraction. Next, the same applies to the resource management system of mode 3, the printers of modes 6 and 8, and the network cards for printers of modes 11 and 13.
另外,作为取得资源限制信息,例如包含从设定文件取得资源限制的绝对值。下面,方式3的资源管理系统、方式6和8的打印机、方式11和13的打印机用网卡、方式16和18的资源管理程序以及方式21、22、24和25的资源管理方法也一样。In addition, acquisition of the resource limit information includes, for example, acquisition of the absolute value of the resource limit from a configuration file. The same applies to the resource management system of mode 3, printers of modes 6 and 8, network cards for printers of modes 11 and 13, resource management programs of modes 16 and 18, and resource management methods of modes 21, 22, 24 and 25.
另外,所谓功能模块是指实现一个功能需要的程序。下面,方式3的资源管理系统、方式6和8的打印机、方式11和13的打印机用网卡、方式16和18的资源管理程序以及方式21、22、24和25的资源管理方法也一样。In addition, the so-called functional module refers to a program required to realize a function. The same applies to the resource management system of mode 3, printers of modes 6 and 8, network cards for printers of modes 11 and 13, resource management programs of modes 16 and 18, and resource management methods of modes 21, 22, 24 and 25.
另外,所谓在第2功能模块的执行中需要第1功能模块是指例如在第2功能模块执行中调用第1功能模块,或在第2功能模块执行中利用第1功能模块。下面,方式3的资源管理系统、方式6和8的打印机、方式11和13的打印机用网卡、方式16和18的资源管理程序以及方式21、22、24和25的资源管理方法也一样。In addition, the need for the first function module to execute the second function module means, for example, to call the first function module during execution of the second function module, or to use the first function module during execution of the second function module. The same applies to the resource management system of mode 3, printers of modes 6 and 8, network cards for printers of modes 11 and 13, resource management programs of modes 16 and 18, and resource management methods of modes 21, 22, 24 and 25.
另外,该系统也可作为单一装置、终端等设备来实现,或以可通信的方式连接多个装置、终端等设备的网络系统来实现。在后者的情况下,只要各构成要素分别可通信地连接,则可属于多个设备等中的任一设备。下面,方式3的资源管理系统也一样。In addition, this system may be realized as a single device, terminal, etc., or as a network system in which a plurality of devices, terminals, etc. are connected in a communicable manner. In the latter case, each component may belong to any one of a plurality of devices as long as they are communicably connected. Next, the resource management system of the mode 3 is also the same.
[方式2]进而,方式2的资源管理系统,就方式1的资源管理系统而言,其特征在于:[Form 2] Furthermore, the resource management system of form 2 is characterized in that:
由所述第2资源限制部件限制的资源量是所述第2功能模块使用的资源量和所述第1功能模块在该第2功能模块的执行中使用的资源量。The amount of resources restricted by the second resource limiting means is the amount of resources used by the second functional module and the amount of resources used by the first functional module in execution of the second functional module.
根据这种构成,利用第2资源限制部件,限制第2功能模块使用的资源量、和第1功能模块在该第2功能模块的执行中使用的资源量。According to such a configuration, the amount of resources used by the second function module and the amount of resources used by the first function module for execution of the second function module are restricted by the second resource limiting means.
由此,因为可以第2功能模块单位来限制第1功能模块使用的资源量,所以得到可进一步降低软件的动作因资源不足等原因而变得不稳定的可能性之效果。As a result, since the amount of resources used by the first functional module can be limited in units of the second functional module, the possibility of software operation becoming unstable due to resource shortage or the like can be further reduced.
[方式3]进而,方式3的资源管理系统,管理第1功能模块和多个第2功能模块所使用的资源,在所述第2功能模块的执行中需要所述第1功能模块,其特征在于,具备:[Mode 3] Furthermore, the resource management system of Mode 3 manages resources used by a first functional module and a plurality of second functional modules, and the first functional module is required for execution of the second functional module, and is characterized in that In that, have:
资源限制信息取得部件,其取得表示资源的限制条件的资源限制信息;和资源限制部件,其根据由所述资源限制信息取得部件取得的资源限制信息,限制所述第1功能模块在所述第2功能模块的执行中使用的资源量。a resource restriction information obtaining unit that obtains resource restriction information indicating a resource restriction condition; and a resource restriction unit that restricts the first functional module from operating in the first function module based on the resource restriction information obtained by the resource restriction information obtaining unit. 2 The amount of resources used in the execution of the function module.
根据这种构成,利用资源限制信息取得部件,取得资源限制信息,利用资源限制部件,根据取得的资源限制信息,限制第1功能模块在第2功能模块的执行中使用的资源量。According to this configuration, the resource restriction information obtaining means acquires the resource restriction information, and the resource restriction means restricts the amount of resources used by the first functional module for execution of the second functional module based on the obtained resource restriction information.
由此,因为可以第2功能模块单位来限制第1功能模块使用的资源量,所以与以前相比,得到可降低软件的动作因资源不足等原因而变得不稳定的可能性之效果。另外,因为以第2功能模块单位来限制资源量,所以即便不执行多个第1功能模块也行,故与以前相比,还得到可抑制资源的使用量增加的效果。As a result, since the amount of resources used by the first functional module can be limited in units of the second functional module, the possibility of software operation becoming unstable due to lack of resources or the like can be reduced compared to conventional ones. In addition, since the amount of resources is limited in units of second functional modules, it is not necessary to execute a plurality of first functional modules, so that an increase in resource usage can be suppressed compared to conventional ones.
[方式4]进而,方式4的资源管理系统,就方式3的资源管理系统而言,其特征在于:[Form 4] Furthermore, the resource management system of Mode 4 is characterized in that:
由所述资源限制部件限制的资源量是所述第2功能模块使用的资源量和所述第1功能模块在该第2功能模块的执行中使用的资源量。The amount of resources restricted by the resource limiting means is the amount of resources used by the second functional module and the amount of resources used by the first functional module in execution of the second functional module.
根据这种构成,利用资源限制部件,限制第2功能模块使用的资源量、和第1功能模块在该第2功能模块的执行中使用的资源量。According to such a configuration, the amount of resources used by the second functional module and the amount of resources used by the first functional module to execute the second functional module are restricted by the resource limiting means.
[方式5]进而,方式5的资源管理系统,就方式1~4的任一项的资源管理系统而言,其特征在于:[Aspect 5] Furthermore, the resource management system of
所述第2功能模块由1个或多个JAVA(注册商标)分类构成,The second functional module is composed of one or more JAVA (registered trademark) categories,
所述第1功能模块是控制所述JAVA(注册商标)分类的执行的执行控制应用程序。The first functional module is an execution control application that controls execution of the JAVA (registered trademark) class.
根据这种构成,限制JAVA(注册商标)分类使用的资源量、或执行控制应用程序在JAVA(注册商标)分类的执行中使用的资源量。According to this configuration, the amount of resources used by the JAVA (registered trademark) class or the amount of resources used by the execution control application to execute the JAVA (registered trademark) class is limited.
由此,得到所谓可降低在JAVA(注册商标)应用程序的执行环境下软件的动作因资源不足等原因而变得不稳定的可能性之效果。This provides an effect of reducing the possibility of software operation becoming unstable due to lack of resources or the like in the execution environment of the JAVA (registered trademark) application program.
在此,所谓JAVA(注册商标)分类,是指汇总JAVA(注册商标)语言中的数据与作为其操作步骤的方法(函数)的程序。另外,所谓JAVA(注册商标)是利用虚拟机的执行环境,适用于被称为在OS上动作的虚拟机的分类。下面,方式10的打印机、方式15的打印机用网卡、方式20的资源管理程序以及方式27的资源管理方法也一样。Here, the JAVA (registered trademark) class refers to a program that summarizes data in the JAVA (registered trademark) language and methods (functions) as its operation steps. In addition, JAVA (registered trademark) is an execution environment using a virtual machine, and is applicable to a classification called a virtual machine operating on an OS. The same applies to the printer of the tenth form, the network card for the printer of the fifteenth form, the resource management program of the twenty-first form, and the resource management method of the twenty-seventh form.
另外,所谓应用程序是指由多个JAVA(注册商标)分类构成的提供特定功能之程序。下面,方式10的打印机、方式15的打印机用网卡、方式20的资源管理程序以及方式27的资源管理方法也一样。In addition, the so-called application program refers to a program that provides a specific function and is composed of a plurality of JAVA (registered trademark) categories. The same applies to the printer of the tenth form, the network card for the printer of the fifteenth form, the resource management program of the twenty-first form, and the resource management method of the twenty-seventh form.
[方式6]另一方面,为了实现上述目的,方式6的打印机管理第1功能模块和多个第2功能模块所使用的资源,在所述第2功能模块的执行中需要所述第1功能模块,其特征在于,具备:[Mode 6] On the other hand, in order to achieve the above object, the printer according to Mode 6 manages resources used by a first function module and a plurality of second function modules, and the first function is required for execution of the second function module. The module is characterized in that it has:
第1资源限制部件,其限制所述第1功能模块和所述多个第2功能模块整体使用的资源量;资源限制信息取得部件,其取得表示资源的限制条件的资源限制信息;和第2资源限制部件,其根据由所述资源限制信息取得部件取得的资源限制信息,限制所述多个第2功能模块中至少一个使用的资源量。a first resource limiting unit that limits the amount of resources used by the first functional module and the plurality of second functional modules as a whole; a resource limitation information acquisition unit that acquires resource limitation information indicating resource limitation conditions; and a second A resource limiting unit that limits the amount of resources used by at least one of the plurality of second functional modules based on the resource limitation information acquired by the resource limitation information acquisition unit.
根据这种构成,得到与方式1的资源管理系统相同的作用和效果。According to this configuration, the same operations and effects as those of the resource management system of the first embodiment are obtained.
[方式7]进而,方式7的打印机就方式6的打印机而言,其特征在于:[Form 7] Furthermore, the printer of Form 7 is characterized in that:
由所述第2资源限制部件限制的资源量是所述第2功能模块使用的资源量和所述第1功能模块在该第2功能模块的执行中使用的资源量。The amount of resources restricted by the second resource limiting means is the amount of resources used by the second functional module and the amount of resources used by the first functional module in execution of the second functional module.
根据这种构成,得到与方式2的资源管理系统相同的作用和效果。According to this configuration, the same operations and effects as those of the resource management system of Embodiment 2 are obtained.
[方式8]进而,方式8的打印机,管理第1功能模块和多个第2功能模块所使用的资源,在所述第2功能模块的执行中需要所述第1功能模块,其特征在于,具备:[Aspect 8] Furthermore, the printer according to Aspect 8 manages resources used by a first functional module and a plurality of second functional modules, and the first functional module is required for execution of the second functional module, wherein: have:
资源限制信息取得部件,其取得表示资源的限制条件的资源限制信息;和资源限制部件,其根据由所述资源限制信息取得部件取得的资源限制信息,限制所述第1功能模块在所述第2功能模块的执行中使用的资源量。a resource restriction information obtaining unit that obtains resource restriction information indicating a resource restriction condition; and a resource restriction unit that restricts the first functional module from operating in the first function module based on the resource restriction information obtained by the resource restriction information obtaining unit. 2 The amount of resources used in the execution of the function module.
根据这种构成,得到与方式3的资源管理系统相同的作用和效果。According to this configuration, the same operations and effects as those of the resource management system of the third embodiment are obtained.
[方式9]进而,方式9的打印机,就方式8的打印机而言,其特征在于:[Form 9] Furthermore, the printer of Form 9 is characterized in that:
由所述资源限制部件限制的资源量是所述第2功能模块使用的资源量和所述第1功能模块在该第2功能模块的执行中使用的资源量。The amount of resources restricted by the resource limiting means is the amount of resources used by the second functional module and the amount of resources used by the first functional module in execution of the second functional module.
根据这种构成,得到与方式4的资源管理系统相同的作用和效果。According to this configuration, the same operations and effects as those of the resource management system of the embodiment 4 are obtained.
[方式10]进而,方式10的打印机,就方式6~9的任一项的打印机而言,其特征在于:[Aspect 10] Furthermore, the printer according to Aspect 10 is characterized in that:
所述第2功能模块由1个或多个JAVA(注册商标)分类构成,The second functional module is composed of one or more JAVA (registered trademark) categories,
所述第1功能模块是控制所述JAVA(注册商标)分类的执行的执行控制应用程序。The first functional module is an execution control application that controls execution of the JAVA (registered trademark) class.
根据这种构成,得到与方式5的资源管理系统相同的作用和效果。According to this configuration, the same operations and effects as those of the resource management system of
[方式11]另一方面,为了实现上述目的,方式11的打印机用网卡,管理第1功能模块和多个第2功能模块所使用的资源,在所述第2功能模块的执行中需要所述第1功能模块,其特征在于,具备:[Mode 11] On the other hand, in order to achieve the above object, the printer network card of Mode 11 manages the resources used by the first functional module and a plurality of second functional modules, and the above-mentioned The first functional module is characterized in that it has:
第1资源限制部件,其限制所述第1功能模块和所述多个第2功能模块整体使用的资源量;资源限制信息取得部件,其取得表示资源的限制条件的资源限制信息;和第2资源限制部件,其根据由所述资源限制信息取得部件取得的资源限制信息,限制所述多个第2功能模块中至少一个使用的资源量。a first resource limiting unit that limits the amount of resources used by the first functional module and the plurality of second functional modules as a whole; a resource limitation information acquisition unit that acquires resource limitation information indicating resource limitation conditions; and a second A resource limiting unit that limits the amount of resources used by at least one of the plurality of second functional modules based on the resource limitation information acquired by the resource limitation information acquisition unit.
根据这种构成,若将打印机用网卡安装在打印机上,则得到与方式1的资源管理系统相同的作用和效果。According to this configuration, if the network card for the printer is installed in the printer, the same operations and effects as those of the resource management system of the first mode can be obtained.
[方式12]进而,方式12的打印机用网卡,就方式11的打印机用网卡而言,其特征在于:[Mode 12] Furthermore, the network card for printers of mode 12 is characterized in that:
由所述第2资源限制部件限制的资源量是所述第2功能模块使用的资源量和所述第1功能模块在该第2功能模块的执行中使用的资源量。The amount of resources restricted by the second resource limiting means is the amount of resources used by the second functional module and the amount of resources used by the first functional module in execution of the second functional module.
根据这种构成,若将打印机用网卡安装在打印机上,则得到与方式2的资源管理系统相同的作用和效果。According to this configuration, if the network card for the printer is installed in the printer, the same operations and effects as those of the resource management system of Embodiment 2 can be obtained.
[方式13]进而,方式13的打印机用网卡,管理第1功能模块和多个第2功能模块所使用的资源,在所述第2功能模块的执行中需要所述第1功能模块,其特征在于,具备:[Mode 13] Furthermore, the network card for a printer according to Mode 13 manages resources used by a first functional module and a plurality of second functional modules, and the first functional module is required for execution of the second functional module, and is characterized in that In that, have:
资源限制信息取得部件,其取得表示资源的限制条件的资源限制信息;和资源限制部件,其根据由所述资源限制信息取得部件取得的资源限制信息,限制所述第1功能模块在所述第2功能模块的执行中使用的资源量。a resource restriction information obtaining unit that obtains resource restriction information indicating a resource restriction condition; and a resource restriction unit that restricts the first functional module from operating in the first function module based on the resource restriction information obtained by the resource restriction information obtaining unit. 2 The amount of resources used in the execution of the function module.
根据这种构成,若将打印机用网卡安装在打印机上,则得到与方式3的资源管理系统相同的作用和效果。According to this configuration, if the network card for the printer is installed in the printer, the same operations and effects as those of the resource management system of the third embodiment can be obtained.
[方式14]进而,方式14的打印机用网卡,就方式13的打印机用网卡而言,其特征在于:[Form 14] Furthermore, the network card for a printer of the form 14 is characterized in that:
由所述资源限制部件限制的资源量是所述第2功能模块使用的资源量和所述第1功能模块在该第2功能模块的执行中使用的资源量。The amount of resources restricted by the resource limiting means is the amount of resources used by the second functional module and the amount of resources used by the first functional module in execution of the second functional module.
根据这种构成,若将打印机用网卡安装在打印机上,则得到与方式4的资源管理系统相同的作用和效果。According to this configuration, if the network card for the printer is installed in the printer, the same operations and effects as those of the resource management system of Embodiment 4 can be obtained.
[方式15]进而,方式15的打印机用网卡,就方式11~14的任一项的打印机用网卡而言,其特征在于:[Form 15] Furthermore, the network card for a printer of the form 15 is characterized in that:
所述第2功能模块由1个或多个JAVA(注册商标)分类构成,The second functional module is composed of one or more JAVA (registered trademark) categories,
所述第1功能模块是控制所述JAVA(注册商标)分类的执行的执行控制应用程序。The first functional module is an execution control application that controls execution of the JAVA (registered trademark) class.
根据这种构成,若将打印机用网卡安装在打印机上,则得到与方式5的资源管理系统相同的作用和效果。According to this configuration, if the network card for the printer is installed in the printer, the same operations and effects as those of the resource management system of
[方式16]另一方面,为了实现上述目的,方式16的资源管理程序,管理第1功能模块和多个第2功能模块所使用的资源,在所述第2功能模块的执行中需要所述第1功能模块,其特征在于:包含让计算机执行由如下步骤构成的处理之程序:[Form 16] On the other hand, in order to achieve the above object, the resource management program of Form 16 manages resources used by the first functional module and a plurality of second functional modules, and the above-described The first functional module is characterized in that it includes a program for causing a computer to execute processing consisting of the following steps:
第1资源限制步骤,其限制所述第1功能模块和所述多个第2功能模块整体使用的资源量;资源限制信息取得步骤,其取得表示资源的限制条件的资源限制信息;和第2资源限制步骤,其根据由所述资源限制信息取得步骤取得的资源限制信息,限制所述第2功能模块中至少一个使用的资源量。a first resource limitation step of limiting the amount of resources used by the first functional module and the plurality of second functional modules as a whole; a resource limitation information acquisition step of acquiring resource limitation information indicating resource limitation conditions; and a second A resource limiting step of limiting the amount of resources used by at least one of the second functional modules based on the resource limitation information acquired in the resource limitation information acquisition step.
根据这种构成,若由计算机读取程序,根据读取到的程序,计算机执行处理,则得到与方式1的资源管理系统相同的作用和效果。According to this configuration, when the program is read by the computer, and the computer executes processing based on the read program, the same operations and effects as those of the resource management system of Embodiment 1 are obtained.
在此,资源限制信息取得步骤只要取得资源限制信息,则可以是任意方式,例如,可从输入装置等输入资源限制信息,可从外部的装置等获得或接收资源限制信息,可从存储装置或存储介质等读出资源限制信息,可从软件等数据中抽取资源上限信息。因此,取得中至少包含输入、获得、接收、读出和抽取。下面,方式18的资源管理程序及方式21、22、24和25的资源管理方法也一样。Here, the resource restriction information obtaining step may be in any form as long as the resource restriction information is obtained. For example, the resource restriction information may be input from an input device, etc., the resource restriction information may be obtained or received from an external device, etc., or the resource restriction information may be obtained from a storage device or The resource limit information can be read out from the storage medium, etc., and the resource upper limit information can be extracted from data such as software. Therefore, acquisition includes at least input, acquisition, reception, reading, and extraction. The same applies to the resource management program of Embodiment 18 and the resource management methods of Embodiments 21, 22, 24, and 25.
[方式17]进而,方式17的资源管理程序就方式16的资源管理程序而言,其特征在于:[Form 17] Furthermore, the resource management program of the form 17 is characterized in that:
由所述第2资源限制步骤限制的资源量是所述第2功能模块使用的资源量和所述第1功能模块在该第2功能模块的执行中使用的资源量。The amount of resources limited by the second resource limiting step is the amount of resources used by the second function module and the amount of resources used by the first function module in execution of the second function module.
根据这种构成,若由计算机读取程序,根据读取到的程序,计算机执行处理,则得到与方式2的资源管理系统相同的作用和效果。According to this configuration, when the program is read by the computer, and the computer executes processing based on the read program, the same operations and effects as those of the resource management system of the second embodiment are obtained.
[方式18]进而,方式18的资源管理程序,管理第1功能模块和多个第2功能模块所使用的资源,在所述第2功能模块的执行中需要所述第1功能模块,其特征在于:包含让计算机执行由如下步骤构成的处理之程序:[Mode 18] Furthermore, the resource management program according to the mode 18 manages resources used by a first functional module and a plurality of second functional modules, and the first functional module is required for execution of the second functional module, and is characterized in that Contains a program that causes a computer to execute processing consisting of the following steps:
资源限制信息取得步骤,其取得表示资源的限制条件的资源限制信息;和资源限制步骤,其根据由所述资源限制信息取得步骤取得的资源限制信息,限制所述第1功能模块在所述第2功能模块的执行中使用的资源量。a resource restriction information obtaining step of obtaining resource restriction information indicating a resource restriction condition; and a resource restriction step of restricting the first functional module from operating in the first functional module based on the resource restriction information obtained in the resource restriction information obtaining step. 2 The amount of resources used in the execution of the function module.
根据这种构成,若由计算机读取程序,根据读取到的程序,计算机执行处理,则得到与方式3的资源管理系统相同的作用和效果。According to this configuration, when the program is read by the computer, and the computer executes processing based on the read program, the same operations and effects as those of the resource management system of the third embodiment can be obtained.
[方式19]进而,方式19的资源管理程序就方式18的资源管理程序而言,其特征在于:[Aspect 19] Furthermore, the resource management program of the aspect 19 is characterized in that:
由所述资源限制步骤限制的资源量是所述第2功能模块使用的资源量和所述第1功能模块在该第2功能模块的执行中使用的资源量。The amount of resources limited by the resource limiting step is the amount of resources used by the second function module and the amount of resources used by the first function module in execution of the second function module.
根据这种构成,若由计算机读取程序,根据读取到的程序,计算机执行处理,则得到与方式4的资源管理系统相同的作用和效果。According to this configuration, when the program is read by the computer, and the computer executes processing based on the read program, the same operations and effects as those of the resource management system of Embodiment 4 are obtained.
[方式20]再有,方式20的资源管理程序就方式16~19的任一项的资源管理程序而言,其特征在于:[Mode 20] Furthermore, the resource management program according to
所述第2功能模块由1个或多个JAVA(注册商标)分类构成,The second functional module is composed of one or more JAVA (registered trademark) categories,
所述第1功能模块是控制所述JAVA(注册商标)分类的执行的执行控制应用程序。The first functional module is an execution control application that controls execution of the JAVA (registered trademark) class.
根据这种构成,若由计算机读取程序,根据读取到的程序,计算机执行处理,则得到与方式5的资源管理系统相同的作用和效果。According to this configuration, when the program is read by the computer, and the computer executes processing based on the read program, the same operations and effects as those of the resource management system of the fifth embodiment can be obtained.
[方式21]另一方面,为了实现上述目的,方式21的资源管理方法,管理第1功能模块和多个第2功能模块所使用的资源,在所述第2功能模块的执行中需要所述第1功能模块,其特征在于:包含[Mode 21] On the other hand, in order to achieve the above object, the resource management method of Mode 21 manages the resources used by the first functional module and a plurality of second functional modules, and the above-mentioned The first functional module is characterized in that: comprising
第1资源限制步骤,其限制所述第1功能模块和所述多个第2功能模块整体使用的资源量;资源限制信息取得步骤,其取得表示资源的限制条件的资源限制信息;和第2资源限制步骤,其根据由所述资源限制信息取得步骤取得的资源限制信息,限制所述多个第2功能模块中至少一个使用的资源量。a first resource limitation step of limiting the amount of resources used by the first functional module and the plurality of second functional modules as a whole; a resource limitation information acquisition step of acquiring resource limitation information indicating resource limitation conditions; and a second A resource limiting step of limiting the amount of resources used by at least one of the plurality of second functional modules based on the resource limitation information acquired in the resource limitation information acquisition step.
由此,得到与方式1的资源管理系统相同的效果。Thereby, the same effect as that of the resource management system of Embodiment 1 is obtained.
[方式22]进而,方式22的资源管理方法管理第1功能模块和多个第2功能模块所使用的资源,在所述第2功能模块的执行中需要所述第1功能模块,其特征在于:包含[Form 22] Furthermore, the resource management method of Form 22 manages resources used by a first functional module and a plurality of second functional modules, and the first functional module is required for execution of the second functional module, wherein :Include
第1资源限制步骤,由第1资源限制部件所述第1功能模块和所述多个第2功能模块整体使用的资源量;In the first resource limiting step, the amount of resources used by the first functional module and the plurality of second functional modules as a whole by the first resource limiting component;
资源限制信息取得步骤,由上限值取得部件取得表示资源的限制条件的资源限制信息;和A resource limit information obtaining step, wherein the upper limit value obtaining means obtains resource limit information indicating a resource limit condition; and
第2资源限制步骤,由第2资源限制部件根据由所述资源限制信息取得步骤取得的资源限制信息,限制所述多个第2功能模块中至少一个使用的资源量。In the second resource limiting step, the second resource limiting means limits the amount of resources used by at least one of the plurality of second functional modules based on the resource limiting information acquired in the resource limiting information acquiring step.
由此,得到与方式1的资源管理系统相同的效果。Thereby, the same effect as that of the resource management system of Embodiment 1 is obtained.
[方式23]进而,方式23的资源管理方法,就方式21和22的任一项的资源管理方法而言,其特征在于:[Form 23] Furthermore, the resource management method of Form 23 is characterized by:
由所述第2资源限制步骤限制的资源量是所述第2功能模块使用的资源量和所述第1功能模块在该第2功能模块的执行中使用的资源量。The amount of resources limited by the second resource limiting step is the amount of resources used by the second function module and the amount of resources used by the first function module in execution of the second function module.
由此,得到与方式2的资源管理系统相同的效果。Thereby, the same effect as the resource management system of the form 2 is acquired.
[方式24]进而,方式24的资源管理方法管理第1功能模块和多个第2功能模块所使用的资源,在所述第2功能模块的执行中需要所述第1功能模块,其特征在于:包含[Form 24] Furthermore, the resource management method of Form 24 manages resources used by a first functional module and a plurality of second functional modules, and the first functional module is required for execution of the second functional module, wherein :Include
资源限制信息取得步骤,其取得表示资源的限制条件的资源限制信息;和资源限制步骤,其根据由所述资源限制信息取得步骤取得的资源限制信息,限制所述第1功能模块在所述第2功能模块的执行中使用的资源量。a resource restriction information obtaining step of obtaining resource restriction information indicating a resource restriction condition; and a resource restriction step of restricting the first functional module from operating in the first functional module based on the resource restriction information obtained in the resource restriction information obtaining step. 2 The amount of resources used in the execution of the function module.
由此,得到与方式3的资源管理系统相同的效果。Thereby, the same effect as that of the resource management system of Embodiment 3 is obtained.
[方式25]进而,方式25的资源管理方法,管理第1功能模块和多个第2功能模块所使用的资源,在所述第2功能模块的执行中需要所述第1功能模块,其特征在于:包含[Form 25] Furthermore, the resource management method of form 25 manages resources used by a first functional module and a plurality of second functional modules, and the first functional module is required for the execution of the second functional module, and is characterized in that in: contains
资源限制信息取得步骤,由上限值取得部件取得表示资源的限制条件的资源限制信息;和A resource limit information obtaining step, wherein the upper limit value obtaining means obtains resource limit information indicating a resource limit condition; and
资源限制步骤,由第2资源限制部件根据由所述资源限制信息取得步骤取得的资源限制信息,限制所述第1功能模块在所述第2功能模块的执行中使用的资源量。In the resource limiting step, the second resource limiting means limits the amount of resources used by the first function module for execution of the second function module based on the resource limitation information acquired in the resource limitation information acquisition step.
由此,得到与方式3的资源管理系统相同的效果。Thereby, the same effect as that of the resource management system of Embodiment 3 is obtained.
[方式26]进而,方式26的资源管理方法,就方式24和25的任一项的资源管理方法而言,其特征在于:[Form 26] Furthermore, the resource management method of Form 26 is characterized in that:
由所述资源限制步骤限制的资源量是所述第2功能模块使用的资源量和所述第1功能模块在该第2功能模块的执行中使用的资源量。The amount of resources limited by the resource limiting step is the amount of resources used by the second function module and the amount of resources used by the first function module in execution of the second function module.
由此,得到与方式4的资源管理系统相同的效果。Thereby, the same effect as that of the resource management system of Embodiment 4 is obtained.
[方式27]进而,方式27的资源管理方法,就方式21~26的任一项的资源管理方法而言,其特征在于:[Form 27] Furthermore, the resource management method of Form 27 is characterized in that:
所述第2功能模块由1个或多个JAVA(注册商标)分类构成,The second functional module is composed of one or more JAVA (registered trademark) categories,
所述第1功能模块是控制所述JAVA(注册商标)分类的执行的执行控制应用程序。The first functional module is an execution control application that controls execution of the JAVA (registered trademark) class.
由此,得到与方式5的资源管理系统相同的效果。Thereby, the same effect as that of the resource management system of
附图说明 Description of drawings
图1是表示JAVA(注册商标)软件的构成图。FIG. 1 is a diagram showing the configuration of JAVA (registered trademark) software.
图2是表示网络打印机100的功能概要的功能框图。FIG. 2 is a functional block diagram showing an outline of functions of the
图3是表示网络打印机100的硬件构成的框图。FIG. 3 is a block diagram showing the hardware configuration of the
图4是表示资源限制信息400的数据构造的图。FIG. 4 is a diagram showing a data structure of
图5是表示模块信息420的数据构造的图。FIG. 5 is a diagram showing the data structure of the
图6是表示执行环境信息登录表格440的数据构造的图。FIG. 6 is a diagram showing the data structure of the execution environment information registration table 440 .
图7是表示资源管理表格460的数据构造的图。FIG. 7 is a diagram showing the data structure of the resource management table 460 .
图8是表示事件听众(listener)表格480的数据构造的图。FIG. 8 is a diagram showing the data structure of the event listener table 480 .
图9是表示单独功能模块控制处理的流程图。FIG. 9 is a flowchart showing individual function module control processing.
图10是表示可否执行判定处理的流程图。FIG. 10 is a flowchart showing execution availability determination processing.
图11是表示模块启动处理的流程图。Fig. 11 is a flowchart showing module activation processing.
图12是表示事件听众登录处理的流程图。Fig. 12 is a flowchart showing event listener registration processing.
图13是表示分类读入处理的流程图。Fig. 13 is a flowchart showing classification reading processing.
图14是表示事件听众控制处理的流程图。Fig. 14 is a flowchart showing event listener control processing.
图15是表示事件听众执行处理的流程图。Fig. 15 is a flowchart showing event listener execution processing.
图16是表示实例删除处理的流程图。Fig. 16 is a flowchart showing instance deletion processing.
图17是表示并行执行构成资源管理对象的单独功能模块b、c的情况之时间图。Fig. 17 is a timing chart showing the parallel execution of individual function modules b and c constituting resource management objects.
图18是用于说明JAVA(注册商标)应用程序的执行环境的图。FIG. 18 is a diagram for explaining an execution environment of a JAVA (registered trademark) application.
图中:100-网络打印机,110-OS,120-共同功能模块,130-单独功能模块,10、16-资源测定部,12、20-资源限制部,14-单独功能模块管理部,18-上限值取得部,30-CPU,32-ROM,34-RAM,38-I/F,40-操作面板,42-存储装置,44-打印机发动机,400-资源限制信息,420-模块信息,440-执行环境信息登录表格,460-资源管理表格,480-事件听众表格In the figure: 100-network printer, 110-OS, 120-common function module, 130-individual function module, 10, 16-resource measurement department, 12, 20-resource limitation department, 14-individual function module management department, 18- Upper limit acquisition part, 30-CPU, 32-ROM, 34-RAM, 38-I/F, 40-operation panel, 42-storage device, 44-printer engine, 400-resource limitation information, 420-module information, 440-Enforcement Environment Information Login Form, 460-Resource Management Form, 480-Event Listener Form
具体实施方式 Detailed ways
实施方式1Embodiment 1
下面,参照附图来说明本发明的实施方式1。图1~图17是表示涉及本发明的资源管理系统、打印机、打印机网卡和资源管理程序及资源管理方法的实施方式1的图。Next, Embodiment 1 of the present invention will be described with reference to the drawings. 1 to 17 are diagrams showing Embodiment 1 of a resource management system, a printer, a printer network card, a resource management program, and a resource management method according to the present invention.
本实施方式如图2所示,在管理于JAVA(注册商标)应用程序的执行环境下、JAVA(注册商标)分类设置使用的资源的情况下,适用本发明的资源管理系统、打印机、打印机网卡和资源管理程序及资源管理方法。In this embodiment, as shown in FIG. 2, in the case of managing the resources used in the JAVA (registered trademark) application program execution environment and the JAVA (registered trademark) classification settings, the resource management system, printer, and printer network card of the present invention are applicable. And resource management procedures and resource management methods.
首先,说明适用本发明的网络打印机100的功能概要。First, an outline of the functions of the
图1是表示JAVA(注册商标)软件的构成图。FIG. 1 is a diagram showing the configuration of JAVA (registered trademark) software.
在JAVA(注册商标)应用程序的执行环境下,在OS上执行控制JAVA(注册商标)分类设置的执行之JAVA(注册商标)分类和JVM构成的共同功能模块,在共同功能模块上执行作为JAVA(注册商标)分类设置的单独功能模块。在此,JAVA(注册商标)软件由共同功能模块和单独功能模块构成。In the execution environment of the JAVA (registered trademark) application program, the common function module composed of the JAVA (registered trademark) category and the JVM that controls the execution of the JAVA (registered trademark) category setting is executed on the OS, and is executed on the common function module as JAVA (registered trademark) separate function modules for classification settings. Here, the JAVA (registered trademark) software is composed of common function modules and individual function modules.
共同功能模块如图1所示,可执行多个单独功能模块。在图1的实例中,示出在共同功能模块a上执行两个单独功能模块b、c的情况。在此,在将单独功能模块b使用的资源量设为x1、共同功能模块a在单独功能模块b执行中使用的资源量设为x2、单独功能模块b可使用的资源上限值为Xmax的情况下,在本实施方式中,限制资源量,使x1+x2≤Xmax。As shown in Figure 1, the common function module can execute multiple individual function modules. In the example of FIG. 1 , the case where two individual function modules b, c are executed on a common function module a is shown. Here, when the amount of resources used by the individual function module b is set to x1, the amount of resources used by the common function module a in the execution of the individual function module b is set to x2, and the upper limit of resources that can be used by the individual function module b is Xmax In this case, in this embodiment, the amount of resources is limited so that x1+x2≦Xmax.
图2是表示网络打印机100的功能概要的功能框图。FIG. 2 is a functional block diagram showing an outline of functions of the
网络打印机100如图2所示,具有OS110、共同功能模块120和多个单独功能模块130。As shown in FIG. 2 , the
OS110具有测定JAVA(注册商标)软件使用的资源量的资源测定部10、和限制JAVA(注册商标)软件整体使用的资源量的资源限制部12。The OS 110 includes a resource measuring unit 10 that measures the amount of resources used by JAVA (registered trademark) software, and a resource limiting unit 12 that limits the amount of resources used by the entire JAVA (registered trademark) software.
资源限制部12限制JAVA(注册商标)软件使用的资源,以使资源测定部10测定到的资源量不足分配给JAVA(注册商标)软件的规定上限值。The resource limiting unit 12 limits resources used by the JAVA (registered trademark) software so that the amount of resources measured by the resource measuring unit 10 is less than a predetermined upper limit allocated to the JAVA (registered trademark) software.
共同功能模块120具有:管理单独功能模块130的执行之单独功能模块管理部14、测定单独功能模块管理部14和单独功能模块130使用的资源量之资源测定部16、取得单独功能模块130可使用的资源上限值的上限值取得部18、和限制单独功能模块管理部14和单独功能模块130使用的资源量之资源限制部20。The common function module 120 has an individual function module management unit 14 that manages the execution of the individual function module 130, a resource measurement unit 16 that measures the amount of resources used by the individual function module management unit 14 and the individual function module 130, and obtains the resources that the individual function module 130 can use. The upper limit acquisition unit 18 of the resource upper limit value, and the
资源测定部16按每个单独功能模块130,测定该单独功能模块130使用的资源量、和单独功能模块管理部14在该单独功能模块130执行中使用的资源量。The resource measurement unit 16 measures, for each individual function module 130 , the amount of resources used by the individual function module 130 and the amount of resources used by the individual function module management unit 14 to execute the individual function module 130 .
资源限制部20限制单独功能模块130使用的资源量、和单独功能模块管理部14在该单独功能模块130的执行中使用的资源量,使由资源测定部16测定到的资源量不足由上限值取得部18取得的上限值。The
下面,详细说明网络打印机100的构成。Next, the configuration of the
图3是表示网络打印机100的硬件构成的框图。FIG. 3 is a block diagram showing the hardware configuration of the
网络打印机100如图3所示,由根据控制程序来控制运算和系统整体的CPU30、在所定区域中事先存储CPU30的控制程序等的ROM32、存储从ROM32等读出的数据或CPU30的运算过程中需要的运算结果之RAM34、和对外部装置中介数据的输入输出之I/F38构成,这些部件由作为传输数据用的信号线之总线39相互且可交换数据地连接。As shown in FIG. 3, the
作为外部装置,在I/F38上,连接作为人机界面的由可输入和显示数据之触摸屏等构成的操作面板40、将数据或表格等作为文件存储的存储装置42、由打印头、头驱动部等打印需要的机构构成的打印机发动机44、和用于连接在网络199上的信号线。As an external device, on the I/F38, an
下面,详细说明存储装置42的数据构造。Next, the data structure of the
存储装置42存储有共同功能模块120和多个单独功能模块130。The
单独功能模块130包含存储资源上限值的资源限制信息而构成。The independent function module 130 is configured including resource limit information storing a resource upper limit value.
图4是表示资源限制信息400的数据构造图。FIG. 4 is a data structure diagram showing
资源限制信息400如图4所示,包含存储单独功能模块130和共同功能模块120在该单独功能模块130的执行中可使用的存储器(RAM34)的上限值之字段402、和存储单独功能模块130和共同功能模块120在该单独功能模块130的执行中可启动的分类数之字段404。
单独功能模块130还包含关于单独功能模块130的模块信息。The individual function modules 130 also contain module information on the individual function modules 130 .
图5是表示模块信息420的数据构造的图。FIG. 5 is a diagram showing the data structure of the
模块信息420如图5所示,包含存储单独功能模块130使用的资源量是否为限制对象(下面称为资源管理对象。)之字段422、存储单独功能模块130可执行的网络打印机100的机型之字段424、和存储电子署名信息的字段426。The
在图5的实例中,在字段422中存储有‘有效’。这表示将单独功能模块130作为资源管理对象来管理。并且,在字段424、字段426中,分别存储有‘TypeA’、‘X社’。这表示单独功能模块130可执行的机型为‘TypeA’,接受X社的电子署名。In the example of FIG. 5 , 'valid' is stored in
存储装置42还存储有登录表示共同功能模块120的执行环境的执行环境信息之执行环境信息登录表格。The
图6是表示执行环境信息登录表格440的数据构造的图。FIG. 6 is a diagram showing the data structure of the execution environment information registration table 440 .
执行环境信息登录表格440如图6所示,包含登录单独功能模块130可启动的个数之上限值的字段442、登录应执行的单独功能模块130的名称之字段444、登录应删除的单独功能模块130的名称之字段446、登录自己网络打印机100之机型的字段448、和登录可对应的电子署名信息的字段450。Execution environment
在图6的实例中,在字段442、字段444、字段446中分别登录‘5’、‘单独功能模块b、d’、‘单独功能模块c’。这表示最多可启动5个单独功能模块130,在共同功能模块120启动时,执行单独功能模块b、d,应删除单独功能模块c。并且,在字段448、字段450中分别登录有‘TypeA’、‘X社’。这表示自己的机型为‘TypeA’,可执行包含X社的电子署名信息之单独功能模块130。In the example of FIG. 6, '5', 'individual function modules b, d', and 'individual function module c' are registered in
在存储装置42中,还按每个构成资源管理对象的各单独功能模块130,存储管理该单独功能模块130使用的资源量之资源管理表格。资源管理表格在单独功能模块130是资源管理对象的情况下,伴随其启动来生成。In the
图7是表示资源管理表格460的数据构造的图。FIG. 7 is a diagram showing the data structure of the resource management table 460 .
在资源管理表格460中,如图7所示,对每个资源种类登录有一个记录。各记录包含登录资源名称的字段462、登录单独功能模块130可使用的资源上限值之字段464、登录单独功能模块130正在使用的资源量之字段466而被登录。In the resource management table 460, as shown in FIG. 7, one record is registered for each resource type. Each record is registered including a
在图7的实例中,在第1个记录中,分别登录着‘存储器’,作为资源的名称,登录‘1000000’,作为上限值,登录‘512345’,作为当前值。这表示单独功能模块130可使用的存储器上限值为1000000[byte],使用512345[byte]的当前存储器。另外,在第2个记录中,分别登录‘分类数’,作为资源的名称,登录‘100’,作为上限值,登录‘20’,作为当前值。这表示单独功能模块130可启动的分类数之上限值为100个,当前启动20个分类。In the example of FIG. 7, in the first record, 'storage' is registered, '1000000' is registered as the resource name, '512345' is registered as the current value as the upper limit value. This means that the upper limit value of the memory that can be used by the individual function module 130 is 1000000 [byte], and the current memory of 512345 [byte] is used. In addition, in the second record, 'number of categories' is registered, '100' is registered as the name of the resource, '20' is registered as the current value as the upper limit value, and '20' is registered as the current value. This means that the upper limit of the number of categories that can be activated by the individual function module 130 is 100, and currently 20 categories are activated.
存储装置42还存储有事件听众表格480,该表格登录处理单独功能模块130接收的事件之事件听众。The
图8是表示事件听众(listener)表格480的数据构造的图。FIG. 8 is a diagram showing the data structure of the event listener table 480 .
在事件听众表格480中,如图9所示,对单独功能模块130登录的每个事件听众,登录记录。各记录包含登录事件听众的名称之字段482来登录。In the event listener table 480 , as shown in FIG. 9 , a record is registered for each event listener registered by the individual function module 130 . Each record includes a
返回图3,CPU30由微处理单元等构成,使存储在ROM32的所定区域中的规定程序启动,根据该程序,分别时分执行图9、图03、图14和图16的流程图所示的单独功能模块控制处理、分类读入处理、事件听众控制处理和实例删除处理,作为共同功能模块120的处理。Return to Fig. 3, CPU30 is made up of micro-processing unit etc., makes the specified program that is stored in the predetermined area of ROM32 start, according to this program, respectively time-division executes the individual shown in the flow chart of Fig. 9, Fig. 03, Fig. 14 and Fig. 16 Function module control processing, category read processing, event listener control processing, and instance deletion processing are the processing of the common function module 120 .
首先,参照图9来详细说明单独功能模块控制处理。First, the individual function module control processing will be described in detail with reference to FIG. 9 .
图9是表示单独功能模块控制处理的流程图。FIG. 9 is a flowchart showing individual function module control processing.
单独功能模块控制处理是控制单独功能模块130的删除和执行的处理,若由CPU30执行,则如图9所示,首先移动到步骤S100。The individual function module control process is a process for controlling the deletion and execution of the individual function module 130, and when executed by the
在步骤S100中,从执行环境信息登录表格440中取得应执行的单独功能模块130的名称和应删除的单独功能模块130的名称,并移动到步骤S102,判定是否存在应删除的单独功能模块130,当判定为存在应删除的单独功能模块130时(是),移动到步骤S104。In step S100, the name of the individual function module 130 to be executed and the name of the individual function module 130 to be deleted are obtained from the execution environment information registration table 440, and the process moves to step S102 to determine whether there is an individual function module 130 to be deleted. , when it is determined that there is an individual function module 130 to be deleted (Yes), the process moves to step S104.
在步骤S104中,根据取得的名称,从存储装置42中删除该单独功能模块130,并移动到步骤S106,限据该单独功能模块130中包含的模块信息420,判定该单独功能模块130是否是资源管理对象,当判定为该单独功能模块130是资源管理对象时(是),移动到步骤S108。In step S104, delete the independent function module 130 from the
在步骤S108中,从存储装置42中删除对应于该单独功能模块130的资源管理表格460,并移动到步骤S110,从表示当前启动中的模块数的变量值中减去‘1’,并移动到步骤S102。In step S108, delete the resource management table 460 corresponding to the individual function module 130 from the
另一方面,在步骤S106中,当判定为该单独功能模块130不是资源管理对象时(否),移动到步骤S102。On the other hand, when it is determined in step S106 that the individual function module 130 is not a resource management target (No), the process proceeds to step S102.
另一方面,在步骤S102中,当判定为不存在应删除的单独功能模块130时(否),移动到步骤S112,判定是否存在应执行的单独功能模块130,当判定为存在应执行的单独功能模块130时(是),移动到步骤S114。On the other hand, in step S102, when it is determined that there is no individual function module 130 that should be deleted (No), it moves to step S112 to determine whether there is an individual function module 130 that should be executed. If the function module 130 (Yes), go to step S114.
在步骤S114中,判定表示当前启动中的模块数的变量值是否不足规定的上限值,当判定为不足规定的上限值时(是),移动到步骤S116。In step S114, it is determined whether the variable value indicating the number of modules currently being activated is less than a predetermined upper limit, and if it is determined to be less than the predetermined upper limit (Yes), the process proceeds to step S116.
在步骤S116中,根据取得的名称,从存储装置42中读入该单独功能模块130,移动到步骤S118,执行判定读入的单独功能模块130可否执行的可否执行判定处理,移动到步骤S120。In step S116, the individual function module 130 is read from the
在步骤S120中,判定是否从可否执行判定处理返回表示允许单独功能模块130的执行的返回值,当判定为返回表示允许执行的返回值时(是),移动到步骤S122。In step S120, it is determined whether or not a return value indicating that the execution of the individual function module 130 is permitted is returned from the execution availability determination process, and if it is determined that a return value indicating that execution is permitted is returned (Yes), the process proceeds to step S122.
在步骤S122中,根据该单独功能模块130中包含的模块信息420,判定该单独功能模块130是否是资源管理对象,当判定为该单独功能模块130是资源管理对象时(是),移动到步骤S124。In step S122, based on the
在步骤S124中,生成对应于该单独功能模块130的资源管理表格460,从该单独功能模块130中包含的资源限制信息400中取得上限值,将取得的上限值登录于生成的资源管理表格460中,并移动到步骤S126,向表示当前启动中的模块数的变量值加‘1’,移动到步骤S128。In step S124, the resource management table 460 corresponding to the individual function module 130 is generated, the upper limit value is obtained from the
在步骤S128中,将生成的资源管理表格460的地址设定为资源确保对象的参照指针,并移动到步骤S130,执行启动该单独功能模块130的模块启动处理,移动到步骤S132,清零资源确保对象的参照指针,并移动到步骤S112。In step S128, the address of the generated resource management table 460 is set as the reference pointer of the resource guaranteed object, and then moves to step S130, executes the module start process of starting the individual function module 130, moves to step S132, clears the resource Secure the reference pointer of the object, and move to step S112.
另一方面,在步骤S122中,当判定为该单独功能模块130不是资源管理对象时(否),移动到步骤S134,执行与步骤S130一样的模块启动处理,并移动到步骤S112。On the other hand, in step S122, when it is determined that the individual function module 130 is not a resource management target (NO), the process moves to step S134, the same module activation process as step S130 is executed, and the process moves to step S112.
另一方面,在步骤S120中,当判定为从可否执行判定处理返回表示不允许单独功能模块130的执行之返回值时(否),移动到步骤S112。On the other hand, when it is determined in step S120 that a return value indicating that execution of the individual function module 130 is not permitted is returned from the execution permission determination process (No), the process proceeds to step S112.
另一方面,在步骤S114中,当判定为表示当前启动中的模块数的变量值为规定的上限值以上时(否),和在步骤S112中,判定为不存在应执行的单独功能模块130时(否),均结束一连串处理,恢复到原来的处理。On the other hand, in step S114, when it is determined that the variable value indicating the number of modules currently being activated is greater than or equal to the predetermined upper limit (No), and in step S112, it is determined that there is no individual function module to be executed. At 130 (No), a series of processing is ended, and the original processing is restored.
下面,参照图10来详细说明步骤S118的可否执行判定处理。Next, the execution availability determination process of step S118 will be described in detail with reference to FIG. 10 .
图10是表示可否执行判定处理的流程图。FIG. 10 is a flowchart showing execution availability determination processing.
可否执行判定处理若在步骤S118中执行,则如图10所示,首先移动到步骤S200。If the execution permission determination process is performed in step S118, as shown in FIG. 10, it will first move to step S200.
在步骤S200中,从包含于单独功能模块130中的模块信息420中取得机型言息,并移动到步骤S202,判定取得的机型信息与执行环境信息登录表格440的机型信息是否一致,当判定为这些机型信息一致时(是),移动到步骤S204。In step S200, the model information is obtained from the
在步骤S204中,从单独功能模块130中包含的模块信息420中取得电子署名信息,并移动到步骤S206,限据执行环境信息登录表格440,判定取得的电子署名信息是否可对应,当判定为是可对应的电子署名信息时(是),移动到步骤S208。In step S204, obtain the electronic signature information from the
在步骤S208中,根据单独功能模块130中包含的模块信息420,判定单独功能模块130是否是资源管理对象,并当判定为是资源管理对象时(是),移动到步骤S210。In step S208, based on the
在步骤S210中,从单独功能模块130中包含的资源限制信息400中取得上限值,移动到步骤S212,判定上限值的取得是否成功,并当判定为上限值的取得成功时(是),移动到步骤S214。In step S210, the upper limit value is obtained from the
在步骤S214中,判定取得的上限值是否不足共同功能模块120可使用的全部存储器余量,当判定为不足全部存储器余量时(是),移动到步骤S216,返回表示允许单独功能模块130的执行的返回值,结束一连串处理,恢复到原来的处理。In step S214, it is determined whether the obtained upper limit value is less than the entire memory remaining capacity available to the common function module 120, and if it is determined to be less than the entire memory remaining capacity (Yes), move to step S216, and return to indicate that the independent function module 130 is allowed. The return value of the execution ends a series of processing and returns to the original processing.
另一方面,在步骤S208中,当判定为单独功能模块130不是资源管理对象时(否),移动到步骤S216。On the other hand, when it is determined in step S208 that the individual function module 130 is not a resource management target (No), the process proceeds to step S216.
另一方面,在步骤S214中,当判定为取得的上限值为全部存储器余量以上时(否),在步骤S212中,判定为上限值的取得失败时(否),在步骤S206中,判定为不是可对应的电子署名信息时(否),和在步骤S202中,判定为机型信息不一致时(否),均移动到步骤S218,返回表示不允许单独功能模块130的执行之返回值,结束一连串处理,恢复到原来的处理。On the other hand, when it is determined in step S214 that the obtained upper limit value is equal to or greater than the entire memory remaining capacity (No), in step S212, when it is determined that the acquisition of the upper limit value has failed (No), in step S206 , when it is determined that it is not the corresponding electronic signature information (No), and in step S202, when it is determined that the model information is inconsistent (No), all move to step S218, and return indicates that the execution of the independent function module 130 is not allowed. value, end a series of processing, and return to the original processing.
下面,参照图11来详细说明步骤S130、S134的模块启动处理。Next, the module activation processing in steps S130 and S134 will be described in detail with reference to FIG. 11 .
图11是表示模块启动处理的流程图。Fig. 11 is a flowchart showing module activation processing.
模块启动处理若在步骤S130、S134中执行,则如图11所示,首先移动到步骤S300。If the module activation process is executed in steps S130 and S134, as shown in FIG. 11 , the process first moves to step S300.
在步骤S300中,从单独功能模块130中输出应读入分类的分类读入指令,并移动到步骤S302,判定分类的读入是否成功,当判定为分类的读入成功时(是),移动到步骤S304。In step S300, output the classification reading instruction that should read classification from independent function module 130, and move to step S302, judge whether the reading of classification is successful, when judging that the reading of classification is successful (Yes), move to Go to step S304.
在步骤S304中,判定是否设定资源确保对象的参照指针,并当判定为设定资源确保对象的参照指针时(是),移功到步骤S306。In step S304, it is determined whether the reference pointer of the resource securing object is set, and when it is determined that the reference pointer of the resource securing object is set (Yes), the process moves to step S306.
在步骤S306中,算出读出的分类之执行所需的存储器量,向资源确保对象的参照指针指示的资源管理表格460(下面称为参照资源管理表格460。)之使用存储器量中加上算出的存储器量,并移动到步骤S308,判定相加后的合计存储器量是否不足参照资源管理表格460的上限值,当判定为不足上限值时(是),移动到步骤S310。In step S306, the amount of memory required for executing the read classification is calculated, and the calculated memory amount is added to the used memory amount of the resource management table 460 (hereinafter referred to as the reference resource management table 460 ) indicated by the reference pointer of the resource securing object. and move to step S308 to determine whether the added total memory amount is less than the upper limit value of the reference resource management table 460, and if it is determined to be less than the upper limit value (Yes), move to step S310.
在步骤S310中,在存储器上生成读入的分类的实例,并移动到步骤S312,将表示资源确保对象的参照指针值之资源确保对象参照信息保存在生成的实例中,并移动到步骤S314。In step S310, an instance of the class that is read is generated on the memory, and the process moves to step S312, and the resource secured object reference information indicating the reference pointer value of the resource secured object is stored in the created instance, and the process moves to step S314.
在步骤S314中,判定实例的生成是否成功,并在判定为实例的生成成功时(是),移动到步骤S316,执行调用读入分类的功能之分类功能调用处理,并移动到步骤S318,执行登录单独功能模块130的事件听众之事件听众登录处理,结束一连串处理,恢复到原来的处理。In step S314, it is determined whether the generation of the instance is successful, and when it is determined that the generation of the instance is successful (Yes), it moves to step S316, and executes the classification function call process of calling the function of reading the classification, and moves to step S318, and executes The event listener registration process of registering the event listener of the individual function module 130 ends a series of processes and returns to the original process.
另一方面,在步骤S308中,当判定为合计存储器量为上限值以上时(否),移动到步骤S320,从参照资源管理表格460的使用存储器量中减去步骤S306中算出的存储器量,并移动到步骤S322,通知错误,移动到步骤S314。On the other hand, in step S308, when it is determined that the total memory amount is equal to or greater than the upper limit (No), the process moves to step S320, and the memory amount calculated in step S306 is subtracted from the used memory amount of the reference resource management table 460. , and move to step S322, notify an error, and move to step S314.
另一方面,在步骤S304中,当判定为未设定资源确保对象的参照指针时(否),移动到步骤S324,在存储器上生成读入的分类的实例,并移动到步骤S314。On the other hand, in step S304, when it is determined that the reference pointer of the resource securing object is not set (No), the process moves to step S324, and an instance of the loaded category is created on the memory, and the process moves to step S314.
另一方面,在步骤S314中判定为实例的生成失败时(否)、和步骤S302中判定为分类的读入失败时(否),都移动到步骤S318。On the other hand, when it is determined in step S314 that the generation of the instance has failed (No), and in step S302, when it has been determined that the reading of the classification has failed (No), the process proceeds to step S318.
下面,参照图12来详细说明步骤S318的事件听众登录处理。Next, the event listener registration process in step S318 will be described in detail with reference to FIG. 12 .
图12是表示事件听众登录处理的流程图。Fig. 12 is a flowchart showing event listener registration processing.
事件听众登录处理若在步骤S318中执行,则如图12所示,首先移动到步骤S400。If the event listener registration process is executed in step S318, as shown in FIG. 12, first, it will move to step S400.
在步骤S400中,从单独功能模块130中输出读入事件听众分类的分类读入指令,并移动到步骤S402,判定事件听众分类的读入是否成功,当判定为事件听众分类的读入成功时(是),移动到步骤S404。In step S400, output a classification read instruction for reading event audience classification from the independent function module 130, and move to step S402, determine whether the reading of event audience classification is successful, when it is determined that the reading of event audience classification is successful (Yes), move to step S404.
在步骤S404中,判定是否设定资源确保对象的参照指针,并在判定为设定资源确保对象的参照指针时(是),移动到步骤S406。In step S404, it is determined whether the reference pointer of the resource securing object is set, and when it is determined that the reference pointer of the resource securing object is set (Yes), the process proceeds to step S406.
在步骤S406中,算出读入的事件听众分类执行所需的存储器量,并向参照资源管理表格460的使用存储器量上加上算出的存储器量,移动到步骤S408,判定相加后的合计存储器量是否不足参照资源管理表格460的上限值,当判定为不足上限值时(是),移动到步骤S410。In step S406, the amount of memory required for executing the read event audience classification is calculated, and the calculated memory amount is added to the used memory amount of the reference resource management table 460, and the process moves to step S408, and the total memory after the addition is determined. Whether or not the amount is less than the upper limit value of the resource management table 460 is referred to, and when it is determined that the amount is less than the upper limit value (Yes), the process proceeds to step S410.
在步骤S410中,在存储器上生成读入的事件听众分类的实例,并移动到步骤S412,将表示资源确保对象的参照指针值之资源确保对象参照信息保存在生成的实例中,移动到步骤S414。In step S410, create an instance of the read-in event listener class on the memory, and move to step S412, save resource securing object reference information indicating a reference pointer value of the resource securing object in the created instance, and move to step S414 .
在步骤S414中,判定实例的生成是否成功,并当判定为实例的生成成功时(是),移动到步骤S416,将生成的实例之事件听众登录在事件听众执行列表中,结束一连串处理,恢复到原来的处理。In step S414, it is determined whether the generation of the instance is successful, and when it is determined that the generation of the instance is successful (Yes), move to step S416, register the event listener of the generated instance in the event listener execution list, end a series of processing, and resume to the original processing.
另一方面,在步骤S408中,当判定为合计存储器量为上限值以上时(否),移动到步骤S418,从参照资源管理表格460的使用存储器量中减去步骤S406算出的存储器量,并移动到步骤S420,通知错误,移动到步骤S414。On the other hand, in step S408, when it is determined that the total memory amount is equal to or greater than the upper limit (No), the process moves to step S418, and the memory amount calculated in step S406 is subtracted from the used memory amount of the reference resource management table 460, And move to step S420, notify error, move to step S414.
另一方面,在步骤S404中,当判定为未设定资源确保对象的参照指针时(否),移动到步骤S422,在存储器上生成读入的事件听众分类的实例,并移动到步骤S414。On the other hand, in step S404, when it is determined that the reference pointer of the resource securing object is not set (No), the process moves to step S422, and an instance of the read event listener class is created on the memory, and the process moves to step S414.
另一方面,当步骤S414中判定为实例的生成失败时(否)、和步骤S402中判定为事件听众分类的读入失败时(否),结束一连串处理,恢复到原来的处理。On the other hand, when it is judged in step S414 that the generation of the instance failed (No), and in step S402 that it is judged that the reading of the event listener class has failed (No), the series of processing ends and the original processing returns.
下面,参照图13来详细说明分类读入处理。Next, the category reading process will be described in detail with reference to FIG. 13 .
图13是表示分类读入处理的流程图。Fig. 13 is a flowchart showing classification reading processing.
分类读入处理是对应于分类读入指令来读入分类的处理,若在CPU30中执行,则如图13所示,首先移动到步骤S500。The category reading process is a process of reading categories according to a category reading command, and when executed by the
在步骤S500中,判定是否取得分类读入指令,当判定为取得分类读入指令时(是),移动到步骤S502,否则(否),在步骤S500待机,起到取得分类读入指令为止。In step S500, it is determined whether to obtain the classification read-in instruction, and when it is determined to obtain the classification read-in instruction (Yes), move to step S502, otherwise (No), wait in step S500 until the classification read-in instruction is obtained.
在步骤S502中,判定关于分类读入指令的分类是否被登录于高速缓冲存储器表格中,当判定为未登录于高速缓冲存储器表格中时(否),移动到步骤S504。In step S502, it is determined whether the category of the category read command is registered in the cache table, and if it is determined not to be registered in the cache table (No), the process moves to step S504.
在步骤S504中,特定关于分类读入指令的分类所属的单独功能模块130,并移动到步骤S506,根据特定的该单独功能模块130中包含的模块信息420,判定该单独功能模块130是否是资源管理对象,当判定为是资源管理对象时(是),移动到步骤S508。In step S504, specify the separate function module 130 to which the classification of the classification read-in instruction belongs, and move to step S506, and determine whether the separate function module 130 is a resource according to the
在步骤S508中,将对应于该单独功能模块130的资源管理表格460的地址设定为资源确保对象的参照指针,并移动到步骤S510。In step S508, the address of the resource management table 460 corresponding to the individual function module 130 is set as the reference pointer of the resource securing object, and the process moves to step S510.
在步骤S510中,向参照资源管理表格460的启动分类数加上‘1’,并移动到步骤S512,判定相加后的合计分类数是否不足参照资源管理表格460的上限值,并当判定为不足上限值时(是),移动到步骤S514。In step S510, "1" is added to the number of activated categories in the reference resource management table 460, and the process moves to step S512, where it is determined whether the added total category number is less than the upper limit of the reference resource management table 460, If it is less than the upper limit (Yes), go to step S514.
在步骤S514中,从单独功能模块130中读入关于分类读入指令的分类,移动到步骤S516,将读入的分类登录在高速缓冲存储器表格中,移动到步骤S518,清零资源确保对象的参照指针,结束一连串处理,恢复到原来的处理。In step S514, read the classification about the classification read instruction from the individual function module 130, move to step S516, register the read classification in the cache memory table, move to step S518, clear the resource guarantee object The pointer is referred to, a series of processing is terminated, and the original processing is restored.
另一方面,在步骤S512中,当判定为合计的分类数为上限值以上时(否),移动到步骤S520,从参照资源管理表格460的启动分类数中减去‘1’,并移动到步骤S522,通知错误,移动到步骤S518。On the other hand, in step S512, when it is determined that the total number of categories is equal to or greater than the upper limit (No), the process proceeds to step S520, where "1" is subtracted from the number of activated categories in the reference resource management table 460, and Go to step S522, report an error, and move to step S518.
另一方面,在步骤S506中,当判定为该单独功能模块130不是资源管理对象时(否),移动到步骤S524,从单独功能模块130中读入关于分类读入指令的分类,移动到步骤S526,将读入的分类登录在高速缓冲存储器表格中,结束一连串处理,恢复到原来的处理。On the other hand, in step S506, when it is determined that the individual function module 130 is not the object of resource management (No), the process moves to step S524, and the category about the category read command is read from the individual function module 130, and the process proceeds to step S524. S526, register the read category in the cache memory table, end a series of processing, and return to the original processing.
另一方面,在步骤S502中,当判定为关于分类读入指令的分类被登录在高速缓冲存储器表格中时(是),结束一连串处理,恢复到原来的处理。On the other hand, when it is determined in step S502 that the category of the category read command is registered in the cache table (Yes), a series of processing ends and the original processing returns.
下面,参照图14来详细说明事件听众控制处理。Next, the event listener control process will be described in detail with reference to FIG. 14 .
图14是表示事件听众控制处理的流程图。Fig. 14 is a flowchart showing event listener control processing.
事件听众控制处理是控制事件听众的执行之处理,若由CPU30执行,则如图14所示,首先移动到步骤S600。The event listener control process is a process for controlling the execution of the event listener, and when executed by the
在步骤S600中,取得事件听众执行列表,移动到步骤S602,根据取得的事件听众执行列表,判定是否存在应执行的事件听众,并当判定为存在应执行的事件听众时(是),移动到步骤S604。In step S600, obtain the event listener execution list, move to step S602, judge whether there is an event listener that should be executed according to the acquired event listener execution list, and when it is determined that there is an event listener that should be executed (Yes), move to Step S604.
在步骤S604中,特定构成该事件听众生成源的单独功能模块130,并移动到步骤S606,根据特定的该单独功能模块130中包含的模块信息420,判定该单独功能模块130是否是资源管理对象,当判定为是资源管理对象时(是),移动到步骤S608。In step S604, identify the individual function module 130 that constitutes the event audience generation source, and move to step S606, and determine whether the individual function module 130 is a resource management object according to the
在步骤S608中,将对应于该单独功能模块130的资源管理表格460之地址设定为资源确保对象的参照指针,并移动到步骤S610,执行对该事件听众进行执行的事件听众执行处理,并移动到步骤S612,清零资源确保对象的参照指针,并移动到步骤S614。In step S608, the address of the resource management table 460 corresponding to the individual function module 130 is set as the reference pointer of the resource guarantee object, and then the process moves to step S610, and the event listener execution process for executing the event listener is executed, and Move to step S612, clear the reference pointer of the resource secured object, and move to step S614.
在步骤S614中,从事件听众执行列表中删除该事件听众,并移动到步骤S602。In step S614, delete the event listener from the event listener execution list, and move to step S602.
另一方面,在步骤S606中,当判定为该单独功能模块130不是资源管理对象时(否),移动到步骤S616,执行该事件听众,并移动到步骤S614。On the other hand, in step S606, when it is determined that the individual function module 130 is not the object of resource management (No), the process moves to step S616, the event listener is executed, and the process moves to step S614.
另一方面,在步骤S602中,当判定为不存在应执行的事件听众时(否),结束一连串处理,恢复到原来的处理。On the other hand, in step S602, when it is determined that there is no event listener to be executed (No), a series of processing ends and the original processing returns.
下面,参照图15来详细说明步骤S610的事件听众执行处理。Next, the event listener execution process in step S610 will be described in detail with reference to FIG. 15 .
图15是表示事件听众执行处理的流程图。Fig. 15 is a flowchart showing event listener execution processing.
事件听众执行处理若在步骤S610中执行,则如图15所示,首先移动到步骤S700。When the event listener execution process is executed in step S610, as shown in FIG. 15, first, it moves to step S700.
在步骤S700中,将程序指针移动到事件听众中包含的指令列表的开头,并移动到步骤S702,判定程序指针指示的地址中是否存在应执行的指令,当判定为存在应执行的指令时(是),移动到步骤S704。In step S700, move the program pointer to the head of the command list contained in the event listener, and move to step S702, determine whether there is an instruction to be executed in the address indicated by the program pointer, when it is determined that there is an instruction to be executed ( Yes), move to step S704.
在步骤S704中,算出指令执行所需的存储器量,向参照资源管理表格460的使用存储器量上加上算出的存储器量,并移动到步骤S706,判定相加后的合计存储器量是否不足参照资源管理表格460的上限值,当判定为不足上限值时(是),移动到步骤S708。In step S704, the amount of memory required for instruction execution is calculated, the calculated amount of memory is added to the amount of used memory in the reference resource management table 460, and the process moves to step S706, where it is determined whether the added total amount of memory is less than the reference resource When it is determined that the upper limit value of the management table 460 is less than the upper limit value (Yes), the process moves to step S708.
在步骤S708中,确保存储器,移动到步骤S710,执行程序指针指示的地址的指令,并移动到步骤S712,将程序指针移动到事件听众中包含的指令列表之后,并移动到步骤S702。In step S708, memory is reserved, and the process moves to step S710, executes the command at the address indicated by the program pointer, and then moves to step S712, moves the program pointer after the command list included in the event listener, and then moves to step S702.
另一方面,在步骤S706中,当判定为合计的存储器量为上限值以上时(否),移动到步骤S714,从参照资源管理表格460的使用存储器量中减去步骤S704算出的存储器量,并移动到步骤S716,通知错误,移动到步骤S712。On the other hand, in step S706, when it is determined that the total amount of memory is equal to or greater than the upper limit (No), the process proceeds to step S714, and the amount of memory calculated in step S704 is subtracted from the amount of used memory referring to the resource management table 460. , and move to step S716, notify an error, and move to step S712.
另一方面,在步骤S702中,当判定为不存在应执行的指令时(否),结束一连串处理,恢复到原来的处理。On the other hand, in step S702, when it is determined that there is no instruction to be executed (No), a series of processing ends, and the original processing returns.
下面,参照图16来详细说明实例删除处理。Next, the instance deletion process will be described in detail with reference to FIG. 16 .
图16是表示实例删除处理的流程图。Fig. 16 is a flowchart showing instance deletion processing.
实例删除处理是删除实例的处理,若在CPU30中执行,则如图16所示,首先移动到步骤S800。The instance deletion process is a process for deleting an instance, and when executed by the
在步骤S800中,取得登录了应删除实例的实例删除列表,并移动到步骤S802,根据取得的实例删除列表,判定是否存在应删除的实例,并当判定为存在应删除的实例时(是),移动到步骤S804。In step S800, obtain the instance deletion list in which the instance to be deleted is registered, and move to step S802, judge whether there is an instance to be deleted according to the obtained instance deletion list, and if it is determined that there is an instance to be deleted (Yes) , move to step S804.
在步骤S804中,从该实例中取得资源确保对象参照信息,并移动到步骤S805,判定资源确保对象参照信息的取得是否成功,当判定为资源确保对象参照信息的取得成功时(是),移动到步骤S806。In step S804, obtain the reference information of the resource securing object from this instance, and move to step S805, and determine whether the obtaining of the reference information of the resource securing object is successful, and if it is determined that the obtaining of the reference information of the resource securing object is successful (Yes), move to Go to step S806.
在步骤S806中,根据取得的资源确保对象参照信息,设定资源确保对象的参照指针,并移动到步骤S808,删除该实例,移动到步骤S810,从参照资源管理表格460的使用存储器量中减去该实例执行听需的存储器量,并移动到步骤S812。In step S806, set the reference pointer of the resource guaranteed object according to the acquired resource guaranteed object reference information, and move to step S808, delete the instance, move to step S810, subtract from the used memory amount of the reference resource management table 460 Go to the memory required for execution of this instance, and move to step S812.
在步骤S812中,清零资源确保对象的参照指针,移动到步骤S814,从实例删除列表中删除该实例,移动到步骤S802。In step S812, clear the reference pointer of the resource guaranteed object, move to step S814, delete the instance from the instance deletion list, and move to step S802.
另一方面,在步骤S805中,当判定为资源确保对象参照信息的取得失败时(否),移动到步骤S816,删除该实例,移动到步骤S814。On the other hand, in step S805, when it is determined that acquisition of the reference information of the resource securing object has failed (No), the process moves to step S816, the instance is deleted, and the process moves to step S814.
另一方面,在步骤S802中,当判定为不存在应删除的实例时(否),结束一连串处理,恢复到原来的处理。On the other hand, in step S802, when it is determined that there is no instance to be deleted (No), a series of processing ends and the original processing returns.
下面,说明本实施方式的动作。Next, the operation of this embodiment will be described.
首先,说明执行构成资源管理对象的单独功能模块130的情况。First, the case of executing the individual function modules 130 constituting the object of resource management will be described.
网络打印机100通过共同功能模块120的执行来执行单独功能模块控制处理。在单独功能模块控制处理中,经过步骤S102~S110,在存在应删除的单独功能模块130的情况下,删除该单独功能模块130。之后,经过步骤S114,若判定为当前启动中的模块数为不足规定的上限值,则经过步骤S116、S118,读入该单独功能模块130,判定读入的单独功能模块130可否执行。在可否执行判定处理中,就单独功能模块130而言,在具有一致的机型信息和可对应的电子署名信息,并且可使用的存储器的上限值为不足全部存储器余量的情况下,允许执行。The
若允许单独功能模块130的执行,则经过步骤S124~S128,生成资源管理表格460,将当前启动中的模块数加‘1’,单独功能模块130启动。在模块启动处理中,经过步骤S510、S306,将单独功能模块130的启动分类数和使用存储器量相加。此时,若启动分类数和使用存储器量之一为上限值以上,则经过步骤S522或步骤S322,通知错误,中止分类的读入或实例的生成。If the execution of the individual function module 130 is allowed, the resource management table 460 is generated through steps S124-S128, and '1' is added to the number of modules currently being activated, and the individual function module 130 is activated. In the module activation process, through steps S510 and S306, the activation classification number and the used memory amount of the individual function modules 130 are added. At this time, if one of the number of activated categories and the amount of used memory exceeds the upper limit, an error is notified through step S522 or step S322, and the reading of categories or the generation of instances is stopped.
与此相对,在启动分类数和使用存储器量均不足上限值的情况下,经过步骤S514、S310、S318,读入单独功能模块130的分类,生成读入的分类之实例,登录单独功能模块130的事件听众。在事件听众登录处理中,经过步骤S510、S406,将单独功能模块130的启动分类数和使用存储器量相加。此时,若启动分类数和使用存储器量的任一方为上限值以上,则经过步骤S522或步骤S420,通知错误,中止事件听众分类的读入或实例的生成。On the other hand, when both the number of activated categories and the amount of used memory are less than the upper limit, the categories of the individual function modules 130 are read through steps S514, S310, and S318, an instance of the imported categories is generated, and the individual function modules are registered. 130 event listeners. In the event listener registration process, through steps S510 and S406, the activation classification number and the used memory amount of the individual function modules 130 are added. At this time, if either the number of activated categories or the amount of used memory exceeds the upper limit, an error is notified via step S522 or step S420, and the reading of event audience categories or the generation of instances is stopped.
与此相对,在启动分类数和使用存储器量均不足上限值的情况下,经过步骤S514、S410、S416,读入事件听众分类,生成事件听众分类之实例,将生成的实例之事件听众登录在事件听众执行列表中。On the other hand, when both the number of activated categories and the amount of used memory are less than the upper limit, through steps S514, S410, and S416, the event listener category is read, an instance of the event listener category is generated, and the event listener of the generated instance is registered. in the event listener implementation list.
另一方面,网络打印机100通过共同功能模块120的执行来执行事件听众控制处理。在事件听众控制处理中,经过步骤S704,将构成应执行事件听众的生成源之单独功能模块130的使用存储器量相加。此时,若使用存储器量为上限值以上,则经过步骤S716,通知错误,中止事件听众的执行。On the other hand, the
与此相对,在使用存储器量不足上限值的情况下,经过步骤S710,执行包含于事件听众中的指令。On the other hand, when the amount of used memory is less than the upper limit value, the command included in the event listener is executed through step S710.
另一方面,网络打印机100通过共同功能模块120的执行来执行实例删除处理。在实例删除处理中,在存在应删除的实例的情况下,经过步骤S808、S810,删除该实例,减去构成该事件听众的生成源之单独功能模块130的使用存储器量。On the other hand, the
下面,说明执行不是资源管理对象的单独功能模块130的情况。Next, the case of executing an individual function module 130 that is not a target of resource management will be described.
网络打印机100若执行单独功能模块控制处理,则经过步骤S116、S118,读入该单独功能模块130,判定读入的单独功能模块130可否执行。If the
若允许单独功能模块130的执行,则经过步骤S134,单独功能模块130启动。在模块启动处理中,经过步骤S524、S324、S318,读入单独功能模块130的分类,生成读入的分类之实例,登录单独功能模块130的事件听众。在事件听众登录处理中,经过步骤S524、S422、S416,读入事件听众分类,生成事件听众分类的实例,将生成的实例之事件听众登录在事件听众执行列表中。If the execution of the individual function module 130 is allowed, the individual function module 130 is started after step S134. In the module activation process, through steps S524, S324, and S318, the classification of the individual function module 130 is read, an instance of the read classification is created, and an event listener of the individual function module 130 is registered. In the event listener registration process, through steps S524, S422, and S416, the event listener category is read, an instance of the event listener category is generated, and the event listener of the generated instance is registered in the event listener execution list.
另一方面,若网络打印机100执行事件听众控制处理,则经过步骤S616,执行包含于应执行的事件听众中的指令。On the other hand, when the
另一方面,若网络打印机100执行实例删除处理,则在存在应删除的实例的情况下,经过步骤S816,删除该实例。On the other hand, if the
图17是表示并列执行构成资源管理对象的单独功能模块b、c的情况的时间图。FIG. 17 is a timing chart showing the parallel execution of individual function modules b and c constituting resource management objects.
图17中,实线表示单独功能模块b的滑件、和共同功能模块120的滑件中在单独功能模块b的执行中使用的滑件。而且,点划线表示单独功能模块c的滑件、和共同功能模块120的滑件中在单独功能模块c的执行中使用的滑件。In FIG. 17 , the solid line indicates the slider used in the execution of the individual function module b among the sliders of the individual function module b and the sliders of the common function module 120 . Also, a dotted line indicates a slider used in the execution of the individual function module c among the sliders of the individual function module c and the sliders of the common function module 120 .
若执行单独功能模块b,则执行共同功能模块120的AM滑件(启动处理部),单独功能模块b启动,执行该滑件。另外,执行共同功能模块120的AM滑件,生成单独功能模块b的事件听众。之后,若产生对应于单独功能模块b的事件,则执行共同功能模块120的AM滑件(事件处理部),读入单独功能模块b的分类,生成读入的实例。在不需要单独功能模块b的情况下,执行共同功能模块120的实例删除滑件,删除单独功能模块b的实例。在该一连串处理中,管理伴随共同功能模块120和单独功能模块b的滑件的执行而增减之启动分类数和使用存储器量,作为单独功能模块b使用的资源量,进行限制,以不足对单独功能模块b设定的规定上限值。When the individual function module b is executed, the AM slider (start processing unit) of the common function module 120 is executed, the individual function module b is activated, and the slider is executed. In addition, the AM slider of the common function module 120 is executed, and an event listener of the individual function module b is generated. Afterwards, when an event corresponding to the individual function module b occurs, the AM slider (event processing unit) of the common function module 120 is executed, the category of the individual function module b is read, and the loaded instance is generated. In the case where the individual function module b is unnecessary, the instance deletion slider of the common function module 120 is executed to delete the instance of the individual function module b. In this series of processes, the number of start-up classes and the amount of used memory that increase or decrease with the execution of the sliders of the common function module 120 and the individual function module b are managed, and the amount of resources used by the individual function module b is limited so as not to be insufficient. Specified upper limit value set by individual function module b.
该动作对单独功能模块c也一样。其中,在该一连串处理中,管理伴随共同功能模块120和单独功能模块c的滑件的执行而增减之启动分类数和使用存储器量,作为单独功能模块c使用的资源量,进行限制,以不足对单独功能模块c设定的规定上限值。This operation is also the same for the individual function module c. Among them, in this series of processes, the number of activation categories and the amount of used memory that increase or decrease with the execution of the sliders of the common function module 120 and the individual function module c are managed, and the amount of resources used by the individual function module c is limited, so that It is less than the specified upper limit value set for the individual function module c.
将本实施方式中的分类资源(分类数或大小)分配给提供分类的功能模块。因此,在读入功能模块b具有的分类并利用该分类的情况下,无论正在利用的滑件是功能模块b还是功能模块c,功能模块b都消耗分类资源。因此,在图17中,单独功能模块b的分类装入之滑件中的资源消耗仅为表示功能模块b的区域的粗实线。另外,单独功能模块c的分类装入之滑件中的资源消耗仅为表示功能模块c的区域的粗虚线。Allocate classification resources (number of classifications or sizes) in this embodiment to functional modules that provide classifications. Therefore, when reading the category possessed by the functional module b and using the category, the functional module b consumes category resources regardless of whether the slider being used is the functional module b or the functional module c. Therefore, in FIG. 17 , the resource consumption in the assorted loaded slider of the individual functional module b is only the thick solid line indicating the area of the functional module b. In addition, the resource consumption in the slider loaded with separate functional modules c is only the thick dotted line indicating the area of the functional module c.
因此,步骤S504中特定的功能模块不是读入分类的单独功能模块,而是提供分类的单独功能模块,在之后的处理中,对特定的单独功能模块进行资源分配。Therefore, in step S504, the specific function module is not read into the classified individual function module, but the classified individual function module is provided, and resource allocation is performed on the specific individual function module in the subsequent processing.
这样,将某个单独功能模块130的滑件消耗的资源分配给共同功能模块、自身的单独功能模块130和其它单独功能模块130的任一方。In this way, the resources consumed by the slider of a certain individual function module 130 are allocated to any one of the common function module, its own individual function module 130 and other individual function modules 130 .
因此,在本实施方式中,限制JAVA(注册商标)软件整体使用的资源量,从单独功能模块130取得资源限制信息400,根据取得的资源限制信息400,限制单独功能模块130使用的存储器量。Therefore, in this embodiment, the amount of resources used by the entire JAVA (registered trademark) software is limited, the
由此,由于可以JAVA(注册商标)软件整体限制资源量,同时,可以单独功能模块130单位限制存储器量,所以与以前相比,可降低在JAVA(注册商标)应用程序的执行环境下软件的动作因资源不足等原因而变得不稳定的可能性。另外,因为以单独功能模块130单位限制存储器量,所以即便不执行多个共同功能模块120也可实现,所以与以前相比,可抑制资源的使用量增加。Thus, since the amount of resources can be limited by the JAVA (registered trademark) software as a whole, and the amount of memory can be limited in units of individual functional modules 130, the amount of software in the execution environment of the JAVA (registered trademark) application program can be reduced compared to before. Possibility of actions becoming unstable due to lack of resources, etc. In addition, since the amount of memory is limited in units of individual functional modules 130 , it can be implemented without executing a plurality of common functional modules 120 , so that an increase in resource usage can be suppressed compared to conventional ones.
并且,在本实施方式中,对每个构成资源管理对象的各单独功能模块130,限制该单独功能模块130使用的存储器量、以及共同功能模块120在该单独功能模块130的执行中使用的存储器量和启动的分类数。In addition, in this embodiment, for each individual function module 130 constituting the object of resource management, the amount of memory used by the individual function module 130 and the memory used by the common function module 120 for execution of the individual function module 130 are limited. volume and number of categories initiated.
由此,因为可以单独功能模块130单位限制共同功能模块120使用的存储器量和启动的分类数,所以可进一步降低在JAVA(注册商标)应用程序的执行环境下软件的动作因资源不足等原因而变得不稳定的可能性。Thus, since the amount of memory used by the common function module 120 and the number of classes to be activated can be limited in units of individual function modules 130, it is possible to further reduce the failure of software operations due to insufficient resources or the like in the execution environment of a JAVA (registered trademark) application program. possibility of becoming unstable.
在上述实施方式1中,资源限制部12对应于方式1或6的第1资源限制部件,上限值取得部18和步骤S124对应于方式1、3、6或8的资源限制信息取得部件,步骤S124对应于方式16、18、21、22、24或25的资源限制信息取得步骤。另外,资源限制部20和步骤S214、S218、S120、S306、S308、S406、S408、S510、S512、S704、S706对应于方式1、2、6或7的第2资源限制部件、或方式3、4、8或9的资源限制部件。In Embodiment 1 above, the resource restriction unit 12 corresponds to the first resource restriction unit of the mode 1 or 6, the upper limit value acquisition unit 18 and step S124 correspond to the resource restriction information acquisition unit of the mode 1, 3, 6 or 8, Step S124 corresponds to the step of obtaining resource limitation information in form 16, 18, 21, 22, 24 or 25. In addition, the
另外,在上述实施方式1中,步骤S214、S218、S120、S306、S308、S406、S408、S510、S512、S704、S706对应于方式16、17、21~23的第2资源限制步骤,或方式16、18、19、21、22、24~26的资源限制步骤。另外,共同功能模块120对应于方式1~10、16~27的第1功能模块,单独功能模块130对应于方式1~10、16~27的第2功能模块。In addition, in the first embodiment above, steps S214, S218, S120, S306, S308, S406, S408, S510, S512, S704, and S706 correspond to the second resource restriction step of modes 16, 17, 21-23, or the mode 16, 18, 19, 21, 22, 24-26 resource limitation steps. In addition, the common function block 120 corresponds to the first function block of forms 1-10, 16-27, and the individual function block 130 corresponds to the second function block of forms 1-10, 16-27.
实施方式2Embodiment 2
下面,说明本发明的实施方式2。Next, Embodiment 2 of the present invention will be described.
本实施与式与上述实施方式1的不同之处在于,仅限制共同功能模块120在单独功能模块130的执行中使用的资源量。This embodiment differs from the first embodiment described above in that only the amount of resources used by the common function module 120 in the execution of the individual function module 130 is limited.
此时,在图12的事件听众登录处理中,不执行步骤S404、S406、S408、S410、S412、S418、S420。At this time, steps S404, S406, S408, S410, S412, S418, and S420 are not executed in the event listener registration process of FIG. 12 .
图12的事件听众登录处理是单独功能模块130执行的滑件,具体执行事件听众的登录。由于仅通过执行单独功能模块130,仅测定共同功能模块120使用的资源,而非单独功能模块130使用的资源,所以不需要上述各步骤的处理。The event listener registration process of FIG. 12 is a slide executed by the individual function module 130, and specifically performs registration of an event listener. Since only the resources used by the common function module 120 and not the resources used by the individual function module 130 are measured only by executing the individual function module 130 , the processing of the above steps is unnecessary.
图12的事件听众登录处理对应于图11中的事件听众登录处理(S318),但在图12之外通过执行单独功能模块130而进行资源确保的部分构成分类功能调用处理(S316)。分类功能调用处理可由与图15的事件听众执行处理相同的要领构成。在如图15所示构成的情况下,在本实施方式中,执行相当于步骤S704、S706、S708、S714、S716的处理。The event listener registration process in FIG. 12 corresponds to the event listener registration process (S318) in FIG. 11 , but the resource securing by executing the individual function module 130 other than FIG. 12 constitutes the classification function call process (S316). The classification function call process can be configured in the same way as the event listener execution process in FIG. 15 . In the case of the configuration shown in FIG. 15 , in the present embodiment, processing corresponding to steps S704 , S706 , S708 , S714 , and S716 is executed.
由此,因为可由单独功能模块130单位来限制共同功能模块120使用的资源量,所以与以前相比,可降低软件的动作因资源不足等原因而变得不稳定的可能性。另外,因为以单独功能模块130单位限制资源量,所以即便不执行多个共同功能模块120也可实现,所以与以前相比,可抑制资源的使用量增加。In this way, since the amount of resources used by the common function module 120 can be limited in units of individual function modules 130, the possibility of software operation becoming unstable due to lack of resources or the like can be reduced compared to conventional methods. In addition, since the amount of resources is limited in units of individual functional modules 130 , it can be implemented without executing a plurality of common functional modules 120 , so that an increase in resource usage can be suppressed compared to conventional ones.
在上述实施方式2中,上限值取得部18和步骤S124对应于方式3或8的资源限制信息取得部件,步骤S124对应于方式18、24或25的资源限制信息取得步骤,资源限制部20和步骤S214、S218、S120、S306、S308、S510、S512、S704、S706,对应于方式3、4、8或9的资源限制部件。另外,步骤S214、S218、S120、S306、S308、S510、S512、S704、S706,对应于方式18、19、24~26的资源限制步骤,共同功能模块120对应于方式3~5、8~10、18~20、24~27的第1功能模块。In the above-mentioned Embodiment 2, the upper limit value acquisition unit 18 and step S124 correspond to the resource limitation information acquisition means of mode 3 or 8, and step S124 corresponds to the resource limitation information acquisition step of mode 18, 24 or 25, and the
另外,在上述实施方式2中,单独功能模块130对应于方式3~5、8~10、18~20、24~27的第2功能模块。In addition, in the above-mentioned second embodiment, the independent functional block 130 corresponds to the second functional block of the forms 3-5, 8-10, 18-20, and 24-27.
另外,在上述实施方式1和2中,构成为使由资源测定部10、资源限制部12、资源测定部16、上限值取得部18和资源限制部20构成的功能作为网络打印机100的内部功能来实现,但不限于此,也可构成为作为安装在网络打印机100上的网卡的功能来实现。In addition, in Embodiments 1 and 2 described above, the functions constituted by the resource measurement unit 10 , the resource limitation unit 12 , the resource measurement unit 16 , the upper limit value acquisition unit 18 , and the
此时,资源限制部12对应于方式11的第1资源限制部件,上限值取得部18和步骤S124对应于方式11或13的资源限制信息取得部件,资源限制部20和步骤S214、S218、S120、S306、S308、S406、S408、S510、S512、S704、S706对应于与式11或12的第2资源限制部件,或方式13或14的资源限制部件。另外,共同功能模块120对应于方式11~15的第1功能模块,单独功能模块130对应于方式11~15的第2功能模块。At this time, the resource limiting unit 12 corresponds to the first resource limiting unit of the mode 11, the upper limit value acquiring unit 18 and step S124 correspond to the resource limiting information acquiring unit of the mode 11 or 13, and the
另外,在上述实施方式1和2中,限制使用存储器量和启动分类数来作为资源量,但不限于此,也可限制插件连接数、文件连接数、文件数、文件容量、分类尺寸、ZIP存储器容量、CPU利用量、插件通信量和文件读写量。In addition, in the above-mentioned Embodiments 1 and 2, the amount of memory used and the number of start-up categories are limited as the amount of resources, but not limited to this, the number of plug-in connections, the number of file connections, the number of files, the capacity of files, the size of categories, and the size of ZIP files may also be limited. Storage capacity, CPU utilization, plug-in traffic, and file read/write volume.
另外,在上述实施方式1和2中,说明在执行图19~图16的流程图所示的处理中,均执行事先存储在ROM32中的控制程序的情况,但不限于此,也可从存储了表示这些步骤的程序的存储介质中将该程序读入RAM34中后执行。In addition, in the above-mentioned first and second embodiments, the case where the control program stored in advance in the
在此,所谓存储介质是RAM、ROM等半导体存储介质、FD、HD等磁存储型存储介质、CD、CDV、LD、DVD等光学式读取方式存储介质、MO等磁存储型/光学读取方式存储介质,无论是电子、磁、光学等的读取方法哪个,只要是可由计算机读取的存储介质,则包含所有存储介质。Here, the storage medium refers to a semiconductor storage medium such as RAM and ROM, a magnetic storage type storage medium such as FD and HD, an optical reading method storage medium such as CD, CDV, LD, and DVD, and a magnetic storage type/optical reading storage medium such as MO. The format storage medium includes any storage medium as long as it is a computer-readable storage medium regardless of the reading method such as electronic, magnetic, or optical.
另外,在上述实施方式1和2中,如图2所示,将本发明的资源管理系统、打印机、打印机用网卡和资源管理程序及资源管理方法适用于管理在JAVA(注册商标)应用程序的执行环境下、JAVA(注册商标)分类设置使用的资源的情况,但不限于此,在不脱离本发明的精神的范围下,也可适用于其它情况。可代替网络打印机100,适用于例如投影仪、扫描仪、电子纸(paper)、本地网关、个人计算机、PDA(Personal Digital Assistant)、网络存储器、音频设备、移动电话机、PHS(注册面标)(Personal HandyphoneSystem)、手表型PDA、STB(Set Top Box)、POS(Point Of Sale)终端、FAX机、电话(也包含IP电话等)、数字TV等器件中。In addition, in the above-mentioned Embodiments 1 and 2, as shown in FIG. 2, the resource management system, the printer, the network card for the printer, the resource management program, and the resource management method of the present invention are applied to the JAVA (registered trademark) application program. In the execution environment, JAVA (registered trademark) classifies and sets resources used, but is not limited thereto, and can be applied to other cases without departing from the spirit of the present invention. It can replace the
Claims (30)
Applications Claiming Priority (5)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2004-375708 | 2004-12-27 | ||
| JP2004375708 | 2004-12-27 | ||
| JP2004375708 | 2004-12-27 | ||
| JP2005266761 | 2005-09-14 | ||
| JP2005-266761 | 2005-09-14 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1797316A CN1797316A (en) | 2006-07-05 |
| CN100435084C true CN100435084C (en) | 2008-11-19 |
Family
ID=36818373
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CNB2005100228983A Expired - Fee Related CN100435084C (en) | 2004-12-27 | 2005-12-09 | Resource management system, management method, printer, network card for printer |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN100435084C (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5156838B2 (en) * | 2008-10-27 | 2013-03-06 | 株式会社日立製作所 | Resource management method and embedded device |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH09190295A (en) * | 1996-01-11 | 1997-07-22 | Canon Inc | Information processing apparatus, printing apparatus, printing system, and data processing method of printing system |
| US5822531A (en) * | 1996-07-22 | 1998-10-13 | International Business Machines Corporation | Method and system for dynamically reconfiguring a cluster of computer systems |
| CN1372663A (en) * | 1999-09-03 | 2002-10-02 | 通用器材公司 | Resource access control system |
-
2005
- 2005-12-09 CN CNB2005100228983A patent/CN100435084C/en not_active Expired - Fee Related
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH09190295A (en) * | 1996-01-11 | 1997-07-22 | Canon Inc | Information processing apparatus, printing apparatus, printing system, and data processing method of printing system |
| US5822531A (en) * | 1996-07-22 | 1998-10-13 | International Business Machines Corporation | Method and system for dynamically reconfiguring a cluster of computer systems |
| CN1372663A (en) * | 1999-09-03 | 2002-10-02 | 通用器材公司 | Resource access control system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN1797316A (en) | 2006-07-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20140123239A1 (en) | System, service providing device, and service providing method | |
| CN109922158A (en) | Data processing method, device, medium and electronic equipment based on micro services | |
| US8717597B2 (en) | Information processing apparatus, print control method, and storage medium for selectively performing inconsistency validation process on changed print setting | |
| KR100750770B1 (en) | Resource managing system, resource managing method and computer readable recording medium having resource managing program recorded therein | |
| JP2010061230A (en) | Information processor and information processing method | |
| US20210326089A1 (en) | Image formation apparatus, control method therefor, and computer readable storage medium | |
| CN102147717A (en) | Printer, method and system facilitating non-driven printing | |
| JP4232767B2 (en) | Software authentication system, software authentication program, and software authentication method | |
| US20110023021A1 (en) | Information processing apparatus for efficiently informing information associated with update details of software and control method thereof | |
| US10516791B2 (en) | Information processing system, information processing apparatus, and information processing method for executing an iteration of one or more processes | |
| KR100679529B1 (en) | Computer-readable recording media recording resource management systems, printers, network cards for printers and resource management programs, and resource management methods | |
| JP2009026077A (en) | Image processing server, image processing method, computer program, and storage medium | |
| US20070226692A1 (en) | Image processing apparatus and image processing method | |
| US20090094310A1 (en) | Parallel computing system and parallel computing method | |
| CN100435084C (en) | Resource management system, management method, printer, network card for printer | |
| JP4207938B2 (en) | Software authentication system, software authentication program, and software authentication method | |
| JP7155948B2 (en) | Information processing device, image forming device, image forming system and program | |
| US20060212485A1 (en) | Electronic file saving system | |
| CN112702270A (en) | Node calling method, system and storage medium based on event distribution mechanism | |
| JP2006244457A (en) | Resource management system, resource management program, and resource management method | |
| JP7304019B2 (en) | DATA OUTPUT COMPUTER, DATA OUTPUT SYSTEM, DATA OUTPUT METHOD AND PROGRAM | |
| US20220038601A1 (en) | Information processing apparatus, information processing method, and nontransitory recording medium | |
| JP2006244456A (en) | Resource management system, resource conversion table generation system, software authentication system, resource management program, resource conversion table generation program and software authentication program, resource management method, resource conversion table generation method and software authentication method | |
| US20190310813A1 (en) | Image forming apparatus, control method of image forming apparatus and storage medium | |
| JP4636471B2 (en) | Print log collection device, print log collection method and program thereof |
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 | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20081119 Termination date: 20191209 |