The content of the invention
It is an object of the invention to provide a kind of memory management method and its system for polymorphic type storage device, can be right
Different types of storage device is managed collectively, so as to reduce the management difficulty and application limitation of integrated storage system, is carried
The efficiency of management high.
In order to solve the above technical problems, the invention provides a kind of memory management method for polymorphic type storage device,
Including:
Obtain and store the facility information of each storage device, wherein, the facility information include device identifier and
Device type;
The facility information is sent to client and is shown;
The management request of user input is received, the device identification of storage device to be managed is carried in the management request
Symbol;
According to the management corresponding administration order of request call to the interior device identifier institute for carrying of management request
Corresponding storage device is managed operation.
Preferably, the process shown to client that the facility information is sent is specially:
The device identifier is sent to client and is shown;
Receive the query statement of user input;The query statement carries the device identification of storage device to be checked
Symbol;
The facility information corresponding to each device identifier carried in the query statement is obtained, and is sent to the visitor
Family end is shown.
Preferably, also include before the acquisition and the facility information for storing each storage device:
The equipment for receiving user input finds request;
Request carries out parsing filtration treatment to be found to the equipment;
The facility information of each storage device of acquisition request is found according to the equipment after treatment.
In order to solve the above technical problems, present invention also offers a kind of storage management system for polymorphic type storage device
System, including:
Agent layer including multiple proxy modules, each described proxy module is respectively deployed in a storage device;Institute
State the facility information of storage device of the proxy module where for obtaining itself and send to middleware layer, the facility information bag
Include device identifier and device type;According to the management corresponding administration order of request call for receiving to depositing where itself
Storage equipment is managed operation;
The middleware layer, the facility information for storing each storage device;By the facility information send to
Client is shown;The management request that the client sends is received, the management request is sent to the management request
In proxy module in the corresponding storage device of device identifier of interior carrying;
The client, the management request Concurrency for receiving user input delivers to the middleware layer, the pipe
The device identifier of storage device to be managed is carried in reason request.
Preferably, the middleware layer is specifically included:
Equipment discovery module, for receiving the facility information of each proxy module transmission and sending to database;Will
The device identifier is sent to RestAPI service modules;
The database, the facility information for storing each storage device;
The RestAPI service modules, are shown for the device identifier to be sent to the client;Receive
The query statement that user is input into by the client, the query statement carries the device identification of storage device to be checked
Symbol, the facility information corresponding to each device identifier carried in the query statement is obtained from the database, concurrently
The client is delivered to be shown;The management request Concurrency for receiving the client transmission delivers to service management module;
The service management module, for asking the management according to the device identifier carried in the management request
Send to the proxy module in corresponding storage device.
Preferably, the RestAPI service modules also include:
Resolution unit, for sending described management after request carries out parsing filtration treatment to the service management module;
The equipment that reception receives user input finds request, finds that request carries out parsing filtration treatment to the equipment, and by after treatment
The equipment find request each proxy module is respectively sent to by the equipment discovery module, for generation each described
Reason module receives the facility information that the equipment finds the storage device where obtaining itself after asking.
Preferably, the client specifically for:
Receive the management content of user input;
The management content is encapsulated as HTTP request as the pipe with the device identifier of storage device to be managed
Reason request is sent to the middleware layer.
The invention provides a kind of memory management method and its system for polymorphic type storage device, obtain and store each
After the facility information of individual storage device, the facility information is sent to client and is shown, equipment letter of the user according to display
Device type and other information in breath, it is determined that needing to be managed which storage device, receive taking for user input afterwards
The management request of the device identifier with storage device to be managed, enters according to management request to its corresponding storage device
Row management operation.It can be seen that, the present invention can be managed collectively to different types of storage device, reduce integrated storage system
Management difficulty, improve the efficiency of management, reduce application limitation, so as to improve storage system data supporting ability and
Utilization ratio.
Specific embodiment
Core of the invention is to provide a kind of memory management method and its system for polymorphic type storage device, can be right
Different types of storage device is managed collectively, so as to reduce the management difficulty and application limitation of integrated storage system, is carried
The efficiency of management high.
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Shown in Figure 1 the invention provides a kind of memory management method for polymorphic type storage device, Fig. 1 is this
A kind of flow chart of the process of the memory management method for polymorphic type storage device for providing is provided;The method includes:
Step s101:The facility information of each storage device is obtained and stores, wherein, facility information includes device identifier
And device type;
In addition, also including every characterization parameter of storage device in facility information, the present invention is to the specific interior of facility information
Appearance is not limited.
Step s102:Facility information is sent to client and is shown;
Step s103:The management request of user input is received, setting for storage device to be managed is carried in management request
Standby identifier;
Step s104:According to the management corresponding administration order of request call to the interior device identifier institute for carrying of management request
Corresponding storage device is managed operation.
Preferably, facility information is sent the process shown to client to be specially:
Device identifier is sent to client and is shown;
Receive the query statement of user input;Query statement carries the device identifier of storage device to be checked;
The facility information corresponding to each device identifier carried in query statement is obtained, and transmission to client is carried out
Display.
It is understood that by facility information send to client shown when, after being classified according to device type
User is showed again, user is known each storage device classification and relevant information.Wherein, query statement here, specifically can be with
It is to be generated after user clicks on the device identifier for showing, certainly, the present invention is not especially limited to this.
Preferably, also include before the facility information for obtaining and storing each storage device:
The equipment for receiving user input finds request;
Request carries out parsing filtration treatment to be found to equipment;
The facility information of each storage device of acquisition request is found according to the equipment after treatment.
The invention provides a kind of memory management method for polymorphic type storage device, obtain and store each storage and set
After standby facility information, the facility information is sent to client and is shown, user is according to setting in the facility information of display
Standby type and other information, it is determined that needing to be managed which storage device, the carrying that user input is received afterwards needs to be managed
The management request of the device identifier of the storage device of reason, behaviour is managed according to management request to its corresponding storage device
Make.It can be seen that, the present invention can be managed collectively to different types of storage device, and the management for reducing integrated storage system is difficult
Degree, improves the efficiency of management, reduces application limitation, so as to improve the data supporting ability of storage system and utilize effect
Rate.
Shown in Figure 2 present invention also offers a kind of storage management system for polymorphic type storage device, Fig. 2 is
A kind of structural representation of storage management system for polymorphic type storage device that the present invention is provided.The system includes:
Agent layer Agent including multiple proxy modules, each proxy module is respectively deployed in a storage device;Generation
The facility information of the storage device that reason module is used for where obtaining itself is simultaneously sent to middleware layer, and facility information includes equipment mark
Know symbol and device type;The storage device where itself is entered according to the management corresponding administration order of request call for receiving
Row management operation;
Middleware layer Middleware, the facility information for storing each storage device;Facility information is sent to visitor
Family end is shown;The management request that client sends is received, request will be managed and sent the equipment mark carried to management request
Know in the proxy module in the corresponding storage device of symbol;
Client Client, the management request Concurrency for receiving user input delivers to middleware layer, is taken in management request
Device identifier with storage device to be managed.
Wherein, Middleware can both be deployed in storage device and can also be deployed in single management server.
In addition, each proxy module is provided with Agent interfaces, Agent interfaces set for monitoring and managing correspondence storage
Standby and feedback response information;I.e. after the completion of management operation, proxy module can generate response message and be sent into by Agent interfaces
Between part layer, then sent to client by middleware layer;Also, middleware layer determines the device identifier pair carried in management request
After the storage device answered, management request is sent to the Agent interfaces in the storage device.
It is understood that the storage device where each proxy module by default configuration file obtains itself sets
Standby information.
Preferably, middleware layer is specifically included:
Equipment discovery module, for receiving the facility information of each proxy module transmission and sending to database;By equipment
Identifier is sent to RestAPI service modules;
Specifically, also to the device type and other information in the facility information after equipment discovery module receiving device information
It is identified, is sent to database after identification and stored.
Database, the facility information for storing each storage device;
RestAPI service modules, are shown for device identifier to be sent to client;Receive user and pass through client
The query statement of input, query statement is held to carry the device identifier of storage device to be checked, obtained from database and looked into
The facility information corresponding to each device identifier carried in instruction is ask, and transmission to client is shown;Receive client
The management request Concurrency for sending is held to deliver to service management module;
Service management module, sends to corresponding for that will manage request according to the device identifier carried in management request
In proxy module in storage device.
In addition, service management module is received after management is asked always according to the device identifier carried in management request from data
Obtain the corresponding facility information of the device identifier in storehouse, and the facility information is sent together with management request to acting on behalf of mould
Block, it is of course also possible to not carry out aforesaid operations, proxy module is managed facility information required during operation can be according to configuration text
Part is voluntarily obtained, and is specifically not particularly limited using which kind of mode present invention.
It is shown in Figure 3, obtained in a kind of storage management system for polymorphic type storage device that Fig. 3 is provided for the present invention
Take the schematic diagram of the process of the facility information of storage device.
Preferably, RestAPI service modules also include:
Resolution unit, for management request carry out parsing filtration treatment after send to service management module;Receive
The equipment of user input finds request, finds that request carries out parsing filtration treatment to equipment, and the equipment after treatment is found to ask
Ask and each proxy module is respectively sent to by equipment discovery module, obtained after finding request for each proxy module receiving device
The facility information of the storage device where itself.
It is shown in Figure 4, enter in a kind of storage management system for polymorphic type storage device that Fig. 4 is provided for the present invention
The schematic diagram of the process of row storage device management.In Fig. 4, configuration file refers to proxy module to be needed by corresponding configuration text
Part calls administration order to be managed operation;Four-headed arrow in Fig. 4 is referred to after the completion of management, and proxy module can reply response
Information is to client.
Wherein, equipment finds that request is sent after the web-based management software of User logs in client.
Preferably, client specifically for:
Receive the management content of user input;
Management content and the device identifier of storage device to be managed are encapsulated as HTTP request as management request hair
Deliver to middleware layer.
It can be seen that, the type information that the system passes through each storage device of Agent module managements recognizes that different types of storage sets
It is standby;Different types of storage device is managed collectively using the type information of storage device, the pipe that data center stores network is improved
Reason efficiency;Web interface, data processing are separated with the bottom operation to storage device, facilitates the maintenance work of each level, improved
The stability and scalability of management system.
The invention provides a kind of storage management system for polymorphic type storage device, obtain and store each storage and set
After standby facility information, the facility information is sent to client and is shown, user is according to setting in the facility information of display
Standby type and other information, it is determined that needing to be managed which storage device, the carrying that user input is received afterwards needs to be managed
The management request of the device identifier of the storage device of reason, behaviour is managed according to management request to its corresponding storage device
Make.It can be seen that, the present invention can be managed collectively to different types of storage device, and the management for reducing integrated storage system is difficult
Degree, improves the efficiency of management, reduces application limitation, so as to improve the data supporting ability of storage system and utilize effect
Rate.
It should be noted that in this manual, term " including ", "comprising" or its any other variant be intended to
Nonexcludability is included, so that process, method, article or equipment including a series of key elements not only will including those
Element, but also other key elements including being not expressly set out, or also include being this process, method, article or equipment
Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Also there is other identical element in process, method, article or equipment including the key element.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or uses the present invention.
Various modifications to these embodiments will be apparent for those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, the present invention
The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one
The scope most wide for causing.