CN117614838A - File calling method based on hierarchical heterogeneous topology and related equipment - Google Patents

File calling method based on hierarchical heterogeneous topology and related equipment Download PDF

Info

Publication number
CN117614838A
CN117614838A CN202311316609.5A CN202311316609A CN117614838A CN 117614838 A CN117614838 A CN 117614838A CN 202311316609 A CN202311316609 A CN 202311316609A CN 117614838 A CN117614838 A CN 117614838A
Authority
CN
China
Prior art keywords
file
target
storage service
terminal equipment
hierarchical
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
CN202311316609.5A
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.)
Shenzhen Genew Technologies Co Ltd
Original Assignee
Shenzhen Genew 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 Shenzhen Genew Technologies Co Ltd filed Critical Shenzhen Genew Technologies Co Ltd
Priority to CN202311316609.5A priority Critical patent/CN117614838A/en
Publication of CN117614838A publication Critical patent/CN117614838A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/101Access control lists [ACL]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/105Multiple levels of security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a file calling method and related equipment based on hierarchical heterogeneous topology, wherein the method comprises the following steps: receiving a target request of a superior terminal device, finding a first file storage service of the target subordinate terminal device in the hierarchical heterogeneous topological service according to the ID of the target subordinate terminal device, sending a first access request to the first file storage service, acquiring a target file from the first file storage service if the first file storage service accepts the first access request, and sending the target file to the superior terminal device, otherwise, sending a second access request to a public storage service; when the public storage service receives the second access request, the public storage service acquires the target file from the public storage service and sends the target file to the upper terminal equipment.

Description

File calling method based on hierarchical heterogeneous topology and related equipment
Technical Field
The invention belongs to the technical field of resource scheduling processing, and particularly relates to a file scheduling method, a system, a terminal and a computer readable storage medium based on hierarchical heterogeneous topology.
Background
With the rapid development of the information age, more and more enterprises begin to use a scheduling system for resource coordination scheduling. This means that the scheduling system is not only used for an enterprise alone, but is used cooperatively by a plurality of enterprises, for example, the upper terminal device needs to control the overall situation, and schedule the resources of the lower terminal device, where the upper terminal device needs to check and download the files of the lower terminal device to integrate the resources.
At present, under a hierarchical heterogeneous topology architecture, the simplest common scheme is that an upper terminal device directly requests a file related interface of a lower terminal device to access a corresponding file, but the scheme has obvious limitation that the upper terminal device and each lower terminal device are in different network environments, different firewall strategies exist, some lower terminal devices possibly isolate the file, and external access is avoided, even the upper terminal device has no method for accessing through a network; if the upper terminal equipment and the lower terminal equipment construct a special vpn or a special network, the cost is immeasurable, and the later expansion is difficult and difficult to popularize.
Accordingly, the prior art is still in need of improvement and development.
Disclosure of Invention
The invention mainly aims to provide a file retrieving method, a system, a terminal and a computer readable storage medium based on hierarchical heterogeneous topology, and aims to solve the problem that in the prior art, superior terminal equipment and all subordinate terminal equipment are in different network environments, the subordinate terminal equipment possibly isolates files, and a network of the superior terminal equipment cannot request the subordinate terminal equipment.
In order to achieve the above object, the present invention provides a file retrieving method based on hierarchical heterogeneous topology, which includes the following steps:
receiving a target request of upper-level terminal equipment, wherein the target request comprises an ID of target lower-level terminal equipment and a target file to be called;
according to the ID of the target subordinate terminal equipment, a first file storage service of the target subordinate terminal equipment is found in the hierarchical heterogeneous topology service, and a first access request is sent to the first file storage service;
if the first file storage service accepts the first access request, acquiring the target file from the first file storage service, and sending the target file to the superior terminal equipment, otherwise, sending a second access request to a public storage service;
and after the public storage service receives the second access request, acquiring the target file from the public storage service, and sending the target file to the superior terminal equipment.
Optionally, in the file retrieving method based on the hierarchical heterogeneous topology, the first access request and the second access request both include an ID of the target subordinate terminal device and the target file.
Optionally, the file retrieving method based on hierarchical heterogeneous topology, before receiving the target request of the upper terminal device, further includes:
acquiring a query result of the target request in a second file storage service of the superior terminal equipment;
if the target file exists in the second file storage service, the target file is directly acquired in the second file storage service and uploaded to a scheduling client of the superior terminal equipment;
and if the target file does not exist in the second file storage service, receiving a target request from the superior terminal equipment, wherein the target request is sent by the first hierarchical scheduling service of the superior terminal equipment.
Optionally, the method for retrieving a file based on hierarchical heterogeneous topology, wherein the sending the target file to the superior terminal device specifically includes:
the target file is sent to a superior terminal device through the first hierarchical scheduling service and the second file storage service;
the second file storage service temporarily stores the target file according to preset time.
Optionally, the file retrieving method based on hierarchical heterogeneous topology, wherein the searching the first file storage service of the target subordinate terminal device in the hierarchical heterogeneous topology service according to the ID of the target subordinate terminal device specifically includes:
searching the address of the target subordinate terminal equipment in the child nodes of the topological graph of the hierarchical heterogeneous topological service according to the ID of the target subordinate terminal equipment;
determining the address of the first file storage service according to the address of the target subordinate terminal equipment;
the hierarchical heterogeneous topology service is used for representing and updating the topology relation between the upper-level terminal equipment and the lower-level terminal equipment, the topology relation is in a tree structure, the upper-level terminal equipment is used as a root node of a tree, the lower-level terminal equipment is used as a child node of the tree, and the topology relation is updated every time the lower-level terminal equipment is connected.
Optionally, in the file retrieving method based on hierarchical heterogeneous topology, the first file storage service is configured to receive and store the target file uploaded by the scheduling client of the target subordinate terminal device, and upload a message uploaded by the target file to the second hierarchical scheduling service of the target subordinate terminal device through a message queue.
Optionally, the file retrieving method based on hierarchical heterogeneous topology, wherein the second hierarchical scheduling service is configured to detect whether the first file storage service can be accessed by an upper terminal device after receiving the message;
if the first file storage service can be accessed by the upper-level terminal equipment, not processing;
and if the first file storage service cannot be accessed by the upper-level terminal equipment, downloading the target file, uploading the target file to the public storage service, and deleting the target file after the uploading is successful.
In addition, in order to achieve the above object, the present invention further provides a file retrieval system based on a hierarchical heterogeneous topology, wherein the file retrieval system based on the hierarchical heterogeneous topology includes:
the target request receiving module is used for receiving a target request from the upper terminal equipment, wherein the target request comprises an ID of the target lower terminal equipment and a target file to be called;
a storage service acquisition module, configured to find a first file storage service of the target subordinate terminal device in a hierarchical heterogeneous topology service according to the ID of the target subordinate terminal device, and send a first access request to the first file storage service,
the storage service access module is used for acquiring the target file from the first file storage service if the first file storage service accepts the first access request, sending the target file to the upper-level terminal equipment, and otherwise, sending a second access request to the public storage service;
and the target file acquisition module is used for acquiring the target file from the public storage service after the public storage service receives the second access request, and transmitting the target file to the upper terminal equipment.
In addition, to achieve the above object, the present invention also provides a terminal, wherein the terminal includes: the file access system comprises a memory, a processor and a file access program which is stored in the memory and can run on the processor and is based on the hierarchical heterogeneous topology, wherein the file access program based on the hierarchical heterogeneous topology realizes the steps of the file access method based on the hierarchical heterogeneous topology when being executed by the processor.
In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium storing a hierarchical heterogeneous topology-based file retrieval program which, when executed by a processor, implements the steps of the hierarchical heterogeneous topology-based file retrieval method as described above.
In the method, a target request of upper terminal equipment is received, a first file storage service of the target lower terminal equipment is found in hierarchical heterogeneous topological service according to the ID of the target lower terminal equipment, a first access request is sent to the first file storage service, if the first access request is accepted by the first file storage service, a target file is acquired from the first file storage service, the target file is sent to the upper terminal equipment, and otherwise, a second access request is sent to public storage service; when the public storage service receives the second access request, the public storage service acquires the target file from the public storage service and sends the target file to the upper terminal equipment.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of a file retrieval method based on hierarchical heterogeneous topology of the present invention;
FIG. 2 is a schematic block diagram of a preferred embodiment of a file retrieval method based on hierarchical heterogeneous topology of the present invention;
FIG. 3 is a flow chart of uploading files to a public storage service by a lower terminal device in the file retrieval method based on hierarchical heterogeneous topology;
FIG. 4 is a flow chart of a superior terminal device acquiring a file of a subordinate terminal device in the file retrieving method based on hierarchical heterogeneous topology;
FIG. 5 is a schematic diagram of a preferred embodiment of a file retrieval system based on a hierarchical heterogeneous topology according to the present invention;
FIG. 6 is a schematic diagram of the operating environment of a preferred embodiment of the terminal of the present invention.
Detailed Description
The application provides a file calling method based on hierarchical heterogeneous topology and related equipment, and in order to make the purposes, technical schemes and effects of the application clearer and more definite, the application is further described in detail below by referring to the accompanying drawings and the embodiments. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
It will be understood by those skilled in the art that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs unless defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
In addition, if there is a description of "first", "second", etc. in the embodiments of the present invention, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be considered to be absent and not within the scope of protection claimed in the present invention.
The file retrieval method based on hierarchical heterogeneous topology according to the preferred embodiment of the present invention, as shown in fig. 1 and fig. 2, comprises the following steps:
step S100, receiving a target request of a superior terminal device, wherein the target request comprises an ID of a target subordinate terminal device and a target file to be called.
It can be understood that the upper terminal device is connected to a plurality of lower terminal devices, and when the upper terminal device needs to obtain a certain file (target file) in a certain lower terminal device (target lower terminal device), the upper terminal device sends a target request including an ID of the target lower terminal device and the target file to be called, and the system receives the target request of the upper terminal device.
Specifically, taking two sets of system call files of an upper terminal device and a target lower terminal device as cases, the upper terminal device needs to multiplex the processing process of the last fire accident of the target lower terminal device, and in the process, files such as shooting, transmitting, video recording and the like of the target lower terminal device need to be checked to know the specific situation of accident handling at the time, and then the target request sent by the upper terminal device is received first.
Further, before receiving the target request of the upper terminal device, the method further includes:
and acquiring a query result of the target request in the second file storage service of the superior terminal equipment.
The target request is sent by the Erds-web (scheduling client) of the receiving upper-level terminal equipment, and before the target request is received, the target request is sent to the FSS (second file storage service) of the upper-level terminal equipment, and the query result of the target request in the second file storage service is obtained.
If the target file exists in the second file storage service, the target file is directly obtained in the second file storage service and uploaded to a scheduling client of the superior terminal equipment.
Taking the above processing procedure of the last fire accident of the target lower terminal device for the upper terminal device to multiplex as an example, since the upper terminal device must check and analyze the same file multiple times during the multiplexing, the target file is pulled to the second file storage service (local of the upper terminal device) to be temporarily stored, so that whether the second file storage service contains the target file or not can be checked first when the next request is made, if the target file exists in the second file storage service, the target file is directly acquired in the second file storage service and uploaded to the scheduling client of the upper terminal device, and thus, the bandwidth waste of repeated request public service can be avoided.
And if the target file does not exist in the second file storage service, receiving a target request from the superior terminal equipment, wherein the target request is sent by the first hierarchical scheduling service of the superior terminal equipment.
It may be understood that if the target file does not exist in the second file storage service, it indicates that the target file is not stored locally or has not been acquired recently by the upper terminal device, and thus, a target request from the upper terminal device is received, and the target file is acquired from the lower terminal device according to the target request.
Further, the first file storage service is configured to receive and store the target file uploaded by the scheduling client of the target subordinate terminal device, and upload a message uploaded by the target file to the second hierarchical scheduling service of the target subordinate terminal device through a message queue.
The second hierarchical scheduling service is used for detecting whether the first file storage service can be accessed by the upper-level terminal equipment after receiving the message; if the first file storage service can be accessed by the upper-level terminal equipment, not processing; and if the first file storage service cannot be accessed by the upper-level terminal equipment, downloading the target file, uploading the target file to the public storage service, and deleting the target file after the uploading is successful.
It will be appreciated that the local file storage service should not pay attention to the hierarchical traffic, and the hierarchical scheduling service is unified as an access port for connecting other nodes, so that the hierarchical scheduling service detects whether to upload to the public storage service using the compensation mechanism.
As shown in fig. 3, the following overall process of uploading the file to the public storage service to the target subordinate terminal device is:
and uploading the target file to the first File Storage Service (FSS) by the target subordinate terminal equipment for storage.
The target file is uploaded to a second hierarchical scheduling service (GRDPS) of the target subordinate terminal device via a Message Queue (MQ).
After the second hierarchical scheduling service receives the message, it is detected whether the first file storage service can request a file (i.e., whether it can be accessed by an upper terminal device).
If the first file storage service can be accessed by the upper-level terminal equipment, not processing; and if the first file storage service can not be accessed by the upper-level terminal equipment, downloading the target file, and taking the target file as a temporary file.
And uploading the target file (temporary file) to the public storage service (SFSS), and deleting the target file (temporary file) by the second hierarchical scheduling service after the uploading is successful.
Step 200, a first file storage service of the target subordinate terminal equipment is found in the hierarchical heterogeneous topology service according to the ID of the target subordinate terminal equipment, and a first access request is sent to the first file storage service.
The step of finding the first file storage service of the target subordinate terminal equipment in the hierarchical heterogeneous topological service according to the ID of the target subordinate terminal equipment specifically comprises the following steps:
and searching the address of the target subordinate terminal equipment in the child nodes of the topological graph of the hierarchical heterogeneous topological service according to the ID of the target subordinate terminal equipment.
And determining the address of the first file storage service according to the address of the target subordinate terminal equipment.
The hierarchical heterogeneous topology service is used for representing and updating the topological relation between the upper-level terminal equipment and the lower-level terminal equipment (the topological relation refers to the mutual relation among all spatial data meeting the principle of topological geometry), namely, the adjacency, association, inclusion and communication relation among entities represented by nodes, arcs and polygons.
And after searching the address of the target subordinate terminal equipment, sending a first access request to the first file storage service.
And sending a first access request to the first file storage service, wherein if the first access request can be accessed, the firewall of the lower-level terminal equipment does not reject the upper-level terminal equipment, and the first file storage service is directly accessed to acquire the target file.
Step S300, if the first file storage service accepts the first access request, the target file is obtained from the first file storage service, the target file is sent to the superior terminal equipment, and otherwise, a second access request is sent to a public storage service.
It will be appreciated that when the first access request is denied, a second access request is sent to the public storage service; the first access request and the second access request both contain the ID of the target subordinate terminal device and the target file.
Because the upper terminal device and the target lower terminal device actually belong to different systems, the firewall of the target lower terminal device generally refuses the request of the head office, and the public storage server is opened to the head office and the subsidiary for use together, the application uses the public storage server as a transfer station to solve the problem of file isolation under the hierarchical heterogeneous system.
And step 400, after the public storage service receives the second access request, acquiring the target file from the public storage service, and sending the target file to the superior terminal equipment.
Specifically, after the public storage service receives the second access request (i.e. after the firewall of the target subordinate terminal equipment refuses the request of the superior terminal equipment), the target file is found in the public storage service according to the target file in the second access request and downloaded, and the target file is sent to the superior terminal equipment.
The sending the target file to the superior terminal device specifically includes:
and sending the target file to a superior terminal device through the first hierarchical scheduling service and the second file storage service.
The second file storage service temporarily stores the target file according to preset time.
Taking the processing procedure of the last fire accident of the target lower terminal equipment to be re-coiled by the upper terminal equipment as an example, the upper terminal equipment can certainly check and analyze the same file for a plurality of times during the re-coiling, so that the target lower terminal equipment is temporarily stored in the local temporary storage of the upper terminal equipment, the bandwidth waste caused by repeated public service request can be avoided, and the acquisition efficiency of the target file is improved.
Further, as shown in fig. 4, the overall process of the upper terminal device obtaining the file of the target lower terminal device is as follows:
the superior terminal device sends a target request to the second File Storage Service (FSS) to acquire a target file.
And the second file storage service queries a target file according to the target request, and if the target file exists in the second file storage service, the target file (image and sound recording) is directly acquired in the second file storage service and uploaded to a scheduling client (Erds-Web) of the upper terminal equipment for playing.
And if the target file does not exist in the second file storage service, receiving a target request from the superior terminal equipment.
After the first hierarchical scheduling service (GRDPS) receives the target request from the second file storage service, a target file of a corresponding subordinate terminal device (target subordinate terminal device) is retrieved according to the target request.
The first hierarchical dispatch service sends the target request to the hierarchical heterogeneous topology service (OSS) via a long connection of RPC (remote procedure call).
The hierarchical heterogeneous topology service finds the address of the lower-level terminal device corresponding to the ID in the topology relationship according to ID (PlatformId) of the target lower-level terminal device in the target file, finds the second hierarchical scheduling service according to the address of the lower-level terminal device, and sends the first access request to establish connection with the second hierarchical scheduling service (GRDPS of the lower-level terminal device).
And after the connection is established, judging whether the first file storage service of the target subordinate terminal equipment can be accessed.
If yes, the target file is obtained from the first file storage service, and the target file is sent to a dispatching client of the superior terminal equipment.
If not, the second access request is sent to the public storage service (SFSS), the target file is obtained from the public storage service, the target file is sent to the dispatching client of the superior terminal equipment through the first hierarchical dispatching service and the second file storage service, and meanwhile, the second file storage service temporarily stores the target file according to preset time.
Therefore, when the upper terminal equipment and each lower terminal equipment are isolated by the network, the invention can tell the hierarchical heterogeneous topological service to avoid the upper terminal equipment directly requesting the file stream to download the file when the files of the lower terminal equipment cannot be accessed, and the public storage server is used as a transfer station to solve the problem of file isolation under the hierarchical heterogeneous system, thereby effectively improving the file retrieval efficiency and avoiding the waste of bandwidth.
Further, as shown in fig. 5, based on the file retrieving method based on the hierarchical heterogeneous topology, the present invention further correspondingly provides a file retrieving system based on the hierarchical heterogeneous topology, where the file retrieving system based on the hierarchical heterogeneous topology includes:
a target request receiving module 51, configured to receive a target request from a superior terminal device, where the target request includes an ID of a target subordinate terminal device and a target file to be fetched;
a storage service obtaining module 52, configured to find a first file storage service of the target lower terminal device in the hierarchical heterogeneous topology service according to the ID of the target lower terminal device, and send a first access request to the first file storage service;
a storage service access module 53, configured to acquire the target file from the first file storage service if the first file storage service accepts the first access request, send the target file to a superior terminal device, and otherwise send a second access request to a public storage service;
and the target file obtaining module 54 is configured to obtain the target file from the public storage service after the public storage service receives the second access request, and send the target file to a superior terminal device.
Further, as shown in fig. 6, based on the file retrieving method and system based on hierarchical heterogeneous topology, the invention further provides a terminal correspondingly, which comprises a processor 10, a memory 20 and a display 30. Fig. 6 shows only some of the components of the terminal, but it should be understood that not all of the illustrated components are required to be implemented and that more or fewer components may alternatively be implemented.
The memory 20 may in some embodiments be an internal storage unit of the terminal, such as a hard disk or a memory of the terminal. The memory 20 may in other embodiments also be an external storage device of the terminal, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal. Further, the memory 20 may also include both an internal storage unit and an external storage device of the terminal. The memory 20 is used for storing application software installed in the terminal and various data, such as program codes of the installation terminal. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the memory 20 stores a file retrieval program 40 based on a hierarchical heterogeneous topology, and the file retrieval program 40 based on the hierarchical heterogeneous topology is executable by the processor 10, so as to implement the file retrieval method based on the hierarchical heterogeneous topology in the present application.
The processor 10 may in some embodiments be a central processing unit (Central Processing Unit, CPU), microprocessor or other data processing chip for executing program code or processing data stored in the memory 20, for example, for executing the hierarchical heterogeneous topology based file retrieval method or the like.
The display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like in some embodiments. The display 30 is used for displaying information at the terminal and for displaying a visual user interface. The components 10-30 of the terminal communicate with each other via a system bus.
In one embodiment, the following steps are implemented when the processor 10 executes the file retrieval program 40 based on the hierarchical heterogeneous topology in the memory 20:
receiving a target request of upper-level terminal equipment, wherein the target request comprises an ID of target lower-level terminal equipment and a target file to be called;
according to the ID of the target subordinate terminal equipment, a first file storage service of the target subordinate terminal equipment is found in the hierarchical heterogeneous topology service, and a first access request is sent to the first file storage service;
if the first file storage service accepts the first access request, acquiring the target file from the first file storage service, and sending the target file to the superior terminal equipment, otherwise, sending a second access request to a public storage service;
and after the public storage service receives the second access request, acquiring the target file from the public storage service, and sending the target file to the superior terminal equipment.
And the first access request and the second access request both comprise the ID of the target subordinate terminal equipment and the target file.
Before receiving the target request of the upper terminal device, the method further comprises:
acquiring a query result of the target request in a second file storage service of the superior terminal equipment;
if the target file exists in the second file storage service, the target file is directly acquired in the second file storage service and uploaded to a scheduling client of the superior terminal equipment;
and if the target file does not exist in the second file storage service, receiving a target request from the superior terminal equipment, wherein the target request is sent by the first hierarchical scheduling service of the superior terminal equipment.
The sending the target file to the superior terminal device specifically includes:
the target file is sent to a superior terminal device through the first hierarchical scheduling service and the second file storage service;
the second file storage service temporarily stores the target file according to preset time.
The step of finding the first file storage service of the target subordinate terminal equipment in the hierarchical heterogeneous topology service according to the ID of the target subordinate terminal equipment specifically comprises the following steps:
searching the address of the target subordinate terminal equipment in the child nodes of the topological graph of the hierarchical heterogeneous topological service according to the ID of the target subordinate terminal equipment;
determining the address of the first file storage service according to the address of the target subordinate terminal equipment;
the hierarchical heterogeneous topology service is used for representing and updating the topology relation between the upper-level terminal equipment and the lower-level terminal equipment, the topology relation is in a tree structure, the upper-level terminal equipment is used as a root node of a tree, the lower-level terminal equipment is used as a child node of the tree, and the topology relation is updated every time the lower-level terminal equipment is connected.
The first file storage service is used for receiving and storing the target file uploaded by the scheduling client of the target subordinate terminal equipment, and uploading the message uploaded by the target file to the second hierarchical scheduling service of the target subordinate terminal equipment through a message queue.
The second hierarchical scheduling service is used for detecting whether the first file storage service can be accessed by the upper-level terminal equipment after receiving the message;
if the first file storage service can be accessed by the upper-level terminal equipment, not processing;
and if the first file storage service cannot be accessed by the upper-level terminal equipment, downloading the target file, uploading the target file to the public storage service, and deleting the target file after the uploading is successful.
The present invention also provides a computer-readable storage medium storing a hierarchical heterogeneous topology-based file retrieval program which, when executed by a processor, implements the steps of the hierarchical heterogeneous topology-based file retrieval method described above.
In summary, the present invention provides a file retrieving method and related devices based on hierarchical heterogeneous topology, where the method includes: receiving a target request of a superior terminal device, finding a first file storage service of the target subordinate terminal device in the hierarchical heterogeneous topological service according to the ID of the target subordinate terminal device, sending a first access request to the first file storage service, acquiring a target file from the first file storage service if the first file storage service accepts the first access request, and sending the target file to the superior terminal device, otherwise, sending a second access request to a public storage service; when the public storage service receives the second access request, the public storage service acquires the target file from the public storage service and sends the target file to the upper terminal equipment.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal comprising the element.
Of course, those skilled in the art will appreciate that implementing all or part of the above described embodiment methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the above described methods. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It is to be understood that the invention is not limited in its application to the examples described above, but is capable of modification and variation in light of the above teachings by those skilled in the art, and that all such modifications and variations are intended to be included within the scope of the appended claims.

Claims (10)

1. The file calling method based on the hierarchical heterogeneous topology is characterized by comprising the following steps of:
receiving a target request of upper-level terminal equipment, wherein the target request comprises an ID of target lower-level terminal equipment and a target file to be called;
according to the ID of the target subordinate terminal equipment, a first file storage service of the target subordinate terminal equipment is found in the hierarchical heterogeneous topology service, and a first access request is sent to the first file storage service;
if the first file storage service accepts the first access request, acquiring the target file from the first file storage service, and sending the target file to the superior terminal equipment, otherwise, sending a second access request to a public storage service;
and after the public storage service receives the second access request, acquiring the target file from the public storage service, and sending the target file to the superior terminal equipment.
2. The hierarchical heterogeneous topology based file retrieval method according to claim 1, wherein the first access request and the second access request each contain an ID of the target subordinate terminal device and the target file.
3. The hierarchical heterogeneous topology based file retrieval method according to claim 1, further comprising, before receiving the target request of the upper terminal device:
acquiring a query result of the target request in a second file storage service of the superior terminal equipment;
if the target file exists in the second file storage service, the target file is directly acquired in the second file storage service and uploaded to a scheduling client of the superior terminal equipment;
and if the target file does not exist in the second file storage service, receiving a target request from the superior terminal equipment, wherein the target request is sent by the first hierarchical scheduling service of the superior terminal equipment.
4. The method for retrieving a file based on a hierarchical heterogeneous topology according to claim 3, wherein the sending the target file to the upper-level terminal device specifically includes:
the target file is sent to a superior terminal device through the first hierarchical scheduling service and the second file storage service;
the second file storage service temporarily stores the target file according to preset time.
5. The file retrieving method based on hierarchical heterogeneous topology according to claim 1, wherein the step of finding a first file storage service of the target subordinate terminal device from among the hierarchical heterogeneous topology services according to the ID of the target subordinate terminal device specifically comprises:
searching the address of the target subordinate terminal equipment in the child nodes of the topological graph of the hierarchical heterogeneous topological service according to the ID of the target subordinate terminal equipment;
determining the address of the first file storage service according to the address of the target subordinate terminal equipment;
the hierarchical heterogeneous topology service is used for representing and updating the topology relation between the upper-level terminal equipment and the lower-level terminal equipment, the topology relation is in a tree structure, the upper-level terminal equipment is used as a root node of a tree, the lower-level terminal equipment is used as a child node of the tree, and the topology relation is updated every time the lower-level terminal equipment is connected.
6. The hierarchical heterogeneous topology based file retrieval method according to claim 1, wherein the first file storage service is configured to receive and store the target file uploaded by the scheduling client of the target subordinate terminal device, and upload a message uploaded by the target file to the second hierarchical scheduling service of the target subordinate terminal device through a message queue.
7. The method for retrieving files based on hierarchical heterogeneous topology according to claim 6, wherein said second hierarchical scheduling service is configured to detect whether said first file storage service is accessible by an upper terminal device after receiving said message;
if the first file storage service can be accessed by the upper-level terminal equipment, not processing;
and if the first file storage service cannot be accessed by the upper-level terminal equipment, downloading the target file, uploading the target file to the public storage service, and deleting the target file after the uploading is successful.
8. A hierarchical heterogeneous topology based file retrieval system, the hierarchical heterogeneous topology based file retrieval system comprising:
the target request receiving module is used for receiving a target request from the upper terminal equipment, wherein the target request comprises an ID of the target lower terminal equipment and a target file to be called;
a storage service acquisition module, configured to find a first file storage service of the target subordinate terminal device in a hierarchical heterogeneous topology service according to the ID of the target subordinate terminal device, and send a first access request to the first file storage service,
the storage service access module is used for acquiring the target file from the first file storage service if the first file storage service accepts the first access request, sending the target file to the upper-level terminal equipment, and otherwise, sending a second access request to the public storage service;
and the target file acquisition module is used for acquiring the target file from the public storage service after the public storage service receives the second access request, and transmitting the target file to the upper terminal equipment.
9. A terminal, the terminal comprising: a memory, a processor and a hierarchical heterogeneous topology based file retrieval program stored on said memory and executable on said processor, said hierarchical heterogeneous topology based file retrieval program implementing the steps of the hierarchical heterogeneous topology based file retrieval method according to any of claims 1-7 when executed by said processor.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a hierarchical heterogeneous topology based file retrieval program, which when executed by a processor implements the steps of the hierarchical heterogeneous topology based file retrieval method according to any of claims 1-7.
CN202311316609.5A 2023-10-11 2023-10-11 File calling method based on hierarchical heterogeneous topology and related equipment Pending CN117614838A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311316609.5A CN117614838A (en) 2023-10-11 2023-10-11 File calling method based on hierarchical heterogeneous topology and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311316609.5A CN117614838A (en) 2023-10-11 2023-10-11 File calling method based on hierarchical heterogeneous topology and related equipment

