You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2018/11/29 21:42:42 UTC

[GitHub] mikewalch opened a new issue #788: Remove ClientInfo from API

mikewalch opened a new issue #788: Remove ClientInfo from API
URL: https://github.com/apache/accumulo/issues/788
 
 
   `ClientInfo` isn't really necessary in the API as `Properties` can be used instead in most cases. I would like to remove it from the API and make the following changes:
   
   * Remove `changeUser()` and `info()` from AccumuloClient
   * Use `Properties` where `ClientInfo` is used
   * Keep `ClientInfo` as internal class
   * Add `properties()` and `token()` to AccumuoClient. `token()` is needed for code that creates `ClientContext` from `AccumuloClient`.
   * Stop creating `ClientInfo` from `Accumulo.newClient()` builder and create a `Accumulo.newProperties()` builder.
   
   | Current | New |
   |---------|-----|
   | ClientInfo info = client.info() | Properties props = client.properties(); Authentication token = client.token() |
   | client.changerUser(user, token) | Accumulo.newClient().from(oldClient.properties()).as(user, token).build() |
   | ClientInfo info = Accumulo.newClient().to(instance, zoo).from(user, token).info() | Properties props = Accumulo.newProperties().to(instance, zoo).from(user, token).build() |
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services