CN101064619A - Resource management platform having topics distribution function and its method - Google Patents

Resource management platform having topics distribution function and its method Download PDF

Info

Publication number
CN101064619A
CN101064619A CN 200710041276 CN200710041276A CN101064619A CN 101064619 A CN101064619 A CN 101064619A CN 200710041276 CN200710041276 CN 200710041276 CN 200710041276 A CN200710041276 A CN 200710041276A CN 101064619 A CN101064619 A CN 101064619A
Authority
CN
China
Prior art keywords
theme
monitor
unit
plug
calls
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.)
Granted
Application number
CN 200710041276
Other languages
Chinese (zh)
Other versions
CN101064619B (en
Inventor
秦克明
孙圭宁
高念高
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHANGHAI ZHONGHENG INFORMATION TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI ZHONGHENG INFORMATION TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHANGHAI ZHONGHENG INFORMATION TECHNOLOGY Co Ltd filed Critical SHANGHAI ZHONGHENG INFORMATION TECHNOLOGY Co Ltd
Priority to CN2007100412764A priority Critical patent/CN101064619B/en
Publication of CN101064619A publication Critical patent/CN101064619A/en
Application granted granted Critical
Publication of CN101064619B publication Critical patent/CN101064619B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a resource managing platform with function of distributing subject that comprises: platform core which provides register for relative components and definition; subject distributor which includes main component of distributor and tool component of distributor, the main component of distributor provides subject service, the tool component of distributor realizes function of recording subject and distributing log, subject distributor also includes transfer and subject processor, the transfer executes the distribution of subjects, the subject processor creates the subject queue and control the distribution of subjects. The invention also discloses a subject distributing method of resource managing platform. The invention can expands relative components, and realizes the share and transferring of components; the invention can creates the subject queue, and transfers the subjects to corresponding monitor by transfer. Besides, the invention possesses function of subject distributing log to make manager check recoding of distribution in time.

Description

A kind of resource management platform and method thereof with topics distribution function
Technical field
The present invention relates to resource management techniques, more particularly, relate to a kind of resource management platform and method thereof with topics distribution function.
Background technology
Along with the continuous development of network technology, resource-sharing becomes the urgent demand of many enterprise-level applications gradually.Though some application systems have realized the function of partly sharing at present, under a lot of situations, this sharing is only limited to the interior resource of access finite element network or for resource is provided in the finite element network, can not satisfies more general, more extensive shared demand.
Common application system can't accomplish that this reason general, that extensively share mainly contains 2 points: the one, and application system user (asu) is reluctant all resource openings for the consideration of level security; The 2nd, even application system user (asu) is ready even need be with the opening of a part of resource, but there is not a kind of unified approach to make its resource security, open reliably.
Resource management platform (Universal Resource Management Platform) is at the problems referred to above, resource management platform is equivalent to the intermediary of user and resource, it is one " resource service supplier " (the Resource Service Provider) that resource is carried out unified management, and one of its important goal is to provide resource subscription/receive/obtain (Subscribe/Receive/Consume) service for various " resource service clients " (Resource Service Client).
By as can be seen above-mentioned, need provide a kind of realization resource management platform subscribe to/receive/service method such as obtain, a kind of resource management platform and method thereof with topics distribution function that provide is provided.
Summary of the invention
The purpose of this invention is to provide a kind of resource management platform and method thereof with topics distribution function, this resource management platform can be created the theme formation, and gives corresponding monitor (theme subscriber) with the topic distribution of theme formation.
According to an aspect of the present invention, provide a kind of resource management platform, comprising with topics distribution function:
The platform kernel is for the definition of the plug-in unit of described resource management platform and plug-in unit thereof provides registration and makes it related;
The topic distribution device comprises:
Distributor master plug-in unit externally provides the theme service, and is responsible for safeguarding and calls device;
The distributor tool insert, to platform kernel registration theme register, the theme register is finished the record of topic distribution daily record;
Call device, calling device is the extension point of described distributor master plug-in unit definition, and extension point is an interface that quilt is named, described distribution of calling device execution theme, and the described function of calling device is realized by the device plug-in unit that calls in the registration of platform kernel;
The theme processor is created the theme formation, and selects corresponding theme be distributed to monitor by the described device that calls in the theme formation, and described monitor is the subscriber of theme.
Described distributor master plug-in unit provides registration and management monitor for described monitor, and described each monitor provides a readjustment, and described each readjustment comprises a kind of invocation protocol.
The described device that calls is carried out the distribution of theme and is undertaken by calling described readjustment, and each calls device and can only discern and call the readjustment identical with its invocation protocol.
The described device plug-in unit that calls is an expansion person with its function service definition, and to expansion of platform kernel registration, described expansion is that a name connects, described distributor master plug-in unit is registered the extension point of its definition to the platform kernel, described platform kernel utilizes described expansion that described expansion person is connected with described extension point, thereby makes the described device that calls realize described function and service of calling the device plug-in unit.
Each theme in the theme formation that described theme processor is created all has an exercise question, and described each monitor all will illustrate the theme exercise question that it needs, and has only the theme with the monitor same title just can be distributed to this monitor by described theme processor.
According to a second aspect of the invention, provide a kind of topic distribution method of resource management platform, comprising:
Set up the platform kernel, make the platform kernel registration is provided and make it related for the definition of the plug-in unit of described resource management platform and plug-in unit thereof;
Set up the topic distribution device, the topic distribution device comprises distributor master plug-in unit, distributor tool insert, calls device and theme processor;
Make distributor master plug-in unit, the theme service externally is provided, and be responsible for safeguarding and call device;
Make the distributor tool insert, to platform kernel registration theme register, the theme register is finished the record of topic distribution daily record;
Make and call the extension point that device becomes described distributor master plug-in unit definition, extension point is an interface that quilt is named, and calls the distribution that device is carried out theme, and the function of calling device is realized by the device plug-in unit that calls in the registration of platform kernel;
Make the theme processor create the theme formation, and select corresponding theme be distributed to monitor by the described device that calls in the theme formation, described monitor is the subscriber of theme.
Described distributor master plug-in unit provides registration and management monitor for described monitor, and described each monitor provides a readjustment, and described each readjustment comprises a kind of invocation protocol.
The described device that calls is carried out the distribution of theme and is undertaken by calling described readjustment, and each calls device and can only discern and call the readjustment identical with its invocation protocol.
The described device plug-in unit that calls is an expansion person with its function service definition, and to expansion of platform kernel registration, described expansion is that a name connects, described distributor master plug-in unit is registered the extension point of its definition to the platform kernel, described platform kernel utilizes described expansion that described expansion person is connected with described extension point, thereby makes the described device that calls realize described function and service of calling the device plug-in unit.
Each theme in the theme formation that described theme processor is created all has an exercise question, and described each monitor all will illustrate the theme exercise question that it needs, and has only the theme with the monitor same title just can be distributed to this monitor by described theme processor.
Adopt technical scheme of the present invention,,, realize sharing and calling of various pin functions so can expand the function of the various plug-in units of described resource management platform very easily because resource management platform of the present invention and method have the platform kernel; The device that calls of the present invention can be carried out monitor (main body subscriber's) readjustment after being defined by relevant plug-in unit, realize the distribution of theme; And theme processor of the present invention can be created the theme formation, and the theme of theme formation is distributed to corresponding monitor (theme subscriber) by the described device that calls.In addition, the distributor tool insert in resource management platform of the present invention and the method can be registered the theme register to the platform kernel, and the theme register is finished the record of topic distribution daily record, so that the manager in time checks the record of distribution.
Description of drawings
Fig. 1 shows the structure chart according to the resource management platform with topics distribution function of one embodiment of the invention;
Fig. 2 shows the flow chart according to the resource management platform topic distribution method of one embodiment of the invention.
Embodiment
The present invention at first provides a kind of resource management platform with topics distribution function, and the structure chart with reference to figure 1 shows an one example 100 comprises:
Platform kernel 110 is for the definition of the plug-in unit of described resource management platform and plug-in unit thereof provides registration and makes it related;
Topic distribution device 120 comprises:
Distributor master plug-in unit 121 externally provides the theme service, and is responsible for safeguarding and calls device 123;
Distributor tool insert 122, to platform kernel 100 registration theme registers 101, theme register 101 is finished the record of topic distribution daily record;
Call device 123, calling device 123 as extension points of distributor master plug-in unit 121 definition, and extension point is an interface that quilt is named, and calls the distribution that device 123 is carried out theme, and the function of calling device 123 is realized by the device plug-in unit 140 that calls in 110 registrations of platform kernel;
Theme processor 124 is created the theme formation, and selects corresponding theme be distributed to monitor 130 by calling device 123 in the theme formation, and monitor 130 is subscribers of theme.
Distributor master plug-in unit 121 provides registration and management monitor 130 for monitor 130, and each monitor 130 provides a readjustment 131, and each readjustment 131 comprises a kind of invocation protocol.
Call device 123 and carry out the distribution of themes and undertaken by calling readjustment 131, each calls device 123 and can only discern and call the readjustment identical with its invocation protocol 131.
Calling device plug-in unit 140 is an expansion person 104 with its function service definition, and to expansion 103 of platform kernel registration, expansion 103 is that a name connects, distributor master plug-in unit 121 is registered the extension point 102 of its definition to platform kernel 110, platform kernel 110 utilizes expansion 103 that expansion person 104 is connected with extension point 102, thereby makes function and the service that device plug-in unit 140 is called in device 123 realizations of calling.
Each theme in the theme formation that theme processor 124 is created all has an exercise question, and each monitor 130 all will illustrate the theme exercise question that it needs, and has only the theme with monitor 130 same title just can be distributed to this monitor 130 by theme processor 124.
On the other hand, the present invention also provides a kind of topic distribution method 200 of resource management platform, and with reference to shown in Figure 2, this method comprises:
202. set up platform kernel 110, make platform kernel 110 registration is provided and make it related for the definition of the plug-in unit of resource management platform and plug-in unit thereof.
204. set up topic distribution device 120, topic distribution device 120 comprises distributor master plug-in unit 121, distributor tool insert 122, calls device 123 and theme processor 124.
206. make distributor master plug-in unit 121 that the theme service externally is provided, and be responsible for safeguarding and call device 123.
208. make distributor tool insert 122 to platform kernel 110 registration theme registers 101, theme register 101 is finished the record of topic distribution daily record.
Call the extension point that device 123 becomes 121 definition of distributor master plug-in unit 210. make, call the distribution that device 123 is carried out theme, the function of calling device 123 is realized by the device plug-in unit 140 that calls in 110 registrations of platform kernel.
212. make theme processor 124 create the theme formations, and select corresponding theme be distributed to monitor 130 by calling device 123 in the theme formation, monitor 130 is subscribers of theme.
Distributor master plug-in unit 121 provides registration and management monitor 130 for monitor 130, and each monitor 130 provides a readjustment 131, and each readjustment 131 comprises a kind of invocation protocol.
Call device 123 and carry out the distribution of themes and undertaken by calling readjustment 131, each calls device 123 and can only discern and call the readjustment identical with its invocation protocol 131.
Calling device plug-in unit 140 is an expansion person 104 with its function service definition, and to expansion 103 of platform kernel registration, expansion 103 is that a name connects, distributor master plug-in unit 121 is registered the extension point 102 of its definition to platform kernel 110, platform kernel 110 utilizes expansion 103 that expansion person 104 is connected with extension point 102, thereby makes function and the service that device plug-in unit 140 is called in device 123 realizations of calling.
Each theme in the theme formation that theme processor 124 is created all has an exercise question, and each monitor 130 all will illustrate the theme exercise question that it needs, and has only the theme with monitor 130 same title just can be distributed to this monitor 130 by theme processor 124.
In order to deepen above understanding, the following describes described implication and effect in application with the resource management platform of topics distribution function and correlation technique title that method produces:
In the present invention, platform kernel (Core) is the basis of resource management platform.Resource management platform is to adopt plug-in unit (Plugin) mode to realize that all plug-in units are independently of one another, and the platform kernel is responsible for safeguarding the registration of all plug-in units and plug-in unit definition thereof, and the platform kernel also is responsible for making between plug-in unit and the plug-in unit definition thereof and is produced association.
Resource management platform of the present invention adopts Plugin Mechanism, expansion platform function easily, and need not change existing code.Plugin Mechanism is to rely on extension point (Extension Point), expansion person (Extender) and expansion (Extension) to realize.
Extension point (Extension Point) is exactly the interface of a name.The name unique identification this extension point, and interface specification the functional specification of this extension point expectation.Two different extension points can have same interface, but same name can not be arranged.Can be expanded by other plug-in units if plug-in unit is expected its function, then, be defined as an extension point, and plug-in unit itself not need to realize this interface this functional interface name.For example, data engine (Data Engine) plug-in unit need read the data of certain data source, but different data sources (for example JDBC data source and XML document data source) has different access modes.Data engine is not expected to rely on certain specific realization and is read specific data source, has therefore defined adapter (Adapter) extension point.Data engine itself is only operated adaptor interface, and the realization of not responsible adapter.Data engine registers this extension point to after the kernel, and kernel is responsible for itself and the adapter of other plug-in registrations are realized related, realizes thereby make data engine visit adapter fully pellucidly.
Expansion person (Extender) is exactly the realization of an extension point interface.Expansion person only is concerned about realization, and need not be concerned about that who can use this realization.If two extension points have defined same interface, expansion person itself can not determine which extension point it can be used by so.An expansion person can realize a plurality of extension point interfaces.Expansion person's example is created by expansion person factory (Extender Home).
Expansion (Extension) is exactly that an extension point and a name of expanding the expansion person of its interface are connected.An expansion comprises following information: a unique name, the name of the extension point that is expanded, and the expansion person factory that realizes this extension point interface.If the extension point of other plug-in units of plug-in unit expectation expansion then must be realized corresponding expansion person, corresponding expansion person is provided factory, and to the corresponding expansion of kernel registration.Kernel is responsible for expansion person is connected with extension point, and when the plug-in unit of definition extension point needs, utilizes expansion person factory to create expansion person's example, offers this plug-in unit and uses.Usually the expansion person's who the name of expansion also is called expansion and is connected name.
Topic distribution device (Topic Dispatcher) is a particular message distributor at publish/subscribe (Publish andSubscribe) model.The theme (Topic) of topic distribution management all (Publish) to be released, and rely on and to call device (Invoker) it is distributed to corresponding monitor (Listener) reliably.
Theme (Topic) is the message of an open issue.The topic distribution device is responsible for distributing theme to corresponding monitor (Listener).Each theme all has a unique name.Theme also must have an exercise question (Subject), and exercise question is a subscription authority of determining theme subscriber (monitor).The content of theme (Content) topic distribution device also is indifferent to, and the topic distribution device only is responsible for the content of theme is distributed to corresponding monitor, and the implication of content is explained by monitor.
Monitor (Listener) be one to the interested subscriber of certain class theme.Monitor is one of entity of topic distribution device maintenance.The topic distribution device is responsible for giving this monitor by calling device (Invoker) with this topic distribution when receiving certain monitor topics of interest.Each monitor all must have one can unique identification title.
Each monitor is its interested exercise question (Subject) of mandatory declaration all.Each theme (Topic) all has an exercise question (Subject), has only the theme with the monitor same title just can be distributed to this monitor.Different themes can have identical exercise question, and different monitors also can be monitored identical exercise question.For example, monitor L1 and monitor L2 monitor exercise question S1 simultaneously, and when two exercise questions also were all the theme T1 of S1 and T2 issue, L1 and L2 can receive T1 and T2 respectively so.
Each monitor all must provide a readjustment (Callback), and the topic distribution device is given this monitor by calling readjustment with topic distribution." readjustment " is a generalized concept, and it not merely refers to " call back function ".The concrete implication of readjustment is explained by calling device (Invoker).For example, a readjustment may be a HTTP URL, and the function of calling device of carrying out this readjustment is that theme is submitted to this URL with the form of HTTP list.Different monitors can use identical readjustment.
Calling device (Invoker) as the extension point interface that is used for explaining and calling monitor readjustment (Listener Callback) of topic distribution device definition.Though the topic distribution device is responsible for safeguarding monitor, do not realize calling that monitor is adjusted back, handle but will call the device that calls of giving other plug-in units realizations.
Each calls the readjustment that device all only supports to meet certain ad hoc rules, and this rule is called invocation protocol (Protocol).For example, list calls a HTTP URL type submitted to parameter by device with the form of HTTP list readjustment; The readjustment that device then is responsible for calling a Web service form is called in Web service; MQ call device then be with topic distribution in the specified message queue of the readjustment of MQ type.
Each calls device and can only discern and call the readjustment identical with its agreement; Otherwise each readjustment also must be followed the call rule of calling device regulation identical with its agreement.
The topic distribution device will be searched according to the agreement that the readjustment that this monitor provides is stipulated and call device accordingly when certain monitor distribution theme, utilize this to call device then and finish the distribution of this theme to this monitor.
When the topic distribution device need call one when calling device and distributing certain theme, can pass to this and call the following parameter of device: one, call the readjustment (the monitor readjustment that theme to be distributed is associated) that device will call; Two, the associated monitor title of theme to be distributed; Three, the exercise question of theme to be distributed; Four, the content of theme to be distributed (Content).
Calling device can select whole parameters or partial parameters are passed to readjustment.Situation for a plurality of monitors that use identical readjustment may necessarily require to call device monitor title and theme exercise question are passed to readjustment, can't distinguish exercise question and the monitor that triggers readjustment otherwise may cause adjusting back.
The topic distribution device is indifferent to the details of calling device and readjustment communication, but must be concerned about the return value of calling device.If one is called device and returns True, mean that then this theme is called the readjustment that device calls by this and accepts (Accept), the main body distributor will think that this theme successfully distributes, thereby stop the distribution of this theme; Otherwise, return False if call device, then mean this theme by this readjustment refusal (Reject), the main body distributor will continue to attempt giving other monitors with this topic distribution.
If one is called device because a variety of causes can not call readjustment (for example the invocation protocol mistake perhaps can't be got in touch readjustment) smoothly, this calls device and should dish out and call device unusually (InvokerException) so; If one is called device and successfully called readjustment, but readjustment occur to be handled wrong (for example readjustment has been found invalid subject content), and then this calls the device readjustment unusual (CallbackException) of should dishing out.Unusual for calling device, the topic distribution device can stop the distribution to this monitor, until monitor once more by explicit startup (Start); And unusual for readjustment, the main body distributor still can continue other themes to be distributed to this monitor.
Distributor master plug-in unit (Topic Dispatcher) is the core inserter of topic distribution device.It externally provides theme service (Topic Service), and is responsible for safeguarding and calls device.
Theme service (Topic Service) is the service interface of topic distribution device opening, and it has expanded the service extension point of platform kernel.The theme service mainly comprises:
Movable Subject Manager, movable theme (Active Topic) is meant the theme (Topic) that is published to the topic distribution device but does not distribute (promptly not accepted by any monitor as yet) as yet.Movable Subject Manager comprises movable theme inquiry and deletion.Delete a movable theme and will cause this theme, stop distribution by permanent delet.
Device inquiry is called in activity, and activity is called device (Active Invoker) and is meant and is connected to the device that calls that the topic distribution device calls the device extension point.Activity is called device and is different from and calls device, and it only provides the descriptor of calling device (title, agreement, explanation etc.), and the function of calling readjustment is not provided.Call device by inquiring about activity, applications just can be known the readjustment agreement that present topic distribution device can be supported, thereby defines suitable monitor.
Monitor registration/cancellation, because monitor is an entity, it does not comprise code realizes, therefore can be directly to registration of topic distribution device or cancellation (Add/Remove).
Monitor starts/stops, and the topic distribution device can't be to all monitor dispatch messages, but has only after a monitor starts just to its dispatch messages.Whether the readjustment of monitor is all realized by applications usually, and applications is not always to be in active state, therefore need notify it movable to the topic distribution device by starting/stop (Start/Stop) operation.For example, an applications has been registered a monitor that uses the Web service readjustment to the topic distribution device, and so when this application start (but the Web service time spent that is used to adjust back), this application should notify the topic distribution device to start corresponding monitor; And when this application was withdrawed from, notice topic distribution device stopped corresponding monitor.
The topic distribution device is in calling the process of readjustment, if it is unusual to call device, can thinks that also this readjustment is unavailable, and stop its corresponding monitor.The topic distribution device is responsible for monitor is stopped the theme storage related with it of back issue, and gives this monitor with these topic distribution when monitor starts once more.Monitor can not lost the theme of its monitoring because of stopping.
Movable monitor (Active Listener) is meant the monitor of registering to the topic distribution device.Movable monitor is except the sign that also provides monitor whether to start is provided outside its pairing monitor information (title, exercise question, readjustment).Application can obtain the state of monitor by inquiring about movable monitor.
As previously mentioned, distributor master plug-in unit itself is not realized any device that calls, and calls the device extension point and just defined, and calls device and is realized by other plug-in units.If desired for distributor master plug-in unit adds the new device that calls, only the device plug-in registration that calls of this extension point of expansion need be got final product to kernel.
Distributor tool insert (Topic Dispatcher Utility) is the auxiliary plug-in of topic distribution device, and it depends on distributor master plug-in unit.The distributor tool insert is finished following three functions: one, the topic distribution device is linked to each other with explorer (Resource Manager), so that explorer can use the function distribution subscription notice of topic distribution device; Two, to the default theme register (Topic Logger) of platform kernel registration, to finish the writing function of topic distribution daily record; Three, the be the theme device extension point that calls of distributor plug-in unit provides one group of default device that calls.Notice that described explorer is a plug-in unit of resource management platform, its effect is to topic distribution device input theme, can also realize the open issue of a theme, and for interested subscriber's inquiry.
Distributor (Publisher) is the extension point interface that is used for issuing subject of explorer definition.Distributor is responsible for a theme is openly issued, and for interested subscriber's inquiry.Main body distributor tool insert has been registered the expansion of a distributor to kernel, thereby topic distribution device and explorer are organically combined.
In the registration of platform kernel, it only writes down the daily record of topic distribution device to theme register (Topic Logger), and does not handle the daily record from other promoters (Originator) by the distributor tool insert.
Default theme register is recorded in the file of assigned catalogue with the Distribution Log of theme, the corresponding journal file of each theme.Can dispose the theme register and make the still undealt theme daily record of its reservation, and not keep the theme daily record that success is distributed.
The topic distribution process that theme daily record meeting record is complete.If a theme is distributed repeatedly, distribution procedure afterwards can add to after the original distribution procedure.Can forbid the default theme register.Also can register new register expansion to finish the record of topic distribution daily record to kernel.
The distributor tool insert provides and has registered one group of device that calls commonly used and expanded, with convenient exploitation of using.This comprises: one, device is called in Web service, is used for the readjustment that exists with the Web service form; Two, list calls device, is used to accept the readjustment that the HTTP list is submitted to; Three, MQ calls device, is used for theme is published to the message queue of certain readjustment appointment.
Theme processor (Topic Processor) is the member that the topic distribution device is used to distribute theme.Theme processor itself is not a plug-in unit.
Theme formation (Topic Queue) is the formation that the topic distribution device is used for the theme queuing.After the distributor of distributor tool insert receives the theme of explorer, at first can create corresponding movable theme, then this theme is put into the theme formation and waited in line to handle.
In addition, when monitor started, the topic distribution device can search also whether the relevant movable theme of monitor is therewith arranged, and it is pending that theme formation etc. also put in these themes.This has guaranteed that a monitor can not lose the theme of monitoring after stopping.A theme of lining up can be deleted.
The theme processor is responsible for taking out next pending theme from the theme formation, and the associated monitor of startup of poll is distributed to monitor with theme by calling device then.
In the distribution procedure,, then stop corresponding monitor if it is unusual to call device; If in a single day theme is accepted (Accept) by certain monitor, then stop to distribute this theme, and the movable theme of this theme correspondence is deleted.
The support of theme processor starts the concurrent execution of a plurality of examples.When theme is handled in the concurrent execution of theme processor, might cause the monitor readjustment also by asynchronous concurrent invocation.If the concurrent execution mechanism of therefore having enabled the theme processor, the monitor readjustment also must correspondingly be supported asynchronous concurrent invocation so.
In order to expand the application of resource management platform of the present invention better, the present invention also externally provides two kinds of interfaces at resource management platform:
Program level interface (Program Level Interface) and application layer interface (ApplicationLevel Interface).
Program level interface (Program Level Interface) is meant that the platform opening gives other interfaces in the program of code one-level calling platform.The program level interface is made of kernel interface and various plug-in services interface, and the program level interface uses for platform kernel and plug-in unit.By caller level interface, all functions that the program in other these resource management platforms can usage platform.Because the program level interface is to call in the code one-level, the program and the platform that therefore require to call are operated in the same virtual machine, and this program is called " limited applications (Limited Application) ".Though the repertoire of limited applications energy usage platform, but, therefore do not advise the too much limited applications or the limited applications of consumption of natural resource too because it shares resources of virtual machine with platform---this just limited applications why be called the reason of " limited " application.Limited applications is finished the function of platform management person (Platform Administrator).Such as, the supervisor console of platform (Console) is exactly a limited applications.
Application layer interface (Application Level Interface) is the Web service set of group platform opening.The application layer interface only provides limited partial function, and for example: active task management, transducer are operated, monitor starts/stops etc.The application layer interface is for the use of calling of platform outside.
The program of calling the application layer interface is called " general use (Normal Application) ".The general application is the resource service client (Resource Service Client) of platform, i.e. resource provider or resource user (consumer, recipient, subscriber).
A kind of interface also is provided among the present invention, is called proxy interface.If certain general function of expecting that caller level interface provides of using can use the limited applications agency of a lightweight to finish so: Web service of this limited applications opening, caller level interface is finished the function of this Web service then.This interface is called " proxy interface (Proxy Interface) ".Proxy interface also can be used to realize the interface of other types, for example, meets the remote interface (Remote Interface) of RMI (Remote Method Invocation) standard.Proxy interface realizes that by concrete application platform itself will not provide.
Those of ordinary skill in the art will be appreciated that, above embodiment is used for illustrating the present invention, and be not to be used as limitation of the invention, as long as in connotation scope of the present invention, all will drop in claims scope of the present invention variation, the modification of above embodiment.

Claims (10)

1. the resource management platform with topics distribution function is characterized in that, comprising:
The platform kernel is for the definition of the plug-in unit of described resource management platform and plug-in unit thereof provides registration and makes it related;
The topic distribution device comprises:
Distributor master plug-in unit externally provides the theme service, and is responsible for safeguarding and calls device;
The distributor tool insert, to platform kernel registration theme register, the theme register is finished the record of topic distribution daily record;
Call device, calling device is the extension point of described distributor master plug-in unit definition, and extension point is an interface that quilt is named, described distribution of calling device execution theme, and the described function of calling device is realized by the device plug-in unit that calls in the registration of platform kernel;
The theme processor is created the theme formation, and selects corresponding theme be distributed to monitor by the described device that calls in the theme formation, and described monitor is the subscriber of theme.
2. resource management platform according to claim 1 is characterized in that, described distributor master plug-in unit provides registration and management monitor for described monitor, and described each monitor provides a readjustment, and described each readjustment comprises a kind of invocation protocol.
3. as resource management platform as described in the claim 2, it is characterized in that the described device that calls is carried out the distribution of theme and undertaken by calling described readjustment, each calls device and can only discern and call the readjustment identical with its invocation protocol.
4. resource management platform according to claim 1, it is characterized in that, the described device plug-in unit that calls is an expansion person with its function service definition, and to expansion of platform kernel registration, described expansion is that a name connects, described distributor master plug-in unit is registered the extension point of its definition to the platform kernel, described platform kernel utilizes described expansion that described expansion person is connected with described extension point, thereby makes the described device that calls realize described function and service of calling the device plug-in unit.
5. resource management platform according to claim 1, it is characterized in that, each theme in the theme formation that described theme processor is created all has an exercise question, described each monitor all will illustrate the theme exercise question that it needs, and has only the theme with the monitor same title just can be distributed to this monitor by described theme processor.
6. the topic distribution method of a resource management platform is characterized in that, comprising:
Set up the platform kernel, make the platform kernel registration is provided and make it related for the definition of the plug-in unit of described resource management platform and plug-in unit thereof;
Set up the topic distribution device, the topic distribution device comprises distributor master plug-in unit, distributor tool insert, calls device and theme processor;
Make distributor master plug-in unit, the theme service externally is provided, and be responsible for safeguarding and call device;
Make the distributor tool insert, to platform kernel registration theme register, the theme register is finished the record of topic distribution daily record;
Make and call the extension point that device becomes described distributor master plug-in unit definition, extension point is an interface that quilt is named, and calls the distribution that device is carried out theme, and the function of calling device is realized by the device plug-in unit that calls in the registration of platform kernel;
Make the theme processor create the theme formation, and select corresponding theme be distributed to monitor by the described device that calls in the theme formation, described monitor is the subscriber of theme.
7. topic distribution method as claimed in claim 6 is characterized in that, described distributor master plug-in unit provides registration and management monitor for described monitor, and described each monitor provides a readjustment, and described each readjustment comprises a kind of invocation protocol.
8. topic distribution method as claimed in claim 7 is characterized in that, the described device that calls is carried out the distribution of theme and undertaken by calling described readjustment, and each calls device and can only discern and call the readjustment identical with its invocation protocol.
9. topic distribution method as claimed in claim 6, it is characterized in that, the described device plug-in unit that calls is an expansion person with its function service definition, and to expansion of platform kernel registration, described expansion is that a name connects, described distributor master plug-in unit is registered the extension point of its definition to the platform kernel, described platform kernel utilizes described expansion that described expansion person is connected with described extension point, thereby makes the described device that calls realize described function and service of calling the device plug-in unit.
10. topic distribution method as claimed in claim 6, it is characterized in that, each theme in the theme formation that described theme processor is created all has an exercise question, described each monitor all will illustrate the theme exercise question that it needs, and has only the theme with the monitor same title just can be distributed to this monitor by described theme processor.
CN2007100412764A 2007-05-25 2007-05-25 Resource management platform having topics distribution function and its method Expired - Fee Related CN101064619B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007100412764A CN101064619B (en) 2007-05-25 2007-05-25 Resource management platform having topics distribution function and its method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007100412764A CN101064619B (en) 2007-05-25 2007-05-25 Resource management platform having topics distribution function and its method

Publications (2)

Publication Number Publication Date
CN101064619A true CN101064619A (en) 2007-10-31
CN101064619B CN101064619B (en) 2010-11-17

Family

ID=38965366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007100412764A Expired - Fee Related CN101064619B (en) 2007-05-25 2007-05-25 Resource management platform having topics distribution function and its method

Country Status (1)

Country Link
CN (1) CN101064619B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102318382A (en) * 2008-12-19 2012-01-11 惠普开发有限公司 Cost effective updating of mobile computing devices and communicating with mobile computing devices
CN103118138A (en) * 2013-03-04 2013-05-22 中国信息安全测评中心 Cloud service based message queue stream processing method
CN109729410A (en) * 2018-12-29 2019-05-07 北京字节跳动网络技术有限公司 A kind of direct broadcasting room alternative events processing method, device, equipment and storage medium
CN109995801A (en) * 2017-12-29 2019-07-09 北京京东尚科信息技术有限公司 A kind of method for message transmission and device
CN110047014A (en) * 2019-01-04 2019-07-23 国网浙江省电力有限公司电力科学研究院 A kind of user's electricity data restorative procedure based on load curve and history electricity
CN113377458A (en) * 2021-06-28 2021-09-10 北京字节跳动网络技术有限公司 Plug-in management method and device, electronic equipment and storage medium
CN110047014B (en) * 2019-01-04 2024-04-23 国网浙江省电力有限公司电力科学研究院 User electric quantity data restoration method based on load curve and historical electric quantity

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110351223B (en) * 2018-04-02 2021-09-17 腾讯科技(深圳)有限公司 Timing reminding method, device and computer program medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102318382A (en) * 2008-12-19 2012-01-11 惠普开发有限公司 Cost effective updating of mobile computing devices and communicating with mobile computing devices
CN103118138A (en) * 2013-03-04 2013-05-22 中国信息安全测评中心 Cloud service based message queue stream processing method
CN103118138B (en) * 2013-03-04 2016-02-10 中国信息安全测评中心 A kind of message queue method for stream processing based on cloud service
CN109995801A (en) * 2017-12-29 2019-07-09 北京京东尚科信息技术有限公司 A kind of method for message transmission and device
CN109729410A (en) * 2018-12-29 2019-05-07 北京字节跳动网络技术有限公司 A kind of direct broadcasting room alternative events processing method, device, equipment and storage medium
CN110047014A (en) * 2019-01-04 2019-07-23 国网浙江省电力有限公司电力科学研究院 A kind of user's electricity data restorative procedure based on load curve and history electricity
CN110047014B (en) * 2019-01-04 2024-04-23 国网浙江省电力有限公司电力科学研究院 User electric quantity data restoration method based on load curve and historical electric quantity
CN113377458A (en) * 2021-06-28 2021-09-10 北京字节跳动网络技术有限公司 Plug-in management method and device, electronic equipment and storage medium
CN113377458B (en) * 2021-06-28 2022-04-19 北京字节跳动网络技术有限公司 Plug-in management method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN101064619B (en) 2010-11-17

Similar Documents

Publication Publication Date Title
RU2432613C2 (en) Managing improved collections of presence
US6604140B1 (en) Service framework for computing devices
RU2432610C2 (en) Managing extended collections of presence
CN1859139A (en) Informing method and system for presenting information
CN101064619A (en) Resource management platform having topics distribution function and its method
CN1794709A (en) Noticing method and system of display information
CN1617501A (en) Flexible architecture for notifying applications of state changes
JP2015537307A (en) Component-oriented hybrid cloud operating system architecture and communication method thereof
CN101277212B (en) Resource management platform and resource management method
CA2642824A1 (en) Managing rich presence collections
CN1627760A (en) Protocol for multi-hop ad-hoc networks
CN1832408A (en) Method of integral communication between medical information system
US20090222565A1 (en) Centralized Publishing of Network Resources
CN101156407A (en) System structure and method for scheduled download service
CN110389935A (en) A kind of method, equipment and computer storage medium starting small routine
CN101378329B (en) Distributed business operation support system and method for implementing distributed business
CN101047914A (en) Coprocessing system for mobile communication terminal and its method
US7707150B2 (en) Automatic exchange of information in an ad-hoc computing environment
CN1627720A (en) Apparatus and method for sharing services on network
CN103036917A (en) Achievement method of client side platform and client side platform
JP2010182260A (en) Thin client system, management server, thin client terminal, and thin client server
WO2009102532A2 (en) Media mix wiring protocol for media control
CN101276269A (en) Expandable resource management platform
CN101065732A (en) Computer system and information processing method
CN1889038A (en) Method for managing long-distance structural components service cycle with class as unit

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: 20101117

Termination date: 20200525