You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org> on 2015/05/26 19:01:19 UTC

[jira] [Updated] (SOLR-7595) Allow method chaining for all CollectionAdminRequest

     [ https://issues.apache.org/jira/browse/SOLR-7595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shalin Shekhar Mangar updated SOLR-7595:
----------------------------------------
    Attachment: SOLR-7595.patch

This was slightly more complex because of the hierarchy. In order to make this work, I had to make the base class CollectionAdminRequest as abstract. Though this is a back-compat break but this class is marked as experimental.

I also changed many tests to make use of chaining but I didn't change in all places.

> Allow method chaining for all CollectionAdminRequest
> ----------------------------------------------------
>
>                 Key: SOLR-7595
>                 URL: https://issues.apache.org/jira/browse/SOLR-7595
>             Project: Solr
>          Issue Type: Improvement
>          Components: clients - java, SolrJ
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Shalin Shekhar Mangar
>            Priority: Minor
>             Fix For: Trunk, 5.3
>
>         Attachments: SOLR-7595.patch
>
>
> Allow methods to be chained for all CollectionAdminRequests so that code like the following can be written:
> {code}
> Create createCollectionRequest = new Create()
>               .setCollectionName("testasynccollectioncreation")
>               .setNumShards(1)
>               .setConfigName("conf1")
>               .setAsyncId("1001");
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org