CN112364608B - Session replication method and device supporting container cloud platform - Google Patents

Session replication method and device supporting container cloud platform Download PDF

Info

Publication number
CN112364608B
CN112364608B CN202011110542.6A CN202011110542A CN112364608B CN 112364608 B CN112364608 B CN 112364608B CN 202011110542 A CN202011110542 A CN 202011110542A CN 112364608 B CN112364608 B CN 112364608B
Authority
CN
China
Prior art keywords
pasting
session
content
data
fitness
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.)
Active
Application number
CN202011110542.6A
Other languages
Chinese (zh)
Other versions
CN112364608A (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.)
Beijing Dongfangtong Software Co ltd
Beijing Tongtech Co Ltd
Original Assignee
Beijing Dongfangtong Software Co ltd
Beijing Tongtech 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 Beijing Dongfangtong Software Co ltd, Beijing Tongtech Co Ltd filed Critical Beijing Dongfangtong Software Co ltd
Priority to CN202011110542.6A priority Critical patent/CN112364608B/en
Publication of CN112364608A publication Critical patent/CN112364608A/en
Application granted granted Critical
Publication of CN112364608B publication Critical patent/CN112364608B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • 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]

Abstract

The invention provides a session replication method and a session replication device for supporting a container cloud platform, wherein the method comprises the following steps: the method comprises the following steps: step S1: acquiring a session replication request, a first identifier and session content corresponding to the session replication request of a first client; step S2: storing the session content in a copy area in association with the first identifier; step S3: acquiring a session pasting request, a second identifier and a target pasting position of the session pasting request of a second client; step S4: and screening out the session content from the copy area based on the second identification, and pasting the session content to the target pasting position. The session replication method supporting the container cloud platform realizes the replication function of the session with the container cloud platform when a user updates equipment.

Description

