CN111694676B - Processing method and device for key value observation mode - Google Patents

Processing method and device for key value observation mode Download PDF

Info

Publication number
CN111694676B
CN111694676B CN202010365711.4A CN202010365711A CN111694676B CN 111694676 B CN111694676 B CN 111694676B CN 202010365711 A CN202010365711 A CN 202010365711A CN 111694676 B CN111694676 B CN 111694676B
Authority
CN
China
Prior art keywords
observer
queue
attribute
observation
observed
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
CN202010365711.4A
Other languages
Chinese (zh)
Other versions
CN111694676A (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 QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202010365711.4A priority Critical patent/CN111694676B/en
Publication of CN111694676A publication Critical patent/CN111694676A/en
Application granted granted Critical
Publication of CN111694676B publication Critical patent/CN111694676B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention provides a processing method and a device for a key value observation mode, wherein the method comprises the following steps: creating a proxy object for a key value observation mode when a method of the key value observation mode is called; acquiring preset structure data by the proxy object, wherein the preset structure data is recorded with an observer object and an observation attribute in a correlated way; and executing the method of the key value observation mode according to the observer object and the observation attribute which are associated and recorded in the preset structure data. According to the embodiment of the invention, the agent object is used for maintaining the preset structure data to uniformly manage the complex KVO relationship, and when the method of the key value observation mode is called, the method of the key value observation mode is called according to the observer object and the observation attribute which are associated and recorded in the preset structure data, so that the problem caused by the disorder of KVO relationship management can be avoided.

Description

Processing method and device for key value observation mode
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for processing a key value observation mode.
Background
The observer mode KVO (Key Value Observing) is a common mode in mobile application design modes, where KVO provides a set of event notification mechanisms that allow an object to monitor for changes in another object's specific properties and receive events when changed.
The KVO mechanism designates an observed object (Origin), when a certain observation attribute (KeyPath) of the observed object is changed, the observed object is notified and carries out corresponding treatment; the KVO also needs to determine an Observer object (underserver), which can obtain the notification and implement the KVO method internally to execute specific processing logic when the observed object obtains the notification.
Among them, it is noted that: the observed object may register multiple observers, each of which may in turn observe multiple attributes of the observed object. The main stream application program is large in scale and is easy to have a problem of confusion of KVO relation management.
Disclosure of Invention
An object of an embodiment of the present invention is to provide a method for invoking a key-value observation mode according to a uniformly managed KVO relationship. The specific technical scheme is as follows:
in a first aspect of the present invention, there is provided a processing method for a key value observation mode, including:
Creating a proxy object for a key value observation mode when a method of the key value observation mode is called;
acquiring preset structure data by the proxy object, wherein the preset structure data is recorded with an observer object and an observation attribute in a correlated way;
and executing the method of the key value observation mode according to the observer object and the observation attribute which are associated and recorded in the preset structure data.
Optionally, when the method of the key value observation mode is called, creating a proxy object for the key value observation mode includes:
when a method of a key value observation mode is called, a preset message forwarding method is called, and a proxy method for the key value observation mode is added;
and creating a proxy object aiming at the key value observation mode by adopting the proxy method.
Optionally, the method further comprises:
when a release destroying method aiming at the observed object is called, the preset structural data corresponding to the proxy object is destroyed, and the proxy object is emptied.
Optionally, the preset structure data is a preset chart; the preset chart records the observed attribute of the observed person and an observer queue corresponding to the observed attribute, and the observer queue records the observer corresponding to the observed attribute;
The method for executing the key value observation mode according to the observer object and the observation attribute which are associated and recorded in the preset structure data comprises the following steps:
and executing the method of the key value observation mode according to the observation attribute in the preset chart and the observer queue.
Optionally, the method for executing the key value observation mode according to the observation attribute and the observer queue in the preset chart includes:
when the method of the key value observation mode is a new observer method, determining a first observer object to be newly added for calling the new observer method and a first observed attribute of a first observed object to be observed by the first observer object by the proxy object;
acquiring a first observer queue corresponding to the first observation attribute from the agent object in the preset chart;
and adding the first observer object in the first observer queue by the proxy object.
Optionally, the adding, by the proxy object, the first observer object in the first observer queue includes:
judging whether the first observer object is recorded in the first observer queue or not by the proxy object;
If the first observer object is not recorded in the first observer queue, the agent object adds the first observer object in the first observer queue;
the method for executing the key value observation mode according to the observation attribute and the observer queue in the preset chart further comprises the following steps:
and if the first observer object is recorded in the first observer queue, generating and sending a first log to a server by the proxy object.
Optionally, the obtaining, by the proxy object, a first observer queue corresponding to the first observation attribute in the preset chart includes:
judging whether the first observation attribute is recorded in the preset chart or not by the proxy object;
if the first observation attribute is recorded in the preset chart, acquiring a first observer queue corresponding to the first observation attribute in the preset chart by the proxy object;
the method for executing the key value observation mode according to the observation attribute and the observer queue in the preset chart further comprises the following steps:
if the first observation attribute is not recorded in the preset chart, creating a first observer queue corresponding to the first observation attribute in the preset chart by the proxy object;
And calling a new observer method of the first observed object to set the proxy object as the observer object of the first observed object.
Optionally, the method for executing the key value observation mode according to the observation attribute in the preset chart and the corresponding observer queue includes:
when the method of the key value observation mode is a removing observer method, determining, by the proxy object, a second observer object to be removed by calling the removing observer method and a second observation attribute of a second observed object observed by the second observer object;
acquiring a second observer queue corresponding to the second observation attribute from the agent object in the preset chart;
removing, by the proxy object, a second observer object in the second observer queue.
Optionally, the removing, by the proxy object, the second observer object in the second observer queue includes:
judging whether the second observer queue is empty or not by the proxy object;
if the second observer queue is not empty, removing the second observer object in the second observer queue by the proxy object;
The method for executing the key value observation mode according to the observation attribute and the observer queue in the preset chart further comprises the following steps:
deleting the second observer queue by the proxy object if the second observer queue is empty;
and calling a removing observer method of the second observed object to remove the proxy object from the observer object corresponding to the second observed object.
Optionally, the obtaining, by the proxy object, a second observer queue corresponding to the second observation attribute in the preset chart includes:
judging whether the second observation attribute is recorded in the preset chart or not by the proxy object;
if the second observation attribute is recorded in the preset chart, acquiring a second observer queue corresponding to the second observation attribute in the preset chart by the proxy object;
the method for executing the key value observation mode according to the observation attribute and the observer queue in the preset chart further comprises the following steps:
if the second observation attribute is not recorded in the preset chart, interrupting the flow by the proxy object, generating and sending a second log to a server.
Optionally, the method for executing the key value observation mode according to the observation attribute and the observer queue in the preset chart includes:
when the method of the key value observation mode is an observation attribute current value acquisition method, determining and calling the observation attribute current value acquisition method by the proxy object, wherein the corresponding third observer and a third observed attribute of a third observed person observed by the third observer;
acquiring a third observer queue corresponding to the third observation attribute from the agent object in the preset chart;
judging whether the third observer queue is not empty or not by the proxy object, and judging that the third observer object in the third observer queue is an empty object;
if the condition that the third observer queue is not empty and the third observer object in the third observer queue is an empty object is not satisfied, calling an observation attribute current value acquisition method of the third observer object;
and if the third observer queue is not empty and a third observer object in the third observer queue is an empty object, removing the third observer in the third observer queue by the proxy object.
In a second aspect of the present invention, there is also provided a processing apparatus for a key value observation mode, including:
the agent object creating module is used for creating an agent object aiming at the key value observation mode when the method of the key value observation mode is called;
the structure data acquisition module is used for acquiring preset structure data by the proxy object, wherein the preset structure data is recorded with an observer object and an observation attribute in an associated manner;
and the method calling module is used for executing the method of the key value observation mode according to the observer object and the observation attribute which are associated and recorded in the preset structure data.
Optionally, the proxy object creation module includes:
the agent method adding submodule is used for calling a preset message forwarding method when a method of a key value observation mode is called, and adding an agent method aiming at the key value observation mode;
and the proxy object creation submodule is used for creating a proxy object aiming at the key value observation mode by adopting the proxy method.
Optionally, the method further comprises:
the destruction processing module is used for destroying the preset structural data corresponding to the proxy object and setting the proxy object to be empty when the release destruction method for the observed object is called.
Optionally, the preset structure data is a preset chart; the preset chart records the observed attribute of the observed person and an observer queue corresponding to the observed attribute, and the observer queue records the observer corresponding to the observed attribute;
the method calling module comprises the following steps:
and the method calling sub-module is used for executing the method of the key value observation mode according to the observation attribute and the observer queue in the preset chart.
Optionally, the method calling submodule includes:
a first object determining unit, configured to determine, when the method of the key value observation mode is a new observer method, a first observer object to be newly added and a first observed attribute of a first observed object to be observed by the first observer object, which are called by the new observer method, by the proxy object;
a first observer queue obtaining unit, configured to obtain, by the proxy object, a first observer queue corresponding to the first observation attribute in the preset chart;
and the first observer object adding unit is used for adding the first observer object in the first observer queue by the proxy object.
Optionally, the first observer object adding unit includes:
a first queue judging subunit configured to judge, by the proxy object, whether the first observer object is already recorded in the first observer queue;
a first observer object new adding subunit, configured to add, if the first observer object is not recorded in the first observer queue, the first observer object in the first observer queue by the proxy object;
the method call sub-module further includes:
and the first log uploading unit is used for generating and sending a first log to a server by the proxy object if the first observer object is recorded in the first observer queue.
Optionally, the first observer queue acquiring unit includes:
a first chart judging subunit, configured to judge, by the proxy object, whether the first observation attribute is recorded in the preset chart;
a first observer queue obtaining subunit, configured to obtain, if the first observation attribute is recorded in the preset chart, a first observer queue corresponding to the first observation attribute from the proxy object in the preset chart;
The method call sub-module further includes:
a first observer queue creating unit, configured to create, by the proxy object, a first observer queue corresponding to the first observation attribute in the preset chart if the first observation attribute is not recorded in the preset chart;
and the new observer method calling unit is used for calling the new observer method of the first observed object so as to set the proxy object as the observer object of the first observed object.
Optionally, the method calling submodule includes:
a second object determining unit configured to determine, when the method of the key value observation mode is a remove observer method, a second observer object to be removed by calling the remove observer method, and a second observation attribute of a second observed object observed by the second observer object, by the proxy object;
a second observer queue obtaining unit, configured to obtain, by the proxy object, a second observer queue corresponding to the second observation attribute in the preset chart;
and a second observer object removing unit configured to remove, by the proxy object, a second observer object in the second observer queue.
Optionally, the second observer object removing unit includes:
a second queue judging subunit, configured to judge, by the proxy object, whether the second observer queue is empty;
a second observer object removal subunit configured to remove, by the proxy object, a second observer object in the second observer queue if the second observer queue is not empty;
the method call sub-module further includes:
a second observer queue deleting unit configured to delete, if the second observer queue is empty, the second observer queue by the proxy object;
and the removing observer method calling unit is used for calling a removing observer method of the second observed object so as to remove the proxy object from the observer object corresponding to the second observed object.
Optionally, the second observer queue acquiring unit includes:
a second chart judging subunit, configured to judge, by the proxy object, whether the second observation attribute is recorded in the preset chart;
a second observer queue obtaining subunit, configured to obtain, if the second observation attribute is recorded in the preset chart, a second observer queue corresponding to the second observation attribute from the proxy object in the preset chart;
The method call sub-module further includes:
and the second log uploading unit is used for interrupting the flow by the proxy object if the second observation attribute is not recorded in the preset chart, generating and sending a second log to a server.
Optionally, the method calling submodule includes:
a third object determining unit, configured to determine, when the method of the key value observation mode is an observation attribute current value obtaining method, to invoke the observation attribute current value obtaining method by the proxy object, a corresponding third observer, and a third observation attribute of a third observed person observed by the third observer;
a third observer queue obtaining unit, configured to obtain, by the proxy object, a third observer queue corresponding to the third observation attribute in the preset chart;
a third queue judging unit, configured to judge, by the proxy object, whether the third observer queue is not empty, and whether the third observer object in the third observer queue is an empty object;
a current value obtaining method calling unit, configured to call an observation attribute current value obtaining method of a third observer object if the condition that the third observer queue is not empty and the third observer object in the third observer queue is an empty object is not satisfied;
A third observer removing unit, configured to remove, if the third observer queue is not empty and a third observer object in the third observer queue is an empty object, the third observer in the third observer queue by the proxy object.
In yet another aspect of the present invention, there is also provided a computer readable storage medium having instructions stored therein, which when executed on a computer, cause the computer to perform any of the above-described processing methods for a key-value observation mode.
In yet another aspect of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the above-described processing methods for a key value observation mode.
According to the processing method for the key value observation mode, the agent object is used for maintaining the preset structure data to uniformly manage the complex KVO relationship, and when the method for the key value observation mode is called, the method for the key value observation mode is called according to the observer object and the observation attribute which are associated and recorded in the preset structure data, so that the problem caused by the disorder of the management of the KVO relationship can be avoided. For example, the problems that the KVO relationship is not logged out, the registered observer objects are not matched, the removed observer objects are not matched, the observer objects are repeatedly added, the observed objects are repeatedly removed, the unsafe release is carried out and the like can be avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
FIG. 1 is a flowchart illustrating a first exemplary embodiment of a method for processing a key-value observation pattern according to the present invention;
FIG. 2 is a schematic diagram of a method for processing a key-value observation pattern by a proxy object according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a second exemplary embodiment of a key observation mode processing method according to the present invention;
FIG. 4 is a schematic diagram of a preset chart in an embodiment of the invention;
FIG. 5 is a block diagram illustrating an embodiment of a processing apparatus for key observation mode according to the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention.
The management of KVO relations is confusing, which easily results in the following problems:
1. in the case where the number of observer objects and observation attributes is large, it is easy to understand that the entire KVO relationship of the observed object is unclear, resulting in that some KVO relationship remains without being logged off when the observed object releases destruction (dealloc). Meanwhile, the situation that the KVO registered observer object is not matched with the removed observer object is caused, so that logic confusion is easy to generate loopholes.
2. The observed object may cause a program Crash (Crash) if not all observers are removed when freeing destruction.
3. In the case of multithreading, KVO repeats adding or removing observers are more common. Such problems typically occur with comparative concealment, resulting in program crashes but are not easily troubleshooted at the code level.
In the embodiment of the invention, the complex KVO relationship is uniformly managed by maintaining the preset structure data by the proxy object, so that the problem caused by the disorder of KVO relationship management is avoided.
Referring to fig. 1, a flowchart illustrating steps of a first embodiment of a processing method for a key value observation mode according to the present invention may specifically include the following steps:
step 101, when a method of a key value observation mode is called, creating a proxy object aiming at the key value observation mode;
the iOS application is an application written in the Objective-C programming language, which is a runtime oriented language that can decide to implement logic at runtime rather than at compile time.
The method for calling the key value observation mode may be a method for realizing the key value observation mode by the current object or a method for realizing the key value observation mode by other objects.
Proxy objects are objects created based on a proxy schema (proxy schema), also known as proxy schema, is an important way in iOS systems. The proxy mode, as its name implies, lets other classes proxy the current class to perform some tasks.
In the embodiment of the invention, when a certain object invokes the method of the key value observation mode, a proxy object aiming at the key value observation mode can be created, one proxy object corresponds to one observed object, and the proxy object executes the operation related to the method for invoking the key value observation mode aiming at the observed object.
The method for calling the key value observation mode comprises the following steps:
an observer method (addunderserver) is added, an observer method (removeunderserver) is removed, and an attribute current value acquisition method (observeValueForKeyPath) is observed.
By adding an observer method addObserver, forKeyPath, options, context, and capable of registering an observer, the observer can receive a change event of the KeyPath attribute. The method for obtaining the current value of the observed attribute is realized in the observer, and the method can be called back by the KVO to inform the observer after the attribute of the keyPath changes. The remove watcher method removeObserver, forKeyPath, may be invoked to remove KVO when watchers do not need to snoop. It should be noted that invoking a removeObserver requires that before the observer disappears, otherwise a crash will result.
102, acquiring preset structural data by the proxy object, wherein the preset structural data is recorded with an observer object and an observation attribute in an associated manner;
in the embodiment of the invention, the proxy object can maintain preset structural data, and the observer object and the observation attribute can be associated and recorded in the preset structural data.
Therefore, the proxy object can hold all observer objects through preset structural data, and all operations performed on the observer objects can be proxied by the proxy object.
The association between an observer object and an observation attribute means that the observer object registers the observation attribute with respect to a certain observed object.
One of the observation attributes may have a plurality of associated recorded observer objects, and one observer object may be composed of a plurality of associated recorded observation attributes.
The association may be by recording, for each observation attribute, its associated observer object. It is also possible to record, for each observer object, its associated observation attribute.
And step 103, executing the method of the key value observation mode according to the observer object and the observation attribute which are associated and recorded in the preset structure data.
Every time a method of a key value observation mode is called, observer objects and observation attributes which are related and recorded in preset structural data maintained based on the proxy objects are needed.
Referring to fig. 2, a schematic diagram of a method for processing a key value observation mode through a proxy object according to an embodiment of the present invention is shown.
The observed object holds a corresponding proxy object, the proxy object maintains preset structural data, the proxy object holds all the observer objects according to the preset structural data, and the KVO operation of the observer objects can be realized through the proxy object. The proxy object may observe the observation attribute of the observed object according to the preset structure data.
In the embodiment of the invention, the agent object uniformly manages the complex KVO relationship through the preset structure data, and when the method of the key value observation mode is called, the method of the key value observation mode is called according to the observer object and the observation attribute which are associated and recorded in the preset structure data, so that the problems caused by the disorder of the management of the KVO relationship can be avoided, for example, the problems that the KVO relationship is not logged off, the registered observer object is not matched, the observer object is removed, the observer object is repeatedly added, the observer object is repeatedly removed, the unsafe release is avoided, and the like.
In the embodiment of the invention, aiming at the situation that the breakdown caused by the KVO relationship is still registered when the observed object is released and destroyed, the preset structure data corresponding to the proxy object corresponding to the observed object is destroyed and the proxy object is emptied when the release and destruction method for the observed object is called, so that the situation that the breakdown caused by the KVO is still registered when the observed object is released and destroyed is avoided.
Referring to fig. 3, a flowchart illustrating steps of a second embodiment of a processing method for a key value observation mode according to the present invention may specifically include the following steps:
step 301, when a method of a key value observation mode is called, creating a proxy object for the key value observation mode;
Objective-C has dynamic properties (run time), based on the run time mechanism, message forwarding can be performed by some method of overwriting NSObjects, thereby inserting or replacing a custom piece of logic into the current logic, and run time provides three ways to perform message forwarding, namely:
call resolveInstanceMethod:
call forward target forward selector:
call forward invite:
according to the basic principle of message forwarding, any object will call the method of the key observation mode when calling the method of the key observation mode, which calls resolveInstanceMethod, forwardingTargetForSelector and forwardsequencing methods in turn. The customized processing logic can be implanted in any method, and in the embodiment of the invention, the customized processing logic is a proxy method aiming at the key value observation mode, and the proxy method is actually customized logic for realizing proxy on the key value observation mode.
In an embodiment of the present invention, the step 301 may include:
when a method of a key value observation mode is called, a preset message forwarding method is called, and a proxy method for the key value observation mode is added; and creating a proxy object aiming at the key value observation mode by adopting the proxy method.
In the embodiment of the invention, the preset message forwarding method may be a resolveInstanceMethod method, and an agent method for a key value observation mode is added in the inside by calling the resolveInstanceMethod method, and an agent object for the key value observation mode is created by adopting the agent method.
Step 302, acquiring a preset chart by the proxy object, wherein the preset chart records the observed attribute of an observed person and an observer queue corresponding to the observed attribute, and the observer queue records the observed person corresponding to the observed attribute;
referring to fig. 4, a schematic diagram of a preset chart in an embodiment of the present invention is shown. In the preset chart (map), taking all the observation attributes of a certain observed object as keys of the chart, wherein each observation attribute corresponds to an observer queue (ObserverArray), and all the observed objects observing the observation attributes are recorded in the observer queue, and the observed objects in the observer queue are taken as values of icons.
And step 303, executing the method of the key value observation mode according to the observation attribute and the observer queue in the preset chart.
Each time the key value observation mode method is called, the observation attribute and the observer queue in the preset chart maintained by the proxy object are needed to be realized.
The method for calling the key value observation mode comprises the following steps: and adding a new observer method, removing the observer method, and observing the current value acquisition method of the attribute.
In the following, an explanation is given on how to implement a new observer method based on the observation attribute and the observer queue in the preset chart maintained by the proxy object, remove the observer method, and acquire the current value of the observation attribute.
In an embodiment of the present invention, when the new observer method is invoked, the step 303 may include the following sub-steps:
a substep S11, wherein the proxy object determines a first observer object to be newly added for calling the new observer method and a first observed attribute of a first observed object to be observed by the first observer object;
and calling the new observer method, wherein the new observer is an observer object for observing the observed attribute of the observed person.
The proxy object may determine a first observer object to be newly added, a first observed attribute of a first observed object to be observed by the first observer object, each time the newly added observer method is invoked.
Step S12, the agent object acquires a first observer queue corresponding to the first observation attribute from the preset chart;
in particular, substep S12 may further include:
a substep S121, wherein the agent object determines whether the first observation attribute is recorded in the preset chart;
step S122, if the first observation attribute is recorded in the preset chart, acquiring a first observer queue corresponding to the first observation attribute in the preset chart by the proxy object;
the first observation attribute in the preset chart and the corresponding first observer queue coexist, and if the record with the key as the first observation attribute in the preset chart is included, the record with the value as the first observer queue in the preset chart is indicated.
Step 303 may further include: if the first observation attribute is not recorded in the preset chart, creating a first observer queue corresponding to the first observation attribute in the preset chart by the proxy object; the new observer method of the first observed object is invoked to set the proxy object as the observer object of the first observed object.
If the first observation attribute is not recorded in the preset chart, and the first observation queue corresponding to the first observation attribute is not displayed in the preset chart. It is thus possible to create a first observer queue corresponding to the first observation attribute by the proxy object and to add the first observation attribute and the corresponding first observer queue to the preset chart. After the first observer queue is newly established, a new observer method of the observed object itself can be called to set the proxy object as the observer object of the first observed object, so that the observed object holds the proxy object.
In a substep S13, the proxy object adds the first observer object to the first observer queue.
Specifically, the substep S13 may further include:
a substep S131, wherein the proxy object determines whether the first observer object is already recorded in the first observer queue;
sub-step S132, if the first observer object is not recorded in the first observer queue, adding the first observer object to the first observer queue by the proxy object;
if the first observer object is not recorded in the first observer queue, the agent object may add the first observer object to the first observer queue, indicating that the first observer object has not been added before.
Step 303 may further include: if the first observer object is already recorded in the first observer queue, a first log is generated by the proxy object and sent to the server.
If the first observer object is already recorded in the first observer queue, which indicates that the first observer object has been added, and belongs to repeated addition, the proxy object can create an error log and upload the error log to the server.
Through the steps, the information of all relevant observer objects of the observed object can be transferred to the proxy object, and the operation that the developer repeatedly adds the observer object can be captured, so that unstable and even breakdown of a program caused by repeated addition of the observer object is avoided.
In an embodiment of the present invention, when the remove observer method is invoked, the step 303 may include the following sub-steps:
a substep S21, wherein the proxy object determines a second observer object to be removed by calling a removal observer method, and a second observation attribute of a second observed object observed by the second observer object;
the remove observer method is called to remove an observer object that observes the observed attribute of the observed person.
The proxy object may determine a second observer object to be removed, a second observed attribute of a second observed object to be observed by the second observer object, each time the remove observer method is invoked.
A substep S22, wherein the agent object obtains a second observer queue corresponding to the second observation attribute in the preset chart;
in particular, the substep S22 may further include:
a substep S221, wherein the agent object determines whether the second observation attribute is recorded in the preset chart;
step S221, if the second observation attribute is recorded in the preset chart, acquiring a second observer queue corresponding to the second observation attribute in the preset chart by the proxy object;
and if the record with the key as the second observation attribute in the preset chart is the record with the value as the second observer queue in the preset chart, the record with the value as the second observer queue is also shown.
Step 303 may further include: if the second observation attribute is not recorded in the preset chart, interrupting the flow by the proxy object, generating and sending a second log to a server.
If the second observation attribute is not recorded in the preset chart, the second observer queue corresponding to the second observation attribute is not recorded in the preset chart, that is, the proxy object does not hold the second observer object corresponding to the second observation attribute, which indicates that a non-matched observer is removed, and if the current program is crashed due to the fact that the operation is resumed, the behavior should be captured in time and the flow is interrupted, and meanwhile, a log is created and uploaded.
In a substep S23, the second observer object in the second observer queue is removed by the proxy object.
In particular, the substep S23 may further include:
a substep S231 of determining, by the proxy object, whether the second observer queue is empty;
sub-step S232, if the second observer queue is not empty, removing, by the proxy object, a second observer object in the second observer queue;
the second observer queue is not empty, i.e., the number of second observer objects in the second observer queue is not zero, indicating that the proxy object still holds the second observer object, which can be removed by the proxy object.
Step 303 may further include: if the second observer queue is empty, deleting the second observer queue by the proxy object; and calling a method for removing the observer of the second observed object to remove the proxy object from the observer object corresponding to the second observed object.
When the second observer queue is empty, it indicates that the proxy object no longer holds any second observer objects associated with the second observation attribute. In fact, the observer object of the second observed object is now a proxy object, i.e. the proxy object is the observer object of the second observed object. The original observer removing method of the observed object can be invoked to remove the proxy object from the observer object corresponding to the second observed object.
In an embodiment of the present invention, when the observation attribute current value obtaining method is invoked, the step 303 may include the following sub-steps:
a substep S31, wherein the proxy object determines and invokes the current value acquisition method of the observation attribute, and the corresponding third observer and the third observation attribute of the third observed person observed by the third observer;
The method for acquiring the current value of the observation attribute is called, and when the value of the third observation attribute changes, the method is called back to inform the observer.
The proxy object may determine a third observation attribute of a third observed person observed by a corresponding third observer and the third observer each time the observation attribute current value acquisition method is invoked.
A substep S32, wherein the agent object obtains a third observer queue corresponding to the third observation attribute in the preset chart;
a substep S33, wherein the proxy object determines whether the third observer queue is not empty, and the third observer object in the third observer queue is an empty object;
in the substep S34, if the third observer queue is not empty and the third observer object in the third observer queue is an empty object, the method for acquiring the current value of the observation attribute of the third observer object is invoked.
The case where the third observer queue is not empty and the third observer object in the third observer queue is an empty object is not satisfied includes:
the third observer queue is empty; the third observer queue is not empty, but the third observer object in the third observer queue is not an empty object. And acquiring the current value of the third observation attribute by calling the original current value acquisition method of the third observation attribute of the third observer object. That is, in the embodiment of the present invention, the response is still performed by the method for obtaining the current value of the original observation attribute of the third observer object.
In a substep S35, if the third observer queue is not empty and a third observer object in the third observer queue is an empty object, the third observer in the third observer queue is removed by the proxy object.
If the third observer queue is not empty and the third observer object in the third observer queue is an empty object, the empty object in the third observer queue needs to be removed immediately, so as to avoid breakdown caused by value change of the graph after the observer object is released.
And step 304, destroying a preset chart corresponding to a proxy object corresponding to the observed object when a release destroying method for the observed object is called, and emptying the proxy object.
All KVO relationships to the observed object are recorded in the preset graph maintained by the corresponding proxy object. In the embodiment of the invention, aiming at the situation that the breakdown caused by the KVO relationship is still registered when the destruction is released to the observed object, the preset chart corresponding to the proxy object corresponding to the observed object is destroyed when the destruction releasing method for the observed object is called, and the proxy object is emptied, so that the situation that the breakdown caused by the KVO is still registered when the observed object is released and destroyed is avoided.
In the embodiment of the invention, the agent object uniformly manages the complex KVO relationship through the preset chart, and when the method of the key value observation mode is called, the method of the key value observation mode is called according to the observation attribute and the observer queue which are associated and recorded in the preset chart, so that the problem caused by the disorder of the management of the KVO relationship can be avoided. For example, the problems that the KVO relationship is not logged out, the registered observer objects are not matched, the removed observer objects are not matched, the observer objects are repeatedly added, the observed objects are repeatedly removed, the unsafe release is carried out and the like can be avoided.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Referring to fig. 5, there is shown a block diagram of an embodiment of a processing apparatus for a key value observation mode according to the present invention, which may specifically include the following modules:
A proxy object creation module 501, configured to create a proxy object for a key observation mode when a method of the key observation mode is invoked;
the structure data obtaining module 502 is configured to obtain preset structure data from the proxy object, where the preset structure data is recorded with an observer object and an observation attribute in an associated manner;
and a method calling module 503, configured to execute the method of the key value observation mode according to the observer object and the observation attribute that are associated and recorded in the preset structure data.
In an embodiment of the present invention, the proxy object creation module 501 may include:
the agent method adding submodule is used for calling a preset message forwarding method when a method of a key value observation mode is called, and adding an agent method aiming at the key value observation mode;
and the proxy object creation submodule is used for creating a proxy object aiming at the key value observation mode by adopting the proxy method.
In an embodiment of the present invention, the apparatus further includes:
the destruction processing module is used for destroying the preset structural data corresponding to the proxy object and setting the proxy object to be empty when the release destruction method for the observed object is called.
In the embodiment of the invention, the preset structure data is a preset chart; the preset chart records the observed attribute of the observed person and an observer queue corresponding to the observed attribute, and the observer queue records the observer corresponding to the observed attribute;
the method calling module 503 may include:
and the method calling sub-module is used for executing the method of the key value observation mode according to the observation attribute and the observer queue in the preset chart.
In an embodiment of the present invention, the method calling submodule includes:
a first object determining unit, configured to determine, when the method of the key value observation mode is a new observer method, a first observer object to be newly added and a first observed attribute of a first observed object to be observed by the first observer object, which are called by the new observer method, by the proxy object;
a first observer queue obtaining unit, configured to obtain, by the proxy object, a first observer queue corresponding to the first observation attribute in the preset chart;
and the first observer object adding unit is used for adding the first observer object in the first observer queue by the proxy object.
In the embodiment of the present invention, the first observer object adding unit includes:
a first queue judging subunit configured to judge, by the proxy object, whether the first observer object is already recorded in the first observer queue;
a first observer object new adding subunit, configured to add, if the first observer object is not recorded in the first observer queue, the first observer object in the first observer queue by the proxy object;
the method call sub-module further includes:
and the first log uploading unit is used for generating and sending a first log to a server by the proxy object if the first observer object is recorded in the first observer queue.
In an embodiment of the present invention, the first observer queue acquiring unit includes:
a first chart judging subunit, configured to judge, by the proxy object, whether the first observation attribute is recorded in the preset chart;
a first observer queue obtaining subunit, configured to obtain, if the first observation attribute is recorded in the preset chart, a first observer queue corresponding to the first observation attribute from the proxy object in the preset chart;
The method call sub-module further includes:
a first observer queue creating unit, configured to create, by the proxy object, a first observer queue corresponding to the first observation attribute in the preset chart if the first observation attribute is not recorded in the preset chart;
and the new observer method calling unit is used for calling the new observer method of the first observed object so as to set the proxy object as the observer object of the first observed object.
In an embodiment of the present invention, the method calling submodule includes:
a second object determining unit configured to determine, when the method of the key value observation mode is a remove observer method, a second observer object to be removed by calling the remove observer method, and a second observation attribute of a second observed object observed by the second observer object, by the proxy object;
a second observer queue obtaining unit, configured to obtain, by the proxy object, a second observer queue corresponding to the second observation attribute in the preset chart;
and a second observer object removing unit configured to remove, by the proxy object, a second observer object in the second observer queue.
In an embodiment of the present invention, the second observer object removing unit includes:
a second queue judging subunit, configured to judge, by the proxy object, whether the second observer queue is empty;
a second observer object removal subunit configured to remove, by the proxy object, a second observer object in the second observer queue if the second observer queue is not empty;
the method call sub-module further includes:
a second observer queue deleting unit configured to delete, if the second observer queue is empty, the second observer queue by the proxy object;
and the removing observer method calling unit is used for calling a removing observer method of the second observed object so as to remove the proxy object from the observer object corresponding to the second observed object.
In an embodiment of the present invention, the second observer queue acquiring unit includes:
a second chart judging subunit, configured to judge, by the proxy object, whether the second observation attribute is recorded in the preset chart;
a second observer queue obtaining subunit, configured to obtain, if the second observation attribute is recorded in the preset chart, a second observer queue corresponding to the second observation attribute from the proxy object in the preset chart;
The method call sub-module further includes:
and the second log uploading unit is used for interrupting the flow by the proxy object if the second observation attribute is not recorded in the preset chart, generating and sending a second log to a server.
In an embodiment of the present invention, the method calling submodule includes:
a third object determining unit, configured to determine, when the method of the key value observation mode is an observation attribute current value obtaining method, to invoke the observation attribute current value obtaining method by the proxy object, a corresponding third observer, and a third observation attribute of a third observed person observed by the third observer;
a third observer queue obtaining unit, configured to obtain, by the proxy object, a third observer queue corresponding to the third observation attribute in the preset chart;
a third queue judging unit, configured to judge, by the proxy object, whether the third observer queue is not empty, and whether the third observer object in the third observer queue is an empty object;
a current value obtaining method calling unit, configured to call an observation attribute current value obtaining method of a third observer object if the condition that the third observer queue is not empty and the third observer object in the third observer queue is an empty object is not satisfied;
A third observer removing unit, configured to remove, if the third observer queue is not empty and a third observer object in the third observer queue is an empty object, the third observer in the third observer queue by the proxy object.
In the embodiment of the invention, the agent object uniformly manages the complex KVO relationship through the preset chart, and when the method of the key value observation mode is called, the method of the key value observation mode is called according to the observation attribute and the observer queue which are associated and recorded in the preset chart, so that the problem caused by the disorder of the management of the KVO relationship can be avoided. For example, the problems that the KVO relationship is not logged out, the registered observer objects are not matched, the removed observer objects are not matched, the observer objects are repeatedly added, the observed objects are repeatedly removed, the unsafe release is carried out and the like can be avoided.
The embodiment of the invention also provides an electronic device, as shown in fig. 6, which comprises a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602 and the memory 603 complete communication with each other through the communication bus 604,
a memory 603 for storing a computer program;
the processor 601 is configured to execute the program stored in the memory 603, and implement the following steps:
Creating a proxy object for a key value observation mode when a method of the key value observation mode is called;
acquiring preset structure data by the proxy object, wherein the preset structure data is recorded with an observer object and an observation attribute in a correlated way;
and executing the method of the key value observation mode according to the observer object and the observation attribute which are associated and recorded in the preset structure data.
The communication bus mentioned by the above terminal may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the terminal and other devices.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present invention, a computer readable storage medium is provided, where instructions are stored, which when executed on a computer, cause the computer to perform the processing method for a key value observation mode according to any one of the above embodiments.
In yet another embodiment of the present invention, a computer program product containing instructions that, when run on a computer, cause the computer to perform the processing method for a key value observation mode described in any of the above embodiments is also provided.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (11)

1. A processing method for a key value observation mode, comprising:
creating a proxy object for a key value observation mode when a method of the key value observation mode is called;
acquiring preset structure data by the proxy object, wherein the preset structure data is recorded with an observer object and an observation attribute in a correlated way;
executing the method of the key value observation mode according to the observer object and the observation attribute which are associated and recorded in the preset structure data; the preset structure data is a preset chart; the preset chart records the observed attribute of the observed person and an observer queue corresponding to the observed attribute, and the observer queue records the observer corresponding to the observed attribute;
the method for executing the key value observation mode according to the observer object and the observation attribute which are associated and recorded in the preset structure data comprises the following steps:
when the method of the key value observation mode is a new observer method, determining a first observer object to be newly added for calling the new observer method and a first observed attribute of a first observed object to be observed by the first observer object by the proxy object;
Acquiring a first observer queue corresponding to the first observation attribute from the agent object in the preset chart;
judging whether the first observer object is recorded in the first observer queue or not by the proxy object;
if the first observer object is not recorded in the first observer queue, the agent object adds the first observer object in the first observer queue;
and if the first observer object is recorded in the first observer queue, generating and sending a first log to a server by the proxy object.
2. The method of claim 1, wherein creating a proxy object for a key-value observation mode when invoking the method of the key-value observation mode comprises:
when a method of a key value observation mode is called, a preset message forwarding method is called, and a proxy method for the key value observation mode is added;
and creating a proxy object aiming at the key value observation mode by adopting the proxy method.
3. The method as recited in claim 1, further comprising:
when a release destroying method aiming at the observed object is called, the preset structural data corresponding to the proxy object is destroyed, and the proxy object is emptied.
4. The method of claim 1, wherein the obtaining, by the proxy object in the preset chart, a first observer queue corresponding to the first observation attribute comprises:
judging whether the first observation attribute is recorded in the preset chart or not by the proxy object;
if the first observation attribute is recorded in the preset chart, acquiring a first observer queue corresponding to the first observation attribute in the preset chart by the proxy object;
the method for executing the key value observation mode according to the observation attribute and the observer queue in the preset chart further comprises the following steps:
if the first observation attribute is not recorded in the preset chart, creating a first observer queue corresponding to the first observation attribute in the preset chart by the proxy object;
and calling a new observer method of the first observed object to set the proxy object as the observer object of the first observed object.
5. The method of claim 1, wherein the method of executing the key-value observation mode according to the observation attributes in the preset chart and the corresponding observer queue comprises:
When the method of the key value observation mode is a removing observer method, determining, by the proxy object, a second observer object to be removed by calling the removing observer method and a second observation attribute of a second observed object observed by the second observer object;
acquiring a second observer queue corresponding to the second observation attribute from the agent object in the preset chart;
removing, by the proxy object, a second observer object in the second observer queue.
6. The method of claim 5, wherein the removing, by the proxy object, the second observer object in the second observer queue comprises:
judging whether the second observer queue is empty or not by the proxy object;
if the second observer queue is not empty, removing the second observer object in the second observer queue by the proxy object;
the method for executing the key value observation mode according to the observation attribute and the observer queue in the preset chart further comprises the following steps:
deleting the second observer queue by the proxy object if the second observer queue is empty;
And calling a removing observer method of the second observed object to remove the proxy object from the observer object corresponding to the second observed object.
7. The method of claim 5, wherein the obtaining, by the proxy object in the preset chart, a second observer queue corresponding to the second observation attribute comprises:
judging whether the second observation attribute is recorded in the preset chart or not by the proxy object;
if the second observation attribute is recorded in the preset chart, acquiring a second observer queue corresponding to the second observation attribute in the preset chart by the proxy object;
the method for executing the key value observation mode according to the observation attribute and the observer queue in the preset chart further comprises the following steps:
if the second observation attribute is not recorded in the preset chart, interrupting the flow by the proxy object, generating and sending a second log to a server.
8. The method of claim 1, wherein the method of executing the key-value observation mode according to the observation attributes in the preset chart and the observer queue comprises:
When the method of the key value observation mode is an observation attribute current value acquisition method, determining and calling the observation attribute current value acquisition method by the proxy object, wherein the corresponding third observer and a third observed attribute of a third observed person observed by the third observer;
acquiring a third observer queue corresponding to the third observation attribute from the agent object in the preset chart;
judging whether the third observer queue is not empty or not by the proxy object, and judging that the third observer object in the third observer queue is an empty object;
if the condition that the third observer queue is not empty and the third observer object in the third observer queue is an empty object is not satisfied, calling an observation attribute current value acquisition method of the third observer object;
and if the third observer queue is not empty and a third observer object in the third observer queue is an empty object, removing the third observer in the third observer queue by the proxy object.
9. A processing apparatus for a key value observation mode, comprising:
the agent object creating module is used for creating an agent object aiming at the key value observation mode when the method of the key value observation mode is called;
The structure data acquisition module is used for acquiring preset structure data by the proxy object, wherein the preset structure data is recorded with an observer object and an observation attribute in an associated manner;
the method calling module is used for executing the method of the key value observation mode according to the observer object and the observation attribute which are associated and recorded in the preset structure data; the preset structure data is a preset chart; the preset chart records the observed attribute of the observed person and an observer queue corresponding to the observed attribute, and the observer queue records the observer corresponding to the observed attribute;
the method calling module is used for determining a first observer object to be newly added for calling the new observer method and a first observed attribute of a first observed object to be observed by the first observer object by the proxy object when the method of the key value observation mode is the new observer method;
acquiring a first observer queue corresponding to the first observation attribute from the agent object in the preset chart;
judging whether the first observer object is recorded in the first observer queue or not by the proxy object;
If the first observer object is not recorded in the first observer queue, the agent object adds the first observer object in the first observer queue;
and if the first observer object is recorded in the first observer queue, generating and sending a first log to a server by the proxy object.
10. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for carrying out the method steps of any one of claims 1-8 when executing a program stored on a memory.
11. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-8.
CN202010365711.4A 2020-04-30 2020-04-30 Processing method and device for key value observation mode Active CN111694676B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010365711.4A CN111694676B (en) 2020-04-30 2020-04-30 Processing method and device for key value observation mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010365711.4A CN111694676B (en) 2020-04-30 2020-04-30 Processing method and device for key value observation mode

Publications (2)

Publication Number Publication Date
CN111694676A CN111694676A (en) 2020-09-22
CN111694676B true CN111694676B (en) 2024-03-05

Family

ID=72476951

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010365711.4A Active CN111694676B (en) 2020-04-30 2020-04-30 Processing method and device for key value observation mode

Country Status (1)

Country Link
CN (1) CN111694676B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112835762B (en) * 2021-01-29 2023-09-01 北京奇艺世纪科技有限公司 Data processing method and device, storage medium and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103345521A (en) * 2013-07-17 2013-10-09 腾讯科技(深圳)有限公司 Method and device for processing key values in hash table database
CN107301095A (en) * 2017-06-14 2017-10-27 北京小度信息科技有限公司 System operation method and operating system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150293797A1 (en) * 2014-04-14 2015-10-15 Chall Fry Methods and systems for key value observing

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103345521A (en) * 2013-07-17 2013-10-09 腾讯科技(深圳)有限公司 Method and device for processing key values in hash table database
CN107301095A (en) * 2017-06-14 2017-10-27 北京小度信息科技有限公司 System operation method and operating system

Also Published As

Publication number Publication date
CN111694676A (en) 2020-09-22

Similar Documents

Publication Publication Date Title
US20200050588A1 (en) Automatic file version verification within electronic mail
WO2021180025A1 (en) Message processing method and apparatus, electronic device and medium
US8286253B1 (en) Data leakage prevention for resource limited device
US9355005B2 (en) Detection apparatus and detection method
CN110222107B (en) Data transmission method and related equipment
CN111694676B (en) Processing method and device for key value observation mode
US20180075058A1 (en) Sensitive data management
WO2023275665A1 (en) Managing application security vulnerabilities
CN115437933A (en) Automatic testing method and device, computer equipment and storage medium
CN107291598A (en) Monitoring method, supervising device, monitoring device and storage medium
KR101977428B1 (en) Content handling for applications
CN111125586B (en) Page updating method and device
CN112685247A (en) Alarm suppression method based on Zabbix monitoring system and monitoring system
CN113918835A (en) Item reminding method, item reminding system, terminal device and storage medium
CN112835762B (en) Data processing method and device, storage medium and electronic equipment
CN110928885A (en) Method and device for updating data of Mysql database to Es database
CN113126982B (en) Application program generation and operation method and device
CN109254855B (en) Registration method and device of parameter transmission protocol and electronic equipment
CN110658969B (en) Picture processing method, device, equipment and storage medium
CN112579325A (en) Business object processing method and device, electronic equipment and storage medium
US6581156B1 (en) Method for recording a data state in a data processing system
CN112052054A (en) Function calling method and device, electronic equipment and storage medium
CN114021062A (en) Communication method, system and device
KR100600992B1 (en) Apparatus and method for logging history of mobile communication terminal
CN115687168B (en) File operation notification system and method

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