[
https://issues.apache.org/jira/browse/IGNITE-28767?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ilya Shishkov updated IGNITE-28767:
-----------------------------------
Description:
As much as possible DTO's transferred in the {{DiscoveryDataBag}}
({{DiscoveryDataPacket}}) should be transfromed to a {{Message}}.
The following DTO's implement {{Serializable}}:
# {{QueryEntity}}
# {{QueryEntityEx}}
They are transferred in the {{DiscoveryDataBag}} ({{DiscoveryDataPacket}}):
{{QueryProposalsDataBagItem}} -> {{SchemaProposeDiscoveryMessage}} ->
SchemaAbstractOperation}} -> {{SchemaAddQueryEntityOperation}}.
Some important tips:
# Implementation of {{Serializable}} should be removed if possible. (If not
stored somewhere in MetaStorage, or in PDS).
# If it is difficult to transform to {{Message}} or DTO belongs to the public
API, message-clone DTO can be added, eg. {{QueryIndexMessage}}.
# Keep in mind {{#writeObject}} / {{#readObject}} and {{#readExternal}} /
{{#writeExternal}} methods, if any.
was:
As much as possible DTO's transferred in the {{DiscoveryDataBag}}
({{DiscoveryDataPacket}}) should be transfromed to a {{Message}}.
The following DTO's implement {{Serializable}}:
# {{QueryEntity}}
# {{QueryEntityEx}}
They are transferred in the {{DiscoveryDataBag}} ({{DiscoveryDataPacket}}):
{{QueryProposalsDataBagItem}} -> {{SchemaProposeDiscoveryMessage}}->
SchemaAbstractOperation}} -> {{SchemaAddQueryEntityOperation}}.
Some important tips:
# Implementation of {{Serializable}} should be removed if possible. (If not
stored somewhere in MetaStorage, or in PDS).
# If it is difficult to transform to {{Message}} or DTO belongs to the public
API, message-clone DTO can be added, eg. {{QueryIndexMessage}}.
# Keep in mind {{#writeObject}} / {{#readObject}} and {{#readExternal}} /
{{#writeExternal}} methods, if any.
> Use Message DTO to transfer QueryEntity
> ---------------------------------------
>
> Key: IGNITE-28767
> URL: https://issues.apache.org/jira/browse/IGNITE-28767
> Project: Ignite
> Issue Type: Task
> Reporter: Ilya Shishkov
> Assignee: Ilya Shishkov
> Priority: Minor
> Labels: IEP-132, ise
> Fix For: 2.19
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> As much as possible DTO's transferred in the {{DiscoveryDataBag}}
> ({{DiscoveryDataPacket}}) should be transfromed to a {{Message}}.
> The following DTO's implement {{Serializable}}:
> # {{QueryEntity}}
> # {{QueryEntityEx}}
> They are transferred in the {{DiscoveryDataBag}} ({{DiscoveryDataPacket}}):
> {{QueryProposalsDataBagItem}} -> {{SchemaProposeDiscoveryMessage}} ->
> SchemaAbstractOperation}} -> {{SchemaAddQueryEntityOperation}}.
> Some important tips:
> # Implementation of {{Serializable}} should be removed if possible. (If not
> stored somewhere in MetaStorage, or in PDS).
> # If it is difficult to transform to {{Message}} or DTO belongs to the public
> API, message-clone DTO can be added, eg. {{QueryIndexMessage}}.
> # Keep in mind {{#writeObject}} / {{#readObject}} and {{#readExternal}} /
> {{#writeExternal}} methods, if any.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)