Publications (1)

Publication Number Publication Date
CN117614838A true CN117614838A (en) 2024-02-27

Family

ID=89956799

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311316609.5A Pending CN117614838A (en) 2023-10-11 2023-10-11 File calling method based on hierarchical heterogeneous topology and related equipment

Country Status (1)

Country Link
CN (1) CN117614838A (en)

Similar Documents

Publication Publication Date Title
CN107861686B (en) File storage method, server and computer readable storage medium
US7584201B2 (en) Management of mobile-device data
US20210243262A1 (en) System for controlling user interaction via an application with remote servers
CN100480948C (en) Mobile terminal, resource access control system of mobile terminal, and resource access control method of mobile terminal
CN107948135B (en) Data processing method and device supporting multiple API protocols
CN108427703A (en) The system and method accessed the data file for being stored in data-storage system are provided
US20220284046A1 (en) Application Programming Interface-based Writing of Data to a Directory of a File Structure Layer of a Data Storage System
US7228335B2 (en) Method of automatically populating contact information fields for a new contract added to an electronic contact database
US7342928B2 (en) Method and system for accessing a peer-to-peer network
US8745223B2 (en) System and method of distributed license management
CN111291000B (en) File acquisition method, equipment and storage medium based on block chain
US20080040424A1 (en) Automated acquisition and maintenance of web-servable content via enhanced "404:not found" handler
CN102185900A (en) Application service platform system and method for developing application services
JP4205323B2 (en) Distribution system, distribution server and distribution method, distribution program
CN110109766B (en) Data interaction method and device based on cross-department and cross-platform data sharing exchange
CN109873855B (en) Resource acquisition method and system based on block chain network
US8326913B2 (en) Method and system for service contract discovery
CN113395340A (en) Information updating method, device, equipment, system and readable storage medium
CN113342746A (en) File management system, file management method, electronic device, and storage medium
CN110333957B (en) Remote Procedure Call (RPC) service calling method, device and computer equipment
CN114125489B (en) Data stream distribution method and system
US20090030975A1 (en) Application generation system and method
CN111327680B (en) Authentication data synchronization method, device, system, computer equipment and storage medium
CN110427759B (en) Network resource browsing control method and system supporting service security mark
CN117614838A (en) File calling method based on hierarchical heterogeneous topology and related equipment

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