CN112433680A - Unified interface processing method, device, equipment and medium for multiple storage media - Google Patents

Unified interface processing method, device, equipment and medium for multiple storage media Download PDF

Info

Publication number
CN112433680A
CN112433680A CN202011383068.4A CN202011383068A CN112433680A CN 112433680 A CN112433680 A CN 112433680A CN 202011383068 A CN202011383068 A CN 202011383068A CN 112433680 A CN112433680 A CN 112433680A
Authority
CN
China
Prior art keywords
bucket
request information
unified interface
request
storage media
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.)
Pending
Application number
CN202011383068.4A
Other languages
Chinese (zh)
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.)
China Life Insurance Co Ltd China
Original Assignee
China Life Insurance Co Ltd China
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 China Life Insurance Co Ltd China filed Critical China Life Insurance Co Ltd China
Priority to CN202011383068.4A priority Critical patent/CN112433680A/en
Publication of CN112433680A publication Critical patent/CN112433680A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0662Virtualisation aspects
    • G06F3/0667Virtualisation aspects at data level, e.g. file, record or object virtualisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0683Plurality of storage devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The exemplary embodiment of the present invention provides a method, an apparatus, a device and a medium for processing a unified interface of multiple storage media, wherein the method comprises: defining a unified interface based on a plurality of interfaces of the bucket; receiving request information of an application party through the unified interface, wherein the request information at least comprises one of authority information token, file ID or logic bucket, and the request information comprises an uplink request and a downlink request; and analyzing the request information to perform corresponding data operation on the bucket corresponding to the request information. The invention realizes the storage or retrieval function of different storage medium files through various specific functional suspects of the unified interface, and an application party does not need to develop differentiated functions aiming at different storage media, thereby solving the problem that the current multi-storage medium interface is single and can not be used uniformly.

Description

Unified interface processing method, device, equipment and medium for multiple storage media
Technical Field
The exemplary embodiment of the present invention relates to the field of file storage technologies, and in particular, to a method, an apparatus, a device, and a medium for processing a unified interface of multiple storage media.
Background
With the continuous development of information network technology and hardware device technology, more and more storage media are on the market, and different application systems may be adapted to different storage media (commercial object storage, software defined storage, NAS, etc. media). The storage medium of the same application is always replaced along with the development of hardware in the using process so as to provide better service.
When the hardware changes, all related application systems must be modified and developed by matching with the hardware; when a certain medium fault occurs, the production is delayed because the interfaces of the storage medium cannot be immediately connected and replaced due to different interfaces; customized development is required for each storage medium, and time and labor are consumed.
Disclosure of Invention
In view of the above, an object of the exemplary embodiments of the present invention is to provide a method, an apparatus, a device, and a medium for processing a unified interface of multiple storage media, so as to solve the problem that a bucket interface of multiple storage media has a single access.
In view of the above, an exemplary embodiment of the present invention provides a method for processing a unified interface of multiple storage media, where the method includes:
defining a unified interface based on a plurality of interfaces of a bucket, wherein the unified interface is arranged in a logic bucket, the logic bucket corresponds to a logic concept of the bucket, and the unified interface is used for providing services according to a software development kit;
receiving request information of an application party through the unified interface, wherein the request information at least comprises one of authority information token, file ID or logic bucket, and the request information comprises an uplink request and a downlink request;
and analyzing the request information to perform corresponding data operation on the bucket corresponding to the request information.
In another possible implementation manner of the embodiment of the present invention, in combination with the above description, the method further includes:
and after the request information is analyzed, reading other buckets except the bucket corresponding to the request information.
In another possible implementation manner of the embodiment of the present invention, in combination with the above description, the method further includes:
and authenticating the authority information token, and executing the operation corresponding to the request information after the authentication is passed.
In another possible implementation manner of the embodiment of the present invention, in combination with the above description, the method further includes:
when the access of a first bucket corresponding to the request information of the application party fails, configuration modification is carried out on the unified interface, so that the request information of the application party is switched to a second bucket, and the second bucket is a standby bucket different from the first bucket.
With reference to the foregoing description, in another possible implementation manner of the embodiment of the present invention, when the request information is an uplink request, the method further includes:
searching a storage bucket corresponding to the logic bucket and used for write operation through configuration, and recording storage medium information and logic bucket information as system indexes according to storage media of the storage bucket;
and writing the file into a correct storage bucket according to the system index.
In a second aspect, an exemplary embodiment of the present invention further provides a method for processing a unified interface of multiple storage media, where the method includes:
a definition module for defining a unified interface based on a plurality of interfaces of a bucket, the unified interface being installed in a logical bucket, the logical bucket corresponding to a logical concept of the bucket, the unified interface being used for providing a service according to a software development kit;
the request module is used for receiving request information of an application party through the unified interface, wherein the request information at least comprises one of authority information token, file ID or logic bucket, and the request information comprises an uplink request and a downlink request;
and the analysis module is used for analyzing the request information so as to perform corresponding data operation on the bucket corresponding to the request information.
The above apparatus, further comprising:
and the read-write module is used for performing read operation on other buckets except the bucket corresponding to the request information after analyzing the request information.
The above apparatus, further comprising:
and the authentication module is used for authenticating the authority information token and executing the operation corresponding to the request information after the authentication is passed.
In a third aspect, an exemplary embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the unified interface processing method for multiple storage media.
In a fourth aspect, exemplary embodiments of the present invention also provide a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the unified interface processing method for multiple storage media.
As can be seen from the foregoing, the method, apparatus, device and medium for processing a unified interface of multiple storage media according to the exemplary embodiments of the present invention provide a function of a completely new virtual logic storage architecture, and implement storage or retrieval functions of different storage media files through various specific functional parties of a unified interface by constructing the unified interface of the virtual logic storage architecture, so that an application party does not need to perform differentiated function development for different storage media, and a problem that a single interface of multiple storage media cannot be used uniformly at present is solved.
Drawings
In order to more clearly illustrate the exemplary embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only exemplary embodiments of the present invention, and for those skilled in the art, other drawings may be obtained based on these drawings without inventive effort.
FIG. 1(a) is a schematic basic flow diagram of a method according to an exemplary embodiment of the present invention;
FIG. 1(b) is a block diagram of the architecture of the upper layer application system according to an exemplary embodiment of the present invention;
fig. 2 is a basic diagram illustrating an uplink request flow according to an exemplary embodiment of the present invention;
fig. 3 is a basic diagram illustrating a downlink request flow according to an exemplary embodiment of the present invention;
FIG. 4 is a schematic illustration of an exemplary embodiment of the present invention during failover;
FIG. 5 is a schematic diagram of the basic structure of an apparatus according to an exemplary embodiment of the present invention;
fig. 6 is a schematic diagram of the basic structure of the apparatus according to the exemplary embodiment of the present invention.
Detailed Description
For the purpose of promoting a better understanding of the objects, aspects and advantages of the present disclosure, reference is made to the following detailed description taken in conjunction with the accompanying drawings.
It should be noted that technical terms or scientific terms used in the exemplary embodiments of the present invention should have a general meaning as understood by those having ordinary skill in the art to which the present disclosure pertains, unless otherwise defined. The use of "first," "second," and similar language in the exemplary embodiments of the invention is not intended to imply any order, quantity, or importance, but rather the intention is to distinguish one element from another. The word "comprising" or "comprises", and the like, means that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", and the like are used merely to indicate relative positional relationships, and when the absolute position of the object being described is changed, the relative positional relationships may also be changed accordingly.
In an underlying distributed storage system or cloud storage system of an insurance system, generally, a plurality of tenants exist under a root authority, each tenant corresponds to a plurality of buckets for storing various types of data objects, the tenant may correspond to a certain type of large department in the insurance system, the bucket may correspond to a middle-level department in the insurance system, a logical bucket pair may correspond to a data storage server, for example, a file server using an s3 interface, the bucket may include multiple types of application data or various types of subsystem storage data, and each department may be considered as a specific business scenario.
The invention relates to a unified interface processing method, a device, equipment and a medium for multiple storage media, which are mainly applied to a scene that different storage media cannot be accessed through a unified interface in distributed storage of an insurance system, and are combined with a basic flow schematic diagram of the unified interface processing method for the multiple storage media shown in a figure 1(a) and a system architecture schematic diagram shown in a figure 1(b), wherein the method comprises the following steps:
in step 110, defining a unified interface based on a plurality of interfaces of a bucket, wherein the unified interface is installed in a logic bucket, the logic bucket corresponds to a logic concept of the bucket, and the unified interface is used for providing services according to a software development kit;
the barrel belongs to the subordinate concept of the tenant, a plurality of barrels can exist under one tenant, and one barrel can be used for storing one special data, and can be the same medium or formed by combining different storage media.
When a bucket is formed by combining a plurality of storage media, each storage medium of the bucket corresponds to an application interface for data access, and the application interfaces of the plurality of storage media of different buckets in an insurance system are defined, so that a logically uniform interface is formed, and the uniform interface can realize functions realized by various types of application interfaces, such as picture processing, video processing, monitoring service, authority service, index service, file transmission, file asynchronous service, electronic document service and the like.
The unified interface can shield the difference of multiple storage medium interfaces at the bottom layer through a set of logical virtual storage architecture, so that the upper layer application has no perception on the difference between the storage medium interfaces, and the file storage of different storage media can be realized by directly calling the unified interface provided by the content management system.
In the specific implementation manner of the exemplary embodiment of the present invention, in an object storage manner, an interface protocol of logical S3 is simulated, and concepts of logical tenants and buckets are simulated, a set of logical APIs is provided, and services such as permission, monitoring, indexing, file transfer, picture processing, video processing, and the like are implemented, so that a set of virtual logical storage architecture is constructed, and the storage adaptation engine in fig. 1(b) can be used for write switching of a unified interface to different storage media when a failure occurs. The invention respectively realizes the functions of uploading, downloading and the like of various storage media aiming at different storage media.
In step 120, receiving request information of an application party through the unified interface, where the request information at least includes one of a permission information token, a file ID, or a logic bucket, and the request information includes an uplink request and a downlink request;
as shown in fig. 2, this process specifically includes the following steps:
step 101: the application side transmits the token carrying the authority information, the file flow, the logic bucket and other parameters together and receives an uploading instruction of the application side;
the file upload operation may occur in a variety of scenarios, including a page Restful API, i.e., a uniform interface request, and various SDKs, i.e., software development kit requests.
The barrel names carried by the application side during uploading are logical barrels in a logical meaning, and one logical barrel corresponds to a plurality of storage barrels. The invention supports write-once read-many function of the storage bucket, namely, the logic bucket only corresponds to one storage bucket used for write operation, but can carry out read operation on a plurality of related storage buckets. Therefore, when the storage barrel is changed, the invention only needs to modify the configuration to make the logic barrel associated with the new storage barrel, and can realize the switching of the barrel for writing operation, and the application side still uses the original logic barrel name to perform reading/writing operation without any modification.
When uploading, the application side needs to transmit the required service index in addition to the parameters necessary for the uploading interface, and uses the index service for recording for subsequent retrieval, statistics and other scenes.
Step 102: analyzing token information of an application party for authentication;
and calling the authority service to authenticate the application party and checking whether the logic bucket has the authority of uploading the file. If the authentication is successful, calling a file transmission service to upload; and if the authentication fails, returning an error report.
Step 103: uploading the file;
in one implementation of the exemplary embodiments of this invention, the method further comprises:
after the request information is analyzed, reading operation is carried out on other buckets except the bucket corresponding to the request information, namely, a storage bucket which is used for writing operation and corresponds to the current logical bucket is found through configuration, according to a storage medium of the storage bucket, the invention calls an uploading interface supporting the storage medium, records the information of the storage medium and the information of the logical bucket as system indexes, and writes a file into a correct storage bucket, and the specific process is as follows:
when the service index carried by an application side during uploading does not exceed 2KB, writing the file, the service index and the system index into corresponding storage, then calling an index service, recording the service index and the system index into an elastic search, and using the elastic search for subsequent query, statistics and other functions;
and writing the file and the system index into a corresponding storage when the service index carried by the application side is more than 2KB, then calling an index service, and recording the service index and the system index into an Elasticissearch for subsequent query, statistics and other functions.
Step 104: returning data information such as a file success identifier, a file ID and the like to the application party;
it can be seen from the foregoing embodiments that, the method for implementing file upload provided by the present invention implements shielding differences between upload interfaces of multiple storage media on the bottom layer by constructing a set of logical virtual storage architecture, so that an application party can invoke the upload function of the present invention without perception, implement file storage of various storage media, and do not need to perform customized development on different storage media, thereby enabling development of an upper application system to be simpler and more uniform.
The invention also provides a file downloading method of the differential shielding of the multiple storage medium interfaces. Fig. 3 is a schematic view of a download function flow of a differential shielding of multiple storage medium interfaces according to the present invention.
In step 130, the request information is parsed to perform corresponding data operations on the bucket corresponding to the request information.
Parsing includes parsing tokens, filestreams, logical buckets, and other parameters in the request information to implement the file operation corresponding to a specific request, and is not limited to a write operation.
The method of the exemplary embodiment of the invention designs a set of logical virtual storage architecture, and shields the difference between the actual storage medium and the equipment of the bottom layer through the logical storage architecture, and the virtual logical storage architecture can support various storage media such as business object storage, software defined object storage, NAS, OnDemand and the like. The upper application system can realize file uploading/downloading operation on different storage media by calling the virtual logic storage function, thereby realizing shielding of differentiation of interfaces of multiple storage media.
In addition, the invention can better adapt to various commercial hardware, shield the influence and pressure on the application caused by the change in purchase, and avoid the modification of an upper application system caused by the change of the hardware; when a certain storage device is in failure, the storage medium can be immediately switched through the uniform interface in a short time, so that the stable operation of production is ensured; the system can be reasonably distributed and used according to the performances of different commercial hardware, and is provided with different service scenes; the development of the upper application system is simpler, more uniform and more convenient.
In an implementation manner of the exemplary embodiment of the present invention, the method for implementing file downloading further includes: authenticating the authority information token, and executing the operation corresponding to the request information after the authentication is passed, which specifically includes the following steps, with reference to fig. 3:
step 201: the application side transmits parameters such as a token carrying the authority information, a file ID, a logic bucket and the like together, and receives a downloading instruction of the application side;
the file download operation may occur in a variety of scenarios, including a page Restful API request and various SDK requests.
Step 202: analyzing token information of an application party for authentication;
step 203: downloading the file;
the file ID and the logic bucket are inquired through the index service, the corresponding storage bucket is found, and according to the storage medium of the storage bucket, a download interface supporting the storage medium is called to acquire the file stream.
Step 204: returning the required file stream to the application side;
it can be seen from the foregoing embodiments that, the file download implementation method provided by the present invention implements shielding of differences between download interfaces of multiple underlying storage media by constructing a set of logical virtual storage architectures. Therefore, the application side can download and retrieve the files stored in various storage media, the work that the application side needs to carry out data migration due to the replacement of the storage media is avoided, the development of the application side is facilitated, and meanwhile, the risk of loss of production data is reduced.
When the application side provides an interface for calling the uploading/downloading of the invention, the virtual logic storage constructed by the invention realizes the related functions of file storage according to the parameters transmitted by the upper system and the system index information. The application side can realize the uploading/downloading operation of different storage media by calling the uniform uploading/downloading interface.
In an implementation manner of the exemplary embodiment of the present invention, as shown in fig. 4, an upper layer application system in the drawing is an upper layer application system set for a unified interface of the present invention, and all functions of the method and apparatus of the present invention can be implemented by the upper layer application system, where the method further includes:
when the access of a first bucket corresponding to the request information of the application party fails, configuration modification is carried out on the unified interface, so that the request information of the application party is switched to a second bucket, and the second bucket is a standby bucket different from the first bucket. As shown in the figure, when the storage medium used by the application side suddenly fails, the present invention can also realize the switching of the storage medium, the quick response and the production recovery through the configuration adjustment, and the upper application system does not sense and does not need to perform any operation in the process.
Fig. 5 is a schematic structural diagram of a device for processing a unified interface of multiple storage media according to an embodiment of the present invention, where the device may be implemented by software and/or hardware, is generally integrated in an intelligent terminal, and may be implemented by a method for processing a unified interface of multiple storage media. As shown in the figure, the present embodiment may provide a unified interface processing apparatus for multiple storage media of multiple storage media based on the above embodiments, which mainly includes a definition module 510, a request module 520, and a parsing module 530.
The definition module 510 is configured to define a unified interface based on a plurality of interfaces of a bucket, where the unified interface is installed in a logical bucket, the logical bucket corresponds to a logical concept of the bucket, and the unified interface is used to provide a service according to a software development kit;
the request module 520 is configured to receive request information of an application party through the unified interface, where the request information at least includes one of an authority information token, a file ID, or a logic bucket, and the request information includes an uplink request and a downlink request;
the parsing module 530 is configured to parse the request information to perform corresponding data operation on the bucket corresponding to the request information.
In one implementation of the exemplary embodiments of this invention, the apparatus further comprises:
and the read-write module is used for performing read operation on other buckets except the bucket corresponding to the request information after analyzing the request information.
In one implementation of the exemplary embodiments of this invention, the apparatus further comprises:
and the authentication module is used for authenticating the authority information token and executing the operation corresponding to the request information after the authentication is passed.
The unified interface processing apparatus for multiple storage media provided in the foregoing embodiments may execute the unified interface processing method for multiple storage media provided in any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.
It should be noted that the method of the exemplary embodiment of the present invention may be executed by a single device, such as a computer or a server. The method of the embodiment can also be applied to a distributed scene and completed by the mutual cooperation of a plurality of devices. In this distributed scenario, one of the multiple devices may only perform one or more steps of the method according to the exemplary embodiment of the present invention, and the multiple devices interact with each other to complete the unified interface method for multiple storage media of multiple storage media.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, the functionality of the various modules may be implemented in the same one or more software and/or hardware in implementing the exemplary embodiments of this invention.
Fig. 6 is a schematic diagram illustrating a more specific hardware structure of an electronic device according to this embodiment, where the electronic device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein the processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 are communicatively coupled to each other within the device via bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 1020 may store an operating system and other application programs, and when the technical solution provided by the embodiment of the present disclosure is implemented by software or firmware, the relevant program codes are stored in the memory 1020 and called by the processor 1010 to execute the unified interface method of the multi-storage medium of the embodiment of the present disclosure.
The input/output interface 1030 is used for connecting an input/output module to input and output information. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 1040 is used for connecting a communication module (not shown in the drawings) to implement communication interaction between the present apparatus and other apparatuses. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 1050 includes a path that transfers information between various components of the device, such as processor 1010, memory 1020, input/output interface 1030, and communication interface 1040.
It should be noted that although the above-mentioned device only shows the processor 1010, the memory 1020, the input/output interface 1030, the communication interface 1040 and the bus 1050, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
Computer-readable media of the present embodiments, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, programs, modules of the programs themselves, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device to perform the above-described aspects of embodiments of the present invention.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the idea of the present disclosure, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the exemplary embodiments of the present invention as described above, which are not provided in detail for the sake of brevity.
In addition, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown within the provided figures for simplicity of illustration and discussion, and so as not to obscure the exemplary embodiments of the invention. Furthermore, devices may be shown in block diagram form in order to avoid obscuring exemplary embodiments of the present invention, and this also takes into account the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform within which the exemplary embodiments of the present invention are to be implemented (i.e., specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the disclosure, it should be apparent to one skilled in the art that the example embodiments of the disclosure can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative instead of restrictive.
While the present disclosure has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic ram (dram)) may use the discussed embodiments.
The exemplary embodiments of the invention are intended to embrace all such alternatives, modifications and variances that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the exemplary embodiments of the invention are intended to be included within the scope of the disclosure.

Claims (10)

1. A method for processing a unified interface of multiple storage media, the method comprising:
defining a unified interface based on a plurality of interfaces of a bucket, wherein the unified interface is arranged in a logic bucket, the logic bucket corresponds to a logic concept of the bucket, and the unified interface is used for providing services according to a software development kit;
receiving request information of an application party through the unified interface, wherein the request information at least comprises one of authority information token, file ID or logic bucket, and the request information comprises an uplink request and a downlink request;
and analyzing the request information to perform corresponding data operation on the bucket corresponding to the request information.
2. The method of claim 1, further comprising:
and after the request information is analyzed, reading other buckets except the bucket corresponding to the request information.
3. The method of claim 1, further comprising:
and authenticating the authority information token, and executing the operation corresponding to the request information after the authentication is passed.
4. The method of claim 1, further comprising:
when the access of a first bucket corresponding to the request information of the application party fails, configuration modification is carried out on the unified interface, so that the request information of the application party is switched to a second bucket, and the second bucket is a standby bucket different from the first bucket.
5. The method of claim 1, wherein when the request information is an uplink request, the method further comprises:
searching a storage bucket corresponding to the logic bucket and used for write operation through configuration, and recording storage medium information and logic bucket information as system indexes according to storage media of the storage bucket;
and writing the file into a correct storage bucket according to the system index.
6. A method for processing a unified interface of multiple storage media, the method comprising:
a definition module for defining a unified interface based on a plurality of interfaces of a bucket, the unified interface being installed in a logical bucket, the logical bucket corresponding to a logical concept of the bucket, the unified interface being used for providing a service according to a software development kit;
the request module is used for receiving request information of an application party through the unified interface, wherein the request information at least comprises one of authority information token, file ID or logic bucket, and the request information comprises an uplink request and a downlink request;
and the analysis module is used for analyzing the request information so as to perform corresponding data operation on the bucket corresponding to the request information.
7. The apparatus of claim 6, further comprising:
and the read-write module is used for performing read operation on other buckets except the bucket corresponding to the request information after analyzing the request information.
8. The apparatus of claim 6, further comprising:
and the authentication module is used for authenticating the authority information token and executing the operation corresponding to the request information after the authentication is passed.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of unified interface processing for multiple storage media according to any of claims 1 to 5 when executing the program.
10. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the method of unified interface processing for multiple storage media according to any one of claims 1 to 5.
CN202011383068.4A 2020-11-30 2020-11-30 Unified interface processing method, device, equipment and medium for multiple storage media Pending CN112433680A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011383068.4A CN112433680A (en) 2020-11-30 2020-11-30 Unified interface processing method, device, equipment and medium for multiple storage media

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011383068.4A CN112433680A (en) 2020-11-30 2020-11-30 Unified interface processing method, device, equipment and medium for multiple storage media

