CN112328329A - Data processing method and device, electronic equipment and storage medium - Google Patents

Data processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112328329A
CN112328329A CN202011338047.0A CN202011338047A CN112328329A CN 112328329 A CN112328329 A CN 112328329A CN 202011338047 A CN202011338047 A CN 202011338047A CN 112328329 A CN112328329 A CN 112328329A
Authority
CN
China
Prior art keywords
instance
different
common channel
data
parent class
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011338047.0A
Other languages
Chinese (zh)
Inventor
付平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology 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 Guangdong Oppo Mobile Telecommunications Corp Ltd, Shenzhen Huantai Technology Co Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202011338047.0A priority Critical patent/CN112328329A/en
Publication of CN112328329A publication Critical patent/CN112328329A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a data processing method and device, electronic equipment and a storage medium. The method comprises the following steps: determining a corresponding common channel between two different instances; the two different instances are generated by different class loaders respectively; transmitting data between the two different instances over the determined corresponding common channel; wherein the common channel is characterized as a data transmission channel consisting of instances generated by each of the at least one parent class loader; the at least one parent class loader at least comprises a parent class loader corresponding to an instance of the data incoming to the common channel.

Description

Data processing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data processing method and apparatus, an electronic device, and a storage medium.
Background
In the related art, class files are usually loaded by using a single class loader or a multi-class loader system, so that the coupling between each class file is high, and data among different class files cannot be communicated.
Disclosure of Invention
In view of this, embodiments of the present application provide a data processing method, an apparatus, an electronic device, and a storage medium, so as to at least solve the problem that data between different types of files cannot be intercommunicated in the related art.
The technical scheme of the embodiment of the application is realized as follows:
the embodiment of the application provides a data processing method, which comprises the following steps:
determining a corresponding common channel between two different instances; the two different instances are generated by different class loaders respectively;
transmitting data between the two different instances over the determined corresponding common channel; wherein the content of the first and second substances,
the common channel is characterized as a data transmission channel consisting of the instances generated by each parent class loader in the at least one parent class loader; the at least one parent class loader at least comprises a parent class loader corresponding to an instance of the data incoming to the common channel.
In the above scheme, the parent class loaders of the different class loaders are the same or different.
In the above scheme, the parent class loaders of the different class loaders are the same; the determining a corresponding common channel between two different instances comprises:
determining a first instance as a corresponding common channel between the two different instances; wherein the content of the first and second substances,
the first instance is generated by a parent class loader of the different class loader.
In the above scheme, the parent class loaders of the different class loaders are different; the determining a corresponding common channel between two different instances comprises:
determining a second instance, a third instance, and a corresponding common channel between the second instance and the third instance as a corresponding common channel between the two different instances; wherein the content of the first and second substances,
the second instance is an instance generated by a parent class loader corresponding to one instance of the two different instances; the third instance is an instance generated by a parent class loader corresponding to the other of the two different instances.
In the foregoing solution, the transmitting data between the two different instances through the determined corresponding common channel includes:
the fourth example sends a first request to the fifth example through the determined corresponding public channel; the first request is for requesting data from the fifth instance;
the fifth example returns a first response to the fourth example through the determined corresponding public channel; and the first response carries the data requested by the first request.
In the above scheme, the different class loaders include two peer class loaders or two non-peer class loaders.
In the foregoing solution, before the data is transmitted between the two different instances through the determined corresponding common channel, the method further includes:
and instructing each parent class loader in the at least one parent class loader to load a corresponding class file to generate a corresponding instance.
An embodiment of the present application further provides a data processing apparatus, including:
the determining unit is used for determining a corresponding common channel between two different instances; the two different instances are generated by different class loaders respectively;
a transmitting unit for transmitting data between the two different instances through the determined corresponding common channel; wherein the content of the first and second substances,
the common channel is characterized as a data transmission channel consisting of the instances generated by each parent class loader in the at least one parent class loader; the at least one parent class loader at least comprises a parent class loader corresponding to an instance of the data incoming to the common channel.
An embodiment of the present application further provides an electronic device, including: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is configured to perform the steps of any of the above methods when running the computer program.
Embodiments of the present application also provide a storage medium having a computer program stored thereon, where the computer program is executed by a processor to implement the steps of any one of the above methods.
In the embodiment of the application, a corresponding common channel between two different instances is determined, the two different instances are respectively generated by different class loaders, and data is transmitted between the two different instances through the determined corresponding common channel, wherein the common channel is characterized as a data transmission channel formed by the instances generated by each parent loader in at least one parent loader, and the at least one parent loader at least comprises the parent loader corresponding to the instances for transmitting data into the common channel, so that data interaction can be performed between the instances through the common channel, bidirectional communication can be realized between the different instances, and the efficiency of data interaction is improved.
Drawings
Fig. 1 is a schematic flow chart illustrating an implementation of a data processing method according to an embodiment of the present application;
FIG. 2 is a flow chart illustrating direct access between instances according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a data flow according to an embodiment of the present application;
FIG. 4 is a schematic data flow diagram according to another embodiment of the present application;
fig. 5 is a schematic flow chart illustrating an implementation of a data processing method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application;
fig. 7 is a schematic diagram of a hardware component structure of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The present application will be described in further detail with reference to the following drawings and specific embodiments.
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
The technical means described in the embodiments of the present application may be arbitrarily combined without conflict.
In addition, in the embodiments of the present application, "first", "second", and the like are used for distinguishing similar objects, and are not necessarily used for describing a specific order or a sequential order.
An embodiment of the present application provides a data processing method, and fig. 1 is a schematic flow chart of the data processing method according to the embodiment of the present application. As shown in fig. 1, the method includes:
s101: determining a corresponding common channel between two different instances; the two different instances are generated by different class loaders, respectively.
Here, a corresponding common channel between two different instances is determined, the two different instances are generated by different class loaders respectively, a class file is loaded and instantiated through the class loaders to obtain a corresponding instance, in an actual application, the two instances generated by the different class loaders are isolated and cannot be accessed to each other, and thus data interaction cannot be performed either, for example, as shown in fig. 2, fig. 2 is a flow diagram of direct access between instances, fig. 2 shows that a class Loader1 is used to load a first class file generation instance a, a class Loader2 is used to load a second class file generation instance B, and the instance a and the instance B cannot be accessed to each other. In order to realize data interaction between two different instances, a corresponding common channel between the two different instances needs to be determined, and the different instances can access the common channel. In practical application, each instance is generated by corresponding different class loaders, each instance is independent from each other and does not influence each other, so that when one running instance makes mistakes, other instances are not influenced, and the safety of the system is improved.
S102: transmitting data between the two different instances over the determined corresponding common channel; wherein the content of the first and second substances,
the common channel is characterized as a data transmission channel consisting of the instances generated by each parent class loader in the at least one parent class loader; the at least one parent class loader at least comprises a parent class loader corresponding to an instance of the data incoming to the common channel.
Here, data is transmitted between two different instances through the determined corresponding common channel, and since the two different instances can both access the corresponding common channel, data transmission between the two different instances can be achieved based on the corresponding common channel, where the common channel represents a data transmission channel composed of instances generated by each parent class loader in at least one parent class loader, at least one parent class loader includes at least a parent class loader corresponding to an instance that transfers data into the common channel, an instance that transfers data into the common channel is an instance that needs data interaction, a corresponding common instance can be generated based on parent class loading corresponding to an instance that transfers data into the common channel, a class that loads a class corresponding to an instance that transfers data into the common channel as a child class loader of the parent class loader is generated, and an instance that transfers data into the common channel can access the common instance, therefore, the data to be transmitted are transmitted to the corresponding instances through the data transmission channel formed by the instances generated by the parent class loader, and data access among the instances generated by different child class loaders can be realized.
In the above embodiment, a corresponding common channel between two different instances is determined, the two different instances are respectively generated by different class loaders, and data is transmitted between the two different instances through the determined corresponding common channel, where the common channel is characterized as a data transmission channel formed by the instances generated by each parent class loader in at least one parent class loader, and at least one parent class loader includes a parent class loader corresponding to the instance that introduces data into the common channel, so that data between different instances can be transmitted through the common channel, thereby enabling data interworking between different instances, and facilitating improvement of data interaction efficiency.
In an embodiment, the parent class loaders of the different class loaders are the same or different.
Here, different class loaders may correspond to the same parent class loader, or may correspond to different parent class loaders. In practical application, when a plurality of instances exist, the data interaction situation among the instances becomes complex, and a data transmission channel formed by common instances generated by loading a single parent class cannot meet the data interaction requirement among the instances.
In an embodiment, the parent class loader of the different class loaders is the same; the determining a corresponding common channel between two different instances comprises:
determining a first instance as a corresponding common channel between the two different instances; wherein the content of the first and second substances,
the first instance is generated by a parent class loader of the different class loader.
Here, in the case that the parent class loaders of different class loaders are the same, it indicates that the instances generated by different class loaders correspond to the same first instance, and in practical applications, the instances generated by different class loaders can access the corresponding first instance, so that the first instance can be determined as a corresponding common channel between two different instances, where the first instance is generated by the parent class loaders of different class loaders. As shown in FIG. 3, FIG. 3 is a schematic diagram illustrating data flow, in FIG. 3, the parent class loaders of class loaders corresponding to instance A and instance B are the same, so that the first instance generated by the same parent class loader can be determined as a common channel, and since instance A and instance B both have access to the first instance, instance A and instance B can complete data interaction based on the first instance.
In the above embodiment, when the parent class loaders of different class loaders are the same, the first instance is determined as a corresponding common channel between two different instances, where the first instance is generated by the parent class loaders of different class loaders, and the corresponding common channel can be determined according to the condition of the parent class loader, so that the data interaction rate can be increased.
In an embodiment, the parent class loader of the different class loaders is different; the determining a corresponding common channel between two different instances comprises:
determining a second instance, a third instance, and a corresponding common channel between the second instance and the third instance as a corresponding common channel between the two different instances; wherein the content of the first and second substances,
the second instance is an instance generated by a parent class loader corresponding to one instance of the two different instances; the third instance is an instance generated by a parent class loader corresponding to the other of the two different instances.
Here, when parent class loaders of different class loaders are different, instances generated by parent class loaders corresponding to class files generated by different class loaders are different, for example, the class Loader corresponding to instance a is Loader1, the class Loader corresponding to instance B is Loader2, the parent class Loader corresponding to Loader1 is Loader p1, the parent class Loader corresponding to Loader2 is Loader p2, then the instances generated by parent class Loader loadp 1 and Loader p2 are different, instance a can access the instance generated by Loader p1 but cannot access the instance generated by Loader p2, instance B can access the instance generated by Loader p2 but cannot access the instance generated by Loader p1, in order to realize that two instances generated by different class loaders with different parent class loaders can access each other, the second instance, the third instance, and a common channel corresponding to different channels are determined, the second instance is an instance generated by a parent class loader corresponding to one of the two different instances, for example, the second instance may be an instance generated by a parent class loader loadp 1 corresponding to the instance a, the third instance may be an instance generated by a parent class loader corresponding to the other of the two different instances, and for example, the third instance may be an instance generated by a parent class loader loadp 2 corresponding to the instance B. In practical applications, when there are multiple class files, a common channel formed by instances generated by a single parent class loader cannot meet transmission requirements, and therefore a lower-level common instance may be derived based on the instances generated by the single parent class loader, so that parent class loaders corresponding to different class loaders may appear, as shown in fig. 4, where fig. 4 shows a data flow diagram. In fig. 4, the class loaders of instance a and instance C correspond to the same parent class loader loadp 1, so that instance a and instance C can access the second instance generated by parent class loader p1, the class loaders of instance B and instance D correspond to the same parent class loader loadp 2, so that instance B and instance D can access the third instance generated by parent class loader loadp 2, and because the class loaders of instance a and instance B correspond to different parent class loaders, so that instance a cannot access the third instance, and instance B cannot access the second instance, in order to implement data interaction of instance a and instance B, because the class loaders of second instance and third instance derive from the underlying common instance, the upper common instance of the second instance and the third instance is determined, the upper common instance is the corresponding common channel between the second instance and the third instance, in fig. 4, instance E is the corresponding common channel between the second instance and the third instance, therefore, when data interaction is needed between the instance A and the instance B, the instance A transmits data to the third instance through the second instance and the corresponding public channel between the second instance and the third instance, the instance B can acquire the corresponding data by accessing the third instance, and similarly, the instance A can acquire the data transmitted by the instance B through the third instance and the corresponding public channel between the second instance and the third instance by accessing the second instance. In practical applications, when the parent class loader corresponding to the class loader of the second instance is different from the parent class loader corresponding to the class loader of the third instance, the common channel corresponding to the two different instances may be determined according to the above method, and for example, the common channel corresponding to the second instance, the third instance, the instance generated by the parent class loader corresponding to the class loader of the second instance, the instance generated by the parent class loader corresponding to the class loader of the third instance, and the instances generated by the parent class loader corresponding to the class loader of the second instance and the parent class loader corresponding to the class loader of the third instance may be determined as the common channel corresponding to the two different instances.
In the above embodiment, when parent class loaders of different class loaders are different, the second instance, the third instance, and a common channel corresponding to between the second instance and the third instance are determined as a common channel corresponding to between two different instances, where the second instance is an instance generated by a parent class loader corresponding to one of the two different instances, and the third instance is an instance generated by a parent class loader corresponding to another of the two different instances, and data interaction can be completed according to multiple common channels, so that data interworking between instances can be achieved in a complex environment, data interaction under different environments can be satisfied, and efficiency of data interaction can be improved.
In an embodiment, as shown in fig. 5, the transmitting data between the two different instances through the determined corresponding common channels includes:
s501: the fourth example sends a first request to the fifth example through the determined corresponding public channel; the first request is for requesting data from the fifth embodiment.
Here, the fourth instance sends a first request to the fifth instance through the determined corresponding public channel, the first request is used for requesting data from the fifth instance, and data interaction occurs between the fourth instance and the fifth instance, so that two instances needing data interaction can be determined according to the first request. When data interaction is not needed between the two instances, a public channel corresponding to the instance does not need to be determined, and when data interaction is needed between the two instances, a request for requesting data is sent.
S502: the fifth example returns a first response to the fourth example through the determined corresponding public channel; and the first response carries the data requested by the first request.
In practical applications, after the fifth embodiment receives the first request sent by the fourth embodiment through the public channel, the fifth embodiment determines the data requested by the first request based on the first request, and returns the data requested by the first request to the fourth embodiment through the public channel, so that the fourth embodiment can obtain the requested data, and data interaction between the two embodiments is realized.
In the foregoing embodiment, the fourth instance sends the first request to the fifth instance through the determined corresponding public channel to request data from the fifth instance, the fifth instance returns the first response to the fourth instance through the determined corresponding public channel, and the first response carries the data requested by the first request, so that two instances needing data interaction can be determined, thereby implementing data interaction between the two instances according to the data request, and improving the efficiency of data interaction.
In an embodiment, the different class loaders comprise two peer class loaders or two non-peer class loaders.
Here, the different class loaders include two peer class loaders or two non-peer class loaders, wherein, the peer class Loader may be two class loaders as a parent class Loader, or the two class loaders as child class loaders, the non-peer class Loader may be one class Loader as a parent class Loader, and one class Loader as a child class Loader, for example, data interaction is required between instance a and instance B, instance a is generated by a child class Loader1, instance B is generated by a child class Loader2, Loader1 and Loader2 are two different and peer class loaders, or, the parent class Loader loadp 1 corresponding to the child class Loader1 and the parent class Loader loadp 2 corresponding to the child class Loader are two different and equal class loaders, and the child class loaders 1 and 2 are not peer class loaders with the parent class loaders LoaderP1 and LoaderP 2.
In the above embodiment, the class loader that does not pass includes two peer class loaders or two non-peer class loaders, and a common channel between different instances generated by different class loaders can be determined, so that data interaction between instances generated by different class loaders is realized, and efficiency of data interaction is improved.
In one embodiment, before transmitting data between the two different instances over the determined corresponding common channel, the method further comprises:
and instructing each parent class loader in the at least one parent class loader to load a corresponding class file to generate a corresponding instance.
Here, since the two different embodiments transmit data through the determined corresponding common channel, and the common channel is composed of instances generated by parent class loaders, each parent class loader in at least one parent class loader needs to be instructed to load a corresponding class file to generate a corresponding instance, and in practical applications, when instructing a parent class loader to load a corresponding class file, the parent class loader corresponding to the two instances in which the corresponding common channel needs to be determined may be instructed to load a corresponding class file. In practical application, after the parent class loader loads the corresponding class file and generates the corresponding instance, more lower-level instances can be derived based on the generated instance, so that data interaction between instances in a complex scene can be satisfied.
In the above embodiment, before data is transmitted between two different instances through the determined corresponding common channel, each parent class loader in at least one parent class loader is instructed to load a corresponding class file to generate a corresponding instance, so that the common channel between the different instances is generated, and the instances generated by the parent class loader can be split into different layers, so that a requirement of complex data interaction between the instances is met, and efficiency of data interaction between the instances is improved.
In order to implement the method according to the embodiment of the present application, an embodiment of the present application further provides a class file loading apparatus, as shown in fig. 6, the apparatus includes:
a determining unit 601, configured to determine a corresponding common channel between two different instances; the two different instances are generated by different class loaders respectively;
a transmitting unit 602, configured to transmit data between the two different instances through the determined corresponding common channel; wherein the content of the first and second substances,
the common channel is characterized as a data transmission channel consisting of the instances generated by each parent class loader in the at least one parent class loader; the at least one parent class loader at least comprises a parent class loader corresponding to an instance of the data incoming to the common channel.
In an embodiment, the parent class loaders of different class loaders in the determining unit 601 are the same or different.
In an embodiment, the parent class loader of the different class loaders is the same; the determining unit 601 determines a corresponding common channel between two different instances, including:
determining a first instance as a corresponding common channel between the two different instances; wherein the content of the first and second substances,
the first instance is generated by a parent class loader of the different class loader.
In an embodiment, the parent class loader of the different class loaders is different; the determining unit 601 determines a corresponding common channel between two different instances, including:
determining a second instance, a third instance, and a corresponding common channel between the second instance and the third instance as a corresponding common channel between the two different instances; wherein the content of the first and second substances,
the second instance is an instance generated by a parent class loader corresponding to one instance of the two different instances; the third instance is an instance generated by a parent class loader corresponding to the other of the two different instances.
In an embodiment, the determining unit 601 transmits data between the two different instances through the determined corresponding common channel, including:
the fourth example sends a first request to the fifth example through the determined corresponding public channel; the first request is for requesting data from the fifth instance;
the fifth example returns a first response to the fourth example through the determined corresponding public channel; and the first response carries the data requested by the first request.
In an embodiment, the different class loaders in the determining unit 601 include two peer class loaders or two non-peer class loaders.
In an embodiment, before the determining unit 601 transmits data between the two different instances through the determined corresponding common channel, the apparatus further includes:
and the generating unit is used for indicating each parent class loader in the at least one parent class loader to load a corresponding class file and generating a corresponding instance.
In practical applications, the determining unit 601 and the transmitting unit 602 may be implemented by a processor in the data processing apparatus. Of course, the processor needs to run the program stored in the memory to realize the functions of the above-described program modules.
It should be noted that, when the data processing device provided in the embodiment of fig. 6 performs data processing, only the division of the program modules is illustrated, and in practical applications, the processing may be distributed to different program modules according to needs, that is, the internal structure of the device may be divided into different program modules to complete all or part of the processing described above. In addition, the data processing apparatus and the data processing method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
Based on the hardware implementation of the program module, and in order to implement the method according to the embodiment of the present application, an embodiment of the present application further provides an electronic device, and fig. 7 is a schematic diagram of a hardware composition structure of the electronic device according to the embodiment of the present application, and as shown in fig. 7, the electronic device includes:
a communication interface 1 capable of information interaction with other devices such as network devices and the like;
and the processor 2 is connected with the communication interface 1 to realize information interaction with other equipment, and is used for executing the data processing method provided by one or more technical schemes when running a computer program. And the computer program is stored on the memory 3.
In practice, of course, the various components in the electronic device are coupled together by the bus system 4. It will be appreciated that the bus system 4 is used to enable connection communication between these components. The bus system 4 comprises, in addition to a data bus, a power bus, a control bus and a status signal bus. For the sake of clarity, however, the various buses are labeled as bus system 4 in fig. 7.
The memory 3 in the embodiment of the present application is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program for operating on an electronic device.
It will be appreciated that the memory 3 may be either volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 3 described in the embodiments of the present application is intended to comprise, without being limited to, these and any other suitable types of memory.
The method disclosed in the above embodiment of the present application may be applied to the processor 2, or implemented by the processor 2. The processor 2 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 2. The processor 2 described above may be a general purpose processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 2 may implement or perform the methods, steps and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 3, and the processor 2 reads the program in the memory 3 and in combination with its hardware performs the steps of the aforementioned method.
When the processor 2 executes the program, the corresponding processes in the methods according to the embodiments of the present application are realized, and for brevity, are not described herein again.
In an exemplary embodiment, the present application further provides a storage medium, i.e. a computer storage medium, specifically a computer readable storage medium, for example, including a memory 3 storing a computer program, which can be executed by a processor 2 to implement the steps of the foregoing method. The computer readable storage medium may be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus, terminal and method may be implemented in other manners. The above-described device embodiments are only illustrative, for example, the division of the unit is only one logical function division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof that contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling an electronic device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
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 conceive 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.

Claims (10)

1. A data processing method, comprising:
determining a corresponding common channel between two different instances; the two different instances are generated by different class loaders respectively;
transmitting data between the two different instances over the determined corresponding common channel; wherein the content of the first and second substances,
the common channel is characterized as a data transmission channel consisting of the instances generated by each parent class loader in the at least one parent class loader; the at least one parent class loader at least comprises a parent class loader corresponding to an instance of the data incoming to the common channel.
2. The data processing method of claim 1, wherein parent class loaders of the different class loaders are the same or different.
3. The data processing method of claim 2, wherein parent class loaders of the different class loaders are the same; the determining a corresponding common channel between two different instances comprises:
determining a first instance as a corresponding common channel between the two different instances; wherein the content of the first and second substances,
the first instance is generated by a parent class loader of the different class loader.
4. The data processing method of claim 2, wherein parent class loaders of the different class loaders are different; the determining a corresponding common channel between two different instances comprises:
determining a second instance, a third instance, and a corresponding common channel between the second instance and the third instance as a corresponding common channel between the two different instances; wherein the content of the first and second substances,
the second instance is an instance generated by a parent class loader corresponding to one instance of the two different instances; the third instance is an instance generated by a parent class loader corresponding to the other of the two different instances.
5. The data processing method of claim 1, wherein said transferring data between said two different instances over the determined corresponding common channel comprises:
the fourth example sends a first request to the fifth example through the determined corresponding public channel; the first request is for requesting data from the fifth instance;
the fifth example returns a first response to the fourth example through the determined corresponding public channel; and the first response carries the data requested by the first request.
6. The data processing method of claim 1, wherein the different class loaders comprise two peer class loaders or two non-peer class loaders.
7. The data processing method of claim 1, wherein prior to said transferring data between said two different instances over the determined corresponding common channel, said method further comprises:
and instructing each parent class loader in the at least one parent class loader to load a corresponding class file to generate a corresponding instance.
8. A data processing apparatus, comprising:
the determining unit is used for determining a corresponding common channel between two different instances; the two different instances are generated by different class loaders respectively;
a transmitting unit for transmitting data between the two different instances through the determined corresponding common channel; wherein the content of the first and second substances,
the common channel is characterized as a data transmission channel consisting of the instances generated by each parent class loader in the at least one parent class loader; the at least one parent class loader at least comprises a parent class loader corresponding to an instance of the data incoming to the common channel.
9. An electronic device, comprising: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is adapted to perform the steps of the method of any one of claims 1 to 7 when running the computer program.
10. A storage medium having a computer program stored thereon, the computer program, when being executed by a processor, performing the steps of the method of any one of claims 1 to 7.
CN202011338047.0A 2020-11-25 2020-11-25 Data processing method and device, electronic equipment and storage medium Pending CN112328329A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011338047.0A CN112328329A (en) 2020-11-25 2020-11-25 Data processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011338047.0A CN112328329A (en) 2020-11-25 2020-11-25 Data processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112328329A true CN112328329A (en) 2021-02-05

Family

ID=74309670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011338047.0A Pending CN112328329A (en) 2020-11-25 2020-11-25 Data processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112328329A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130152064A1 (en) * 2011-12-09 2013-06-13 Computer Associates Think, Inc. Classloader/Instrumentation Approach For Invoking Non-Bound Libraries
CN105404524A (en) * 2014-09-15 2016-03-16 阿里巴巴集团控股有限公司 Class loading and isolating method and apparatus in Java application
CN106055356A (en) * 2016-05-25 2016-10-26 东软集团股份有限公司 Method and device for controlling resource access
CN110750307A (en) * 2019-09-04 2020-02-04 北京旷视科技有限公司 Micro-service architecture construction method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130152064A1 (en) * 2011-12-09 2013-06-13 Computer Associates Think, Inc. Classloader/Instrumentation Approach For Invoking Non-Bound Libraries
CN105404524A (en) * 2014-09-15 2016-03-16 阿里巴巴集团控股有限公司 Class loading and isolating method and apparatus in Java application
CN106055356A (en) * 2016-05-25 2016-10-26 东软集团股份有限公司 Method and device for controlling resource access
CN110750307A (en) * 2019-09-04 2020-02-04 北京旷视科技有限公司 Micro-service architecture construction method and device

Similar Documents

Publication Publication Date Title
CN102223394B (en) Methods and servers to provide remote direct access of solid-state storage
CN104603739A (en) Block-level access to parallel storage
CN103095544A (en) Virtual switch extensibility
CN111008840A (en) Service processing system, service processing method, device and equipment
CN112765663B (en) File access control method, device, equipment, server and storage medium
CN111193803A (en) Spring group-based micro-service construction method and spring group micro-service framework
CN111209260A (en) NFS cluster based on distributed storage and method for providing NFS service
CN115774701B (en) Data sharing method and device, electronic equipment and storage medium
CN102904946B (en) Method and device for managing nodes in cluster
CN112328329A (en) Data processing method and device, electronic equipment and storage medium
CN114885024B (en) Routing method, device, equipment and medium of application instance
CN115878576A (en) Data storage processing method and device
US20210367922A1 (en) System on chip firewall memory architecture
US9971532B2 (en) GUID partition table based hidden data store system
CN111026452A (en) Method and system for injecting remote 32-bit process into 64-bit process
CN112073505A (en) Method for unloading on cloud server, control device and storage medium
CN112511344B (en) Master-slave equipment network sharing method and device and Internet of things equipment
CN116431566B (en) Data migration method, device, electronic equipment and medium
CN115858206B (en) Data processing method, device, electronic equipment and storage medium
CN108491339B (en) Signal processing method and electronic equipment
CN117131009A (en) Confluence data migration method and related equipment
EP4374593A1 (en) Computer implemented method for anonymizing data packages generated by vehicles
CN116257481A (en) Control method and electronic equipment
CN116088974A (en) Virtual desktop data processing method, device and system
CN116304460A (en) Method and device for sharing web cross-project asynchronous modules

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