Session replication method and device supporting container cloud platform
Technical Field
The invention relates to the technical field of session replication, in particular to a session replication method and device supporting a container cloud platform.
Background
At present, the container cloud has the characteristics of high density and high elasticity, and can be easily handled when meeting the sudden access amount. In addition, the utilization rate of system resources by application is improved, so that the cost performance of the virtual machine is greatly improved compared with that of the virtual machine.
However, when a user connects to the container cloud platform through a client of one device and starts a session, when the user changes another device and wants to apply the session content when logging in the client of the previous device, the user can only repeat the session operation on the previous device; therefore, a session replication method supporting a container cloud platform is needed to implement a replication function of a session between a user and the container cloud platform when the user updates a device.
Disclosure of Invention
One of the purposes of the invention is to provide a session replication method supporting a container cloud platform, which realizes the replication function of a session with the container cloud platform when a user changes equipment.
The embodiment of the invention provides a session replication method supporting a container cloud platform, which comprises the following steps:
step S1: acquiring a session replication request, a first identifier and session content corresponding to the session replication request of a first client;
step S2: storing the session content in a copy area in association with the first identifier;
step S3: acquiring a session pasting request, a second identifier and a target pasting position of the session pasting request of a second client;
step S4: and screening out the session content from the copy area based on the second identification, and pasting the session content to the target pasting position.
Preferably, the first identifier includes: the device identification of the first client and/or the user identification of a user logged in by the first client and/or the keywords input by the user;
the second identifier includes: the device identification of the first client and/or the user identification of a user logged in by the first client and/or the keywords input by the user;
step S4: screening out the conversation content from the copy area based on the second identification, and pasting the conversation content to the target pasting position, wherein the method comprises the following steps:
matching the second identifier with the first identifier in the copy area;
when the matching is matched, acquiring the session content associated with the first identifier;
determining a number of session contents;
when the number of the session contents is one, pasting the session contents to the target pasting position;
when the number of the session contents is more than one, sequencing the session contents according to a preset rule to form a pasting list; pasting the paste list to the target paste position and virtually displaying the conversation content of the first bit of the paste list to the target paste position;
receiving a switching instruction of the second client for switching the session content virtually displayed at the target pasting position, wherein the switching instruction comprises an up-turning instruction and a down-turning instruction;
when the switching instruction is up-turning, virtually displaying the session content of the previous position of the currently virtually displayed session content in the pasting list to a target pasting position;
when the switching instruction is downward turning, virtually displaying the next conversation content of the conversation content virtually displayed at present in the pasting list to a target pasting position;
and receiving a session pasting determination instruction of the second client, and pasting the session content virtually displayed at the target pasting position.
Preferably, when pasting the session content to the target pasting position, analyzing an environment of the target pasting position and analyzing an attribute of the session content, and determining a manner of pasting the session content to the target pasting position based on the environment and the attribute specifically includes:
when the attribute of the conversation content is a multi-party conversation text and the environment of the target pasting position is no data content, the conversation content is directly pasted to the target pasting position;
when the attribute of the conversation content is a multi-party conversation text, the environment of the target pasting position is that data content exists in any one direction of the front and the back, and no data content exists in the other direction, the conversation content is directly pasted to the target pasting position, or a temporary input box suspended in a conversation interface is popped up and the conversation content is pasted into the temporary input box;
when the attribute of the conversation content is a multi-party conversation text, and the environment of the target pasting position is that data content exists in the front and data content exists in the rear, popping up a temporary input box suspended in a conversation interface and pasting the conversation content into the temporary input box;
when the attribute of the conversation content is a single conversation text and the environment of the target pasting position is no data content, directly pasting the conversation content to the target pasting position;
when the attribute of the conversation content is a single conversation text, and the environment of the target pasting position is that no data content exists in the front and data exists in the rear, analyzing the last character of the conversation content and analyzing the first character of the data content in the rear; when the last character of the conversation content and the first character of the rear data content are punctuations, directly pasting the conversation content to a target pasting position and deleting the first character of the rear data content; when the last character of the conversation content and the first character of the data content behind are not punctuations, adding a preset symbol between the conversation content and the data content behind while directly pasting the conversation content to the target pasting position, and replacing the preset symbol with the preset punctuations when sending or storing the data added with the conversation content;
when the attribute of the conversation content is a single conversation text, and the environment of the target pasting position is that data content exists in the front and no data exists in the rear, analyzing the first character of the conversation content and analyzing the last character of the data content in the front; when the first character of the conversation content and the last character of the front data content are punctuations, the first character of the conversation content is deleted while the conversation content is directly pasted to the target pasting position; when the first character of the conversation content and the last character of the preceding data content are not punctuations, adding a preset symbol between the conversation content and the preceding data content while directly pasting the conversation content to a target pasting position, and replacing the preset symbol with the preset punctuations when sending or storing the data added with the conversation content;
when the attribute of the conversation content is a single conversation text, and the environment of the target pasting position is that data content exists in front of the conversation content and data content exists behind the conversation content, analyzing a first character and a last character of the conversation content, analyzing a last character of the data content in front of the conversation content, and analyzing a first character of the data content behind the conversation content; when the first character of the conversation content is a punctuation mark, the last character of the conversation content is not the punctuation mark, the last character of the front data content is the punctuation mark, and the first character of the rear data content is not the punctuation mark, the last character of the front data content is moved to the front of the first character of the rear data content while the conversation content is directly pasted to the target pasting position; when the first character of the conversation content is not a punctuation mark, the last character of the conversation content is a punctuation mark, the last character of the front data content is not a punctuation mark, and the first character of the rear data content is a punctuation mark, the first character of the rear data content is moved to the rear of the last character of the front data content while the conversation content is directly pasted to the target pasting position; when the first character of the conversation content is not a punctuation, the last character of the conversation content is a punctuation, the last character of the front data content is not a punctuation, and the first character of the rear data content is not a punctuation, adding a preset symbol between the conversation content and the front data content while directly pasting the conversation content to a target pasting position, and replacing the preset symbol with the preset punctuation when transmitting or storing the data added with the conversation content; when the first character of the conversation content is a punctuation, the last character of the conversation content is not a punctuation, the last character of the front data content is not a punctuation, and the first character of the rear data content is not a punctuation, a preset symbol is added between the conversation content and the rear data content while the conversation content is directly pasted to the target pasting position, and the preset symbol is replaced by the preset punctuation when the data added with the conversation content is sent or stored.
Preferably, the session replication method supporting the container cloud platform further includes:
step S5: and receiving a moving instruction of the second client for the session content, and moving the session content according to the moving instruction.
Preferably, the session contents are sorted according to a preset rule to form a pasting list, which specifically includes:
acquiring the storage time from the storage of the session content to the copying area;
determining a difference value between the storage time and the request time corresponding to the session pasting request;
sequencing the matched conversation contents according to the sequence of the difference values from small to large;
or the like, or, alternatively,
based on the difference, calculating a first fitness of the matched session content, wherein the calculation formula is as follows:
Figure BDA0002728444610000051
wherein, TiA first fitness representing the content of the ith conversation; n is the number of session contents; t is tiA difference value representing the content of the ith session;
acquiring first data in front of a pasting position;
acquiring second data in front of the pasting position of the historical pasting record;
based on the first data and the second data, calculating a second fitness of the matched session content, wherein the calculation formula is as follows:
Figure BDA0002728444610000052
wherein, T2Denotes the second fitness, O1,jThe j characteristic value of the first data; beta is a1,jA weight representing a jth characteristic value of the first data; o is2,jA jth characteristic value representing second data; beta is a2,jRepresenting second dataThe weight of the jth eigenvalue; m represents the number of characteristic values in the first data and the second data;
acquiring third data behind the pasting position;
acquiring fourth data behind the pasting position of the historical pasting record;
based on the third data and the fourth data, calculating a third fitness of the matched session content, wherein the calculation formula is as follows:
Figure BDA0002728444610000053
wherein, T3Denotes the third fitness, O3,kThe k characteristic value of the third data; beta is a3,kA weight representing a kth feature value of the third data; o is4,kA kth characteristic value representing fourth data; beta is a4,kA weight representing a kth feature value of the fourth data; m represents the number of characteristic values in the third data and the fourth data;
based on the session content of the history pasting record, calculating a fourth fitness of the matched session content, wherein the calculation formula is as follows:
Figure BDA0002728444610000061
wherein, T4Denotes the fourth fitness, O5,lMatching the first characteristic value of the matched conversation content; beta is a5,lA weight representing the ith feature value of the matched session content; o is6,lThe ith characteristic value representing the session content of the history pasting record; beta is a6,lA weight of the ith feature value representing the session content of the history paste record; n represents the number of the session contents of the history pasting record and the characteristic values in the matched session contents;
calculating the total fitness of the matched session content based on the first fitness, the second fitness, the third fitness and the fourth fitness, wherein the calculation formula is as follows:
T=α1T12T23T34T4
wherein, T represents the total fitness of the matched session content; alpha is alpha1、α2、α3、α4Respectively corresponding to a first fitness, a second fitness, a third fitness and a fourth fitness;
and sequencing the matched conversation contents according to the sequence of the total fitness from large to small.
The invention provides a session replication device supporting a container cloud platform, which comprises:
the system comprises a replication acquisition unit, a replication processing unit and a replication processing unit, wherein the replication acquisition unit is used for acquiring a session replication request of a first client, a first identifier and session content corresponding to the session replication request;
a storage unit, configured to store the session content in the copy area in association with the first identifier;
the paste request unit is used for acquiring a session paste request of a second client, a second identifier and a target paste position of the session paste request;
and the pasting unit is used for screening out the session content from the copying area based on the second identification and pasting the session content to the target pasting position.
Preferably, the session replication apparatus supporting the container cloud platform, the first identifier includes: the device identification of the first client and/or the user identification of a user logged in by the first client and/or the keywords input by the user;
the second identifier includes: the device identification of the first client and/or the user identification of a user logged in by the first client and/or the keywords input by the user;
the pasting unit executes the following operations:
matching the second identifier with the first identifier in the copy area;
when the matching is matched, acquiring the session content associated with the first identifier;
determining a number of session contents;
when the number of the session contents is one, pasting the session contents to the target pasting position;
when the number of the session contents is more than one, sequencing the session contents according to a preset rule to form a pasting list; pasting the paste list to the target paste position and virtually displaying the conversation content of the first bit of the paste list to the target paste position;
receiving a switching instruction of the second client for switching the session content virtually displayed at the target pasting position, wherein the switching instruction comprises an up-turning instruction and a down-turning instruction;
when the switching instruction is up-turning, virtually displaying the session content of the previous position of the currently virtually displayed session content in the pasting list to a target pasting position;
when the switching instruction is downward turning, virtually displaying the next conversation content of the conversation content virtually displayed at present in the pasting list to a target pasting position;
and receiving a session pasting determination instruction of the second client, and pasting the session content virtually displayed at the target pasting position.
Preferably, when pasting the session content to the target pasting position, analyzing an environment of the target pasting position and analyzing an attribute of the session content, and determining a manner of pasting the session content to the target pasting position based on the environment and the attribute specifically includes:
when the attribute of the conversation content is a multi-party conversation text and the environment of the target pasting position is no data content, the conversation content is directly pasted to the target pasting position;
when the attribute of the conversation content is a multi-party conversation text, the environment of the target pasting position is that data content exists in any one direction of the front and the back, and no data content exists in the other direction, the conversation content is directly pasted to the target pasting position, or a temporary input box suspended in a conversation interface is popped up and the conversation content is pasted into the temporary input box;
when the attribute of the conversation content is a multi-party conversation text, and the environment of the target pasting position is that data content exists in the front and data content exists in the rear, popping up a temporary input box suspended in a conversation interface and pasting the conversation content into the temporary input box;
when the attribute of the conversation content is a single conversation text and the environment of the target pasting position is no data content, directly pasting the conversation content to the target pasting position;
when the attribute of the conversation content is a single conversation text, and the environment of the target pasting position is that no data content exists in the front and data exists in the rear, analyzing the last character of the conversation content and analyzing the first character of the data content in the rear; when the last character of the conversation content and the first character of the rear data content are punctuations, directly pasting the conversation content to a target pasting position and deleting the first character of the rear data content; when the last character of the conversation content and the first character of the data content behind are not punctuations, adding a preset symbol between the conversation content and the data content behind while directly pasting the conversation content to the target pasting position, and replacing the preset symbol with the preset punctuations when sending or storing the data added with the conversation content;
when the attribute of the conversation content is a single conversation text, and the environment of the target pasting position is that data content exists in the front and no data exists in the rear, analyzing the first character of the conversation content and analyzing the last character of the data content in the front; when the first character of the conversation content and the last character of the front data content are punctuations, the first character of the conversation content is deleted while the conversation content is directly pasted to the target pasting position; when the first character of the conversation content and the last character of the preceding data content are not punctuations, adding a preset symbol between the conversation content and the preceding data content while directly pasting the conversation content to a target pasting position, and replacing the preset symbol with the preset punctuations when sending or storing the data added with the conversation content;
when the attribute of the conversation content is a single conversation text, and the environment of the target pasting position is that data content exists in front of the conversation content and data content exists behind the conversation content, analyzing a first character and a last character of the conversation content, analyzing a last character of the data content in front of the conversation content, and analyzing a first character of the data content behind the conversation content; when the first character of the conversation content is a punctuation mark, the last character of the conversation content is not the punctuation mark, the last character of the front data content is the punctuation mark, and the first character of the rear data content is not the punctuation mark, the last character of the front data content is moved to the front of the first character of the rear data content while the conversation content is directly pasted to the target pasting position; when the first character of the conversation content is not a punctuation mark, the last character of the conversation content is a punctuation mark, the last character of the front data content is not a punctuation mark, and the first character of the rear data content is a punctuation mark, the first character of the rear data content is moved to the rear of the last character of the front data content while the conversation content is directly pasted to the target pasting position; when the first character of the conversation content is not a punctuation, the last character of the conversation content is a punctuation, the last character of the front data content is not a punctuation, and the first character of the rear data content is not a punctuation, adding a preset symbol between the conversation content and the front data content while directly pasting the conversation content to a target pasting position, and replacing the preset symbol with the preset punctuation when transmitting or storing the data added with the conversation content; when the first character of the conversation content is a punctuation, the last character of the conversation content is not a punctuation, the last character of the front data content is not a punctuation, and the first character of the rear data content is not a punctuation, a preset symbol is added between the conversation content and the rear data content while the conversation content is directly pasted to the target pasting position, and the preset symbol is replaced by the preset punctuation when the data added with the conversation content is sent or stored.
Preferably, the session replication apparatus supporting the container cloud platform further includes:
and the adjusting unit is used for receiving a moving instruction of the second client for the session content and moving the session content according to the moving instruction.
Preferably, the session contents are sorted according to a preset rule to form a pasting list, which specifically includes:
acquiring the storage time from the storage of the session content to the copying area;
determining a difference value between the storage time and the request time corresponding to the session pasting request;
sequencing the matched conversation contents according to the sequence of the difference values from small to large;
or the like, or, alternatively,
based on the difference, calculating a first fitness of the matched session content, wherein the calculation formula is as follows:
Figure BDA0002728444610000091
wherein, TiA first fitness representing the content of the ith conversation; n is the number of session contents; t is tiA difference value representing the content of the ith session;
acquiring first data in front of a pasting position;
acquiring second data in front of the pasting position of the historical pasting record;
based on the first data and the second data, calculating a second fitness of the matched session content, wherein the calculation formula is as follows:
Figure BDA0002728444610000101
wherein, T2Denotes the second fitness, O1,jThe j characteristic value of the first data; beta is a1,jA weight representing a jth characteristic value of the first data; o is2,jA jth characteristic value representing second data; beta is a2,jA weight representing a jth characteristic value of the second data; m represents the number of characteristic values in the first data and the second data;
acquiring third data behind the pasting position;
acquiring fourth data behind the pasting position of the historical pasting record;
based on the third data and the fourth data, calculating a third fitness of the matched session content, wherein the calculation formula is as follows:
Figure BDA0002728444610000102
wherein, T3Denotes the third fitness, O3,kThe k characteristic value of the third data; beta is a3,kA weight representing a kth feature value of the third data; o is4,kA kth characteristic value representing fourth data; beta is a4,kA weight representing a kth feature value of the fourth data; m represents the number of characteristic values in the third data and the fourth data;
based on the session content of the history pasting record, calculating a fourth fitness of the matched session content, wherein the calculation formula is as follows:
Figure BDA0002728444610000103
wherein, T4Denotes the fourth fitness, O5,lMatching the first characteristic value of the matched conversation content; beta is a5,lA weight representing the ith feature value of the matched session content; o is6,lThe ith characteristic value representing the session content of the history pasting record; beta is a6,lA weight of the ith feature value representing the session content of the history paste record; n represents the number of the session contents of the history pasting record and the characteristic values in the matched session contents;
calculating the total fitness of the matched session content based on the first fitness, the second fitness, the third fitness and the fourth fitness, wherein the calculation formula is as follows:
T=α1T12T23T34T4
wherein, T represents the total fitness of the matched session content; alpha is alpha1、α2、α3、α4Respectively corresponding to a first fitness, a second fitness, a third fitness and a fourth fitness;
and sequencing the matched conversation contents according to the sequence of the total fitness from large to small.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic diagram of a session replication method supporting a container cloud platform according to an embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
An embodiment of the present invention provides a session replication method supporting a container cloud platform, as shown in fig. 1, including:
step S1: acquiring a session replication request, a first identifier and session content corresponding to the session replication request of a first client;
step S2: storing the session content in a copy area in association with the first identifier;
step S3: acquiring a session pasting request, a second identifier and a target pasting position of the session pasting request of a second client;
step S4: and screening out the session content from the copy area based on the second identification, and pasting the session content to the target pasting position.
The working principle and the beneficial effects of the technical scheme are as follows:
in order to realize the copy function of the session between the user and the container cloud platform when the user changes the device, the method mainly comprises two stages: the first stage is a storage stage of a copied session, and the main implementation manner may be: after a user carries out conversation with a container cloud platform through a first client, a conversation copy request, a first identifier and conversation contents corresponding to the conversation copy request are obtained through the client; storing the session content in a copy area in association with the first identifier; the storage function of the conversation of the user on the previous device is realized; the second stage is an application stage of the stored session, and the main implementation manner may be: when the user establishes communication connection with the container cloud platform through the second client, only the session pasting request, the second identifier and the target pasting position of the session pasting request of the second client are required to be acquired during application; and screening out the session content from the copy area based on the second identification, and pasting the session content to the target pasting position.
In one embodiment, the first identification comprises: the device identification of the first client and/or the user identification of a user logged in by the first client and/or the keywords input by the user;
the second identifier includes: the device identification of the first client and/or the user identification of a user logged in by the first client and/or the keywords input by the user;
the working principle and the beneficial effects of the technical scheme are as follows:
in the project of realizing the copying function of the session between the user and the container cloud platform when the user updates the equipment, how to accurately position the copied session is crucial, and the accuracy and feasibility of the copying operation are related; the accurate positioning of the session content in the copying process is realized in a mode of matching the first identifier with the second identifier; the identification of the user is adopted for positioning, so that the copy of the session content of the same user among different devices is realized; by adopting the keywords input by the user, the positioning of the target session content among the session contents is realized when the plurality of session contents are stored; the device identification is adopted, so that the copy of the session content of different users on the same device is realized; the requirements of the user on different scenes of the session copying function application are met through the equipment identification, the user identification and the keywords.
In one embodiment, step S4: screening out the conversation content from the copy area based on the second identification, and pasting the conversation content to the target pasting position, wherein the method comprises the following steps:
matching the second identifier with the first identifier in the copy area;
when the matching is matched, acquiring the session content associated with the first identifier;
determining a number of session contents;
when the number of the session contents is one, pasting the session contents to the target pasting position;
when the number of the session contents is more than one, sequencing the session contents according to a preset rule to form a pasting list; pasting the paste list to the target paste position and virtually displaying the conversation content of the first bit of the paste list to the target paste position;
receiving a switching instruction of the second client for switching the session content virtually displayed at the target pasting position, wherein the switching instruction comprises an up-turning instruction and a down-turning instruction;
when the switching instruction is up-turning, virtually displaying the session content of the previous position of the currently virtually displayed session content in the pasting list to a target pasting position;
when the switching instruction is downward turning, virtually displaying the next conversation content of the conversation content virtually displayed at present in the pasting list to a target pasting position;
and receiving a session pasting determination instruction of the second client, and pasting the session content virtually displayed at the target pasting position.
The working principle and the beneficial effects of the technical scheme are as follows:
the positioning of the session content in the copying process is realized in a mode of matching the first identifier with the second identifier; when only one piece of the positioned conversation content exists, directly copying the conversation content to a target pasting position; but when more than one piece of session content is located; firstly, sequencing all conversation contents according to a preset rule and pasting the conversation contents to a target pasting position in a pasting list mode; virtually displaying the conversation content ranked at the first position of the paste list on a target paste position; the virtual display can be represented by adding a gray background to the conversation content, can also be represented by flashing display, and can also be represented by a font with a color different from that of the target pasting position; then, the user can adopt a switching instruction to switch the virtually displayed conversation content among the conversation contents in the pasting list, key in a conversation pasting determining instruction after selecting the needed conversation content, and paste the conversation content virtually displayed at the target pasting position; the number of sessions copied and copied by the sessions is increased, and the user is prevented from switching the copying on different devices back and forth; further facilitating the use of the user.
In one embodiment, when pasting the session content to the target pasting position, parsing an environment of the target pasting position and parsing an attribute of the session content, and determining a manner of pasting the session content to the target pasting position based on the environment and the attribute specifically includes:
when the attribute of the conversation content is a multi-party conversation text and the environment of the target pasting position is no data content, the conversation content is directly pasted to the target pasting position;
when the attribute of the conversation content is a multi-party conversation text, the environment of the target pasting position is that data content exists in any one direction of the front and the back, and no data content exists in the other direction, the conversation content is directly pasted to the target pasting position, or a temporary input box suspended in a conversation interface is popped up and the conversation content is pasted into the temporary input box;
when the attribute of the conversation content is a multi-party conversation text, and the environment of the target pasting position is that data content exists in the front and data content exists in the rear, popping up a temporary input box suspended in a conversation interface and pasting the conversation content into the temporary input box;
when the attribute of the conversation content is a single conversation text and the environment of the target pasting position is no data content, directly pasting the conversation content to the target pasting position;
when the attribute of the conversation content is a single conversation text, and the environment of the target pasting position is that no data content exists in the front and data exists in the rear, analyzing the last character of the conversation content and analyzing the first character of the data content in the rear; when the last character of the conversation content and the first character of the rear data content are punctuations, directly pasting the conversation content to a target pasting position and deleting the first character of the rear data content; when the last character of the conversation content and the first character of the data content behind are not punctuations, adding a preset symbol between the conversation content and the data content behind while directly pasting the conversation content to the target pasting position, and replacing the preset symbol with the preset punctuations when sending or storing the data added with the conversation content;
when the attribute of the conversation content is a single conversation text, and the environment of the target pasting position is that data content exists in the front and no data exists in the rear, analyzing the first character of the conversation content and analyzing the last character of the data content in the front; when the first character of the conversation content and the last character of the front data content are punctuations, the first character of the conversation content is deleted while the conversation content is directly pasted to the target pasting position; when the first character of the conversation content and the last character of the preceding data content are not punctuations, adding a preset symbol between the conversation content and the preceding data content while directly pasting the conversation content to a target pasting position, and replacing the preset symbol with the preset punctuations when sending or storing the data added with the conversation content;
when the attribute of the conversation content is a single conversation text, and the environment of the target pasting position is that data content exists in front of the conversation content and data content exists behind the conversation content, analyzing a first character and a last character of the conversation content, analyzing a last character of the data content in front of the conversation content, and analyzing a first character of the data content behind the conversation content; when the first character of the conversation content is a punctuation mark, the last character of the conversation content is not the punctuation mark, the last character of the front data content is the punctuation mark, and the first character of the rear data content is not the punctuation mark, the last character of the front data content is moved to the front of the first character of the rear data content while the conversation content is directly pasted to the target pasting position; when the first character of the conversation content is not a punctuation mark, the last character of the conversation content is a punctuation mark, the last character of the front data content is not a punctuation mark, and the first character of the rear data content is a punctuation mark, the first character of the rear data content is moved to the rear of the last character of the front data content while the conversation content is directly pasted to the target pasting position; when the first character of the conversation content is not a punctuation, the last character of the conversation content is a punctuation, the last character of the front data content is not a punctuation, and the first character of the rear data content is not a punctuation, adding a preset symbol between the conversation content and the front data content while directly pasting the conversation content to a target pasting position, and replacing the preset symbol with the preset punctuation when transmitting or storing the data added with the conversation content; when the first character of the conversation content is a punctuation, the last character of the conversation content is not a punctuation, the last character of the front data content is not a punctuation, and the first character of the rear data content is not a punctuation, a preset symbol is added between the conversation content and the rear data content while the conversation content is directly pasted to the target pasting position, and the preset symbol is replaced by the preset punctuation when the data added with the conversation content is sent or stored.
The working principle and the beneficial effects of the technical scheme are as follows:
the conversation content includes multi-party conversation text and single item conversation text. Wherein the multi-party conversation text comprises: the client sends out a request and data responded by the container cloud platform; the single session text includes data requested by a single client or is a part of the requested data.
When the multi-party conversation text is pasted, firstly, the environment of the pasting position is determined, and when the environment has data content, the suspended temporary input box can be adopted for pasting, so that convenience is brought to a user for confirming the pasted conversation content on one hand, and the user for modifying the pasted conversation content on the other hand.
When a single session text is pasted, the environment of the pasting position is also determined, and the situation of double punctuations can not occur after pasting through the judgment of punctuations before and after the pasting position, so that the intellectualization of pasting is realized.
In one embodiment, the session replication method for supporting the container cloud platform further includes:
step S5: and receiving a moving instruction of the second client for the session content, and moving the session content according to the moving instruction.
The working principle and the beneficial effects of the technical scheme are as follows:
when the user pastes the conversation content to the target pasting position, the situation that the position of the conversation content needs to be adjusted occurs, and when the situation occurs, the pasted conversation content is moved according to the received moving instruction input by the user.
In one embodiment, the sequencing of the session contents according to a preset rule to form a pasting list specifically includes:
acquiring the storage time from the storage of the session content to the copying area;
determining a difference value between the storage time and the request time corresponding to the session pasting request;
sequencing the matched conversation contents according to the sequence of the difference values from small to large;
or the like, or, alternatively,
based on the difference, calculating a first fitness of the matched session content, wherein the calculation formula is as follows:
Figure BDA0002728444610000171
wherein, TiA first fitness representing the content of the ith conversation; n is the number of session contents; t is tiA difference value representing the content of the ith session;
acquiring first data in front of a pasting position;
acquiring second data in front of the pasting position of the historical pasting record;
based on the first data and the second data, calculating a second fitness of the matched session content, wherein the calculation formula is as follows:
Figure BDA0002728444610000172
wherein, T2Denotes the second fitness, O1,jThe j characteristic value of the first data; beta is a1,jA weight representing a jth characteristic value of the first data; o is2,jA jth characteristic value representing second data; beta is a2,jA weight representing a jth characteristic value of the second data; m represents the number of characteristic values in the first data and the second data;
acquiring third data behind the pasting position;
acquiring fourth data behind the pasting position of the historical pasting record;
based on the third data and the fourth data, calculating a third fitness of the matched session content, wherein the calculation formula is as follows:
Figure BDA0002728444610000173
wherein, T3Denotes the third fitness, O3,kThe k characteristic value of the third data; beta is a3,kA weight representing a kth feature value of the third data; o is4,kA kth characteristic value representing fourth data; beta is a4,kA weight representing a kth feature value of the fourth data; m represents the number of characteristic values in the third data and the fourth data;
based on the session content of the history pasting record, calculating a fourth fitness of the matched session content, wherein the calculation formula is as follows:
Figure BDA0002728444610000181
wherein, T4Denotes the fourth fitness, O5,lMatching the first characteristic value of the matched conversation content;β5,la weight representing the ith feature value of the matched session content; o is6,lThe ith characteristic value representing the session content of the history pasting record; beta is a6,lA weight of the ith feature value representing the session content of the history paste record; n represents the number of the session contents of the history pasting record and the characteristic values in the matched session contents;
calculating the total fitness of the matched session content based on the first fitness, the second fitness, the third fitness and the fourth fitness, wherein the calculation formula is as follows:
T=α1T12T23T34T4
wherein, T represents the total fitness of the matched session content; alpha is alpha1、α2、α3、α4Respectively corresponding to a first fitness, a second fitness, a third fitness and a fourth fitness;
and sequencing the matched conversation contents according to the sequence of the total fitness from large to small.
The working principle and the beneficial effects of the technical scheme are as follows:
the fitness of the matching situation of the screened conversation content to the target pasting position is determined by combining the fitness of the data content before and after the current target pasting position and the data content before and after the target pasting position in the history pasting record, the fitness of the matching situation of the conversation content after matching and the conversation content in the history pasting record and the fitness determined based on the storage time of the conversation content; the conversation content which is best matched with the target position is virtually displayed at the target pasting position, so that the pasting intention of the user can be judged only according to the environment of the target pasting position, and the pasting efficiency of the user is improved.
The invention provides a session replication device supporting a container cloud platform, which comprises:
the system comprises a replication acquisition unit, a replication processing unit and a replication processing unit, wherein the replication acquisition unit is used for acquiring a session replication request of a first client, a first identifier and session content corresponding to the session replication request;
a storage unit, configured to store the session content in the copy area in association with the first identifier;
the paste request unit is used for acquiring a session paste request of a second client, a second identifier and a target paste position of the session paste request;
and the pasting unit is used for screening out the session content from the copying area based on the second identification and pasting the session content to the target pasting position.
The working principle and the beneficial effects of the technical scheme are as follows:
in order to realize the copy function of the session between the user and the container cloud platform when the user changes the device, the method mainly comprises two stages: the first stage is a storage stage of a copied session, and the main implementation manner may be: after a user carries out conversation with the container cloud platform through a first client, the replication acquisition unit acquires a conversation replication request, a first identifier and conversation contents corresponding to the conversation replication request through the client; the storage unit stores the session content in a copy area in association with the first identifier; the storage function of the conversation of the user on the previous device is realized; the second stage is an application stage of the stored session, and the main implementation manner may be: when the user establishes communication connection with the container cloud platform through the second client, the pasting request unit is only needed to acquire a session pasting request, a second identifier and a target pasting position of the session pasting request of the second client when the user is applied; the pasting unit screens out the session content from the copy area based on the second identifier and pastes the session content to the target pasting position.
In one embodiment, the session replication apparatus supporting the container cloud platform, the first identification includes: the device identification of the first client and/or the user identification of a user logged in by the first client and/or the keywords input by the user;
the second identifier includes: the device identification of the first client and/or the user identification of a user logged in by the first client and/or the keywords input by the user;
the working principle and the beneficial effects of the technical scheme are as follows:
in the project of realizing the copying function of the session between the user and the container cloud platform when the user updates the equipment, how to position the copied session is crucial, and the accuracy and feasibility of the copying operation are related; positioning of session content in the copying process is realized in a mode of matching the first identifier with the second identifier; the identification of the user is adopted for positioning, so that the copy of the session content of the same user among different devices is realized; by adopting the keywords input by the user, the positioning of the target session content among the session contents is realized when the plurality of session contents are stored; the device identification is adopted, so that the copy of the session content of different users on the same device is realized; the requirements of the user on different scenes of the session copying function application are met through the equipment identification, the user identification and the keywords.
In one embodiment, the pasting unit performs operations comprising:
matching the second identifier with the first identifier in the copy area;
when the matching is matched, acquiring the session content associated with the first identifier;
determining a number of session contents;
when the number of the session contents is one, pasting the session contents to the target pasting position;
when the number of the session contents is more than one, sequencing the session contents according to a preset rule to form a pasting list; pasting the paste list to the target paste position and virtually displaying the conversation content of the first bit of the paste list to the target paste position;
receiving a switching instruction of the second client for switching the session content virtually displayed at the target pasting position, wherein the switching instruction comprises an up-turning instruction and a down-turning instruction;
when the switching instruction is up-turning, virtually displaying the session content of the previous position of the currently virtually displayed session content in the pasting list to a target pasting position;
when the switching instruction is downward turning, virtually displaying the next conversation content of the conversation content virtually displayed at present in the pasting list to a target pasting position;
and receiving a session pasting determination instruction of the second client, and pasting the session content virtually displayed at the target pasting position.
The working principle and the beneficial effects of the technical scheme are as follows:
the positioning of the session content in the copying process is realized in a mode of matching the first identifier with the second identifier; when only one piece of the positioned conversation content exists, directly copying the conversation content to a target pasting position; but when more than one piece of session content is located; firstly, sequencing all conversation contents according to a preset rule and pasting the conversation contents to a target pasting position in a pasting list mode; virtually displaying the conversation content ranked at the first position of the paste list on a target paste position; the virtual display can be represented by adding a gray background to the conversation content, can also be represented by flashing display, and can also be represented by a font with a color different from that of the target pasting position; then, the user can adopt a switching instruction to switch the virtually displayed conversation content among the conversation contents in the pasting list, key in a conversation pasting determining instruction after selecting the needed conversation content, and paste the conversation content virtually displayed at the target pasting position; the number of sessions copied and copied by the sessions is increased, and the user is prevented from switching the copying on different devices back and forth; further facilitating the use of the user.
In one embodiment, when pasting the session content to the target pasting position, parsing an environment of the target pasting position and parsing an attribute of the session content, and determining a manner of pasting the session content to the target pasting position based on the environment and the attribute specifically includes:
when the attribute of the conversation content is a multi-party conversation text and the environment of the target pasting position is no data content, the conversation content is directly pasted to the target pasting position;
when the attribute of the conversation content is a multi-party conversation text, the environment of the target pasting position is that data content exists in any one direction of the front and the back, and no data content exists in the other direction, the conversation content is directly pasted to the target pasting position, or a temporary input box suspended in a conversation interface is popped up and the conversation content is pasted into the temporary input box;
when the attribute of the conversation content is a multi-party conversation text, and the environment of the target pasting position is that data content exists in the front and data content exists in the rear, popping up a temporary input box suspended in a conversation interface and pasting the conversation content into the temporary input box;
when the attribute of the conversation content is a single conversation text and the environment of the target pasting position is no data content, directly pasting the conversation content to the target pasting position;
when the attribute of the conversation content is a single conversation text, and the environment of the target pasting position is that no data content exists in the front and data exists in the rear, analyzing the last character of the conversation content and analyzing the first character of the data content in the rear; when the last character of the conversation content and the first character of the rear data content are punctuations, directly pasting the conversation content to a target pasting position and deleting the first character of the rear data content; when the last character of the conversation content and the first character of the data content behind are not punctuations, adding a preset symbol between the conversation content and the data content behind while directly pasting the conversation content to the target pasting position, and replacing the preset symbol with the preset punctuations when sending or storing the data added with the conversation content;
when the attribute of the conversation content is a single conversation text, and the environment of the target pasting position is that data content exists in the front and no data exists in the rear, analyzing the first character of the conversation content and analyzing the last character of the data content in the front; when the first character of the conversation content and the last character of the front data content are punctuations, the first character of the conversation content is deleted while the conversation content is directly pasted to the target pasting position; when the first character of the conversation content and the last character of the preceding data content are not punctuations, adding a preset symbol between the conversation content and the preceding data content while directly pasting the conversation content to a target pasting position, and replacing the preset symbol with the preset punctuations when sending or storing the data added with the conversation content;
when the attribute of the conversation content is a single conversation text, and the environment of the target pasting position is that data content exists in front of the conversation content and data content exists behind the conversation content, analyzing a first character and a last character of the conversation content, analyzing a last character of the data content in front of the conversation content, and analyzing a first character of the data content behind the conversation content; when the first character of the conversation content is a punctuation mark, the last character of the conversation content is not the punctuation mark, the last character of the front data content is the punctuation mark, and the first character of the rear data content is not the punctuation mark, the last character of the front data content is moved to the front of the first character of the rear data content while the conversation content is directly pasted to the target pasting position; when the first character of the conversation content is not a punctuation mark, the last character of the conversation content is a punctuation mark, the last character of the front data content is not a punctuation mark, and the first character of the rear data content is a punctuation mark, the first character of the rear data content is moved to the rear of the last character of the front data content while the conversation content is directly pasted to the target pasting position; when the first character of the conversation content is not a punctuation, the last character of the conversation content is a punctuation, the last character of the front data content is not a punctuation, and the first character of the rear data content is not a punctuation, adding a preset symbol between the conversation content and the front data content while directly pasting the conversation content to a target pasting position, and replacing the preset symbol with the preset punctuation when transmitting or storing the data added with the conversation content; when the first character of the conversation content is a punctuation, the last character of the conversation content is not a punctuation, the last character of the front data content is not a punctuation, and the first character of the rear data content is not a punctuation, a preset symbol is added between the conversation content and the rear data content while the conversation content is directly pasted to the target pasting position, and the preset symbol is replaced by the preset punctuation when the data added with the conversation content is sent or stored.
The working principle and the beneficial effects of the technical scheme are as follows:
the conversation content includes multi-party conversation text and single item conversation text. Wherein the multi-party conversation text comprises: the client sends out a request and data responded by the container cloud platform; the single session text includes data requested by a single client or is a part of the requested data.
When the multi-party conversation text is pasted, firstly, the environment of the pasting position is determined, and when the environment has data content, the suspended temporary input box can be adopted for pasting, so that convenience is brought to a user for confirming the pasted conversation content on one hand, and the user for modifying the pasted conversation content on the other hand.
When a single session text is pasted, the environment of the pasting position is also determined, and the situation of double punctuations can not occur after pasting through the judgment of punctuations before and after the pasting position, so that the intellectualization of pasting is realized.
In one embodiment, the session replication apparatus supporting the container cloud platform further includes:
and the adjusting unit is used for receiving a moving instruction of the second client for the session content and moving the session content according to the moving instruction.
The working principle and the beneficial effects of the technical scheme are as follows:
the main application scenarios of the adjusting unit are as follows: when the situation that the position of the conversation content needs to be adjusted occurs after the user pastes the conversation content to the target pasting position, the adjusting unit receives a moving instruction input by the user and moves the pasted conversation content according to the moving instruction.
In one embodiment, the sequencing of the session contents according to a preset rule to form a pasting list specifically includes:
acquiring the storage time from the storage of the session content to the copying area;
determining a difference value between the storage time and the request time corresponding to the session pasting request;
sequencing the matched conversation contents according to the sequence of the difference values from small to large;
or the like, or, alternatively,
based on the difference, calculating a first fitness of the matched session content, wherein the calculation formula is as follows:
Figure BDA0002728444610000231
wherein, TiA first fitness representing the content of the ith conversation; n is the number of session contents; t is tiA difference value representing the content of the ith session;
acquiring first data in front of a pasting position;
acquiring second data in front of the pasting position of the historical pasting record;
based on the first data and the second data, calculating a second fitness of the matched session content, wherein the calculation formula is as follows:
Figure BDA0002728444610000241
wherein, T2Denotes the second fitness, O1,jThe j characteristic value of the first data; beta is a1,jA weight representing a jth characteristic value of the first data; o is2,jA jth characteristic value representing second data; beta is a2,jA weight representing a jth characteristic value of the second data; m represents the number of characteristic values in the first data and the second data;
acquiring third data behind the pasting position;
acquiring fourth data behind the pasting position of the historical pasting record;
based on the third data and the fourth data, calculating a third fitness of the matched session content, wherein the calculation formula is as follows:
Figure BDA0002728444610000242
wherein, T3Denotes the third fitness, O3,kThe k characteristic value of the third data; beta is a3,kA weight representing a kth feature value of the third data; o is4,kRepresenting fourth dataThe kth eigenvalue; beta is a4,kA weight representing a kth feature value of the fourth data; m represents the number of characteristic values in the third data and the fourth data;
based on the session content of the history pasting record, calculating a fourth fitness of the matched session content, wherein the calculation formula is as follows:
Figure BDA0002728444610000243
wherein, T4Denotes the fourth fitness, O5,lMatching the first characteristic value of the matched conversation content; beta is a5,lA weight representing the ith feature value of the matched session content; o is6,lThe ith characteristic value representing the session content of the history pasting record; beta is a6,lA weight of the ith feature value representing the session content of the history paste record; n represents the number of the session contents of the history pasting record and the characteristic values in the matched session contents;
calculating the total fitness of the matched session content based on the first fitness, the second fitness, the third fitness and the fourth fitness, wherein the calculation formula is as follows:
T=α1T12T23T34T4
wherein, T represents the total fitness of the matched session content; alpha is alpha1、α2、α3、α4Respectively corresponding to a first fitness, a second fitness, a third fitness and a fourth fitness;
and sequencing the matched conversation contents according to the sequence of the total fitness from large to small.
The working principle and the beneficial effects of the technical scheme are as follows:
the fitness of the matching situation of the screened conversation content to the target pasting position is determined by combining the fitness of the data content before and after the current target pasting position and the data content before and after the target pasting position in the history pasting record, the fitness of the matching situation of the conversation content after matching and the conversation content in the history pasting record and the fitness determined based on the storage time of the conversation content; the conversation content which is best matched with the target position is virtually displayed at the target pasting position, so that the pasting intention of the user can be judged only according to the environment of the target pasting position, and the pasting efficiency of the user is improved.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (2)

1. A session replication method supporting a container cloud platform is characterized by comprising the following steps:
step S1: acquiring a session replication request, a first identifier and session content corresponding to the session replication request of a first client;
step S2: storing the session content in a copy area in association with the first identifier;
step S3: acquiring a session pasting request, a second identifier and a target pasting position of the session pasting request of a second client;
step S4: screening out the session content from the copy area based on the second identification, and pasting the session content to the target pasting position;
step S5: receiving a moving instruction of the second client for the session content, and moving the session content according to the moving instruction;
the first identification comprises: the device identification of the first client and/or the user identification of a user logged in by the first client and/or keywords input by the user;
the second identification comprises: the device identification of the first client and/or the user identification of a user logged in by the first client and/or keywords input by the user;
the step S4: screening out the session content from the copy area based on the second identification, and pasting the session content to the target pasting position, wherein the process comprises the following steps:
matching the second identifier with the first identifier in the replication area;
when the matching is matched, acquiring the session content associated with the first identifier;
determining a number of the session content;
when the number of the session contents is one, pasting the session contents to the target pasting position;
when the number of the session contents is more than one, sequencing the session contents according to a preset rule to form a pasting list; pasting the pasting list to the target pasting position and virtually displaying the conversation content of the first bit of the pasting list to the target pasting position;
receiving a switching instruction of the second client for switching the session content virtually displayed at the target pasting position, wherein the switching instruction comprises an up-turning instruction and a down-turning instruction;
when the switching instruction is turned up, virtually displaying the session content which is one bit higher than the session content which is virtually displayed currently in the pasting list to the target pasting position;
when the switching instruction is downward turning, virtually displaying the conversation content next to the conversation content which is virtually displayed at present in the pasting list to the target pasting position;
receiving a session pasting determination instruction of the second client, and pasting the session content virtually displayed at the target pasting position;
the sequencing of the session content according to the preset rule to form a pasting list specifically comprises:
acquiring the storage time of the session content stored in the copy area;
determining a difference value between the storage time and the request time corresponding to the session pasting request;
sequencing the matched conversation contents according to the sequence of the difference values from small to large;
or the like, or, alternatively,
based on the difference, calculating a first fitness of the matched session content, wherein the calculation formula is as follows:
Figure FDA0003032701190000021
wherein, TiA first fitness representing an ith piece of the session content; n is the number of the session contents; t is tiSaid difference value representing an ith piece of said session content;
acquiring first data in front of the pasting position;
acquiring second data in front of the pasting position of the historical pasting record;
based on the first data and the second data, calculating a second fitness of the matched session content, wherein the calculation formula is as follows:
Figure FDA0003032701190000022
wherein, T2Denotes the second fitness, O1,jThe j characteristic value of the first data; beta is a1,jA weight representing a jth feature value of the first data; o is2,jA jth characteristic value representing the second data; beta is a2,jA weight representing a jth characteristic value of the second data; m represents the number of characteristic values in the first data and the second data;
acquiring third data behind the pasting position;
acquiring fourth data behind the pasting position of the historical pasting record;
based on the third data and the fourth data, calculating a third fitness of the matched session content, wherein a calculation formula is as follows:
Figure FDA0003032701190000031
wherein, T3Denotes the third fitness, O3,kThe k characteristic value of the third data; beta is a3,kA weight representing a kth feature value of the third data; o is4,kA kth feature value representing the fourth data; beta is a4,kA weight representing a kth feature value of the fourth data; m represents the number of characteristic values in the third data and the fourth data;
based on the session content of the history pasting record, calculating a fourth fitness of the matched session content, wherein the calculation formula is as follows:
Figure FDA0003032701190000032
wherein, T4Denotes the fourth fitness, O5,lMatching the matched ith characteristic value of the conversation content; beta is a5,lA weight representing the ith feature value of the session content after matching; o is6,lAn i-th feature value representing the session content of the history pasting record; beta is a6,lA weight representing an i-th feature value of the session content of the history pasting record; n represents the number of the session content of the history pasting record and the number of the characteristic values in the session content matched and matched;
calculating the total fitness of the session content after matching is met based on the first fitness, the second fitness, the third fitness and the fourth fitness, wherein the calculation formula is as follows:
T=α1T12T23T34T4
wherein T represents the total fitness of the session content after matching; alpha is alpha1、α2、α3、α4The first fitness, the second fitness, the third fitness and the fourth fitness correspond to preset relation coefficients respectively;
and sequencing the matched conversation contents according to the sequence of the total fitness from large to small.
2. A session replication apparatus supporting a container cloud platform, comprising:
the system comprises a replication acquisition unit, a replication processing unit and a replication processing unit, wherein the replication acquisition unit is used for acquiring a session replication request of a first client, a first identifier and session content corresponding to the session replication request;
a storage unit, configured to store the session content in a copy area in association with the first identifier;
the system comprises a pasting request unit, a pasting unit and a display unit, wherein the pasting request unit is used for acquiring a session pasting request of a second client, a second identifier and a target pasting position of the session pasting request;
a pasting unit, configured to screen the session content from the copy area based on the second identifier, and paste the session content to the target pasting position;
the adjusting unit is used for receiving a moving instruction of the second client for the session content and moving the session content according to the moving instruction;
the first identification comprises: the device identification of the first client and/or the user identification of a user logged in by the first client and/or keywords input by the user;
the second identification comprises: the device identification of the first client and/or the user identification of a user logged in by the first client and/or keywords input by the user;
the pasting unit executes the following operations:
matching the second identifier with the first identifier in the replication area;
when the matching is matched, acquiring the session content associated with the first identifier;
determining a number of the session content;
when the number of the session contents is one, pasting the session contents to the target pasting position;
when the number of the session contents is more than one, sequencing the session contents according to a preset rule to form a pasting list; pasting the pasting list to the target pasting position and virtually displaying the conversation content of the first bit of the pasting list to the target pasting position;
receiving a switching instruction of the second client for switching the session content virtually displayed at the target pasting position, wherein the switching instruction comprises an up-turning instruction and a down-turning instruction;
when the switching instruction is turned up, virtually displaying the session content which is one bit higher than the session content which is virtually displayed currently in the pasting list to the target pasting position;
when the switching instruction is downward turning, virtually displaying the conversation content next to the conversation content which is virtually displayed at present in the pasting list to the target pasting position;
receiving a session pasting determination instruction of the second client, and pasting the session content virtually displayed at the target pasting position;
the sequencing of the session content according to the preset rule to form a pasting list specifically comprises:
acquiring the storage time of the session content stored in the copy area;
determining a difference value between the storage time and the request time corresponding to the session pasting request;
sequencing the matched conversation contents according to the sequence of the difference values from small to large;
or the like, or, alternatively,
based on the difference, calculating a first fitness of the matched session content, wherein the calculation formula is as follows:
Figure FDA0003032701190000051
wherein, TiA first fitness representing an ith piece of the session content; n is the number of the session contents; t is tiSaid difference value representing an ith piece of said session content;
acquiring first data in front of the pasting position;
acquiring second data in front of the pasting position of the historical pasting record;
based on the first data and the second data, calculating a second fitness of the matched session content, wherein the calculation formula is as follows:
Figure FDA0003032701190000061
wherein, T2Denotes the second fitness, O1,jThe j characteristic value of the first data; beta is a1,jA weight representing a jth feature value of the first data; o is2,jA jth characteristic value representing the second data; beta is a2,jA weight representing a jth characteristic value of the second data; m represents the number of characteristic values in the first data and the second data;
acquiring third data behind the pasting position;
acquiring fourth data behind the pasting position of the historical pasting record;
based on the third data and the fourth data, calculating a third fitness of the matched session content, wherein a calculation formula is as follows:
Figure FDA0003032701190000062
wherein, T3Denotes the third fitness, O3,kThe k characteristic value of the third data; beta is a3,kA weight representing a kth feature value of the third data; o is4,kA kth feature value representing the fourth data; beta is a4,kA weight representing a kth feature value of the fourth data; m represents the number of characteristic values in the third data and the fourth data;
based on the session content of the history pasting record, calculating a fourth fitness of the matched session content, wherein the calculation formula is as follows:
Figure FDA0003032701190000063
wherein, T4Denotes the fourth fitness, O5,lMatching the matched ith characteristic value of the conversation content; beta is a5,lA weight representing the ith feature value of the session content after matching; o is6,lAn i-th feature value representing the session content of the history pasting record; beta is a6,lA weight representing an i-th feature value of the session content of the history pasting record; n represents the number of the session content of the history pasting record and the number of the characteristic values in the session content matched and matched;
calculating the total fitness of the session content after matching is met based on the first fitness, the second fitness, the third fitness and the fourth fitness, wherein the calculation formula is as follows:
T=α1T12T23T34T4
wherein T represents the total fitness of the session content after matching; alpha is alpha1、α2、α3、α4The first fitness, the second fitness, the third fitness and the fourth fitness correspond to preset relation coefficients respectively;
and sequencing the matched conversation contents according to the sequence of the total fitness from large to small.
CN202011110542.6A 2020-07-31 2020-07-31 Session replication method and device supporting container cloud platform Active CN112364608B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011110542.6A CN112364608B (en) 2020-07-31 2020-07-31 Session replication method and device supporting container cloud platform

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011110542.6A CN112364608B (en) 2020-07-31 2020-07-31 Session replication method and device supporting container cloud platform
CN202010754218.1A CN111651967B (en) 2020-07-31 2020-07-31 Session replication method and device supporting container cloud platform

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN202010754218.1A Division CN111651967B (en) 2020-07-31 2020-07-31 Session replication method and device supporting container cloud platform

