Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Added service multiplexing support. #79

Closed
wants to merge 26 commits into from
Closed

Added service multiplexing support. #79

wants to merge 26 commits into from

Conversation

tmehlinger
Copy link
Contributor

This introduces a TMultiplexingProcessor class which extends TProcessor. This adds the ability for developers to develop services that implement multiple Thrift interfaces. It is inspired by the TMultiplexedProcessor from the Thrift Java library.

Example here: http://stackoverflow.com/questions/19614648/service-multiplexing-using-apache-thrift

Travis Mehlinger added 2 commits January 22, 2015 17:16
This introduces a `TMultiplexingProcessor` class which extends `TProcessor`.
This adds the ability for developers to develop services that implement
multiple Thrift interfaces. It is inspired by the `TMultiplexedProcessor`
from the Thrift Java library.
@hit9
Copy link
Contributor

hit9 commented Feb 6, 2015

👍 @maralla


def register_processor(self, processor):
service = processor._service
name = service.__name__
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may be better to use a more unique name to avoid collision of services with the same name but implementing different methods. Maybe the module name and the service class name?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call, I'll fix that.

@tmehlinger
Copy link
Contributor Author

Somehow got my changes out of sync with develop. Going to close this PR and open a new one.

@tmehlinger tmehlinger closed this Feb 9, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants