Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Supply a sample of how to access the client from Tasks and Commands #15

Closed
jensenbox opened this issue May 9, 2016 · 1 comment
Closed
Assignees
Labels

Comments

@jensenbox
Copy link

I am trying to build a "Command" http://www.dropwizard.io/0.9.2/dropwizard-core/apidocs/io/dropwizard/cli/ConfiguredCommand.html and cannot seem to see how to get an EsClient instantiated properly. What am I missing? Got any examples?

@joschi joschi self-assigned this May 10, 2016
@joschi
Copy link
Member

joschi commented May 10, 2016

@jensenbox Simply provide the Client instance from ManagedClient#getClient() as a constructor parameter to your ConfiguredCommand.

@joschi joschi closed this as completed May 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants