CN1851694A - Method for realizing system resources management - Google Patents

Method for realizing system resources management Download PDF

Info

Publication number
CN1851694A
CN1851694A CN 200510098779 CN200510098779A CN1851694A CN 1851694 A CN1851694 A CN 1851694A CN 200510098779 CN200510098779 CN 200510098779 CN 200510098779 A CN200510098779 A CN 200510098779A CN 1851694 A CN1851694 A CN 1851694A
Authority
CN
China
Prior art keywords
node
father
entity
relationship tree
entity object
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 200510098779
Other languages
Chinese (zh)
Other versions
CN100383789C (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2005100987796A priority Critical patent/CN100383789C/en
Publication of CN1851694A publication Critical patent/CN1851694A/en
Application granted granted Critical
Publication of CN100383789C publication Critical patent/CN100383789C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention adopts object relationship tree technology, including A, when the fan out of new increasing father solid nodal solid object reaching preset limit, then to establish one shadow object node, dismantling parent-child relationship between father solid object node and one sub solid object node, using said sub solid object node and new increased node as sub node of shadow object, using shadow object node as above-mentioned father solid object node's sub node to add object relationship tree, B, in system resource management, if judging out shadow object node without sub node, then to proceed deleting operation to shadow object node. The present invented system resources managing implementation method can solve memory space wasteful problem resulted from fixed fan out width.

Description

A kind of implementation method that system resource is managed
Technical field
The present invention relates to a kind of implementation method that adopts object relationship tree technology that system resource is managed.
Background technology
At present,, adopt object relationship tree technology usually, the resource of this system is managed comprising the large scale system of more equipment.For example: communication system just adopts object relationship tree technology to carry out the management of system resource.
Below be example to adopt object relationship tree technology to the method that telecommunication system resources manages, prior art is described.
Adopt object relationship tree technology that telecommunication system resources is managed, at first set up the object relationship tree, by operation, realize telecommunication system resources is managed then the object relationship tree according to the set membership tabulation of each entity object of telecommunication system resources.
Referring to Fig. 1, Fig. 1 sets up the processing flow chart of a simple object relational tree for prior art.This flow process may further comprise the steps:
Step 101 reads a list item of entity object set membership tabulation.
Step 102 judges that whether the father's entity object node in this list item is set up on the object relationship tree, if execution in step 103 then; Otherwise execution in step 104.
Step 103, this father's entity object node of location on the object relationship tree, execution in step 105.
Step 104 on the object relationship tree, is created this father's entity object node.
Step 105 with the fructification Object node in this list item, as the child node of this father's entity object node, is set up set membership, joins on the object relationship tree.
Step 106 judges whether that all list items have all read, if then the object relationship tree is set up and finishes process ends; Otherwise return step 101, read next list item.
Operation by to object relationship tree realizes the management to telecommunication system resources, mainly comprises: the node to the object relationship tree is searched, the operation of knot removal, node increase etc.
The node of object relationship tree is searched: can take to search according to the algorithm of breadth-first, also can take to search according to the algorithm of depth-first, also can adopt the method for setting up index to search.
The knot removal of object relationship tree is fairly simple: be exactly to find this node earlier, then with its deletion, if deletion is the father node that has child node, then delete all child nodes of this father node earlier, delete this father node again; If deletion is child node, then directly deletion gets final product.
The node of object relationship tree increases: revise the set membership tabulation of entity object earlier, again according to the set membership of this tabulation, find father's entity object node of this increase node, this node is joined on the object relationship tree.
At present, adopt object relationship tree technology, be subjected to object relationship tree technology limitation the method that system resource manages.
Suppose that the set membership tabulation of each entity object of telecommunication system resources is as shown in table 1,
Parent object Subobject
A A1
A A2
A1 a11
A1 a12
A1 a13
A1 a14
A1 a15
A1 a16
A2 a21
A2 a22
A2 a23
Table 1
Then the object relationship of setting up according to this tabulation is set as shown in Figure 2, the object relationship tree synoptic diagram that Fig. 2 sets up for adopting flow process shown in Figure 1.
When reality realizes,, object tree node fan-out degree is generally done a general agreement often for the convenience on realizing.This scheme is often only selected the fan-out degree of the node of fan-out degree maximum as this agreement.At top example, hypothesis considers that other node fan-out degree is generally 2~3 simultaneously, and this scheme just can only be selected the 6 fan-out degree as this agreement.Because general object relationship tree all is stored in the internal memory, it for the fan-out degree 2~3 node, must just waste a part of memory headroom, for example among Fig. 2, the fan-out width of supposing A2 reality is exactly 3, also can only reserve the memory headroom of 6 child nodes of storage to A2, obviously waste resource.
In addition, in fact existence group relation between some equipment concerns but object relationship shown in Figure 2 tree can not embody group.Suppose wherein A sign base station system resource, A1 represents the base station down resource, and by a11~a16 identified entities object, wherein a1~a3 constitutes one group of resource pool, and a4~a6 constitutes another group resource pool.A2 represents the base station ascending resource, and by a22~a23 identified entities object, a22~a23 belongs to same resource pool.
In one group of resource pool such as a1~a3, as long as available resources when being not less than to provisioning request (being assumed to be 2), even so wherein any one is bad, do not influence the operate as normal of whole resource pool group.Just unclear this point that embodies of above-mentioned resource object relational tree, thus need in handling code, come " realization " this logic of class.
That is to say that the resource object relational tree has only embodied the relation between a part of entity object, and the group of resource pool is closed and to be realized in the processing procedure of the program that ties up to, cause and express the information distribution that concerns between the resource object at several places.Like this, if when system resource object and object relationship change, then not only need to revise the object relationship tree, also need to remodify program code, the resource object relation when being not easy to system maintenance or expansion is adjusted and change; And handler code and concrete entity object be closely related, and therefore is not easy to the maintenance and expansion of system.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of implementation method that system resource is managed that provides, and uses the problem that this method can solve the memory headroom waste that fixing fan-out width brings.
For achieving the above object, technical scheme of the present invention specifically is achieved in that
A kind of implementation method that system resource is managed adopts object relationship tree technology, may further comprise the steps:
A, object relationship tree is being increased newly in the entity object node process, when the fan-out of father's entity object node of this newly-increased entity node has reached predetermined limits, then create a shadow object node, remove the set membership of this father's entity object node and one sub-entity object node, with this fructification Object node and newly-increased node child node as shadow object; Again with the child node adding object relationship tree of shadow object node as above-mentioned father's entity object node;
B, when carrying out system resource management, do not have child node if judge the shadow object node, then the shadow object node is carried out deletion action.
Wherein, described steps A can comprise:
The father node of A1, definite newly-increased entity node;
A2, judge whether the fan-out width of the father node of this newly-increased entity object node has reached predetermined limits, if execution in step A3 then; Otherwise determine that this father node is the father node of this fructification Object node, this fructification Object node is joined in the object relationship tree, finish to add and operate;
A3, this father node join in the breadth first traversal formation;
First Object node in A4, the taking-up formation, adopt the ergodic algorithm of breadth-first to travel through its child node, and judge whether to find the shadow object node of a fan-out width less than predetermined limits, if will increase the child node of entity object node newly as this shadow object, add the object relationship tree, finish to add and operate; Otherwise execution in step A5;
A5, judge whether to find an entity object node, if, execution in step A6 then; Otherwise with all child nodes of father node, add the breadth first traversal formation, return steps A 4 by the breadth-first algorithm;
A6, shadow object node of establishment, the entity object node that dismounting is found and the set membership of father node; With the entity object node that finds child node as shadow object; Again with the child node of shadow object node as above-mentioned father node, set up and this father node between set membership; Add the object relationship tree, finish to add and operate.
The storage entity object set membership tabulation in advance of this method, when setting up the object relationship tree, described steps A 1 is:
Read the entity object set membership list item of tabulating, judge whether on the object relationship tree, to set up the father's entity object node in this list item, if then find the object relationship tree to go up this father's entity object node, otherwise on the object relationship tree, create this father's entity object node; Child node in this entity object set membership list item is newly-increased entity object node, determines that the father's entity object node in this list item is the father node of newly-increased entity object.
This method may further include: increase a sign in nodal information, this is masked as different numerals in the nodal information of entity object node and virtual objects node; Judge according to this sign whether the node in the object relationship tree is the virtual objects node.
This method can further include: divide section to the Object node type number, the corresponding jack per line section not of every kind of node type; Which number section that belongs to entity object node and virtual objects node according to type number is come the decision node type.
Storage entity object set membership tabulation in advance and entity object group relation table, when setting up the object relationship tree, described steps A 1 can comprise:
A11, read the entity object set membership list item of tabulating, judge whether on the object relationship tree, to set up the father's entity object node in this list item, if then find the object relationship tree to go up this father's entity object node, execution in step A12; Otherwise on the object relationship tree, create this father's entity object node;
A12, search entity object group relation table, judge whether the fructification object in this entity object set membership list item belongs to a resource group, if execution in step A13 then; Otherwise the child node in this entity object set membership list item is newly-increased entity object node, determines that the father's entity object node in this list item is the father node of newly-increased entity object;
A13, judge whether on the object relationship tree, to set up this resource group corresponding virtual Object node, if then find this virtual objects node execution in step A14; Otherwise on the object relationship tree, create this resource group corresponding virtual Object node, execution in step A14;
Child node in A14, this entity object set membership list item is newly-increased entity object node, determines that this virtual objects node is the father node of this virtual objects node for newly-increased entity object.
When object relationship tree is set up the newly-increased entity object node in back, described steps A 1 can for:
According to tabulation of entity object set membership and entity object group relation table, to the object relationship tree, find the father node of this newly-increased entity object node.
This method may further include: increase a sign in nodal information, this is masked as different numerals the nodal information of entity object node, virtual objects node and shadow object node; According to the node type in this sign judgement object relationship tree.
This method can further include: divide section to the Object node type number, the corresponding jack per line section not of every kind of node type; Which number section that belongs to entity object node, virtual objects node and shadow object node according to type number is come the decision node type.
If the object relationship tree is carried out the knot removal operation, then can comprise following steps among the step B:
B1, find the Object node that to delete;
B2, from object relationship tree this node of deletion;
B3, judge whether the father node of deleted node is virtual objects node or shadow object node, if execution in step B4 then; Otherwise finish this deletion action.
B4, judge the deletion Object node after, whether this virtual objects node or shadow object node also have child node, if, then finish this deletion action, otherwise with this virtual objects node or shadow object node as treating deletion of node, return step B2.
Described method of searching Object node can for: take to search, or take to search, or adopt the method for setting up index to search according to the algorithm of depth-first according to the algorithm of breadth-first.
As seen from the above technical solutions, this implementation method that system resource is managed of the present invention, when setting up the object relationship tree and increasing new node, reached predetermined fan-out degree if should increase the father node fan-out width of node newly, then can create a shadow object node, remove the set membership of the sub-entity object node and the father node of this father node, with this fructification Object node and newly-increased node child node as shadow object; Again with the child node adding object relationship tree of shadow object node as above-mentioned father node.Like this, the node that just can not select fan-out degree maximum is as predetermined fan-out degree, and making does not need each father node to reserve the memory headroom of maximum fan out-degree, thereby has saved memory headroom, has reduced the wasting of resources.
In addition, the present invention can also increase the virtual objects node when setting up the object relationship tree, embody the group relation by the virtual objects node, and making does not need to realize the group relation with program code, helps the maintenance and expansion of system.
Description of drawings
Fig. 1 sets up the processing flow chart of a simple object relational tree for prior art;
The object relationship tree synoptic diagram that Fig. 2 sets up for adopting flow process shown in Figure 1;
Fig. 3 sets up the processing flow chart of object relationship tree for the present invention's first preferred embodiment;
Fig. 4 shows the object relationship tree synoptic diagram that flow process is set up for adopting Fig. 3;
Fig. 5 is for deleting the processing flow chart of Object node to object relationship data shown in Figure 3.
Fig. 6 is for setting up the processing flow chart of object relationship tree in the present invention's second preferred embodiment;
The object relationship tree synoptic diagram that Fig. 7 sets up for adopting flow process shown in Figure 6.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is described in more detail.
This implementation method that system resource is managed of the present invention, when setting up the object relationship tree and increasing new node, reached predetermined fan-out degree if should increase the father node fan-out width of node newly, then can create a shadow object node, remove the set membership of the sub-entity object node and the father node of this father node, with this fructification Object node and newly-increased node child node as shadow object; Again with the child node adding object relationship tree of shadow object node as above-mentioned father node.
Below lift two in the preferred embodiment that telecommunication system resources is managed the present invention is described in detail.
First preferred embodiment:
In the present embodiment, preestablished fan-out width limit k, and the set membership tabulation of having stored each entity object of telecommunication system resources shows to set up the object relationship tree according to this.Below the corresponding node in the object relationship tree of the entity object in the entity object set membership tabulation is called the entity object node.
Referring to Fig. 3, Fig. 3 sets up the processing flow chart of object relationship tree for the present invention's first preferred embodiment.This flow process may further comprise the steps:
Step 301 reads a list item of entity object set membership tabulation.
Step 302 judges that whether the father's entity object node in this list item is set up on the object relationship tree, if execution in step 303 then; Otherwise execution in step 304.
Step 303, this father's entity object node of location on the object relationship tree, execution in step 305.
Step 304 on the object relationship tree, is created this father's entity object node.
Step 305 judges whether the fan-out width of this father node has reached predetermined limits k; If execution in step 307 then; Otherwise execution in step 306.
The fan-out width of father node is exactly the number of the child node of this father node.
Step 306 is determined the father node of this father node for the Object node that will increase, and sets up set membership, Object node is joined in the object relationship tree execution in step 314.
Step 307 joins this father node in the breadth first traversal formation.This formation is a First Input First Output.
In the present embodiment, adopt the ergodic algorithm of breadth-first, the traversal child node.This algorithm is a kind of traversal method commonly used, and present embodiment is carried out according to this algorithm, is not described in detail this algorithm here.
Step 308 is taken out first Object node in the formation, adopts the ergodic algorithm of breadth-first to travel through its child node.
Step 309 judges whether to find the shadow object node of a fan-out width<k, if execution in step 310 then; Otherwise execution in step 311.
In the present embodiment,, in nodal information, add mark, judge whether to be the shadow object node according to this mark in order to distinguish shadow object node and entity object node.
Generally include 3 category informations in the nodal information:
(1) essential information of Object node; Basic fixed position parameter as Object node;
(2) status information of Object node; Be used to portray the status information of Object node;
(3) the node relationships information of Object node embodies the fundamental relation between the node;
The 1st category information is the key message that this node is different from other Object node in the object relationship tree concerning given Object node, therefore can not on-the-fly modify these information, in case promptly these information initialization are finished, just can not be modified again; The 3rd category information generally safeguarded according to certain rule by Object node self, its embodiment be relation between objects information;
The 2nd category information, reflection be some states in the Object node operational process, these information change along with the variation of object s own situation; Also depend on simultaneously the 3rd top category information, for example when not satisfying, the corresponding state of its direct father node can be set thus when " group relation ".
For entity object node, shadow object node, in information processing, there is not any difference between the two.
Step 310, the Object node that will add add the object relationship tree, execution in step 314 as the child node of this shadow object.
Step 311 judges whether to find an entity object node, if then execution in step 312; Otherwise execution in step 313.
Step 312 is created a shadow object node, the entity object node that dismounting step 311 finds and the set membership of father node; With entity object node that finds and the Object node that will add child node as shadow object; Again with the child node of shadow object node as above-mentioned father node, set up and this father node between set membership; Add the object relationship tree, execution in step 314.
Step 313 with all child nodes of father node, adds the breadth first traversal formation by the breadth-first algorithm, returns step 308.
Step 314 judges whether that all list items have all read, if then the object relationship tree is set up and finishes process ends; Otherwise return step 301, read next list item.
Suppose that the set membership tabulation of each entity object of telecommunication system resources is as shown in table 2.In the present embodiment, when the set membership tabulation of setting up entity object, according to seniority in the family order, the list item of the father node that the seniority in the family is high is arranged on the front of tabulation.For example: the relation of supposing A-a1-@ is that A is the father node of a1, and a1 is the father node of @, when setting up the set membership form, the set membership of A-a1 is arranged on before a1-@.Like this, in the process of setting up tree, the object relationship tree just can not occur @ need being added, when setting up the set membership of a1-@, the set membership of A-a1 does not also have the situation of foundation.
Parent object Subobject
A a1
A a2
A a3
A a4
A a5
A a6
Table 2
Suppose that fan-out width limit k value is in the present embodiment at 3 o'clock, through the processing of above-mentioned steps, the result who obtains as shown in Figure 4.Wherein A1 and A2 are exactly the new shadow object node of introducing.
Same as the prior art to the node search operation that has increased the object relationship tree behind the shadow object node, can take to search according to the algorithm of breadth-first, also can take to search, also can adopt the method for setting up index to search according to the algorithm of depth-first.
The operation of the knot removal of object relationship tree has some improvement, and referring to Fig. 5, Fig. 5 is for deleting the processing flow chart of Object node to object relationship data shown in Figure 3.This flow process may further comprise the steps:
Step 501 finds the Object node that will delete.
Step 502, this node of deletion from the object relationship tree.
This step is the same with prior art, if deletion is the father node that has child node, then deletes all child nodes of this father node earlier, deletes this father node again; If deletion is child node, then directly deletion gets final product.
Step 503 judges whether the father node of deleted node is the shadow object node, if execution in step 504 then; Otherwise finish this deletion action.
Step 504, behind this Object node of judgement deletion, whether this shadow object node also has other child nodes, if, then finish this deletion action, otherwise execution in step 505.
Step 505 as treating deletion of node, returns this shadow object node to step 502.
In the practical application, if when carrying out other of system resource management, do not have child node if find certain shadow object node, then equally with this shadow knot removal.
The node of object relationship tree increases: revise the set membership tabulation of entity object earlier, set membership and group according to this tabulation concerns again, find the father node of this increase node,, this node is joined on the object relationship tree with reference to the flow process of setting up the object relationship tree shown in Figure 3.
Present embodiment is in setting up object relationship tree process, according to fan-out width needs, can increase the shadow object node.Equally, after the object relationship tree is set up well, when needing to increase new entity object node, also can be according to fan-out width needs, increase the shadow object node, as long as on the object relationship tree, find father's entity object node of the novel entities object of increase earlier, 305~313 execution get final product with reference to above-mentioned steps.
Second preferred embodiment:
In the present embodiment, adopt program code to embody the group of objects relation, cause the processing complicated problems, in the object relationship tree, except increasing the shadow object node, also increase the virtual objects node that embodies entity object group relation in order to solve present object relationship tree.
Except being scheduled to fan-out width limit k, stored each entity object set membership tabulation of telecommunication system resources in the present embodiment, also stored the group of objects relation table, set up the object relationship tree according to these two tables.Referring to Fig. 6, Fig. 6 sets up the processing flow chart of object relationship tree for the present invention's second preferred embodiment.This flow process may further comprise the steps:
Step 601 reads a list item of entity object set membership tabulation.
Step 602 judges that whether the father's entity object node in this list item is set up on the object relationship tree, if execution in step 603 then; Otherwise execution in step 604.
Step 603, this father's entity object node of location on the object relationship tree, execution in step 605.
Step 604 on the object relationship tree, is created this father's entity object node.
Step 605, in the group of objects relation table, whether the subobject of searching in this object set membership list items belongs to certain group, if execution in step 606 then; Otherwise execution in step 609.
Step 606 is judged on the object relationship tree, whether has set up the virtual objects node of this group, if then execution in step 608; Otherwise execution in step 607.
Also can in nodal information, increase a sign specially in the present embodiment, show the Object node type.For example the sign value is corresponding respectively in node:
0-entity object node type;
1-virtual objects node type;
2-shadow object node type.
In addition, can also take sectional method to the Object node type number.The size of each section is not arranged, and the actual capabilities usage ratio of each section is distributed according to expectation.For example, adopting the 32bit data to characterize style number, entity object node, virtual objects node, shadow object node usage ratio according to expectation are 4: 2: 2.Considering extensibility, is that all numberings of 1 keep earlier with most significant digit, can carry out following distribution:
0xFFFFFFF0~0xFFFFFFFF system is used for specifically defined
0x80FFFFFF~0xFFFFFFEF keeps
0x60FFFFFF~0x7FFFFFEF is used for the distribution of shadow object node
0x40FFFFFF~0x5FFFFFEF is used for the distribution of virtual objects node
0x00FFFFFF~0x3FFFFFEF is used for the distribution of entity object node
Certainly, in first preferred embodiment, also can adopt the Object node type number is taked sectional method.
Step 607, the virtual objects node of this group of establishment on the object relationship tree.
Step 608 is determined the father node of this virtual objects node for the fructification Object node in this list item, execution in step 610.
Step 609 determines that the father's entity object node in this list item is the father node with the fructification Object node in this list item, execution in step 610.
Step 610 judges whether the fan-out width of this father node has reached predetermined limits k; If execution in step 612 then; Otherwise execution in step 61.
The fan-out width of father node is exactly the number of the child node of this father node.
Step 611 is determined the father node of this father node for the Object node that will increase, and sets up set membership, Object node is joined in the object relationship tree execution in step 619.
Step 612 joins this father node in the breadth first traversal formation.This formation is a First Input First Output.
In the present embodiment, adopt the ergodic algorithm of breadth-first, the traversal child node.This algorithm is a kind of traversal method commonly used, and present embodiment is carried out according to this algorithm, is not described in detail this algorithm here.
Step 613 is taken out first Object node in the formation, adopts the ergodic algorithm of breadth-first to travel through its child node.
Step 614 judges whether to find the shadow object node of a fan-out width<k, if execution in step 615 then; Otherwise execution in step 618.
Step 615, the Object node that will add add the object relationship tree as the child node of this shadow object, finish to add operation.
Step 616 judges whether to find an entity object node, if then execution in step 617; Otherwise execution in step 618.
Step 617 is created a shadow object node, the entity object node that dismounting step 616 finds and the set membership of father node; With entity object node that finds and the Object node that will add child node as shadow object; Again with the child node of shadow object node as above-mentioned father node, set up and this father node between set membership; Add the object relationship tree, execution in step 619.
Step 618 with all child nodes of father node, adds the breadth first traversal formation by the breadth-first algorithm, returns step 613.
Step 619 judges whether that all list items have all read, if then the object relationship tree is set up and finishes process ends; Otherwise return step 601, read next list item.
Suppose that half frame about the base station ascending resource divides is worked in the resource pool mode in half frame; About 7 resource boards of half frame maximum configured.The set membership tabulation of each entity object is as shown in table 4, and the group of objects relation table is as shown in table 5.
Parent object Subobject
A a1
A a2
A a3
A a4
A a5
A a6
A a7
A b1
A b2
A b3
A b4
A b5
A b6
A b7
Table 4
Group number Object
G1 a1
G1 a2
G1 a3
G1 a4
G1 a5
G1 a6
G1 a7
G2 b1
G2 b2
G2 b3
G2 b4
G2 b5
G2 b6
G2 b7
Table 5
When object tree width limit is 4, set as shown in Figure 7 according to the object relationship that the method for present embodiment is set up.The object relationship tree synoptic diagram that Fig. 7 sets up for adopting flow process shown in Figure 6.
In the node of Fig. 7, A represents ascending resource; A1, B1 is corresponding virtual objects node respectively, respectively the ascending resource of half frame about the expression; A2, B2 is corresponding shadow object node respectively.
With a left side half frame is example, and the algorithm that adds A1 is referring to introducing the virtual objects algorithm of nodes; Add a1~a7 Object node according to shadow object node algorithm subsequently, addition sequence is:
1, adds a1~a4;
Find restricted width when 2, adding a5,, find a1 and separate it and the set membership of A1, add A2 shadow object node, set up the set membership of a1, a5 and A2 according to shadow object node algorithm;
3, add a6, a7 node.
Identical to the node search operation that has increased the object relationship tree behind virtual objects node, the shadow object node with first preferred embodiment, no longer repeat specification here.
The operation and the flow process shown in Figure 5 of the knot removal of object relationship tree are basic identical, just in step 503, not only need to judge whether to handle equally for the subsequent treatment and the shadow object node of virtual objects node for the shadow object node also will judge whether to be the virtual objects node.
The node of object relationship tree increases: revise the set membership tabulation of entity object earlier, if the node that increases newly belongs to certain group, then revise the group of objects relation table simultaneously, set membership and group according to this tabulation concerns again, find the father node of this increase node, with reference to flow process shown in Figure 6, this node is joined on the object relationship tree.
By the above embodiments as seen, this implementation method that system resource is managed of the present invention, solved the problem of the memory headroom waste that fixing fan-out width brings, in addition, the present invention can also increase the virtual objects node of identified group relation on object relationship tree, the more convenient maintenance and expansion of system.

Claims (11)

1, a kind of implementation method that system resource is managed adopts object relationship tree technology, it is characterized in that, may further comprise the steps:
A, object relationship tree is being increased newly in the entity object node process, when the fan-out of father's entity object node of this newly-increased entity node has reached predetermined limits, then create a shadow object node, remove the set membership of this father's entity object node and one sub-entity object node, with this fructification Object node and newly-increased node child node as shadow object; Again with the child node adding object relationship tree of shadow object node as above-mentioned father's entity object node;
B, when carrying out system resource management, do not have child node if judge the shadow object node, then the shadow object node is carried out deletion action.
2, implementation method as claimed in claim 1 is characterized in that, described steps A comprises:
The father node of A1, definite newly-increased entity node;
A2, judge whether the fan-out width of the father node of this newly-increased entity object node has reached predetermined limits, if execution in step A3 then; Otherwise determine that this father node is the father node of this fructification Object node, this fructification Object node is joined in the object relationship tree, finish to add and operate;
A3, this father node join in the breadth first traversal formation;
First Object node in A4, the taking-up formation, adopt the ergodic algorithm of breadth-first to travel through its child node, and judge whether to find the shadow object node of a fan-out width less than predetermined limits, if will increase the child node of entity object node newly as this shadow object, add the object relationship tree, finish to add and operate; Otherwise execution in step A5;
A5, judge whether to find an entity object node, if, execution in step A6 then; Otherwise with all child nodes of father node, add the breadth first traversal formation, return steps A 4 by the breadth-first algorithm;
A6, shadow object node of establishment, the entity object node that dismounting is found and the set membership of father node; With the entity object node that finds child node as shadow object; Again with the child node of shadow object node as above-mentioned father node, set up and this father node between set membership; Add the object relationship tree, finish to add and operate.
3, implementation method as claimed in claim 2 is characterized in that: storage entity object set membership tabulation in advance, and when setting up the object relationship tree, described steps A 1 is:
Read the entity object set membership list item of tabulating, judge whether on the object relationship tree, to set up the father's entity object node in this list item, if then find the object relationship tree to go up this father's entity object node, otherwise on the object relationship tree, create this father's entity object node; Child node in this entity object set membership list item is newly-increased entity object node, determines that the father's entity object node in this list item is the father node of newly-increased entity object.
4, implementation method as claimed in claim 2 is characterized in that, this method further comprises: increase a sign in nodal information, this is masked as different numerals in the nodal information of entity object node and virtual objects node; Judge according to this sign whether the node in the object relationship tree is the virtual objects node.
5, implementation method as claimed in claim 2 is characterized in that, this method further comprises: divide section to the Object node type number, the corresponding jack per line section not of every kind of node type; Which number section that belongs to entity object node and virtual objects node according to type number is come the decision node type.
6, implementation method as claimed in claim 2 is characterized in that: storage entity object set membership tabulation in advance and entity object group relation table, and when setting up the object relationship tree, described steps A 1 comprises:
A11, read the entity object set membership list item of tabulating, judge whether on the object relationship tree, to set up the father's entity object node in this list item, if then find the object relationship tree to go up this father's entity object node, execution in step A12; Otherwise on the object relationship tree, create this father's entity object node;
A12, search entity object group relation table, judge whether the fructification object in this entity object set membership list item belongs to a resource group, if execution in step A13 then; Otherwise the child node in this entity object set membership list item is newly-increased entity object node, determines that the father's entity object node in this list item is the father node of newly-increased entity object;
A13, judge whether on the object relationship tree, to set up this resource group corresponding virtual Object node, if then find this virtual objects node execution in step A14; Otherwise on the object relationship tree, create this resource group corresponding virtual Object node, execution in step A14;
Child node in A14, this entity object set membership list item is newly-increased entity object node, determines that this virtual objects node is the father node of this virtual objects node for newly-increased entity object.
7, implementation method as claimed in claim 6 is characterized in that: when increasing the entity object node newly after the object relationship tree is set up, described steps A 1 is:
According to tabulation of entity object set membership and entity object group relation table, to the object relationship tree, find the father node of this newly-increased entity object node.
8, implementation method as claimed in claim 6 is characterized in that, this method further comprises: increase a sign in nodal information, this is masked as different numerals the nodal information of entity object node, virtual objects node and shadow object node; According to the node type in this sign judgement object relationship tree.
9, implementation method as claimed in claim 6 is characterized in that, this method further comprises: divide section to the Object node type number, the corresponding jack per line section not of every kind of node type; Which number section that belongs to entity object node, virtual objects node and shadow object node according to type number is come the decision node type.
10, implementation method as claimed in claim 6 is characterized in that, if the object relationship tree is carried out the knot removal operation, then comprises following steps among the step B:
B1, find the Object node that to delete;
B2, from object relationship tree this node of deletion;
B3, judge whether the father node of deleted node is virtual objects node or shadow object node, if execution in step B4 then; Otherwise finish this deletion action.
B4, judge the deletion Object node after, whether this virtual objects node or shadow object node also have child node, if, then finish this deletion action, otherwise with this virtual objects node or shadow object node as treating deletion of node, return step B2.
11, implementation method as claimed in claim 10 is characterized in that, described method of searching Object node is: take to search according to the algorithm of breadth-first, or take to search according to the algorithm of depth-first, or adopt the method for setting up index to search.
CNB2005100987796A 2005-09-07 2005-09-07 Method for realizing system resources management Expired - Fee Related CN100383789C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100987796A CN100383789C (en) 2005-09-07 2005-09-07 Method for realizing system resources management

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100987796A CN100383789C (en) 2005-09-07 2005-09-07 Method for realizing system resources management

Publications (2)

Publication Number Publication Date
CN1851694A true CN1851694A (en) 2006-10-25
CN100383789C CN100383789C (en) 2008-04-23

Family

ID=37133173

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100987796A Expired - Fee Related CN100383789C (en) 2005-09-07 2005-09-07 Method for realizing system resources management

Country Status (1)

Country Link
CN (1) CN100383789C (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100383788C (en) * 2005-09-07 2008-04-23 华为技术有限公司 Method for realizing system resources management
CN103207813A (en) * 2012-01-11 2013-07-17 华为技术有限公司 Method and device for managing resources
CN109299337A (en) * 2018-10-19 2019-02-01 南威软件股份有限公司 Graph searching method based on iteration
CN110018866A (en) * 2018-11-06 2019-07-16 蔚来汽车有限公司 User interface theme update method, device, system, vehicle device and vehicle

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7743074B1 (en) * 2000-04-05 2010-06-22 Microsoft Corporation Context aware systems and methods utilizing hierarchical tree structures
US20020091819A1 (en) * 2001-01-05 2002-07-11 Daniel Melchione System and method for configuring computer applications and devices using inheritance
CN100383788C (en) * 2005-09-07 2008-04-23 华为技术有限公司 Method for realizing system resources management

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100383788C (en) * 2005-09-07 2008-04-23 华为技术有限公司 Method for realizing system resources management
CN103207813A (en) * 2012-01-11 2013-07-17 华为技术有限公司 Method and device for managing resources
WO2013104181A1 (en) * 2012-01-11 2013-07-18 华为技术有限公司 Resource management method and device
CN109299337A (en) * 2018-10-19 2019-02-01 南威软件股份有限公司 Graph searching method based on iteration
CN109299337B (en) * 2018-10-19 2022-05-13 南威软件股份有限公司 Graph searching method based on iteration
CN110018866A (en) * 2018-11-06 2019-07-16 蔚来汽车有限公司 User interface theme update method, device, system, vehicle device and vehicle
CN110018866B (en) * 2018-11-06 2022-03-15 蔚来(安徽)控股有限公司 User interface theme updating method, device and system, vehicle machine and vehicle

Also Published As

Publication number Publication date
CN100383789C (en) 2008-04-23

Similar Documents

Publication Publication Date Title
CN1851693A (en) Method for realizing system resources management
CN1115644C (en) Method of implementing an acyclic directed graph structure using a relational database
CN101038640A (en) Worksheets priority level administration method and system, and worksheets process method and system
CN1917504A (en) Method for preventing deadlock caused by accessing shared data of resources
CN1866250A (en) Method and system for managing system data
CN1946075A (en) Method and system to determine a user specific relevance score of a message within a messaging system
CN1858742A (en) Method and system for realizing update data in real time data bank
CN1229944A (en) System and method for reducing footprint of preloaded classes
CN1392985A (en) Multiprocessor system, data processing system, data processing method, and computer program
CN101031886A (en) Network system, management computer, cluster management method, and computer program
CN1851694A (en) Method for realizing system resources management
CN1858782A (en) Method and device for forming user group based on user service data
CN1852261A (en) Method for maintenance of neighbor entry
CN1848111A (en) Realizing method of a data operating interface used in internal-memory database
CN1975772A (en) Method and device for integrating information in multi-system
CN1851737A (en) User individual business realizing system and method
CN101080077A (en) Maintenance method of device management tree and terminal device
CN1889045A (en) Cocurrent event processing device and method in multi-task software system
CN1474297A (en) Organization and maintenance method based on GIS for computer network map
CN1862534A (en) Method for managing and maintaining tatic range matching table
CN1677932A (en) Network management configuration method and apparatus thereof
CN101055569A (en) Function collection method and device of electronic data table
CN1859179A (en) Managing method for user multicast power
CN101068190A (en) Object sharing method, object management server and network system
CN101075244A (en) Method for forming symbol with point, side and line integration

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

Termination date: 20170907