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 22:04:42 UTC

[GitHub] mikewalch commented on issue #788: Remove ClientInfo from API

mikewalch commented on issue #788: Remove ClientInfo from API
URL: https://github.com/apache/accumulo/issues/788#issuecomment-443010815
 
 
   Updated with feedback from @ctubbsii:
   
   * Remove `changeUser()` and `info()` from AccumuloClient
   * Use `Properties` where `ClientInfo` is used
   * Keep `ClientInfo` as internal class
   * Add `properties()` to AccumuoClient
   * Stop creating `ClientInfo` from `Accumulo.newClient()` builder and create a `Accumulo.newClientProperties()` builder.
   
   | Current | New |
   |---------|-----|
   | ClientInfo info = client.info() | Properties props = client.properties() |
   | 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.newClientProperties().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