Commit Graph

78 Commits

Author SHA1 Message Date
zpencer 2fca42feb9
all: prepend internal classes with Internal (#4826)
This is a safer way to hide the classes, because they will not appear
in public targets for some build configurations.
2018-09-05 18:48:42 -07:00
zpencer 4d366ce978
all: move Channelz to io.grpc as InternalChannelz (#4797)
This is an API used to coordinate across packages and must live in
`io.grpc`.

Prepending `Internal` makes it easier to detect and hide this class
from public visibility when using certain build tools.

fixes #4796
2018-09-04 16:52:01 -07:00
Eric Gribkoff fd73209e0c
cronet: report statsTraceCtx.clientOutboundHeaders() (#4768) 2018-08-28 20:19:45 -07:00
Grant Oakley 6fa2822923 cronet: cleanup remaining usages of deprecated CallOptions#of(). (#4720) 2018-08-01 15:09:50 -07:00
Eric Anderson 9d6241eedc Propagate EquivalentAddressGroup attributes to transports
Most of the changes are changing the signature of newClientTransport.
Since this is annoying, I choose to introduce a ClientTransportOptions
object to avoid the churn in the future.

With ClientTransportOptions in place, there's only a few lines necessary
of plumbing for the Attributes: add the field to ClientTransportOptions
and populate it in InternalSubchannel. There are no consumers of the
field in this commit.
2018-07-09 13:00:17 -07:00
Kun Zhang 11e2d6d7f1
cronet: fill in transport attributes as required by CallCredentials (#4532) 2018-06-07 15:28:23 -07:00
Carl Mastrangelo 60a0b0c471
all: normalize copyright header 2018-05-03 14:55:21 -07:00
ZHANG Dapeng ca55b6f7e7
cronet: allow application to provide all threads 2018-03-21 15:04:31 -07:00
Eric Gribkoff 5e8b8c2bee
cronet: delay cast to ExperimentalCronetEngine (#4230) 2018-03-15 19:09:19 -07:00
ZHANG Dapeng a83f67a706
core,netty,okhttp: Transparent retry
Changes:

- `ClientStreamListener.onClose(Status status, RpcProgress rpcProgress, Metadata trailers)` added.

- `AbstractClientStream.transportReportStatus(Status status, RpcProgress rpcProgress, boolean stopDelivery, Metadata trailers)` added

- `ClientCallImpl.ClientStreamListenerImpl` will ignore the arg `rpcProgress` (non retry)

- `RetriableStream.SubListener` will handle `rpcProgress` and decide if transparent retry.

- `NettyClientHandler` and `OkHttpClientTransport` will pass `RpcProgress.REFUSED` to client stream listener for later stream ids when received GOAWAY, or for stream received a RST_STREAM frame with REFUSED code.

- All other files are just a result of refactoring.
2018-03-12 14:12:46 -07:00
Paul Jensen 2fc2270011 cronet: add API to apply TrafficStats tag and UID to Cronet GRPC channels (#4208) 2018-03-12 10:05:25 -07:00
zpencer f0eb6d2102
core,netty,okhttp,testing: nest TransportStats inside SocketStats for channelz (#4190)
Transport ststistics should really be a child member of SocketStats.
While we're at it, let's add the local and remote SocketAddress to
SocketStats, with a test.
2018-03-08 14:56:04 -08:00
Eric Gribkoff 512e55444e
cronet,examples: remove unused imports 2018-02-05 15:45:52 -08:00
zpencer 199a5203c5
core: move ChannelStats and TransportStats to io.grpc.internal.Channelz (#4008) 2018-01-25 23:24:49 -08:00
zpencer b109595ad3
core: move Instrumented, LogId, WithLogId to io.grpc.internal as public (#3995) 2018-01-25 17:19:00 -08:00
Eric Gribkoff c7a5bd7a5c cronet: add build.gradle and script for Cronet deps 2018-01-16 09:16:04 -08:00
Eric Anderson 09a7a22210 cronet: Fix compilation errors 2017-12-14 16:00:41 -08:00
Kun Zhang aeaced1c5d
cronet: pass TransportTracer instead of null. (#3869)
AbstractStream now requires TransportTracer to be non-null.
2017-12-14 15:43:39 -08:00
zpencer 173ca5d332
cronet, grpc-lb, interop-testing: fix lints #3848 2017-12-07 16:09:43 -08:00
zpencer 1e0a9d0bb5
cronet: update CronetClientTransport interface (#3846) 2017-12-07 10:54:15 -08:00
Carl Mastrangelo c9b02db276
all: add Status messages to all statuses 2017-12-04 19:00:16 -08:00
ZHANG Dapeng 76da37b75f
cronet: use TestMethodDescriptors.voidMethod instead of noopMethod 2017-11-27 08:33:32 -08:00
Eric Gribkoff dd0d028810
cronet: update to work with TransportTracer API 2017-11-17 16:36:56 -08:00
Eric Gribkoff 1a42a4c921
cronet: allow multiple annotation objects attached to stream 2017-11-09 15:15:48 -08:00
Eric Gribkoff e7fe224489
cronet: add tests 2017-11-08 15:06:06 -08:00
zpencer 976bda8f6e cronet: add ProxyParam arg to CronetTransportFactory (#3589) 2017-10-19 08:55:56 -07:00
Eric Gribkoff d63711e8bc cronet: make CronetChannelBuilder final 2017-10-11 15:52:01 -07:00
Eric Gribkoff 4d67c3d63f cronet: open-source experimental Cronet transport code 2017-10-06 11:18:03 -07:00