Publications (2)

Publication Number Publication Date
CN112364608A CN112364608A (en) 2021-02-12
CN112364608B true CN112364608B (en) 2021-08-24

Family

ID=72348664

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202010754218.1A Active CN111651967B (en) 2020-07-31 2020-07-31 Session replication method and device supporting container cloud platform
CN202011110542.6A Active CN112364608B (en) 2020-07-31 2020-07-31 Session replication method and device supporting container cloud platform

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202010754218.1A Active CN111651967B (en) 2020-07-31 2020-07-31 Session replication method and device supporting container cloud platform

Country Status (1)

Country Link
CN (2) CN111651967B (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8924858B2 (en) * 2010-11-01 2014-12-30 Massachusetts Institute Of Technology Touch-based system for transferring data
CN103139244B (en) * 2011-11-24 2015-10-21 腾讯科技(深圳)有限公司 Cloud copies method of attaching and system
CN108241612B (en) * 2016-12-27 2021-11-05 北京国双科技有限公司 Punctuation processing method and device
US11036929B2 (en) * 2017-11-15 2021-06-15 Adaptam Inc. Methods and systems for connecting a spreadsheet to external data sources with ordered formulaic use of data retrieved
CN107948278B (en) * 2017-11-22 2021-01-26 维沃移动通信有限公司 Information transmission method, terminal equipment and system
CN109343980B (en) * 2018-09-29 2020-12-22 广州视源电子科技股份有限公司 Cloud copying and cloud pasting method, device, system, equipment and storage medium
CN109726028B (en) * 2019-01-17 2023-05-26 江苏保旺达软件技术有限公司 Intermediate storage method

Also Published As

Publication number Publication date
CN111651967A (en) 2020-09-11
CN111651967B (en) 2020-11-24
CN112364608A (en) 2021-02-12

Similar Documents

Publication Publication Date Title
JP7301977B2 (en) Image retrieval method, apparatus, computer equipment and computer program
CN108664651A (en) A kind of pattern recommends method, apparatus and storage medium
US20060190835A1 (en) System and method for automating manual transactions between disjoint systems
US10742434B2 (en) Event-based content object collaboration
JP2002541583A (en) Method and apparatus for direct transactional access to information residing on a host system
CN101193074A (en) A method and system for display image on instant communication demonstration frame
CN107391277A (en) Information processing method and device
CN112565842A (en) Information processing method, device and storage medium
CN111694530A (en) Screen adaptation method and device, electronic equipment and storage medium
CN112364608B (en) Session replication method and device supporting container cloud platform
CN110109594A (en) A kind of draw data sharing method, device, storage medium and equipment
CN114065765A (en) Weapon equipment text processing method and device combining AI and RPA and electronic equipment
CN105868399A (en) Method and device of managing photo album folders
US20100250631A1 (en) Information processor, electronic file managing device, electronic file managing system, and computer readable medium
CN106411977A (en) Tab synchronization method, terminal, server and system
CN111131651A (en) Picture uploading method, picture uploading device and computer readable storage medium
CN109933382B (en) Online ppt file preview tool based on owa service
WO2017082648A1 (en) Method for homepage auto-configuration by cloud webhard file and folder architecture, and system therefor
CN110287304B (en) Question and answer information processing method and device and computer equipment
CN113256473A (en) Three-dimensional model format conversion method and device, electronic equipment and system
CN111367424A (en) Intelligent adjustment method and device for information candidate items and computer readable storage medium
CN114419199B (en) Picture marking method and device, electronic equipment and storage medium
US20220138076A1 (en) Identifying a process and generating a process diagram
US20230297902A1 (en) Information processing apparatus, information processing system, non-transitory computer readable medium, and information processing method
US20110208835A1 (en) Method, system and apparatus for distributing multimedia data

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