CN115102946A - Configuration method and system based on file transmission - Google Patents

Configuration method and system based on file transmission Download PDF

Info

Publication number
CN115102946A
CN115102946A CN202210687582.XA CN202210687582A CN115102946A CN 115102946 A CN115102946 A CN 115102946A CN 202210687582 A CN202210687582 A CN 202210687582A CN 115102946 A CN115102946 A CN 115102946A
Authority
CN
China
Prior art keywords
file
information
source
transmission
target position
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210687582.XA
Other languages
Chinese (zh)
Other versions
CN115102946B (en
Inventor
胡金凡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank 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 Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202210687582.XA priority Critical patent/CN115102946B/en
Publication of CN115102946A publication Critical patent/CN115102946A/en
Application granted granted Critical
Publication of CN115102946B publication Critical patent/CN115102946B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application provides a configuration method and a configuration system based on file transmission, and relates to the technical field of data transmission. The configuration method based on file transmission is applied to a data transceiving platform and comprises the following steps: acquiring file transmission request information and access party application information; obtaining the source position information and the target position information of the file according to the file transmission request information, wherein the source position information and the target position information correspond to each other one by one; generating file transceiving information according to the file source position information and the target position information; and carrying out transmission configuration according to the access party application information and the file transceiving information to generate file task information. The configuration method based on file transmission can achieve the technical effect of improving the development efficiency of file transmission.

Description

Configuration method and system based on file transmission
Technical Field
The present application relates to the field of data transmission technologies, and in particular, to a configuration method and system based on file transmission, an electronic device, and a computer-readable storage medium.
Background
At present, in many current service scenes, a point-to-point file transmission function is required to be performed to realize data transmission between service systems, a file receiving and sending system is created based on the scenes, and a highly available and convenient and uniform file data receiving and sending platform is established between services through a visual configuration page. The development and operation and maintenance cost can be effectively reduced, and the functions of file uploading, downloading, archiving, transmission and the like are provided.
In the prior art, for point-to-point file transmission, the function generally needs to be customized and developed to be compatible with different transmission protocols. The method is also realized through manual modes such as mails and File Transfer Protocol (FTP) servers, cloud disks and the like, and has the problems of low development efficiency, long working time, complex File Transfer realization and the like.
Disclosure of Invention
An object of the embodiments of the present application is to provide a configuration method, a configuration system, an electronic device, and a computer-readable storage medium based on file transmission, which can achieve the technical effect of improving the development efficiency of file transmission.
In a first aspect, an embodiment of the present application provides a configuration method based on file transfer, which is applied to a data transceiving platform, and includes:
acquiring file transmission request information and access party application information;
obtaining the source position information and the target position information of the file according to the file transmission request information, wherein the source position information and the target position information correspond to each other one by one;
generating file transceiving information according to the file source position information and the target position information;
and carrying out transmission configuration according to the access party application information and the file transceiving information to generate file task information.
In the implementation process, the configuration method based on file transmission obtains file transmission request information and access party application information, further obtains file source position information and target position information of a required file, and performs file transmission configuration according to the information; the method can realize an automatic point-to-point file transmission tool by adopting a mode of dynamically configuring a transmission task according to various file transmission requirements of business personnel, thereby replacing the prior manual file transmission; by the method, the point-to-point transmission requirement of the file can be quickly realized, the task can be flexibly changed, the execution efficiency of the service requirement can be improved, and the response rate of service operation is further improved; therefore, the method can achieve the technical effect of improving the development efficiency of file transmission.
Further, after the step of obtaining the file source location information and the file destination location information according to the file transmission request information, the method further comprises:
pulling a source file corresponding to the file source position information to a public storage directory of the data transceiving platform according to the file source position information and an SFTP protocol;
and pushing the source file to a target position directory according to the target position information and the public storage directory.
In the implementation process, the file source position information and the target position information of the service requirement are obtained based on the file transmission request information, the source file corresponding to the file source position information is pulled to the public storage directory of the data receiving and transmitting platform by adopting the SFTP protocol technology, and then the source file is pushed to the target position directory, so that the pushing and pulling of the file are completed.
Further, after the step of pushing the source file to the destination location directory according to the destination location information and the common storage directory, the method further comprises:
and configuring multi-class file name information of the source file under the target position directory through a regular expression.
In the implementation process, for the source file corresponding to the source position information of the file, multiple types of file names can be configured in a regular expression mode, so that the number of the files can be conveniently expanded subsequently.
Further, before the step of pulling the source file corresponding to the file source location information to the public storage directory of the data transceiving platform according to the file source location information and the SFTP protocol, the method further includes:
encrypting the source file according to a preset encryption algorithm;
after the step of pushing the source file to a destination location directory in accordance with the destination location information and the common storage directory, the method further comprises:
and decrypting the source file according to a preset decryption algorithm, wherein the preset decryption algorithm corresponds to the preset encryption algorithm.
In the implementation process, the file can be encrypted and decrypted in the file transmission process, so that the security of file transmission is ensured.
Further, the step of obtaining the source location information and the destination location information of the file according to the file transmission request information includes:
generating the file source location information according to the file transmission request information, wherein the file source location information comprises one or more of address information of a remote FTP server, file access path information and login user name information;
and acquiring the target position information according to the file transmission request information, wherein the target position information comprises one or more of NAS disk path information, file uploading and downloading identification information, file name rule information, file size limitation information and file format information.
Further, the step of generating the file task information by performing transmission configuration according to the access party application information and the file transceiving information includes:
and configuring a file uploading service or a file downloading service according to the access party application information and the file transceiving information to generate the file task information, wherein the configuration content of the file task information comprises one or more of address information, file path information, login user name information, and local storage file path information, file list information and timing information of the remote FTP server.
In the implementation process, the file uploading or downloading service is configured, and the main configuration content includes the address of the remote FTP server, the file path, the account password and the like, as well as the local storage file path, the file list to be uploaded or downloaded, the timing task execution rule and the like.
Further, after the step of performing transmission configuration according to the access party application information and the file transceiving information and generating file task information, the method further includes:
and monitoring the file task information based on the data transceiving platform to generate file transmission monitoring information, wherein the file transmission monitoring information comprises one or more of transmission success rate, transmission failure rate, retry times and alarm.
In the implementation process, data statistics and monitoring of file transmission are performed, all the files implemented by the scheme can be transmitted on a visual platform, and statistics of various latitudes such as success rate, failure rate, transmission time and the like can be performed, so that the quality of file transmission is ensured.
In a second aspect, an embodiment of the present application provides a configuration system based on file transfer, which is applied to a data transceiving platform, and the configuration system based on file transfer includes:
the acquisition module is used for acquiring file transmission request information and access party application information;
the file source and target position module is used for acquiring file source position information and target position information according to the file transmission request information, and the file source position information corresponds to the target position information one by one;
the file receiving and sending module is used for generating file receiving and sending information according to the file source position information and the target position information;
and the task configuration module is used for carrying out transmission configuration according to the access party application information and the file transceiving information to generate file task information.
Further, the configuration system based on file transfer further comprises:
the public storage module is used for pulling a source file corresponding to the file source position information to a public storage directory of the data transceiving platform according to the file source position information and an SFTP protocol;
and the target pushing module is used for pushing the source file to a target position directory according to the target position information and the public storage directory.
Further, the configuration system based on file transmission further comprises:
and the file name module is used for configuring multi-class file name information of the source file in the target position directory through a regular expression.
Further, the configuration system based on file transfer further comprises:
the encryption module is used for encrypting the source file according to a preset encryption algorithm;
and the decryption module is used for decrypting the source file according to a preset decryption algorithm, and the preset decryption algorithm corresponds to the preset encryption algorithm.
Further, the file source and target location module comprises:
the file source location unit is used for generating file source location information according to the file transmission request information, and the file source location information comprises one or more of address information of a remote FTP server, file access path information and login user name information;
and the target position unit is used for acquiring the target position information according to the file transmission request information, wherein the target position information comprises one or more of NAS disk path information, file uploading and downloading identification information, file name rule information, file size limitation information and file format information.
Further, the task configuration module is specifically configured to configure a file upload service or a file download service according to the access party application information and the file transceiving information, and generate the file task information, where configuration content of the file task information includes one or more of address information of a remote FTP server, file path information, login user name information, and locally stored file path information, file list information, and timing information.
Further, the configuration system based on file transmission further comprises:
and the monitoring module is used for monitoring the file task information based on the data transceiving platform and generating file transmission monitoring information, wherein the file transmission monitoring information comprises one or more of transmission success rate, transmission failure rate, retry times and alarm.
In a third aspect, an electronic device provided in an embodiment of the present application includes: memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method according to any of the first aspect when executing the computer program.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having instructions stored thereon, which when executed on a computer, cause the computer to perform the method according to any one of the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product, which when run on a computer, causes the computer to perform the method according to any one of the first aspect.
Additional features and advantages of the disclosure will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the above-described techniques.
In order to make the aforementioned objects, features and advantages of the present application comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic flowchart of a configuration method based on file transfer according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a data transceiving platform according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another configuration method based on file transfer according to an embodiment of the present application;
FIG. 4 is a block diagram of a configuration system based on file transfer according to an embodiment of the present disclosure;
fig. 5 is a block diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
The embodiment of the application provides a configuration method, a configuration system, electronic equipment and a computer readable storage medium based on file transmission, which can be applied to file transmission configuration based on a file receiving and sending system; the configuration method based on file transmission obtains file transmission request information and access party application information so as to obtain the file source position information and the target position information of a required file, and performs file transmission configuration according to the information; the method can realize an automatic point-to-point file transmission tool by adopting a mode of dynamically configuring a transmission task according to various file transmission requirements of business personnel, thereby replacing the prior manual file transmission; by the method, the point-to-point transmission requirement of the file can be quickly realized, the flexible change of the task can be realized, the execution efficiency of the service requirement can be improved, and the response rate of service operation is further improved; therefore, the method can achieve the technical effect of improving the development efficiency of file transmission.
Referring to fig. 1, fig. 1 is a schematic flowchart of a configuration method based on file transmission according to an embodiment of the present application, and the configuration method is applied to a data transceiving platform, and the configuration method based on file transmission includes the following steps:
s100: and acquiring file transmission request information and access party application information.
Illustratively, the file transmission request information is created and generated according to the file transmission requirements of business personnel; business personnel create application information needed to be used, namely access party application information, on a data receiving and sending platform in corresponding application management; optionally, the access party application information includes an access party name, an access party domain name, etc., which are only used as examples and are not limited herein.
S200: and obtaining the source position information and the target position information of the file according to the file transmission request information, wherein the source position information and the target position information correspond to each other one to one.
Illustratively, a transmission request of a corresponding file may be obtained according to the file transmission request information; after receiving the file transmission requirement (file transmission request information), the service personnel can arrange the basic information corresponding to the source position and the target position of the file, namely, the source position information and the target position information of the file are obtained.
S300: and generating file transceiving information according to the file source position information and the target position information.
Illustratively, file source location information and destination location information are collected, thereby creating file transceive information, optionally; in the information transmission and reception management function of the data transmission and reception platform, the service personnel creates corresponding file transmission and reception information according to the basic information of the source location information and the target location information of the file in S300.
S400: and carrying out transmission configuration according to the access party application information and the file receiving and sending information to generate file task information.
Exemplarily, after the creation of the file transceiving information is completed, configuring based on the access party application information and the file transceiving information, and generating file task information, through which a required task scenario can be created; in some embodiments, the file transceive information is associated with file task information.
Optionally, in the task management function, the service personnel creates a required task scene according to a scene of current file transmission, and the file task information may include one or more of a task name, a task execution time, a task execution number, and a task exception alert mail.
In some implementation scenarios, after the data transceiving platform completes creation of the file task information, a task corresponding to the file task information is clicked to be enabled, and the corresponding file completes transmission of the file according to the configured point-to-point information and the execution time of the task.
In some embodiments, the configuration method based on file transmission obtains file transmission request information and access party application information, further obtains file source location information and target location information of a required file, and performs file transmission configuration according to the information; the method can realize an automatic point-to-point file transmission tool by adopting a mode of dynamically configuring a transmission task according to various file transmission requirements of business personnel, thereby replacing the prior manual file transmission; by the method, the point-to-point transmission requirement of the file can be quickly realized, the flexible change of the task can be realized, the execution efficiency of the service requirement can be improved, and the response rate of service operation is further improved; therefore, the method can achieve the technical effect of improving the development efficiency of file transmission.
Please refer to fig. 2, fig. 2 is a schematic structural diagram of a data transceiving platform provided in the present application; the data receiving and transmitting platform can provide available point-to-point file transmission service, and is convenient for developers to upload and download files with an external system.
Optionally, the data transceiving platform follows the principle of easy use, easy maintenance, stable system and easy expansion; based on one-key configuration requirements, the platform for gradually transmitting point-to-point files is realized; through the data receiving and sending platform, data isolation among all applications is guaranteed, and unified operation and maintenance monitoring is facilitated. As shown in fig. 2, the data transceiving platform can download a file from an FTP server and store the file in a Network Attached Storage (NAS) shared disk. Meanwhile, the FTP server path, the file name, the account password, the storage path and the timing task can be configured, 7-24 h file uploading and downloading services are provided, operation and maintenance are uniformly monitored, and the application supports horizontal extension.
Referring to fig. 3, fig. 3 is a schematic flowchart of another configuration method based on file transfer according to an embodiment of the present disclosure.
Illustratively, after the step of obtaining the file source location information and the target location information according to the file transfer request information, the method further comprises:
s210: pulling a source file corresponding to the file source position information to a public storage directory of a data transceiving platform according to the file source position information and an SFTP protocol;
s220: and pushing the source file to the target position directory according to the target position information and the public storage directory.
Illustratively, based on the file transmission request information, obtaining file source location information and target location information of the service requirement, then adopting an SFTP protocol technology to pull a source file corresponding to the file source location information to a public storage directory of the data transceiving platform, and then pushing the source file to the target location directory to complete pushing and pulling of the file.
The SFTP Protocol is a Secure File Transfer Protocol (SFTP), which is a network transport Protocol for providing File access, transmission, and management functions for a data stream connection.
Illustratively, at S220: after the step of pushing the source file to the destination location directory according to the destination location information and the common storage directory, the method further comprises:
s230: and configuring multi-class file name information of the source file in the target position directory through the regular expression.
For a source file corresponding to the source location information of the file, multiple types of file names may be configured in a regular expression manner, which facilitates subsequent expansion of the number of files.
It should be noted that a regular expression (regular expression) describes a pattern for matching a character string, and may be used to check whether a string contains a certain substring, replace the matched substring, or extract a substring meeting a certain condition from a certain string, and the like.
Exemplarily, S210: before the step of pulling the source file corresponding to the file source location information to the public storage directory of the data transceiving platform according to the file source location information and the SFTP protocol, the method further comprises:
s211: encrypting the source file according to a preset encryption algorithm;
at S220: after the step of pushing the source file to the destination location directory according to the destination location information and the public storage directory, the method further comprises:
s221: and decrypting the source file according to a preset decryption algorithm, wherein the preset decryption algorithm corresponds to the preset encryption algorithm.
Illustratively, when the file is transmitted, the file can be encrypted and decrypted, and the security of the transmitted file is ensured.
Alternatively, the preset encryption algorithm may be a national encryption algorithm.
In some implementation scenes, files related to part of service scenes have sensitive information, in order to prevent data from being maliciously stolen in the transmission process, the files are encrypted by a cryptographic algorithm before being transmitted, the encrypted contents are transmitted, and the files are decrypted before being pushed to a target position; the function is realized by adopting the AOP technology.
It should be noted that the Aspect Oriented Programming (AOP) technology is a technology for implementing unified maintenance of program functions through a pre-compilation mode and a dynamic proxy during running, and may be used to isolate each part of the service logic, thereby reducing the coupling degree between each part of the service logic, improving the reusability of the program, and improving the development efficiency.
Illustratively, the cryptographic algorithm is mainly SM1, SM2, SM3, SM4, and the like, and the key length and the packet length are 128 bits. Alternatively, in some embodiments, the preset encryption algorithm may adopt an SM2 encryption algorithm, and the SM2 is asymmetric encryption based on Elliptic Curve Cryptography (ECC). Since SM2 is based on ECC, its signature speed and key generation speed are faster than RSA encryption algorithms. The security strength of the ECC 256 bits (one of the ECC 256 bits is adopted by the SM 2) is higher than that of the RSA 2048 bits, but the operation speed is faster than that of the RSA.
Exemplarily, S200: the step of obtaining the source location information and the target location information of the file according to the file transmission request information comprises the following steps:
s201: obtaining the position information of a file source according to the file transmission request information, wherein the position information of the file source comprises one or more of address information of a remote FTP server, file access path information and login user name information;
s202: and acquiring target position information according to the file transmission request information, wherein the target position information comprises one or more of NAS disk path information, file uploading and downloading identification information, file name rule information, file size limit information and file format information.
Exemplarily, S400: the step of carrying out transmission configuration according to the access party application information and the file receiving and sending information and generating the file task information comprises the following steps:
s410: and configuring the file uploading service or the file downloading service according to the access party application information and the file transceiving information to generate file task information, wherein the configuration content of the file task information comprises one or more of address information, file path information, login user name information, and local storage file path information, file list information and timing information of the remote FTP server.
In some embodiments, the file uploading or downloading service is configured, and the configuration main content includes an address of a remote FTP server, a file path, an account password, and the like, and a local storage file path, a file list to be uploaded or downloaded, a timing task execution rule, and the like. The task execution time is configurable, and the time rule for executing the timing task is realized through the cronExpression field.
Exemplarily, at S400: after the step of performing transmission configuration according to the access party application information and the file transceiving information and generating the file task information, the method further comprises:
s500: and monitoring the file task information based on the data receiving and sending platform to generate file transmission monitoring information, wherein the file transmission monitoring information comprises one or more of transmission success rate, transmission failure rate, retry times and alarm.
Illustratively, data statistics and monitoring of file transmission are performed, all file transmissions realized by the scheme can be performed on a visualization platform, statistics of various latitudes can be performed, such as success rate, failure rate, transmission time and the like, and accordingly file transmission quality is guaranteed.
In some implementation scenes, the functions of task management, application management, information receiving and transmitting management, system management and the like of the data receiving and transmitting platform are realized through a visual configuration page, so that business personnel can conveniently configure file transmission through page operation, the point-to-point transmission requirement of the file is met by one-key configuration, and the data receiving and transmitting platform has the functions of file transmission monitoring, authority control, user management and the like. The page is implemented using VUE front end page technology. It should be noted that the VUE is a set of progressive JavaScript framework for constructing the user interface. Unlike other large frameworks, VUEs are designed to be applied layer by layer from the bottom up.
In some implementation scenarios, with reference to fig. 1 to fig. 3, specific application steps of the configuration method based on file transfer provided in the embodiment of the present application are as follows:
firstly, after receiving a file transmission requirement, service personnel arranges basic information corresponding to a file source position and a target position, such as a remote FTP server IP, a file access path, a remote FTP service login user name, an NAS disk path, a file uploading and downloading identifier, a file name rule, file size limitation, a file format and the like. If encryption is involved, it is also necessary to specify the cryptographic algorithm (SM1, SM2, SM3, SM 4).
Secondly, business personnel create application information (access party name, access party domain name and the like) needed to be used in corresponding application management on the data receiving and sending platform.
And thirdly, the service personnel creates the information according to the basic information in the step 1 in the information receiving and transmitting management function, and clicks and stores the information after the configuration is completed.
After the information is created and sent, in the task management function, the service personnel creates a required task scene according to the scene of the current file transmission in the task management, and the basic information of the task comprises: task name, task execution time, task execution times, task abnormal alarm mail, and information received and sent in the step 3 of task association.
After the task is established, clicking to start the task, and the corresponding file can finish the transmission of the file according to the configured point-to-point information and the execution time of the task.
Sixthly, in the data receiving and transmitting platform, the information such as the condition of current file transmission, success rate, failure rate, retry times, whether to alarm and the like can be observed in real time through a task monitoring function.
Illustratively, according to the configuration method based on file transmission provided by the embodiment of the present application, through a file transmission one-key configuration implementation scheme based on a transceiving system, a mode of dynamically configuring a transmission task can be adopted according to various file transmission requirements of business personnel to implement an automatic point-to-point file transmission tool, thereby replacing the previous manual file transmission. During the file transmission process, the file can be encrypted and decrypted, and the safety of the transmitted file is ensured. Meanwhile, data statistics and monitoring of file transmission can be performed according to the scheme, and statistics of various latitudes such as success rate, failure rate, transmission time and the like can be performed on all the file transmission realized by the scheme on a visual platform. By the scheme, the point-to-point transmission requirement of the file can be quickly realized, the task can be flexibly changed, the execution efficiency of the service requirement can be improved, and the response rate of service operation is further improved.
Referring to fig. 4, fig. 4 is a block diagram of a configuration system based on file transfer according to an embodiment of the present application, and the configuration system is applied to a data transceiving platform, where the configuration system based on file transfer includes:
an obtaining module 100, configured to obtain file transmission request information and access party application information;
a file source and target location module 200, configured to obtain file source location information and target location information according to the file transmission request information, where the file source location information and the target location information correspond to each other one to one;
a file transceiving module 300 for generating file transceiving information according to the file source location information and the target location information;
the task configuration module 400 is configured to perform transmission configuration according to the access party application information and the file transceiving information, and generate file task information.
Illustratively, the file transfer based configuration system further comprises:
the public storage module is used for pulling a source file corresponding to the file source position information to a public storage directory of the data transceiving platform according to the file source position information and an SFTP protocol;
and the target pushing module is used for pushing the source file to the target position directory according to the target position information and the public storage directory.
Illustratively, the file transfer based configuration system further comprises:
and the file name module is used for configuring multi-class file name information of the source file in the target position directory through the regular expression.
Illustratively, the file transfer based configuration system further comprises:
the encryption module is used for encrypting the source file according to a preset encryption algorithm;
and the decryption module is used for decrypting the source file according to a preset decryption algorithm, and the preset decryption algorithm corresponds to the preset encryption algorithm.
Illustratively, the file source and target location module 200 includes:
the file source location unit is used for obtaining file source location information according to the file transmission request information, and the file source location information comprises one or more of address information of the remote FTP server, file access path information and login user name information;
and the target position unit is used for acquiring target position information according to the file transmission request information, wherein the target position information comprises one or more of NAS disk path information, file uploading and downloading identification information, file name rule information, file size limitation information and file format information.
Illustratively, the task configuration module 400 is specifically configured to configure the file upload service or the file download service according to the access party application information and the file transceiving information, and generate file task information, where configuration content of the file task information includes one or more of address information, file path information, login user name information, and locally stored file path information, file list information, and timing information of the remote FTP server.
Illustratively, the file transfer based configuration system further comprises:
and the monitoring module is used for monitoring the file task information based on the data transceiving platform and generating file transmission monitoring information, wherein the file transmission monitoring information comprises one or more of transmission success rate, transmission failure rate, retry times and alarm.
It should be understood that the configuration system based on file transfer shown in fig. 4 corresponds to the method embodiments shown in fig. 1 to fig. 3, and is not described herein again to avoid repetition.
Fig. 5 shows a block diagram of an electronic device according to an embodiment of the present disclosure, where fig. 5 is a block diagram of the electronic device. The electronic device may include a processor 510, a communication interface 520, a memory 530, and at least one communication bus 540. Wherein the communication bus 540 is used for realizing direct connection communication of these components. In this embodiment, the communication interface 520 of the electronic device is used for performing signaling or data communication with other node devices. Processor 510 may be an integrated circuit chip having signal processing capabilities.
The Processor 510 may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor 510 may be any conventional processor or the like.
The Memory 530 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Read Only Memory (EPROM), an electrically Erasable Read Only Memory (EEPROM), and the like. The memory 530 stores computer readable instructions, which when executed by the processor 510, enable the electronic device to perform the steps involved in the method embodiments of fig. 1-3 described above.
Optionally, the electronic device may further include a memory controller, an input output unit.
The memory 530, the memory controller, the processor 510, the peripheral interface, and the input/output unit are electrically connected to each other directly or indirectly, so as to implement data transmission or interaction. For example, these elements may be electrically coupled to each other via one or more communication buses 540. The processor 510 is used to execute executable modules stored in the memory 530, such as software functional modules or computer programs included in the electronic device.
The input and output unit is used for providing a task for a user to create and start an optional time period or preset execution time for the task creation so as to realize the interaction between the user and the server. The input/output unit may be, but is not limited to, a mouse, a keyboard, and the like.
It will be appreciated that the configuration shown in fig. 5 is merely illustrative and that the electronic device may include more or fewer components than shown in fig. 5 or may have a different configuration than shown in fig. 5. The components shown in fig. 5 may be implemented in hardware, software, or a combination thereof.
The embodiment of the present application further provides a storage medium, where the storage medium stores instructions, and when the instructions are run on a computer, when the computer program is executed by a processor, the method in the method embodiment is implemented, and in order to avoid repetition, details are not repeated here.
The present application also provides a computer program product which, when run on a computer, causes the computer to perform the method of the method embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A configuration method based on file transmission is characterized in that the configuration method is applied to a data transceiving platform and comprises the following steps:
acquiring file transmission request information and access party application information;
obtaining file source position information and target position information according to the file transmission request information, wherein the file source position information corresponds to the target position information one to one;
generating file transceiving information according to the file source location information and the target location information;
and carrying out transmission configuration according to the access party application information and the file transceiving information to generate file task information.
2. The file transfer-based configuration method according to claim 1, wherein after the step of obtaining file source location information and destination location information according to the file transfer request information, the method further comprises:
pulling a source file corresponding to the file source position information to a public storage directory of the data transceiving platform according to the file source position information and an SFTP protocol;
and pushing the source file to a target position directory according to the target position information and the public storage directory.
3. The file transfer based configuration method of claim 2, wherein after the step of pushing the source file to a destination location directory according to the destination location information and the common storage directory, the method further comprises:
and configuring multi-class file name information of the source file under the target position directory through a regular expression.
4. The file transfer-based configuration method of claim 2, wherein before the step of pulling the source file corresponding to the file source location information to the common storage directory of the data transceiving platform according to the file source location information and an SFTP protocol, the method further comprises:
encrypting the source file according to a preset encryption algorithm;
after the step of pushing the source file to a destination location directory according to the destination location information and the common storage directory, the method further comprises:
and decrypting the source file according to a preset decryption algorithm, wherein the preset decryption algorithm corresponds to the preset encryption algorithm.
5. The file transfer-based configuration method according to claim 1, wherein the step of obtaining the file source location information and the file destination location information according to the file transfer request information comprises:
generating the file source location information according to the file transmission request information, wherein the file source location information comprises one or more of address information of a remote FTP server, file access path information and login user name information;
and acquiring the target position information according to the file transmission request information, wherein the target position information comprises one or more of NAS disk path information, file uploading and downloading identification information, file name rule information, file size limitation information and file format information.
6. The file transmission-based configuration method according to claim 1, wherein the step of performing transmission configuration according to the access party application information and the file transceiving information to generate file task information comprises:
and configuring a file uploading service or a file downloading service according to the access party application information and the file transceiving information to generate the file task information, wherein the configuration content of the file task information comprises one or more of address information, file path information, login user name information, and local storage file path information, file list information and timing information of the remote FTP server.
7. The file transfer based configuration method of claim 6, wherein after the step of generating file task information according to the access party application information and the file transceiving information for transfer configuration, the method further comprises:
and monitoring the file task information based on the data transceiving platform to generate file transmission monitoring information, wherein the file transmission monitoring information comprises one or more of transmission success rate, transmission failure rate, retry times and alarm.
8. A configuration system based on file transmission is characterized in that the configuration system is applied to a data transceiving platform and comprises:
the acquisition module is used for acquiring file transmission request information and access party application information;
the file source and target position module is used for acquiring file source position information and target position information according to the file transmission request information, and the file source position information corresponds to the target position information one by one;
the file receiving and sending module is used for generating file receiving and sending information according to the file source position information and the target position information;
and the task configuration module is used for carrying out transmission configuration according to the access party application information and the file transceiving information to generate file task information.
9. An electronic device, comprising: memory, processor and computer program stored in the memory and executable on the processor, the processor implementing the steps of the file transfer based configuration method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium having stored thereon instructions which, when executed on a computer, cause the computer to perform the file transfer based configuration method of any one of claims 1 to 7.
CN202210687582.XA 2022-06-16 2022-06-16 Configuration method and system based on file transmission Active CN115102946B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210687582.XA CN115102946B (en) 2022-06-16 2022-06-16 Configuration method and system based on file transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210687582.XA CN115102946B (en) 2022-06-16 2022-06-16 Configuration method and system based on file transmission

Publications (2)

Publication Number Publication Date
CN115102946A true CN115102946A (en) 2022-09-23
CN115102946B CN115102946B (en) 2023-10-24

Family

ID=83291750

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210687582.XA Active CN115102946B (en) 2022-06-16 2022-06-16 Configuration method and system based on file transmission

Country Status (1)

Country Link
CN (1) CN115102946B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118035020A (en) * 2024-04-11 2024-05-14 成都佰维存储科技有限公司 Automatic test method, device, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6763428B1 (en) * 2000-08-02 2004-07-13 Symantec Corporation Methods and systems for performing push-pull optimization of files while file storage allocations are actively changing
US8768981B1 (en) * 2010-08-27 2014-07-01 Disney Enterprises, Inc. System and method for distributing and accessing files in a distributed storage system
CN104092719A (en) * 2013-12-17 2014-10-08 深圳市腾讯计算机系统有限公司 File transmission method, device and distributed cluster file system
US20160381040A1 (en) * 2014-02-13 2016-12-29 Fujitsu Technology Solutions Intellectual Property Gmbh Method of communicating between secured computer systems as well as computer network infrastructure
CN106453460A (en) * 2015-08-12 2017-02-22 腾讯科技(深圳)有限公司 File distributing method, apparatus and system
CN107689976A (en) * 2016-08-05 2018-02-13 北京金山云网络技术有限公司 A kind of document transmission method and device
CN111193794A (en) * 2019-12-30 2020-05-22 深圳市网心科技有限公司 File transmission method and device, computer equipment and storage medium
US20200319867A1 (en) * 2019-04-05 2020-10-08 Apple Inc. Systems and methods for eager software build
CN113542282A (en) * 2021-07-15 2021-10-22 曙光信息产业(北京)有限公司 Cross-computing center file transmission method, device, equipment and storage medium
CN114461582A (en) * 2022-01-06 2022-05-10 中信百信银行股份有限公司 File processing method, device, equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6763428B1 (en) * 2000-08-02 2004-07-13 Symantec Corporation Methods and systems for performing push-pull optimization of files while file storage allocations are actively changing
US8768981B1 (en) * 2010-08-27 2014-07-01 Disney Enterprises, Inc. System and method for distributing and accessing files in a distributed storage system
CN104092719A (en) * 2013-12-17 2014-10-08 深圳市腾讯计算机系统有限公司 File transmission method, device and distributed cluster file system
US20160381040A1 (en) * 2014-02-13 2016-12-29 Fujitsu Technology Solutions Intellectual Property Gmbh Method of communicating between secured computer systems as well as computer network infrastructure
CN106453460A (en) * 2015-08-12 2017-02-22 腾讯科技(深圳)有限公司 File distributing method, apparatus and system
CN107689976A (en) * 2016-08-05 2018-02-13 北京金山云网络技术有限公司 A kind of document transmission method and device
US20200319867A1 (en) * 2019-04-05 2020-10-08 Apple Inc. Systems and methods for eager software build
CN111193794A (en) * 2019-12-30 2020-05-22 深圳市网心科技有限公司 File transmission method and device, computer equipment and storage medium
CN113542282A (en) * 2021-07-15 2021-10-22 曙光信息产业(北京)有限公司 Cross-computing center file transmission method, device, equipment and storage medium
CN114461582A (en) * 2022-01-06 2022-05-10 中信百信银行股份有限公司 File processing method, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118035020A (en) * 2024-04-11 2024-05-14 成都佰维存储科技有限公司 Automatic test method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115102946B (en) 2023-10-24

Similar Documents

Publication Publication Date Title
US8539231B1 (en) Encryption key management
US9912644B2 (en) System and method to communicate sensitive information via one or more untrusted intermediate nodes with resilience to disconnected network topology
CN111970240B (en) Cluster receiving and managing method and device and electronic equipment
US20160285635A1 (en) Secure communication of data between devices
CN104602238A (en) Wireless network connecting method, device and system
US8848922B1 (en) Distributed encryption key management
CN113360953B (en) IPFS and blockchain-based file distributed storage management method and system
US10116442B2 (en) Data storage apparatus, data updating system, data processing method, and computer readable medium
CN110839004A (en) Method and device for access authentication
CN112788012A (en) Log file encryption method and device, storage medium and electronic equipment
CN112416396B (en) Application program updating method and system
CN112199622A (en) Page jump method, system and storage medium
CN110912682A (en) Data processing method, device and system
CN114041134A (en) System and method for block chain based secure storage
CN112400299A (en) Data interaction method and related equipment
CN115102946B (en) Configuration method and system based on file transmission
CN111131282A (en) Request encryption method and device, electronic equipment and storage medium
CN114499836A (en) Key management method, key management device, computer equipment and readable storage medium
CN109660609B (en) equipment identification method and device and storage medium
CN103401931A (en) Method and system for downloading file
CN109714337B (en) Data encryption transmission method and equipment
CN110545320A (en) Intranet data interaction method and equipment
CN107547251B (en) Equipment management method, device and system
CN110611674B (en) Protocol interaction method, system and storage medium between different computer systems
JP2000305849A (en) Transmitter and its method, receiver and its method and communication system

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
GR01 Patent grant
GR01 Patent grant