From issues-return-58303-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Wed Feb 28 10:34:13 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 607C418067A for ; Wed, 28 Feb 2018 10:34:12 +0100 (CET) Received: (qmail 37834 invoked by uid 500); 28 Feb 2018 09:34:03 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 37784 invoked by uid 99); 28 Feb 2018 09:34:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Feb 2018 09:34:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 25CB1C1829 for ; Wed, 28 Feb 2018 09:34:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id tjvTdtOAsPXc for ; Wed, 28 Feb 2018 09:34:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 4DB155F54E for ; Wed, 28 Feb 2018 09:34:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 89216E018B for ; Wed, 28 Feb 2018 09:34:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 4970524106 for ; Wed, 28 Feb 2018 09:34:00 +0000 (UTC) Date: Wed, 28 Feb 2018 09:34:00 +0000 (UTC) From: "Vladimir Ozerov (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-7421) Thin client Java API - data grid API MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IGNITE-7421?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D163= 80043#comment-16380043 ]=20 Vladimir Ozerov commented on IGNITE-7421: ----------------------------------------- [~kukushal], I did preliminary review. Please address the following issues: 1) I do not think it makes sense to have separate module. Instead, it is be= tter to store client inside {{ignite-core}} because it would simplify proje= ct configuration from user side (one jar instead of two). We already did th= is for thin JDBC driver.=20 2) Once code is moved to the core, please make sure to remove all duplicate= d classes (QueryEntity, QueryIndex, etc) 3) Please pay attention to our common project structure - public classes an= d interfaces are stored inside {{org.apache.ignite}} subpackages. Internal = classes are stored inside {{org.apache.ignite.*internal*}} packages. The sa= me should be done for thin client - {{org.apache.ignite.client}} for public= stuff, {{org.apache.ignite.internal.processors.odbc.thin}} for internal st= uff ("odbc" in package name is an artifact, we will rename it to "client" l= ater). 4) Please make sure that you follow our code convention rules. E.g., we dis= allow wildcards in package declarations. Every class should be defined expl= icitly.=20 > Thin client Java API - data grid API > ------------------------------------ > > Key: IGNITE-7421 > URL: https://issues.apache.org/jira/browse/IGNITE-7421 > Project: Ignite > Issue Type: New Feature > Components: thin client > Reporter: Alexey Kukushkin > Assignee: Alexey Kukushkin > Priority: Major > Labels: data, java, thin > > Implement below Java bindings for the thin client protocol. The client co= nfiguration must support failover and encryption. > Cache > =C2=A0 =C2=A0 JCache (limited) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 getName(): String > =C2=A0 =C2=A0 =C2=A0 =C2=A0 put(key, val) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 get(key): V > =C2=A0 =C2=A0 =C2=A0 =C2=A0 getAll(keys: Set): Map > =C2=A0 =C2=A0 =C2=A0 =C2=A0 containsKey(key): boolean > =C2=A0 =C2=A0 =C2=A0 =C2=A0 getAndPut(key, val): V > =C2=A0 =C2=A0 =C2=A0 =C2=A0 getAndReplace(key, val): V > =C2=A0 =C2=A0 =C2=A0 =C2=A0 getAndRemove(key): V > =C2=A0 =C2=A0 =C2=A0 =C2=A0 putIfAbsent > =C2=A0 =C2=A0 =C2=A0 =C2=A0 replace(key, val) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 replace(key, oldVal, newVal) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 putAll > =C2=A0 =C2=A0 =C2=A0 =C2=A0 clear > =C2=A0 =C2=A0 =C2=A0 =C2=A0 remove(key) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 remove(key, val) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 removeAll() > =C2=A0 =C2=A0 =C2=A0 =C2=A0 removeAll(keys: Set) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 getConfiguration(clazz): Configuration > =C2=A0 =C2=A0 =C2=A0 =C2=A0 close() > =C2=A0 =C2=A0 size(modes: CachePeekMode...) > =C2=A0 =C2=A0 query(qry: Query): QueryCursor > =C2=A0 =C2=A0 query(qry: SqlFieldsQuery): FieldsQueryCursor > =C2=A0 =C2=A0 withKeepBinary(): IgniteCache > Ignite > =C2=A0 =C2=A0 cache(name: String) > =C2=A0 =C2=A0 cacheNames(): Collection > =C2=A0 =C2=A0 binary(): IgniteBinary > =C2=A0 =C2=A0 createCache(name): Cache > =C2=A0 =C2=A0 getOrCreateCache(name): Cache > =C2=A0 =C2=A0 destroyCache(name) > Ignition > =C2=A0 =C2=A0 startClient(:ClientConfiguration): Ignite > ClientConfiguration(port, host, binaryConfiguration, sslConfiguration, > etc...) -- This message was sent by Atlassian JIRA (v7.6.3#76005)