fixup service filter interface
authorDave Watson <davejwatson@fb.com>
Thu, 21 May 2015 17:40:26 +0000 (10:40 -0700)
committerwoo <woo@fb.com>
Tue, 26 May 2015 18:31:39 +0000 (11:31 -0700)
commitcaf6cdc0cba48d747b8fa9ff5e3e93d3504d2439
treee5ec6aa3b14fa35f51be784689d307c81b3196c1
parentd5550513ae99ac1a9c59bb7a7dcd86e03739b890
fixup service filter interface

Summary:
Based on a more thourough reading of finagle's interface:
* adds close/isAvailable, which seem very close to thrift's interfaces
* ComposedServices are hardcoded to underlying services, to simplify the code (means extra allocs?)
* Made everything a shared_ptr
* Addd ServiceFactoryFilters

Test Plan: Updated the existing unittests and added some new ones

Reviewed By: jsedgwick@fb.com

Subscribers: doug, fugalh, folly-diffs@, jsedgwick, yfeldblum, chalfant

FB internal diff: D2037206

Signature: t1:2037206:1432147489:3464d4c12a9e434d4973febcabbf7b2b3a883257
folly/wangle/service/ClientDispatcher.h
folly/wangle/service/Service.h
folly/wangle/service/ServiceTest.cpp