Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement ServiceInstance.getMetadata #57

Closed
spencergibb opened this issue Dec 22, 2015 · 4 comments
Closed

Implement ServiceInstance.getMetadata #57

spencergibb opened this issue Dec 22, 2015 · 4 comments

Comments

@spencergibb
Copy link
Member

New from spring-cloud/spring-cloud-commons#56

@tkvangorder
Copy link

Until this enhancement has been completed, what is the recommended way to get access to the meta-data? We are using Eureka so we don't have to have a generalized solution, we just need access to the meta-data.

@spencergibb
Copy link
Member Author

@tkvangorder this is for spring-cloud-zookeeper. spring-cloud-netflix already implements this.

@tkvangorder
Copy link

Sorry, I should look closer at the issue details, I was reviewing spring-cloud/spring-cloud-netflix#419 but I missed the commit. spring-cloud/spring-cloud-netflix@03f6d12

I'm not using the latest version yet, so I will just cast the service Instances into Eureka instances until we upgrade. (not pretty, but only temporary) Thanks for the help.

@orevial
Copy link

orevial commented Mar 8, 2016

@spencergibb what is the point of implementing ServiceInstance.getMetadata() here ? It seems to me that it is not really used except in discovery client, but when registering instances to Zookeeper the ServiceInstance class used is the one from Curator... shouldn't we consider a way to register a ServiceInstance with a custom payload instead ? Being able to customize the payload would be cool, i.e. not giving ServiceInstance<ZookeeperInstance> but ServiceInstance<ZookeeperInstanceInterface>or such ?!

Or am I missing something here ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants