| Kun Zhang | d32bb47 | 2015-05-06 16:15:53 -0700 | [diff] [blame] | 1 | gRPC-Java - An RPC library and framework |
| 2 | ======================================== |
| 3 | |
| Eric Anderson | 66ce0f2 | 2015-08-11 11:39:07 -0700 | [diff] [blame^] | 4 | [](https://travis-ci.org/grpc/grpc-java) |
| 5 | [](https://coveralls.io/github/grpc/grpc-java?branch=master) |
| 6 | |
| Eric Anderson | 6529132 | 2015-05-15 11:57:05 -0700 | [diff] [blame] | 7 | gRPC-Java works with JDK 6. TLS usage typically requires using Java 8, or Play |
| nmittler | 2483009 | 2015-05-28 13:12:56 -0700 | [diff] [blame] | 8 | Services Dynamic Security Provider on Android. Please see the [Security |
| 9 | Readme](SECURITY.md). |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 10 | |
| Eric Anderson | 1eb16d9 | 2015-05-26 14:22:32 -0700 | [diff] [blame] | 11 | Download |
| 12 | -------- |
| 13 | |
| 14 | Download [the JAR][]. Or for Maven, add to your `pom.xml`: |
| 15 | ```xml |
| 16 | <dependency> |
| 17 | <groupId>io.grpc</groupId> |
| 18 | <artifactId>grpc-all</artifactId> |
| nmittler | d94fedc | 2015-06-12 07:32:50 -0700 | [diff] [blame] | 19 | <version>0.7.1</version> |
| Eric Anderson | 1eb16d9 | 2015-05-26 14:22:32 -0700 | [diff] [blame] | 20 | </dependency> |
| 21 | ``` |
| 22 | |
| 23 | Or for Gradle, add to your dependencies: |
| 24 | ```gradle |
| nmittler | d94fedc | 2015-06-12 07:32:50 -0700 | [diff] [blame] | 25 | compile 'io.grpc:grpc-all:0.7.1' |
| Eric Anderson | 1eb16d9 | 2015-05-26 14:22:32 -0700 | [diff] [blame] | 26 | ``` |
| 27 | |
| nmittler | d94fedc | 2015-06-12 07:32:50 -0700 | [diff] [blame] | 28 | [the JAR]: https://search.maven.org/remote_content?g=io.grpc&a=grpc-all&v=0.7.1 |
| Eric Anderson | 1eb16d9 | 2015-05-26 14:22:32 -0700 | [diff] [blame] | 29 | |
| 30 | Development snapshots are available in [Sonatypes's snapshot |
| 31 | repository](https://oss.sonatype.org/content/repositories/snapshots/). |
| 32 | |
| 33 | For protobuf-based codegen integrated with the Maven build system, you can use |
| 34 | [maven-protoc-plugin][]: |
| 35 | ```xml |
| Kun Zhang | 7a71627 | 2015-06-30 18:13:27 -0700 | [diff] [blame] | 36 | <pluginRepositories> |
| 37 | <pluginRepository> |
| 38 | <releases> |
| 39 | <updatePolicy>never</updatePolicy> |
| 40 | </releases> |
| 41 | <snapshots> |
| 42 | <enabled>false</enabled> |
| 43 | </snapshots> |
| 44 | <id>central</id> |
| 45 | <name>Central Repository</name> |
| 46 | <url>https://repo.maven.apache.org/maven2</url> |
| 47 | </pluginRepository> |
| 48 | <pluginRepository> |
| 49 | <id>protoc-plugin</id> |
| 50 | <url>https://dl.bintray.com/sergei-ivanov/maven/</url> |
| 51 | </pluginRepository> |
| 52 | </pluginRepositories> |
| Eric Anderson | 1eb16d9 | 2015-05-26 14:22:32 -0700 | [diff] [blame] | 53 | <build> |
| 54 | <extensions> |
| 55 | <extension> |
| 56 | <groupId>kr.motd.maven</groupId> |
| 57 | <artifactId>os-maven-plugin</artifactId> |
| 58 | <version>1.2.3.Final</version> |
| 59 | </extension> |
| 60 | </extensions> |
| 61 | <plugins> |
| 62 | <plugin> |
| 63 | <groupId>com.google.protobuf.tools</groupId> |
| 64 | <artifactId>maven-protoc-plugin</artifactId> |
| 65 | <version>0.4.2</version> |
| 66 | <configuration> |
| Kun Zhang | 8bd8ed8 | 2015-07-22 09:19:52 -0700 | [diff] [blame] | 67 | <!-- |
| 68 | The version of protoc must match protobuf-java. If you don't depend on |
| 69 | protobuf-java directly, you will be transitively depending on the |
| 70 | protobuf-java version that grpc depends on. |
| 71 | --> |
| 72 | <protocArtifact>com.google.protobuf:protoc:3.0.0-alpha-2:exe:${os.detected.classifier}</protocArtifact> |
| Eric Anderson | 1eb16d9 | 2015-05-26 14:22:32 -0700 | [diff] [blame] | 73 | <pluginId>grpc-java</pluginId> |
| nmittler | d94fedc | 2015-06-12 07:32:50 -0700 | [diff] [blame] | 74 | <pluginArtifact>io.grpc:protoc-gen-grpc-java:0.7.1:exe:${os.detected.classifier}</pluginArtifact> |
| Eric Anderson | 1eb16d9 | 2015-05-26 14:22:32 -0700 | [diff] [blame] | 75 | </configuration> |
| 76 | <executions> |
| 77 | <execution> |
| 78 | <goals> |
| 79 | <goal>compile</goal> |
| 80 | <goal>compile-custom</goal> |
| 81 | </goals> |
| 82 | </execution> |
| 83 | </executions> |
| 84 | </plugin> |
| 85 | </plugins> |
| 86 | </build> |
| 87 | ``` |
| 88 | |
| 89 | [maven-protoc-plugin]: http://sergei-ivanov.github.io/maven-protoc-plugin/ |
| 90 | |
| 91 | For protobuf-based codegen integrated with the Gradle build system, you can use |
| 92 | [protobuf-gradle-plugin][]: |
| 93 | ```gradle |
| Kun Zhang | 8bd8ed8 | 2015-07-22 09:19:52 -0700 | [diff] [blame] | 94 | apply plugin: 'java' |
| Eric Anderson | 1eb16d9 | 2015-05-26 14:22:32 -0700 | [diff] [blame] | 95 | apply plugin: 'com.google.protobuf' |
| 96 | |
| 97 | buildscript { |
| 98 | repositories { |
| 99 | mavenCentral() |
| 100 | } |
| 101 | dependencies { |
| Kun Zhang | 137b2ef | 2015-08-03 11:10:22 -0700 | [diff] [blame] | 102 | classpath 'com.google.protobuf:protobuf-gradle-plugin:0.6.1' |
| Eric Anderson | 1eb16d9 | 2015-05-26 14:22:32 -0700 | [diff] [blame] | 103 | } |
| 104 | } |
| 105 | |
| Kun Zhang | 8bd8ed8 | 2015-07-22 09:19:52 -0700 | [diff] [blame] | 106 | protobuf { |
| 107 | protoc { |
| 108 | // The version of protoc must match protobuf-java. If you don't depend on |
| 109 | // protobuf-java directly, you will be transitively depending on the |
| 110 | // protobuf-java version that grpc depends on. |
| 111 | artifact = "com.google.protobuf:protoc:3.0.0-alpha-2" |
| 112 | } |
| 113 | plugins { |
| 114 | grpc { |
| 115 | artifact = 'io.grpc:protoc-gen-grpc-java:0.7.1' |
| 116 | } |
| 117 | } |
| 118 | generateProtoTasks { |
| 119 | all()*.plugins { |
| 120 | grpc {} |
| Eric Anderson | 1eb16d9 | 2015-05-26 14:22:32 -0700 | [diff] [blame] | 121 | } |
| 122 | } |
| 123 | } |
| Eric Anderson | 1eb16d9 | 2015-05-26 14:22:32 -0700 | [diff] [blame] | 124 | ``` |
| 125 | |
| 126 | [protobuf-gradle-plugin]: https://github.com/google/protobuf-gradle-plugin |
| 127 | |
| Eric Anderson | fb28ad2 | 2015-01-29 15:00:58 -0800 | [diff] [blame] | 128 | How to Build |
| 129 | ------------ |
| Eric Anderson | 1eb16d9 | 2015-05-26 14:22:32 -0700 | [diff] [blame] | 130 | This section is only necessary if you are making changes to gRPC-Java. |
| Eric Anderson | fb28ad2 | 2015-01-29 15:00:58 -0800 | [diff] [blame] | 131 | |
| Eric Anderson | 6529132 | 2015-05-15 11:57:05 -0700 | [diff] [blame] | 132 | Building requires JDK 8, as our tests use TLS. |
| 133 | |
| Eric Anderson | 66c55ee | 2015-05-07 15:07:13 -0700 | [diff] [blame] | 134 | grpc-java has a C++ code generation plugin for protoc. Since many Java |
| 135 | developers don't have C compilers installed and don't need to modify the |
| 136 | codegen, the build can skip it. To skip, create the file |
| 137 | `<project-root>/gradle.properties` and add `skipCodegen=true`. |
| 138 | |
| 139 | Then, to build, run: |
| 140 | ``` |
| 141 | $ ./gradlew build |
| 142 | ``` |
| 143 | |
| 144 | To install the artifacts to your Maven local repository for use in your own |
| 145 | project, run: |
| 146 | ``` |
| 147 | $ ./gradlew install |
| 148 | ``` |
| 149 | |
| 150 | How to Build Code Generation Plugin |
| 151 | ----------------------------------- |
| 152 | This section is only necessary if you are making changes to the code |
| 153 | generation. Most users only need to use `skipCodegen=true` as discussed above. |
| 154 | |
| Kun Zhang | fd0aed2 | 2015-04-30 17:29:17 -0700 | [diff] [blame] | 155 | ### Build Protobuf |
| Kun Zhang | af9fb6d | 2015-06-30 16:08:46 -0700 | [diff] [blame] | 156 | The codegen plugin is C++ code and requires protobuf 3.0.0-alpha-3.1. |
| Kun Zhang | 111f6dd | 2015-05-05 16:11:27 -0700 | [diff] [blame] | 157 | |
| Kun Zhang | fd0aed2 | 2015-04-30 17:29:17 -0700 | [diff] [blame] | 158 | For Linux, Mac and MinGW: |
| Eric Anderson | fb28ad2 | 2015-01-29 15:00:58 -0800 | [diff] [blame] | 159 | ``` |
| 160 | $ git clone https://github.com/google/protobuf.git |
| 161 | $ cd protobuf |
| Kun Zhang | af9fb6d | 2015-06-30 16:08:46 -0700 | [diff] [blame] | 162 | $ git checkout v3.0.0-alpha-3.1 |
| Eric Anderson | fb28ad2 | 2015-01-29 15:00:58 -0800 | [diff] [blame] | 163 | $ ./autogen.sh |
| 164 | $ ./configure |
| 165 | $ make |
| 166 | $ make check |
| 167 | $ sudo make install |
| Eric Anderson | fb28ad2 | 2015-01-29 15:00:58 -0800 | [diff] [blame] | 168 | ``` |
| 169 | |
| 170 | If you are comfortable with C++ compilation and autotools, you can specify a |
| Kun Zhang | fd0aed2 | 2015-04-30 17:29:17 -0700 | [diff] [blame] | 171 | ``--prefix`` for Protobuf and use ``-I`` in ``CXXFLAGS``, ``-L`` in |
| 172 | ``LDFLAGS``, ``LD_LIBRARY_PATH``, and ``PATH`` to reference it. The |
| 173 | environment variables will be used when building grpc-java. |
| Eric Anderson | fb28ad2 | 2015-01-29 15:00:58 -0800 | [diff] [blame] | 174 | |
| Kun Zhang | fd0aed2 | 2015-04-30 17:29:17 -0700 | [diff] [blame] | 175 | Protobuf installs to ``/usr/local`` by default. |
| 176 | |
| 177 | For Visual C++, please refer to the [Protobuf README](https://github.com/google/protobuf/blob/master/vsprojects/readme.txt) |
| 178 | for how to compile Protobuf. |
| 179 | |
| 180 | #### Linux and MinGW |
| 181 | If ``/usr/local/lib`` is not in your library search path, you can add it by running: |
| Louis Ryan | 65d64cd | 2015-02-18 14:51:42 -0800 | [diff] [blame] | 182 | ``` |
| 183 | $ sudo sh -c 'echo /usr/local/lib >> /etc/ld.so.conf' |
| 184 | $ sudo ldconfig |
| 185 | ``` |
| 186 | |
| Kun Zhang | fd0aed2 | 2015-04-30 17:29:17 -0700 | [diff] [blame] | 187 | #### Mac |
| 188 | Some versions of Mac OS X (e.g., 10.10) doesn't have ``/usr/local`` in the |
| Kun Zhang | 111f6dd | 2015-05-05 16:11:27 -0700 | [diff] [blame] | 189 | default search paths for header files and libraries. It will fail the build of |
| 190 | the codegen. To work around this, you will need to set environment variables: |
| Kun Zhang | fd0aed2 | 2015-04-30 17:29:17 -0700 | [diff] [blame] | 191 | ``` |
| 192 | $ export CXXFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" |
| 193 | ``` |
| 194 | |
| Kun Zhang | 221c534 | 2015-04-29 18:16:15 -0700 | [diff] [blame] | 195 | ### Notes for Visual C++ |
| 196 | |
| Eric Anderson | 456216b | 2015-03-02 16:58:27 -0800 | [diff] [blame] | 197 | When building on Windows and VC++, you need to specify project properties for |
| 198 | Gradle to find protobuf: |
| 199 | ``` |
| Kun Zhang | 221c534 | 2015-04-29 18:16:15 -0700 | [diff] [blame] | 200 | .\gradlew install ^ |
| Kun Zhang | af9fb6d | 2015-06-30 16:08:46 -0700 | [diff] [blame] | 201 | -PvcProtobufInclude=C:\path\to\protobuf-3.0.0-alpha-3.1\src ^ |
| 202 | -PvcProtobufLibs=C:\path\to\protobuf-3.0.0-alpha-3.1\vsprojects\Release |
| Eric Anderson | 456216b | 2015-03-02 16:58:27 -0800 | [diff] [blame] | 203 | ``` |
| 204 | |
| 205 | Since specifying those properties every build is bothersome, you can instead |
| Kun Zhang | 2f74971 | 2015-05-06 13:10:28 -0700 | [diff] [blame] | 206 | create ``<project-root>\gradle.properties`` with contents like: |
| Eric Anderson | 456216b | 2015-03-02 16:58:27 -0800 | [diff] [blame] | 207 | ``` |
| Kun Zhang | af9fb6d | 2015-06-30 16:08:46 -0700 | [diff] [blame] | 208 | vcProtobufInclude=C:\\path\\to\\protobuf-3.0.0-alpha-3.1\\src |
| 209 | vcProtobufLibs=C:\\path\\to\\protobuf-3.0.0-alpha-3.1\\vsprojects\\Release |
| Eric Anderson | 456216b | 2015-03-02 16:58:27 -0800 | [diff] [blame] | 210 | ``` |
| 211 | |
| Kun Zhang | 221c534 | 2015-04-29 18:16:15 -0700 | [diff] [blame] | 212 | The build script will build the codegen for the same architecture as the Java |
| 213 | runtime installed on your system. If you are using 64-bit JVM, the codegen will |
| 214 | be compiled for 64-bit, that means you must have compiled Protobuf in 64-bit. |
| 215 | |
| 216 | ### Notes for MinGW on Windows |
| 217 | If you have both MinGW and VC++ installed on Windows, VC++ will be used by |
| Kun Zhang | 2f74971 | 2015-05-06 13:10:28 -0700 | [diff] [blame] | 218 | default. To override this default and use MinGW, add ``-PvcDisable=true`` |
| 219 | to your Gradle command line or add ``vcDisable=true`` to your |
| 220 | ``<project-root>\gradle.properties``. |
| Kun Zhang | 221c534 | 2015-04-29 18:16:15 -0700 | [diff] [blame] | 221 | |
| mekka | 9990794 | 2015-08-07 23:28:06 -0700 | [diff] [blame] | 222 | ### Notes for Unsupported Operating Systems |
| Kun Zhang | 9805e27 | 2015-05-12 17:03:19 -0700 | [diff] [blame] | 223 | The build script pulls pre-compiled ``protoc`` from Maven Central by default. |
| 224 | We have built ``protoc`` binaries for popular systems, but they may not work |
| 225 | for your system. If ``protoc`` cannot be downloaded or would not run, you can |
| 226 | use the one that has been built by your own, by adding this property to |
| 227 | ``<project-root>/gradle.properties``: |
| 228 | ``` |
| 229 | protoc=/path/to/protoc |
| 230 | ``` |
| 231 | |
| Eric Anderson | fb28ad2 | 2015-01-29 15:00:58 -0800 | [diff] [blame] | 232 | Navigating Around the Source |
| 233 | ---------------------------- |
| 234 | |
| mekka | 9990794 | 2015-08-07 23:28:06 -0700 | [diff] [blame] | 235 | Here's a quick readers' guide to the code to help folks get started. At a high |
| Kun Zhang | fc85a40 | 2015-08-05 16:48:15 -0700 | [diff] [blame] | 236 | level there are three distinct layers to the library: __Stub__, __Channel__ & |
| 237 | __Transport__. |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 238 | |
| Eric Anderson | fb28ad2 | 2015-01-29 15:00:58 -0800 | [diff] [blame] | 239 | ### Stub |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 240 | |
| Kun Zhang | fc85a40 | 2015-08-05 16:48:15 -0700 | [diff] [blame] | 241 | The Stub layer is what is exposed to most developers and provides type-safe |
| 242 | bindings to whatever datamodel/IDL/interface you are adapting. gRPC comes with |
| 243 | a [plugin](https://github.com/google/grpc-java/blob/master/compiler) to the |
| 244 | protocol-buffers compiler that generates Stub interfaces out of `.proto` files, |
| 245 | but bindings to other datamodel/IDL should be trivial to add and are welcome. |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 246 | |
| 247 | #### Key Interfaces |
| 248 | |
| nmittler | f831458 | 2015-01-27 10:25:39 -0800 | [diff] [blame] | 249 | [Stream Observer](https://github.com/google/grpc-java/blob/master/stub/src/main/java/io/grpc/stub/StreamObserver.java) |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 250 | |
| Eric Anderson | fb28ad2 | 2015-01-29 15:00:58 -0800 | [diff] [blame] | 251 | ### Channel |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 252 | |
| Kun Zhang | fc85a40 | 2015-08-05 16:48:15 -0700 | [diff] [blame] | 253 | The Channel layer is an abstraction over Transport handling that is suitable for |
| 254 | interception/decoration and exposes more behavior to the application than the |
| 255 | Stub layer. It is intended to be easy for application frameworks to use this |
| 256 | layer to address cross-cutting concerns such as logging, monitoring, auth etc. |
| 257 | Flow-control is also exposed at this layer to allow more sophisticated |
| 258 | applications to interact with it directly. |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 259 | |
| 260 | #### Common |
| 261 | |
| nmittler | f831458 | 2015-01-27 10:25:39 -0800 | [diff] [blame] | 262 | * [Metadata - headers & trailers](https://github.com/google/grpc-java/blob/master/core/src/main/java/io/grpc/Metadata.java) |
| 263 | * [Status - error code namespace & handling](https://github.com/google/grpc-java/blob/master/core/src/main/java/io/grpc/Status.java) |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 264 | |
| 265 | #### Client |
| nmittler | f831458 | 2015-01-27 10:25:39 -0800 | [diff] [blame] | 266 | * [Channel - client side binding](https://github.com/google/grpc-java/blob/master/core/src/main/java/io/grpc/Channel.java) |
| Kun Zhang | 2ee4d02 | 2015-06-04 16:39:25 -0700 | [diff] [blame] | 267 | * [Client Call](https://github.com/google/grpc-java/blob/master/core/src/main/java/io/grpc/ClientCall.java) |
| nmittler | f831458 | 2015-01-27 10:25:39 -0800 | [diff] [blame] | 268 | * [Client Interceptor](https://github.com/google/grpc-java/blob/master/core/src/main/java/io/grpc/ClientInterceptor.java) |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 269 | |
| 270 | #### Server |
| nmittler | f831458 | 2015-01-27 10:25:39 -0800 | [diff] [blame] | 271 | * [Server call handler - analog to Channel on server](https://github.com/google/grpc-java/blob/master/core/src/main/java/io/grpc/ServerCallHandler.java) |
| 272 | * [Server Call](https://github.com/google/grpc-java/blob/master/core/src/main/java/io/grpc/ServerCall.java) |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 273 | |
| 274 | |
| Eric Anderson | fb28ad2 | 2015-01-29 15:00:58 -0800 | [diff] [blame] | 275 | ### Transport |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 276 | |
| mekka | 9990794 | 2015-08-07 23:28:06 -0700 | [diff] [blame] | 277 | The Transport layer does the heavy lifting of putting and taking bytes off the |
| Kun Zhang | fc85a40 | 2015-08-05 16:48:15 -0700 | [diff] [blame] | 278 | wire. The interfaces to it are abstract just enough to allow plugging in of |
| 279 | different implementations. Transports are modeled as `Stream` factories. The |
| 280 | variation in interface between a server Stream and a client Stream exists to |
| 281 | codify their differing semantics for cancellation and error reporting. |
| 282 | |
| 283 | Note the transport layer API is considered internal to gRPC and has weaker API |
| 284 | guarantees than the core API under package `io.grpc`. |
| 285 | |
| mekka | 9990794 | 2015-08-07 23:28:06 -0700 | [diff] [blame] | 286 | gRPC comes with three Transport implementations: |
| Kun Zhang | fc85a40 | 2015-08-05 16:48:15 -0700 | [diff] [blame] | 287 | |
| 288 | 1. The [Netty-based](https://github.com/google/grpc-java/blob/master/netty) |
| 289 | transport is the main transport implementation based on |
| 290 | [Netty](http://netty.io). It is for both the client and the server. |
| 291 | 2. The [OkHttp-based](https://github.com/google/grpc-java/blob/master/okhttp) |
| 292 | transport is a lightweight transport based on |
| 293 | [OkHttp](http://square.github.io/okhttp/). It is mainly for use on Android |
| mekka | 9990794 | 2015-08-07 23:28:06 -0700 | [diff] [blame] | 294 | and is for client only. |
| Kun Zhang | fc85a40 | 2015-08-05 16:48:15 -0700 | [diff] [blame] | 295 | 3. The |
| mekka | 9990794 | 2015-08-07 23:28:06 -0700 | [diff] [blame] | 296 | [inProcess](https://github.com/google/grpc-java/blob/master/core/src/main/java/io/grpc/transport/inprocess) |
| Kun Zhang | fc85a40 | 2015-08-05 16:48:15 -0700 | [diff] [blame] | 297 | transport is for when a server is in the same process as the client. It is |
| 298 | useful for testing. |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 299 | |
| 300 | #### Common |
| 301 | |
| nmittler | f831458 | 2015-01-27 10:25:39 -0800 | [diff] [blame] | 302 | * [Stream](https://github.com/google/grpc-java/blob/master/core/src/main/java/io/grpc/transport/Stream.java) |
| 303 | * [Stream Listener](https://github.com/google/grpc-java/blob/master/core/src/main/java/io/grpc/transport/StreamListener.java) |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 304 | |
| 305 | #### Client |
| 306 | |
| nmittler | f831458 | 2015-01-27 10:25:39 -0800 | [diff] [blame] | 307 | * [Client Stream](https://github.com/google/grpc-java/blob/master/core/src/main/java/io/grpc/transport/ClientStream.java) |
| 308 | * [Client Stream Listener](https://github.com/google/grpc-java/blob/master/core/src/main/java/io/grpc/transport/ClientStreamListener.java) |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 309 | |
| 310 | #### Server |
| 311 | |
| nmittler | f831458 | 2015-01-27 10:25:39 -0800 | [diff] [blame] | 312 | * [Server Stream](https://github.com/google/grpc-java/blob/master/core/src/main/java/io/grpc/transport/ServerStream.java) |
| 313 | * [Server Stream Listener](https://github.com/google/grpc-java/blob/master/core/src/main/java/io/grpc/transport/ServerStreamListener.java) |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 314 | |
| 315 | |
| Eric Anderson | fb28ad2 | 2015-01-29 15:00:58 -0800 | [diff] [blame] | 316 | ### Examples |
| ejona | d4531da | 2014-12-15 10:24:42 -0800 | [diff] [blame] | 317 | |
| Kun Zhang | fc85a40 | 2015-08-05 16:48:15 -0700 | [diff] [blame] | 318 | Tests showing how these layers are composed to execute calls using protobuf |
| 319 | messages can be found here |
| 320 | https://github.com/google/grpc-java/tree/master/interop-testing/src/main/java/io/grpc/testing/integration |