[ 
https://issues.apache.org/jira/browse/IGNITE-3314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15451049#comment-15451049
 ] 

Alexey Kuznetsov edited comment on IGNITE-3314 at 8/31/16 4:13 AM:
-------------------------------------------------------------------

I think you could serialize strings and enums with IgniteUtils and serialize 
other fields with ObjectOutput.writeObject.
Also you need to set 
    /** */
    private static final long serialVersionUID = 0L;

to DataSource because of  special logic in Ignite optimized marshaller.

Other than that looks good and once you add tests and updated PR I will merge 
to master.


was (Author: kuaw26):
I think you could serialize strings and enums with IgniteUtils and serialize 
other fields with ObjectOutput.writeObject.
Also you need to set 
    /** */
    private static final long serialVersionUID = 0L;

to DataSource because of  special logic in Ignite optimized marshaller.

Other than that looks good and once you updated PR I will merge to master.

> Implement Serializable in 
> org.apache.ignite.cache.store.cassandra.datasource.DataSource
> ---------------------------------------------------------------------------------------
>
>                 Key: IGNITE-3314
>                 URL: https://issues.apache.org/jira/browse/IGNITE-3314
>             Project: Ignite
>          Issue Type: Sub-task
>          Components: cache
>            Reporter: Igor Rudyak
>            Assignee: Igor Rudyak
>            Priority: Minor
>             Fix For: 1.8
>
>
> Current implementation of 
> org.apache.ignite.cache.store.cassandra.utils.datasource.DataSource doesn't 
> implement Serializable, thus for distributed Ignite clusters, 
> CassandraCacheStoreFactory could only be setup through Spring XML file, but 
> not from code. 
> New version of 
> org.apache.ignite.cache.store.cassandra.utils.datasource.DataSource should  
> implement Serializable



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to