Publications (1)

Publication Number Publication Date
CN112433680A true CN112433680A (en) 2021-03-02

Family

ID=74698151

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011383068.4A Pending CN112433680A (en) 2020-11-30 2020-11-30 Unified interface processing method, device, equipment and medium for multiple storage media

Country Status (1)

Country Link
CN (1) CN112433680A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103401917A (en) * 2013-07-29 2013-11-20 华南理工大学 Hybrid cloud computing system based on cloud bus and realization method of hybrid cloud computing system
CN105610923A (en) * 2015-12-23 2016-05-25 北京华康嘉合科技有限公司 Data processing system and method based on cloud computing
US20160224251A1 (en) * 2015-01-30 2016-08-04 Lin Xu Systems and methods in support of dynamic data management
CN106686140A (en) * 2017-03-06 2017-05-17 郑州云海信息技术有限公司 Network virtualization storage method, equipment and system
CN110580244A (en) * 2019-09-12 2019-12-17 深圳乐信软件技术有限公司 file processing method and device, server and storage medium
CN111736775A (en) * 2020-06-22 2020-10-02 平安医疗健康管理股份有限公司 Multi-source storage method, device, computer system and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103401917A (en) * 2013-07-29 2013-11-20 华南理工大学 Hybrid cloud computing system based on cloud bus and realization method of hybrid cloud computing system
US20160224251A1 (en) * 2015-01-30 2016-08-04 Lin Xu Systems and methods in support of dynamic data management
CN105610923A (en) * 2015-12-23 2016-05-25 北京华康嘉合科技有限公司 Data processing system and method based on cloud computing
CN106686140A (en) * 2017-03-06 2017-05-17 郑州云海信息技术有限公司 Network virtualization storage method, equipment and system
CN110580244A (en) * 2019-09-12 2019-12-17 深圳乐信软件技术有限公司 file processing method and device, server and storage medium
CN111736775A (en) * 2020-06-22 2020-10-02 平安医疗健康管理股份有限公司 Multi-source storage method, device, computer system and storage medium

Similar Documents

Publication Publication Date Title
CN111625452B (en) Flow playback method and system
US11216476B2 (en) Data processing method, apparatus, and device
Arnold Openstack swift: Using, administering, and developing for swift object storage
CN110162662B (en) Verification method, device and equipment for data records in block chain type account book
CN109359118B (en) Data writing method and device
CN110162512B (en) Log retrieval method, device and storage medium
CN110334542B (en) Network evidence preservation and network evidence preservation verification method and device
TWI762851B (en) Data verification method, system, device and equipment in blockchain ledger
CN110362547A (en) Coding, parsing, storage method and the device of journal file
CN110602163B (en) File uploading method and device
CN113297153A (en) Data export method, device, equipment and storage medium
CN111464319B (en) Transaction storage and signature verification method based on centralized block chain type account book
CN107291524B (en) Remote command processing method and device
CN110362570B (en) Data storage method, device and equipment
CN116628773A (en) Data processing method, device, electronic equipment and storage medium
CN112433680A (en) Unified interface processing method, device, equipment and medium for multiple storage media
US10803109B2 (en) Method and device for reading and writing video data in NAS device
CN115460225A (en) Internal and external network data synchronization method and related equipment
US9866444B2 (en) Dynamic conversion of hardware resources of a server system
CN113836154B (en) Database switching method and device
US9508062B2 (en) Problem management record profiling
CN113535721B (en) Data writing method and device
CN112364010B (en) Method and device for verifying existence of important business record
CN109889559B (en) Middleware system of tax-related service and tax-related service processing method
CN117093151A (en) File storage method, device, storage medium and processor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination