Commit Graph

6498 Commits

Author SHA1 Message Date
zsurocking c449d90256 Merge pull request #132 from zsurocking/removenanotest
Remove nano codegen test temporarily. Currently I haven't figuired
2015-02-25 20:50:12 -08:00
Xiao Hang b8f5c90e48 Remove nano codegen test temporarily. Currently I haven't figuired
out how to make it work with "gradle clean build"
Somehow temporaryDir is not created when doing gradle clean build,
so the test complains about path not found
2015-02-25 20:43:33 -08:00
Xiao Hang 78caf51297 Update Android Helloworld example 2015-02-25 19:27:06 -08:00
Jayant Kolhe 5cb7b6d2e9 Merge pull request #113 from grpc/mugurm-patch-1
Create CONTRIBUTING.md
2015-02-25 18:10:14 -08:00
Mugur Marculescu 69e778fbdd Update CONTRIBUTING.md 2015-02-25 18:08:52 -08:00
Mugur Marculescu ce3de059be Merge pull request #71 from LisaFC/master
New Java tutorial
2015-02-25 17:17:44 -08:00
rocking c60f0171cb Open source nano proto related code
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=87180572
2015-02-25 15:36:20 -08:00
zhangkun83 c01af90d18 Polish javadoc for stub/* 2015-02-25 15:20:36 -08:00
Mugur Marculescu 961ecc5a2c Update CONTRIBUTING.md
Fix typos.
2015-02-25 14:47:42 -08:00
Xiao Hang dcff315dc3 Add nano support to Java codegen. Now the user can specify a flag nano=true
to generate naon related code in grpc service interface

Commandline example:
protoc --plugin=protoc-gen-java_rpc=build/binaries/java_pluginExecutable/java_plugin \
  --java_rpc_out=nano=true:"$OUTPUT_FILE" --javanano_out=ignore_services=true:"$OUTPUT_FILE" \
  --proto_path="$DIR_OF_PROTO_FILE" "$PROTO_FILE
2015-02-25 14:38:03 -08:00
LisaFC c6deececa7 changed gradle command to ./gradlew 2015-02-25 22:34:56 +00:00
LisaFC 13177db545 made last added comment a bit simpler! 2015-02-25 22:30:00 +00:00
Dan Ciruli 66206399a6 Update README.md 2015-02-25 14:29:11 -08:00
LisaFC e691ffb8d4 Added note about using most recent compiler 2015-02-25 22:25:47 +00:00
Louis Ryan 46dd47f86b Cleanup Javadoc for Channel, ServerCall and their related classes. 2015-02-25 14:22:12 -08:00
LisaFC fa27c1a4d1 Update javatutorial.md
Updated with @nmittler's edits.
2015-02-25 22:20:20 +00:00
Jakob Buchgraber 1961402104 Revert "Have SendGrpcFrameCommand constructor take an AbstractStream object instead of a stream id."
This reverts commit 0d78268b83.

Some unit tests aren't compiling due to this change.
2015-02-25 14:05:57 -08:00
Jakob Buchgraber 7ef1781016 Cleanup and Nitpicking
- Renamed 'eventGroup' property to 'group' as this what's used elsewhere.
- Moved assignment of the channel before the listener is added as currently
  there is a (theoretical) chance that the listener is executed before the assignment
  to channel happens, namely in case the Future is already done when the listener
  is added.
- Removed comment that seemed out of place / relict.
2015-02-25 12:28:25 -08:00
Jakob Buchgraber 0d78268b83 Have SendGrpcFrameCommand constructor take an AbstractStream object instead of a stream id.
As part of the effort to remove all blocking bits from the NettyClientStream with
this commit the SendGrpcFrameCommand now takes a stream object instead of the
stream id. This will be necessary as in a non blocking world the stream id might
not have yet been allocated when the SendGrpcFrameCommand gets instantiated.
2015-02-25 12:20:35 -08:00
Nathan Mittler 1a39f7b248 Merge pull request #128 from jpinner/bump_hpack
Upgrade com.twitter.hpack to v0.10.1
2015-02-25 11:08:21 -08:00
nmittler e82a000835 Removing java examples from grpc-common 2015-02-25 11:03:42 -08:00
Nathan Mittler 194cad3f60 Merge pull request #127 from nmittler/helloworld
Adding HelloWorld example to grpc-java repo.
2015-02-25 10:58:56 -08:00
nmittler 87daf0e0dc Adding HelloWorld example to grpc-java repo. 2015-02-25 10:56:51 -08:00
Lisa Carey c716badd56 Fixed typo 2015-02-25 18:48:22 +00:00
Lisa Carey d60ef19609 New shiny Java tutorial 2015-02-25 18:46:17 +00:00
Jeff Pinner b1cc7cc09d Upgrade com.twitter.hpack to v0.10.1 2015-02-25 10:17:23 -08:00
Nathan Mittler 488f8a9989 Merge pull request #117 from nmittler/stream_removal_fix
Fixing memory leak in stream removal policy
2015-02-25 09:55:40 -08:00
Tim Emiola 7f6bb722e5 Remove superfluous link to protobuf install 2015-02-24 15:57:30 -08:00
Tim Emiola f3b5e7ab20 Update the Maven link 2015-02-24 15:56:44 -08:00
Eric Anderson 61179abcaa Set encoding for Java source to UTF-8
Our new example uses UTF-8 characters. On systems that don't have UTF-8 as
their default locale, the build fails without the override.
2015-02-24 23:02:50 +00:00
Nathan Mittler 360a84f42a Merge pull request #108 from nmittler/route_guide
Adding RouteGuide example and deleting others.
2015-02-24 13:59:07 -08:00
nmittler b897a89e78 Adding RouteGuide example and deleting others. 2015-02-24 13:58:16 -08:00
Nathan Mittler 494d273b05 Merge pull request #112 from nmittler/comments
Some comment cleanup in the Netty builders.
2015-02-24 13:17:47 -08:00
nmittler 23f513c0d2 Some comment cleanup in the Netty builders. 2015-02-24 13:16:21 -08:00
nmittler cc170418ea Fixing memory leak in stream removal policy
The stream removal policy was never being added as a handler, so it was
never starting its periodic timer to remove streams.
2015-02-24 12:55:26 -08:00
Tim Emiola 3b7d09bd34 Fixed Maven version 2015-02-24 03:58:40 -08:00
Tim Emiola 1cd1209c71 Adds a quickstart README for java with working instructions 2015-02-23 19:17:53 -08:00
Louis Ryan 425e3c0b7f Remove dead GrpcFramingUtil class 2015-02-23 17:44:23 -08:00
Mugur Marculescu 5b1bc15182 Create CONTRIBUTING.md
Adding a half filled contributing readme file.
2015-02-23 17:26:08 -08:00
Louis Ryan 95c6f5082c Udate TODOs to use Github user names 2015-02-23 12:46:28 -08:00
Eric Anderson 7b25aaf7e7 Remove target from .gitignore
We are no longer using Maven, so target/ directories should not longer
be ignored.
2015-02-23 11:59:13 -08:00
Eric Anderson 3af5add7b2 Add java_package proto option for portability
Some protoc Java environments have a package to put all proto namespaces
under, since proto namespaces aren't aligned with Java packages.
2015-02-23 10:38:08 -08:00
Jakob Buchgraber c6c0a3bf69 Remove user prefix from NettyServerBuilder.userBossEventLoopGroup(). Fixes #73 2015-02-20 13:43:20 -08:00
Jakob Buchgraber bd81a58c42 Add duration paramter to QPS Client and remove "server_threads" parameter.
The QpsClient no longer executes a fixed number of RPCs but runs for a period of time now (see #83).
After some discussion with @ejona86, we also agreed to remove the "server_threads" parameter
and to no longer use a `DirectExecutor` and thus run the QPS Server without any tweaks and
modifications. We believe/hope that this change will make the comparison between the C++ and
Java versions less "Apples and Oranges".

The "client_threads" parameter was renamed to "concurrent_calls" to better reflect what it
acutally does.

Furthermore, I updated the gradle build script to create separate executables for the
client and the server.

I also added a README.
2015-02-20 13:32:55 -08:00
Eric Anderson ee6c9d7b52 Add scary JavaDoc to Metadata.setAuthority() 2015-02-20 08:54:08 -08:00
Eric Anderson dbf7d529bd Make sure to close InputStream even if cancelled 2015-02-20 08:52:51 -08:00
Jakob Buchgraber f2f120922d Fix race for stream id in OkHttpClientTransport.
When running benchmarks using the okhttp transport with lots of
streams per channel we would see the occasional GOAWAY frame with
the server logging exceptions of the like "io.netty.handler.codec.http2.Http2Exception: Request stream 575 is behind the next expected stream 583".

As quickly identified by @ejona86, there is a race between creating a new stream id and writing the header on the wire.
Putting both under the same lock ensures that those two always go together.

After this change the errors disappeared. The perf impact should be small as the actual write to
the socket doesn't happen within the lock, but only the scheduling of the write.
2015-02-19 21:29:31 -08:00
Eric Anderson b10aaf8c77 Inform users they need Maven 3.2 to build our deps 2015-02-19 13:14:00 -08:00
Eric Anderson 746eccaced Fix inbound flow control for Calls.blockingServerStreamingCall
asyncServerStreamingCall provides the initial request(1).

Fixes #93
2015-02-19 09:37:09 -08:00
Tim Emiola 5c1b10a4f1 Removes the unused protos, updates the README to reflect the protos in use 2015-02-19 07:52:13 -08:00