CN114553861A - File transmission method and device, storage medium and electronic equipment - Google Patents

File transmission method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN114553861A
CN114553861A CN202210165011.XA CN202210165011A CN114553861A CN 114553861 A CN114553861 A CN 114553861A CN 202210165011 A CN202210165011 A CN 202210165011A CN 114553861 A CN114553861 A CN 114553861A
Authority
CN
China
Prior art keywords
target
file set
host
source
target file
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
CN202210165011.XA
Other languages
Chinese (zh)
Other versions
CN114553861B (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202210165011.XA priority Critical patent/CN114553861B/en
Publication of CN114553861A publication Critical patent/CN114553861A/en
Application granted granted Critical
Publication of CN114553861B publication Critical patent/CN114553861B/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]
    • 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)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a file transmission method and device, a storage medium and electronic equipment, and relates to the field of financial science and technology. The method comprises the following steps: acquiring a source file set, wherein the source file set at least comprises one or more source files to be transmitted; decoding a source file set to obtain a target file set, storing the target file set in a target application interface, and determining a storage path of the target file set in the target application interface; sending a transmission instruction to the external application of the host according to the target file set and the storage path; and responding to the transmission instruction, controlling the starting of a target switch of the host, and transmitting the target file set to the host. By the method and the device, the problem that the timeliness of the platform file transmitted to the host is low in the related technology is solved.

Description

File transmission method and device, storage medium and electronic equipment
Technical Field
The application relates to the field of financial science and technology, in particular to a file transmission method and device, a storage medium and electronic equipment.
Background
Files are often transferred between the host system and the platform system for data transfer or accounting. In the related art, a method of obtaining files in batches at regular time is generally adopted when files are transmitted between a host system and a platform system. However, since the timeliness of part of service scenes is high and the arrival time of the file cannot be determined, the method of acquiring the file in batch in the related technology cannot meet the requirement of high timeliness. In addition, if the file is transmitted manually, the requirement of automation cannot be met, and the risk is high.
Aiming at the problem of low time efficiency of transmitting the platform file to the host in the related technology, an effective solution is not provided at present.
Disclosure of Invention
The present application mainly aims to provide a file transmission method and apparatus, a storage medium, and an electronic device, so as to solve the problem that the time efficiency of transmitting a platform file to a host in the related art is low.
In order to achieve the above object, according to one aspect of the present application, there is provided a file transfer method. The method comprises the following steps: acquiring a source file set, wherein the source file set at least comprises one or more source files to be transmitted; decoding the source file set to obtain a target file set, storing the target file set in a target application interface, and determining a storage path of the target file set in the target application interface; sending a transmission instruction to an external application of the host according to the target file set and the storage path; and responding to the transmission instruction, controlling the starting of a target switch of the host, and transmitting the target file set to the host.
Further, before decoding the source file set to obtain the target file set, the method further includes: recording source application interfaces and field information corresponding to each source file in the source file set in a target system; and storing the source file set in the source application interface, and determining a storage path of the source file set in the source application interface according to the source application interface and the field information.
Further, after sending a transmission instruction to the external application of the host according to the target file set and the storage path of the target file set, the method further includes: constructing a first preset table according to the message to which the transmission instruction belongs, wherein the first preset table at least comprises the characteristic information of the target file set and the processing state of the target file set; and controlling the target files to be transmitted in the target file set not to be transmitted repeatedly according to the first preset table.
Further, controlling activation of a target switch of the host in response to the transmitted command includes: acquiring a second preset table, wherein the second preset table at least comprises a plurality of transmission instructions and a corresponding relation between each transmission instruction and each switch of the host; and determining a target switch of the host corresponding to the transmission instruction according to the second preset table, and controlling the starting of the target switch of the host.
Further, controlling activation of a target switch of the host and transmitting the set of target files to the host comprises: establishing a first message according to the first preset table, wherein the first message at least comprises the characteristic information of the target file set; determining target information in the characteristic information of the target file set according to the first message; and writing the target information into a parameter file of the host, and transmitting the target file set to the host.
Further, after controlling the activation of the target switch of the host and transmitting the target file set to the host in response to the transmission instruction, the method further comprises: acquiring a transmission result; and calling the external application of the host to send the transmission result through the external application of the host.
Further, after obtaining the transmission result, the method further includes: establishing a second message according to a transmission result and the first preset table, wherein the second message at least comprises the characteristic information of the target file set and the transmission result after the target file set is transmitted; and updating the processing state of the target file set in the first preset table according to the second message.
In order to achieve the above object, according to another aspect of the present application, there is provided a document transfer apparatus. The device includes: the device comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring a source file set, and the source file set at least comprises one or more source files to be transmitted; the first processing unit is used for decoding the source file set to obtain a target file set, storing the target file set in a target application interface and determining a storage path of the target file set in the target application interface; the first sending unit is used for sending a transmission instruction to the external application of the host according to the target file set and the storage path; and the second processing unit is used for responding to the transmission instruction, controlling the starting of a target switch of the host and transmitting the target file set to the host.
Further, the apparatus further comprises: a first recording unit, configured to record, in a target system, source application interfaces and field information corresponding to each source file in the source file set before decoding the source file set to obtain a target file set; and the third processing unit is used for storing the source file set in the source application interface and determining a storage path of the source file set in the source application interface according to the source application interface and the field information.
Further, the apparatus further comprises: a first constructing unit, configured to, after sending a transmission instruction to an external application of a host according to the target file set and a storage path of the target file set, construct a first preset table according to a packet to which the transmission instruction belongs, where the first preset table at least includes feature information of the target file set and a processing state of the target file set; and the first control unit is used for controlling the target files to be transmitted in the target file set not to be transmitted repeatedly according to the first preset table.
Further, the second processing unit includes: the system comprises a first acquisition module, a second acquisition module and a control module, wherein the first acquisition module is used for acquiring a second preset table, the second preset table at least comprises a plurality of transmission instructions and the corresponding relation between each transmission instruction and each switch of the host; and the first determining module is used for determining a target switch of the host corresponding to the transmission instruction according to the second preset table and controlling the starting of the target switch of the host.
Further, the second processing unit includes: a first creating module, configured to create a first packet according to the first preset table, where the first packet at least includes feature information of the target file set; a second determining module, configured to determine, according to the first packet, target information in the feature information of the target file set; and the first writing module is used for writing the target information into a parameter file of the host and transmitting the target file set to the host.
Further, the apparatus further comprises: a second obtaining unit, configured to obtain a transmission result after responding to the transmission instruction, controlling starting of a target switch of the host, and transmitting the target file set to the host; the first calling unit is used for calling the external application of the host so as to send the transmission result through the external application of the host.
Further, the apparatus further comprises: a first creating unit, configured to, after obtaining a transmission result, create a second packet according to the transmission result and the first preset table, where the second packet at least includes the feature information of the target file set and a transmission result obtained after the transmission of the target file set; and the first updating unit is used for updating the processing state of the target file set in the first preset table according to the second message.
In order to achieve the above object, according to another aspect of the present application, there is provided a computer-readable storage medium storing a program, wherein the program executes the file transfer method of any one of the above.
In order to achieve the above object, according to another aspect of the present application, there is provided an electronic device including one or more processors and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the file transfer method of any one of the above.
Through the application, the following steps are adopted: acquiring a source file set, wherein the source file set at least comprises one or more source files to be transmitted; decoding a source file set to obtain a target file set, storing the target file set in a target application interface, and determining a storage path of the target file set in the target application interface; sending a transmission instruction to the external application of the host according to the target file set and the storage path; and responding to the transmission instruction, controlling the starting of a target switch of the host, and transmitting the target file set to the host, thereby solving the problem of lower time efficiency of transmitting the platform file to the host in the related technology. The method comprises the steps of decoding an obtained source file set to obtain a target file set, storing the target file set in a target application interface, sending a transmission instruction to an external application of a host and responding according to the target file set and a storage path, controlling starting of a target switch of the host, transmitting the target file set to the host, achieving the effect of improving the efficiency of transmitting a platform file to the host, automatically transmitting the platform file to the host, and avoiding risks in a file transmission process in a manual mode.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
FIG. 1 is a flow chart of a file transfer method provided according to an embodiment of the present application;
FIG. 2 is a schematic view of a document transport apparatus provided according to an embodiment of the present application;
fig. 3 is a schematic diagram of an electronic device provided according to an embodiment of the application.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for presentation, analyzed data, etc.) referred to in the present disclosure are information and data authorized by the user or sufficiently authorized by each party.
The present invention is described below with reference to preferred implementation steps, and fig. 1 is a flowchart of a file transfer method provided in an embodiment of the present application, and as shown in fig. 1, the method includes the following steps:
step S101, a source file set is obtained, wherein the source file set at least comprises one or more source files to be transmitted.
For example, one or more source files to be transmitted are obtained from a source application interface.
Step S102, decoding the source file set to obtain a target file set, storing the target file set in the target application interface, and determining a storage path of the target file set in the target application interface.
For example, after the file splitting and decoding application acquires the file in time, the file is decoded, and the decoded file is stored in an interface directory of the target application. Wherein, the file directory description of the target application: source application interface/destination application interface/batch number/field number/file name BIN. In addition, the source application interface, the target application interface, the batch number and the field number are obtained from the transmission information of the registration file on the resource information system. If the AAAA application transmits the BFXXXX file to the host BBBB application, the target application directory of the file splitting and decoding application is AAAA/BBBB/0000/101// BFXXXX.
And step S103, sending a transmission instruction to the external application of the host according to the target file set and the storage path.
For example, after the file splitting and decoding application stores the decoded file in the interface directory of the target application, a transmission instruction is sent to the host external connection service to notify that the file is reached, and a file storage path is provided. And the message format of the host sent to the host by the host external connection service is called, as shown in table 1.
TABLE 1 transfer of message formats to host for out-of-host services
Figure BDA0003515681780000051
Figure BDA0003515681780000061
And step S104, responding to the transmission instruction, controlling the starting of a target switch of the host, and transmitting the target file set to the host.
For example, the host extranet service obtains and responds to the instruction, triggers the host working set switch according to the instruction, and transmits the target file set to the host.
Through the steps from S101 to S104, the target file set is obtained and stored in the target application interface by decoding the obtained source file set, and the transmission instruction and the response are sent to the external application of the host according to the target file set and the storage path, so that the starting of the target switch of the host is controlled, the target file set is transmitted to the host, the effect of improving the efficiency of transmitting the platform file to the host is achieved, the platform file can be automatically transmitted to the host, and meanwhile, the risk in the file transmission process through a manual mode is avoided.
Optionally, in the file transmission method provided in this embodiment of the present application, before performing decoding processing on the source file set to obtain the target file set, the method further includes: recording a source application interface and field information corresponding to each source file in a source file set in a target system; and storing the source file set in the source application interface, and determining a storage path of the source file set in the source application interface according to the source application interface and the field information.
For example, file transfer information is registered in the resource information system, for example, the file transfer information includes a source application interface, a target application interface and field information corresponding to a file, and according to the specification requirement, 3-bit field number (digital type) information of the file is provided, and the field number is designed according to the first two bits being a fragment number of the distributed database and the last one being a file number, wherein the file number is accumulated from 1 according to natural days. After the platform application generates the files in batches, the files are transmitted to the file splitting and decoding application through the data transmission platform. And then the file splitting and decoding application acquires the file in time and stores the file to a source file interface. In addition, the file directory description of the source application is [ source application interface ]/[ batch number ]/[ field number ]/[ source application interface identifier ] -file name- [ date ] - [ first-level branch code ]. BIN. For example, the source application interface, the batch number, and the field number are obtained from the transmission information of the registration file on the resource information system, the primary branch code is fixed to 0000000000, and if the AAAA application transmits the BFXXXX file to the host, the source application directory of the file splitting and decoding application is AAAA/0000/101/AAAA-BFXXXX-20210628-0000000000. BIN.
In summary, the storage path of the source file in the source application can be accurately obtained through the file transmission information obtained from the resource information system.
Optionally, in the file transfer method provided in this embodiment of the present application, after sending the transfer instruction to the external application of the host according to the storage path of the target file set and the storage path of the target file set, the method further includes: constructing a first preset table according to the message to which the transmission instruction belongs, wherein the first preset table at least comprises characteristic information of a target file set and a processing state of the target file set; and controlling the target files to be transmitted in the target file set not to be transmitted repeatedly according to the first preset table.
For example, after the host external connection service acquires the instruction of file splitting and decoding, the batch linkage transaction log table M is inserted according to the content of the message sent to the host by the host external connection service. Through the information of COMMAND + SETNO + send + STATUS in the M table, the control file is not sent repeatedly, and the structure of the M table is specifically shown in table 2.
TABLE 2, M Table
Figure BDA0003515681780000071
Figure BDA0003515681780000081
By the scheme, the effect that the file is not transmitted repeatedly can be achieved according to the information in the established preset table.
Optionally, in the file transfer method provided in the embodiment of the present application, the controlling, in response to the transmission instruction, the starting of the target switch of the host includes: acquiring a second preset table, wherein the second preset table at least comprises a plurality of transmission instructions and a corresponding relation between each transmission instruction and each switch of the host; and determining a target switch of the host corresponding to the transmission instruction according to the second preset table, and controlling the starting of the target switch of the host.
For example, the external host reads the batch scheduling instruction comparison table N according to the file splitting and decoding instruction, obtains the comparison parameter between the instruction and the SR (host job set switch), and triggers the structure of the SR and N tables, which is specifically shown in table 3.
TABLE 3, N Table
Figure BDA0003515681780000082
Figure BDA0003515681780000091
Optionally, in the file transfer method provided in the embodiment of the present application, controlling the start of a target switch of a host, and transferring a target file set to the host includes: establishing a first message according to a first preset table, wherein the first message at least comprises characteristic information of a target file set; determining target information in the characteristic information of the target file set according to the first message; and writing the target information into a parameter file of the host, and transmitting the target file set to the host.
For example, the host SR obtains a file according to a file path provided by the file splitting and decoding, and performs host processing. Specifically, the SR triggers a host operation, the host FTP operation acquires a file from a file splitting and decoding target interface directory and deletes the file, and the host reads the file and performs related business operation. In addition, because the file splitting and decoding directory changes with different field numbers, the log records in the batch linkage transaction log table M need to be read through the host external connection service interface, so as to obtain the physical path of the platform file. The content in the message of the host extranet service interface is specifically shown in table 4. After the file is obtained according to the physical path of the platform file, the host processes the file, that is, the related information of the file is written into the parameter file of the host, and the related information of the file may be address information of the file, etc. If MBUXXXXX is the IP of the configuration platform server, the user name and the password, BFHXXXXX.MBU is the written folder path, FBUXXXXXXX is the physical file name of the configuration platform server and the file name of the host, and the code for writing the information of the file into the parameter file of the host is as follows:
KBUT40 EXEC PGM=IKJEFT01,DYNAMNBR=20,COND=(4,LE);
KFCKFTP DD DSN=NGFBCAS.C.CBBSP.B000.BFHXXXXX.FBU,DISP=OLD;
NFEPROC DD DSN=NGPCBBS.CP.CBBS.EPROC(MBUXXXXXX),DISP=SHR;
DD DSN=NGFBCAS.C.CBBSP.B000.BFHXXXXX.MBU,DISP=SHR;
NFVPROC DD DSN=NGPCBBS.CP.CBBS.VPROC(FBUXXXXX),DISP=SHR。
TABLE 4 message Format of the mainframe Explorer service interface
Figure BDA0003515681780000092
In summary, by configuring the parameters of the host for the acquired file, the function of triggering the file receiving at any time after the file is in place can be realized, that is, the real-time transmission from the platform file to the host can be realized, so that the timeliness of file interaction is improved, and the requirements of high timeliness and high flexibility in file transmission between the host system and the platform system are effectively met.
Optionally, in the file transfer method provided in this embodiment of the present application, after responding to the transfer instruction, controlling the activation of a target switch of the host, and transferring the target file set to the host, the method further includes: acquiring a transmission result; and calling the external application of the host to send the transmission result through the external application of the host.
For example, after the file is processed by the host (both success and failure are notified), the host external connection service is called to notify the host of the external connection processing result.
By the scheme, the transmission result of the file can be accurately obtained.
Optionally, in the file transmission method provided in the embodiment of the present application, after obtaining the transmission result, the method further includes: establishing a second message according to the transmission result and the first preset table, wherein the second message at least comprises the characteristic information of the target file set and the transmission result after the target file set is transmitted; and updating the processing state of the target file set in the first preset table according to the second message.
For example, according to the transmission result of the file, the host extranet service interface updates the state in the log record in the batch linkage transaction log table M, and the host extranet service interface communication area at least includes the following fields, which are specifically shown in table 5.
TABLE 5 message Format of communication zone of host extranet service interface
Figure BDA0003515681780000101
In summary, the processing state information of the file can be updated in time according to the transmission result of the file.
In summary, the file transmission method provided by the embodiment of the present application obtains a source file set, where the source file set at least includes one or more source files to be transmitted; decoding a source file set to obtain a target file set, storing the target file set in a target application interface, and determining a storage path of the target file set in the target application interface; sending a transmission instruction to the external application of the host according to the target file set and the storage path; and responding to the transmission instruction, controlling the starting of a target switch of the host, and transmitting the target file set to the host, thereby solving the problem of lower time efficiency of transmitting the platform file to the host in the related technology. The method comprises the steps of decoding an obtained source file set to obtain a target file set, storing the target file set in a target application interface, sending a transmission instruction to an external application of a host and responding according to the target file set and a storage path, controlling starting of a target switch of the host, transmitting the target file set to the host, achieving the effect of improving the efficiency of transmitting a platform file to the host, automatically transmitting the platform file to the host, and avoiding risks in a file transmission process in a manual mode.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than here.
The embodiment of the present application further provides a file transmission device, and it should be noted that the file transmission device in the embodiment of the present application may be used to execute the file transmission method provided in the embodiment of the present application. The following describes a document transmission device provided in an embodiment of the present application.
Fig. 2 is a schematic diagram of a document transport apparatus according to an embodiment of the present application. As shown in fig. 2, the apparatus includes: a first acquisition unit 201, a first processing unit 202, a first sending unit 203 and a second processing unit 204.
Specifically, the first obtaining unit 201 is configured to obtain a source file set, where the source file set at least includes one or more source files to be transmitted;
the first processing unit 202 is configured to decode a source file set to obtain a target file set, store the target file set in a target application interface, and determine a storage path of the target file set in the target application interface;
a first sending unit 203, configured to send a transmission instruction to an external application of the host according to the target file set and the storage path;
and the second processing unit 204 is used for responding to the transmission instruction, controlling the starting of a target switch of the host and transmitting the target file set to the host.
Optionally, in the file transfer device provided in the embodiment of the present application, the device further includes: the first recording unit is used for recording a source application interface and field information corresponding to each source file in the source file set in a target system before decoding the source file set to obtain the target file set; and the third processing unit is used for storing the source file set in the source application interface and determining a storage path of the source file set in the source application interface according to the source application interface and the field information.
Optionally, in the file transfer device provided in the embodiment of the present application, the device further includes: the first construction unit is used for constructing a first preset table according to a message to which a transmission instruction belongs after the transmission instruction is sent to the external application of the host according to the target file set and the storage path of the target file set, wherein the first preset table at least comprises characteristic information of the target file set and the processing state of the target file set; and the first control unit is used for controlling the target files to be transmitted in the target file set not to be transmitted repeatedly according to the first preset table.
Optionally, in the file transfer device provided in this embodiment of the present application, the second processing unit includes: the first acquisition module is used for acquiring a second preset table, wherein the second preset table at least comprises a plurality of transmission instructions and a corresponding relation between each transmission instruction and each switch of the host; and the first determining module is used for determining a target switch of the host corresponding to the transmission instruction according to the second preset table and controlling the starting of the target switch of the host.
Optionally, in the file transfer device provided in this embodiment of the present application, the second processing unit includes: the first creating module is used for creating a first message according to a first preset table, wherein the first message at least comprises characteristic information of a target file set; the second determining module is used for determining target information in the characteristic information of the target file set according to the first message; and the first writing module is used for writing the target information into the parameter file of the host and transmitting the target file set to the host.
Optionally, in the file transfer device provided in the embodiment of the present application, the device further includes: the second acquisition unit is used for responding to the transmission instruction, controlling the starting of a target switch of the host, transmitting the target file set to the host and then acquiring a transmission result; the first calling unit is used for calling the external application of the host so as to send the transmission result through the external application of the host.
Optionally, in the file transfer device provided in the embodiment of the present application, the device further includes: the first creating unit is used for creating a second message according to the transmission result and a first preset table after the transmission result is obtained, wherein the second message at least comprises the characteristic information of the target file set and the transmission result after the target file set is transmitted; and the first updating unit is used for updating the processing state of the target file set in the first preset table according to the second message.
To sum up, the file transmission apparatus provided in the embodiment of the present application acquires a source file set through the first acquiring unit 201, where the source file set at least includes one or more source files to be transmitted; the first processing unit 202 decodes the source file set to obtain a target file set, stores the target file set in the target application interface, and determines a storage path of the target file set in the target application interface; the first sending unit 203 sends a transmission instruction to the external application of the host according to the target file set and the storage path; the second processing unit 204 responds to the transmission instruction, controls the start of a target switch of the host, transmits the target file set to the host, and solves the problem of low timeliness of the platform file transmission to the host in the related art.
The file transmission device comprises a processor and a memory, wherein the first acquiring unit 201, the first processing unit 202, the first sending unit 203, the second processing unit 204 and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more, and the time efficiency of transmitting the platform file to the host is improved by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a computer-readable storage medium on which a program is stored, the program implementing the file transfer method when executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the file transmission method is executed when the program runs.
As shown in fig. 3, an embodiment of the present invention provides an electronic device, where the device includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor executes the program to implement the following steps: acquiring a source file set, wherein the source file set at least comprises one or more source files to be transmitted; decoding the source file set to obtain a target file set, storing the target file set in a target application interface, and determining a storage path of the target file set in the target application interface; sending a transmission instruction to an external application of the host according to the target file set and the storage path; and responding to the transmission instruction, controlling the starting of a target switch of the host, and transmitting the target file set to the host.
The processor executes the program and further realizes the following steps: before decoding the source file set to obtain a target file set, the method further includes: recording source application interfaces and field information corresponding to each source file in the source file set in a target system; and storing the source file set in the source application interface, and determining a storage path of the source file set in the source application interface according to the source application interface and the field information.
The processor executes the program and further realizes the following steps: after sending a transmission instruction to the external application of the host according to the target file set and the storage path of the target file set, the method further includes: constructing a first preset table according to the message to which the transmission instruction belongs, wherein the first preset table at least comprises the characteristic information of the target file set and the processing state of the target file set; and controlling the target files to be transmitted in the target file set not to be transmitted repeatedly according to the first preset table.
The processor executes the program and further realizes the following steps: controlling activation of a target switch of the host in response to the transmission instruction includes: acquiring a second preset table, wherein the second preset table at least comprises a plurality of transmission instructions and a corresponding relation between each transmission instruction and each switch of the host; and determining a target switch of the host corresponding to the transmission instruction according to the second preset table, and controlling the starting of the target switch of the host.
The processor executes the program and further realizes the following steps: controlling activation of a target switch of the host and transmitting the set of target files to the host comprises: establishing a first message according to the first preset table, wherein the first message at least comprises the characteristic information of the target file set; determining target information in the characteristic information of the target file set according to the first message; and writing the target information into a parameter file of the host, and transmitting the target file set to the host.
The processor executes the program and further realizes the following steps: after controlling activation of a target switch of the host and transferring the target set of files to the host in response to the transfer instruction, the method further comprises: acquiring a transmission result; and calling the external application of the host to send the transmission result through the external application of the host.
The processor executes the program and further realizes the following steps: after obtaining the transmission result, the method further comprises: establishing a second message according to a transmission result and the first preset table, wherein the second message at least comprises the characteristic information of the target file set and the transmission result after the target file set is transmitted; and updating the processing state of the target file set in the first preset table according to the second message. The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: acquiring a source file set, wherein the source file set at least comprises one or more source files to be transmitted; decoding the source file set to obtain a target file set, storing the target file set in a target application interface, and determining a storage path of the target file set in the target application interface; sending a transmission instruction to an external application of the host according to the target file set and the storage path; and responding to the transmission instruction, controlling the starting of a target switch of the host, and transmitting the target file set to the host.
When executed on a data processing device, is further adapted to perform a procedure for initializing the following method steps: before decoding the source file set to obtain a target file set, the method further includes: recording source application interfaces and field information corresponding to each source file in the source file set in a target system; and storing the source file set in the source application interface, and determining a storage path of the source file set in the source application interface according to the source application interface and the field information.
When executed on a data processing device, is further adapted to perform a procedure for initializing the following method steps: after sending a transmission instruction to the external application of the host according to the target file set and the storage path of the target file set, the method further includes: constructing a first preset table according to the message to which the transmission instruction belongs, wherein the first preset table at least comprises the characteristic information of the target file set and the processing state of the target file set; and controlling the target files to be transmitted in the target file set not to be transmitted repeatedly according to the first preset table.
When executed on a data processing device, is further adapted to perform a procedure for initializing the following method steps: controlling activation of a target switch of the host in response to the transmission instruction includes: acquiring a second preset table, wherein the second preset table at least comprises a plurality of transmission instructions and a corresponding relation between each transmission instruction and each switch of the host; and determining a target switch of the host corresponding to the transmission instruction according to the second preset table, and controlling the starting of the target switch of the host.
When executed on a data processing device, is further adapted to perform a procedure for initializing the following method steps: controlling activation of a target switch of the host and transmitting the set of target files to the host comprises: establishing a first message according to the first preset table, wherein the first message at least comprises the characteristic information of the target file set; determining target information in the characteristic information of the target file set according to the first message; and writing the target information into a parameter file of the host, and transmitting the target file set to the host.
When executed on a data processing device, is further adapted to perform a procedure for initializing the following method steps: after controlling activation of a target switch of the host and transferring the target set of files to the host in response to the transfer instruction, the method further comprises: acquiring a transmission result; and calling the external application of the host to send the transmission result through the external application of the host.
When executed on a data processing device, is further adapted to perform a procedure for initializing the following method steps: after obtaining the transmission result, the method further comprises: establishing a second message according to a transmission result and the first preset table, wherein the second message at least comprises the characteristic information of the target file set and the transmission result after the target file set is transmitted; and updating the processing state of the target file set in the first preset table according to the second message.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that 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 the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for file transfer, comprising:
obtaining a source file set, wherein the source file set at least comprises one or more source files to be transmitted;
decoding the source file set to obtain a target file set, storing the target file set in a target application interface, and determining a storage path of the target file set in the target application interface;
sending a transmission instruction to an external application of the host according to the target file set and the storage path;
and responding to the transmission instruction, controlling the starting of a target switch of the host, and transmitting the target file set to the host.
2. The method of claim 1, wherein prior to transcoding the source fileset to obtain the target fileset, the method further comprises:
recording source application interfaces and field information corresponding to each source file in the source file set in a target system;
and storing the source file set in the source application interface, and determining a storage path of the source file set in the source application interface according to the source application interface and the field information.
3. The method of claim 1, wherein after sending a transfer instruction to an external application of a host according to the target file set and the storage path of the target file set, the method further comprises:
constructing a first preset table according to the message to which the transmission instruction belongs, wherein the first preset table at least comprises the characteristic information of the target file set and the processing state of the target file set;
and controlling the target files to be transmitted in the target file set not to be transmitted repeatedly according to the first preset table.
4. The method of claim 1, wherein controlling activation of a target switch of the host in response to the transmitted command comprises:
acquiring a second preset table, wherein the second preset table at least comprises a plurality of transmission instructions and a corresponding relation between each transmission instruction and each switch of the host;
and determining a target switch of the host corresponding to the transmission instruction according to the second preset table, and controlling the starting of the target switch of the host.
5. The method of claim 3, wherein controlling activation of a target switch of the host and transferring the set of target files to the host comprises:
establishing a first message according to the first preset table, wherein the first message at least comprises the characteristic information of the target file set;
determining target information in the characteristic information of the target file set according to the first message;
and writing the target information into a parameter file of the host, and transmitting the target file set to the host.
6. The method of claim 1, wherein after controlling activation of a target switch of the host and transferring the target set of files to the host in response to the transfer instruction, the method further comprises:
acquiring a transmission result;
and calling the external application of the host to send the transmission result through the external application of the host.
7. The method of claim 3, wherein after obtaining the transmission result, the method further comprises:
establishing a second message according to a transmission result and the first preset table, wherein the second message at least comprises the characteristic information of the target file set and the transmission result after the target file set is transmitted; and updating the processing state of the target file set in the first preset table according to the second message.
8. A file transfer apparatus, comprising:
the device comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring a source file set, and the source file set at least comprises one or more source files to be transmitted;
the first processing unit is used for decoding the source file set to obtain a target file set, storing the target file set in a target application interface and determining a storage path of the target file set in the target application interface;
the first sending unit is used for sending a transmission instruction to the external application of the host according to the target file set and the storage path;
and the second processing unit is used for responding to the transmission instruction, controlling the starting of a target switch of the host and transmitting the target file set to the host.
9. A computer-readable storage medium characterized in that the storage medium stores a program, wherein the program executes the file transfer method according to any one of claims 1 to 7.
10. An electronic device comprising one or more processors and memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the file transfer method of any of claims 1-7.
CN202210165011.XA 2022-02-22 2022-02-22 File transmission method and device, storage medium and electronic equipment Active CN114553861B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210165011.XA CN114553861B (en) 2022-02-22 2022-02-22 File transmission method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210165011.XA CN114553861B (en) 2022-02-22 2022-02-22 File transmission method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN114553861A true CN114553861A (en) 2022-05-27
CN114553861B CN114553861B (en) 2024-03-08

Family

ID=81677004

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210165011.XA Active CN114553861B (en) 2022-02-22 2022-02-22 File transmission method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114553861B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063506A (en) * 2011-01-06 2011-05-18 中国工商银行股份有限公司 Service system host computer, decoding method thereof and service system
CN103984633A (en) * 2014-06-04 2014-08-13 中国工商银行股份有限公司 Automatic testing system for job downloading of bank host
US8984031B1 (en) * 2010-09-29 2015-03-17 Emc Corporation Managing data storage for databases based on application awareness
CN107291459A (en) * 2017-06-09 2017-10-24 深圳市金立通信设备有限公司 A kind of method and server for arranging information
CN110471824A (en) * 2019-08-19 2019-11-19 中国工商银行股份有限公司 Monitoring method, device, system, electronic equipment and computer readable storage medium
CN111400244A (en) * 2020-03-13 2020-07-10 网易(杭州)网络有限公司 Method and device for resource batch processing, electronic equipment and storage medium
CN112870724A (en) * 2021-03-11 2021-06-01 网易(杭州)网络有限公司 Resource management method, device, storage medium and electronic equipment
CN113364857A (en) * 2021-06-03 2021-09-07 中国工商银行股份有限公司 Service data processing method and device and server
CN113485952A (en) * 2021-07-23 2021-10-08 中国工商银行股份有限公司 Data batch transmission method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8984031B1 (en) * 2010-09-29 2015-03-17 Emc Corporation Managing data storage for databases based on application awareness
CN102063506A (en) * 2011-01-06 2011-05-18 中国工商银行股份有限公司 Service system host computer, decoding method thereof and service system
CN103984633A (en) * 2014-06-04 2014-08-13 中国工商银行股份有限公司 Automatic testing system for job downloading of bank host
CN107291459A (en) * 2017-06-09 2017-10-24 深圳市金立通信设备有限公司 A kind of method and server for arranging information
CN110471824A (en) * 2019-08-19 2019-11-19 中国工商银行股份有限公司 Monitoring method, device, system, electronic equipment and computer readable storage medium
CN111400244A (en) * 2020-03-13 2020-07-10 网易(杭州)网络有限公司 Method and device for resource batch processing, electronic equipment and storage medium
CN112870724A (en) * 2021-03-11 2021-06-01 网易(杭州)网络有限公司 Resource management method, device, storage medium and electronic equipment
CN113364857A (en) * 2021-06-03 2021-09-07 中国工商银行股份有限公司 Service data processing method and device and server
CN113485952A (en) * 2021-07-23 2021-10-08 中国工商银行股份有限公司 Data batch transmission method and device

Also Published As

Publication number Publication date
CN114553861B (en) 2024-03-08

Similar Documents

Publication Publication Date Title
CN107004032B (en) Mirror image file conversion method and device
CN109542361B (en) Distributed storage system file reading method, system and related device
CN110557284B (en) Data aggregation method and device based on client gateway
CN111736775A (en) Multi-source storage method, device, computer system and storage medium
CN110968586A (en) Distributed transaction processing method and device
CN111698675B (en) Data processing method, device and computer readable storage medium
CN104363507A (en) Video and audio recording and sharing method and system based on OTT set-top box
CN101115180B (en) Electronic program menu system and functional module dynamic load operating method
CN112579118A (en) Method, device, system, medium and equipment for updating configuration information of microservice
CN113556359A (en) Communication protocol conversion method, device, system and gateway device
CN114020444B (en) Calling system and method for resource service application in enterprise digital middle station
CN111176706A (en) Terminal upgrading method and device, electronic equipment and storage medium
US10324766B1 (en) Task profile collection
JPH08123714A (en) System for concentrically converting file format
CN111698281B (en) Resource downloading method and device, electronic equipment and storage medium
CN113077260A (en) Data access method and device based on block chain and electronic equipment
CN112764830A (en) Data migration method and system applied to domestic substitution
CN114553861A (en) File transmission method and device, storage medium and electronic equipment
CN112579877A (en) Information source system control method, device, storage medium and equipment
CN116088829A (en) Data processing method, device, storage medium and equipment
CN114895852A (en) Data processing method, system, device, storage medium and electronic equipment
CN111651172B (en) Automatic generation method and system based on containerized ISO
CN111652580A (en) Method and device for processing data of nodes
CN110633564B (en) File generation method and device
CN113129025A (en) Data resource registration and transaction management method and device based on identification

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