Skip to content

Commit

Permalink
Rename the project to lightning rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
coderplay committed Jul 15, 2015
1 parent 10a0ccb commit 405cb3b
Show file tree
Hide file tree
Showing 64 changed files with 225 additions and 225 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ subprojects {
group = "info.minzhou.${githubProjectName}" // TEMPLATE: Set to organization of project
}

project(':nfs-rpc-common') {
project(':lightningrpc-common') {
dependencies {
compile 'com.google.protobuf:protobuf-java:2.4.1'
compile 'com.esotericsoftware.kryo:kryo:2.19'
Expand All @@ -46,7 +46,7 @@ project(':nfs-rpc-common') {
}


project(':nfs-rpc-netty') {
project(':lightningrpc-netty') {
dependencies {
compile project(':nfs-rpc-common')
compile 'io.netty:netty-all:4.0.18.Final'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package code.google.nfs.rpc.netty4.benchmark;
package info.minzhou.lightning.rpc.netty4.benchmark;
/**
* nfs-rpc
* Apache License
*
* http://code.google.com/p/nfs-rpc (c) 2011
*/

import code.google.nfs.rpc.benchmark.AbstractBenchmarkServer;
import code.google.nfs.rpc.netty4.server.Netty4Server;
import code.google.nfs.rpc.server.Server;
import info.minzhou.lightning.rpc.benchmark.AbstractBenchmarkServer;
import info.minzhou.lightning.rpc.netty4.server.Netty4Server;
import info.minzhou.lightning.rpc.server.Server;

/**
* Netty RPC Benchmark Server
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package code.google.nfs.rpc.netty4.benchmark;
package info.minzhou.lightning.rpc.netty4.benchmark;
/**
* nfs-rpc
* Apache License
*
* http://code.google.com/p/nfs-rpc (c) 2011
*/

import code.google.nfs.rpc.benchmark.AbstractRPCBenchmarkClient;
import code.google.nfs.rpc.benchmark.BenchmarkTestService;
import code.google.nfs.rpc.netty4.client.Netty4ClientInvocationHandler;
import info.minzhou.lightning.rpc.benchmark.AbstractRPCBenchmarkClient;
import info.minzhou.lightning.rpc.benchmark.BenchmarkTestService;
import info.minzhou.lightning.rpc.netty4.client.Netty4ClientInvocationHandler;

import java.lang.reflect.Proxy;
import java.net.InetSocketAddress;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package code.google.nfs.rpc.netty4.benchmark;
package info.minzhou.lightning.rpc.netty4.benchmark;
/**
* nfs-rpc
* Apache License
*
* http://code.google.com/p/nfs-rpc (c) 2011
*/

import code.google.nfs.rpc.benchmark.AbstractSimpleProcessorBenchmarkClient;
import code.google.nfs.rpc.client.ClientFactory;
import code.google.nfs.rpc.netty4.client.Netty4ClientFactory;
import info.minzhou.lightning.rpc.benchmark.AbstractSimpleProcessorBenchmarkClient;
import info.minzhou.lightning.rpc.client.ClientFactory;
import info.minzhou.lightning.rpc.netty4.client.Netty4ClientFactory;

/**
* Netty Direct Call RPC Benchmark Client
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package code.google.nfs.rpc.netty4.client;
package info.minzhou.lightning.rpc.netty4.client;

/**
* nfs-rpc
Expand All @@ -7,11 +7,11 @@
* http://code.google.com/p/nfs-rpc (c) 2011
*/

import code.google.nfs.rpc.RequestWrapper;
import code.google.nfs.rpc.ResponseWrapper;
import code.google.nfs.rpc.client.AbstractClient;
import code.google.nfs.rpc.client.Client;
import code.google.nfs.rpc.client.ClientFactory;
import info.minzhou.lightning.rpc.RequestWrapper;
import info.minzhou.lightning.rpc.ResponseWrapper;
import info.minzhou.lightning.rpc.client.AbstractClient;
import info.minzhou.lightning.rpc.client.Client;
import info.minzhou.lightning.rpc.client.ClientFactory;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelFutureListener;
import org.apache.commons.logging.Log;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package code.google.nfs.rpc.netty4.client;
package info.minzhou.lightning.rpc.netty4.client;
/**
* nfs-rpc
* Apache License
*
* http://code.google.com/p/nfs-rpc (c) 2011
*/

import code.google.nfs.rpc.NamedThreadFactory;
import code.google.nfs.rpc.client.AbstractClientFactory;
import code.google.nfs.rpc.client.Client;
import code.google.nfs.rpc.netty4.serialize.Netty4ProtocolDecoder;
import code.google.nfs.rpc.netty4.serialize.Netty4ProtocolEncoder;
import info.minzhou.lightning.rpc.NamedThreadFactory;
import info.minzhou.lightning.rpc.client.AbstractClientFactory;
import info.minzhou.lightning.rpc.client.Client;
import info.minzhou.lightning.rpc.netty4.serialize.Netty4ProtocolDecoder;
import info.minzhou.lightning.rpc.netty4.serialize.Netty4ProtocolEncoder;
import io.netty.bootstrap.Bootstrap;
import io.netty.buffer.PooledByteBufAllocator;
import io.netty.channel.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package code.google.nfs.rpc.netty4.client;
package info.minzhou.lightning.rpc.netty4.client;
/**
* nfs-rpc
* Apache License
*
* http://code.google.com/p/nfs-rpc (c) 2011
*/

import code.google.nfs.rpc.ResponseWrapper;
import info.minzhou.lightning.rpc.ResponseWrapper;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import org.apache.commons.logging.Log;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package code.google.nfs.rpc.netty4.client;
package info.minzhou.lightning.rpc.netty4.client;
/**
* nfs-rpc
* Apache License
*
* http://code.google.com/p/nfs-rpc (c) 2011
*/

import code.google.nfs.rpc.client.AbstractClientInvocationHandler;
import code.google.nfs.rpc.client.ClientFactory;
import info.minzhou.lightning.rpc.client.AbstractClientInvocationHandler;
import info.minzhou.lightning.rpc.client.ClientFactory;

import java.net.InetSocketAddress;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

package code.google.nfs.rpc.netty4.eventloop;
package info.minzhou.lightning.rpc.netty4.eventloop;

import io.netty.channel.*;
import io.netty.util.concurrent.EventExecutor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package code.google.nfs.rpc.netty4.serialize;
package info.minzhou.lightning.rpc.netty4.serialize;
/**
* nfs-rpc
* Apache License
*
* http://code.google.com/p/nfs-rpc (c) 2011
*/

import code.google.nfs.rpc.protocol.ByteBufferWrapper;
import info.minzhou.lightning.rpc.protocol.ByteBufferWrapper;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package code.google.nfs.rpc.netty4.serialize;
package info.minzhou.lightning.rpc.netty4.serialize;
/**
* nfs-rpc
* Apache License
*
* http://code.google.com/p/nfs-rpc (c) 2011
*/

import code.google.nfs.rpc.protocol.ProtocolUtils;
import info.minzhou.lightning.rpc.protocol.ProtocolUtils;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandlerContext;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package code.google.nfs.rpc.netty4.serialize;
package info.minzhou.lightning.rpc.netty4.serialize;
/**
* nfs-rpc
* Apache License
*
* http://code.google.com/p/nfs-rpc (c) 2011
*/

import code.google.nfs.rpc.protocol.ProtocolUtils;
import info.minzhou.lightning.rpc.protocol.ProtocolUtils;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelOutboundHandlerAdapter;
import io.netty.channel.ChannelPromise;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package code.google.nfs.rpc.netty4.server;
package info.minzhou.lightning.rpc.netty4.server;
/**
* nfs-rpc
* Apache License
*
* http://code.google.com/p/nfs-rpc (c) 2011
*/

import code.google.nfs.rpc.NamedThreadFactory;
import code.google.nfs.rpc.ProtocolFactory;
import code.google.nfs.rpc.netty4.serialize.Netty4ProtocolDecoder;
import code.google.nfs.rpc.netty4.serialize.Netty4ProtocolEncoder;
import code.google.nfs.rpc.server.Server;
import info.minzhou.lightning.rpc.NamedThreadFactory;
import info.minzhou.lightning.rpc.ProtocolFactory;
import info.minzhou.lightning.rpc.netty4.serialize.Netty4ProtocolDecoder;
import info.minzhou.lightning.rpc.netty4.serialize.Netty4ProtocolEncoder;
import info.minzhou.lightning.rpc.server.Server;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.buffer.PooledByteBufAllocator;
import io.netty.channel.ChannelInitializer;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package code.google.nfs.rpc.netty4.server;
package info.minzhou.lightning.rpc.netty4.server;
/**
* nfs-rpc
* Apache License
*
* http://code.google.com/p/nfs-rpc (c) 2011
*/

import code.google.nfs.rpc.ProtocolFactory;
import code.google.nfs.rpc.RequestWrapper;
import code.google.nfs.rpc.ResponseWrapper;
import info.minzhou.lightning.rpc.ProtocolFactory;
import info.minzhou.lightning.rpc.RequestWrapper;
import info.minzhou.lightning.rpc.ResponseWrapper;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelFutureListener;
import io.netty.channel.ChannelHandlerContext;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
package code.google.nfs.rpc;
package info.minzhou.lightning.rpc;
/**
* nfs-rpc
* Apache License
*
* http://code.google.com/p/nfs-rpc (c) 2011
*/
import code.google.nfs.rpc.protocol.Decoder;
import code.google.nfs.rpc.protocol.Encoder;
import code.google.nfs.rpc.protocol.JavaDecoder;
import code.google.nfs.rpc.protocol.JavaEncoder;
import code.google.nfs.rpc.protocol.KryoDecoder;
import code.google.nfs.rpc.protocol.KryoEncoder;
import code.google.nfs.rpc.protocol.PBDecoder;
import code.google.nfs.rpc.protocol.PBEncoder;
import info.minzhou.lightning.rpc.protocol.Decoder;
import info.minzhou.lightning.rpc.protocol.Encoder;
import info.minzhou.lightning.rpc.protocol.JavaDecoder;
import info.minzhou.lightning.rpc.protocol.JavaEncoder;
import info.minzhou.lightning.rpc.protocol.KryoDecoder;
import info.minzhou.lightning.rpc.protocol.KryoEncoder;
import info.minzhou.lightning.rpc.protocol.PBDecoder;
import info.minzhou.lightning.rpc.protocol.PBEncoder;

/**
* Encoder and Decoder Register
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package code.google.nfs.rpc;
package info.minzhou.lightning.rpc;
/**
* nfs-rpc
* Apache License
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package code.google.nfs.rpc;
package info.minzhou.lightning.rpc;
/**
* nfs-rpc
* Apache License
*
* http://code.google.com/p/nfs-rpc (c) 2011
*/
import code.google.nfs.rpc.protocol.Protocol;
import code.google.nfs.rpc.protocol.RPCProtocol;
import code.google.nfs.rpc.protocol.SimpleProcessorProtocol;
import code.google.nfs.rpc.server.RPCServerHandler;
import code.google.nfs.rpc.server.ServerHandler;
import code.google.nfs.rpc.server.SimpleProcessorServerHandler;
import info.minzhou.lightning.rpc.protocol.Protocol;
import info.minzhou.lightning.rpc.protocol.RPCProtocol;
import info.minzhou.lightning.rpc.protocol.SimpleProcessorProtocol;
import info.minzhou.lightning.rpc.server.RPCServerHandler;
import info.minzhou.lightning.rpc.server.ServerHandler;
import info.minzhou.lightning.rpc.server.SimpleProcessorServerHandler;

/**
* Protocol Factory,for set Protocol class and serverHandler class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package code.google.nfs.rpc;
package info.minzhou.lightning.rpc;
/**
* nfs-rpc
* Apache License
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package code.google.nfs.rpc;
package info.minzhou.lightning.rpc;
/**
* nfs-rpc
* Apache License
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package code.google.nfs.rpc.benchmark;
package info.minzhou.lightning.rpc.benchmark;
/**
* nfs-rpc
* Apache License
Expand All @@ -19,8 +19,8 @@

import com.esotericsoftware.kryo.serializers.DefaultArraySerializers;

import code.google.nfs.rpc.Codecs;
import code.google.nfs.rpc.protocol.PBDecoder;
import info.minzhou.lightning.rpc.Codecs;
import info.minzhou.lightning.rpc.protocol.PBDecoder;

/**
* Abstract benchmark client,test for difference scenes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package code.google.nfs.rpc.benchmark;
package info.minzhou.lightning.rpc.benchmark;
/**
* nfs-rpc
* Apache License
Expand All @@ -13,12 +13,12 @@
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

import code.google.nfs.rpc.NamedThreadFactory;
import code.google.nfs.rpc.protocol.PBDecoder;
import code.google.nfs.rpc.protocol.RPCProtocol;
import code.google.nfs.rpc.protocol.SimpleProcessorProtocol;
import code.google.nfs.rpc.server.Server;
import code.google.nfs.rpc.server.ServerProcessor;
import info.minzhou.lightning.rpc.NamedThreadFactory;
import info.minzhou.lightning.rpc.protocol.PBDecoder;
import info.minzhou.lightning.rpc.protocol.RPCProtocol;
import info.minzhou.lightning.rpc.protocol.SimpleProcessorProtocol;
import info.minzhou.lightning.rpc.server.Server;
import info.minzhou.lightning.rpc.server.ServerProcessor;

import com.esotericsoftware.kryo.serializers.DefaultArraySerializers;
import com.google.protobuf.ByteString;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package code.google.nfs.rpc.benchmark;
package info.minzhou.lightning.rpc.benchmark;
/**
* nfs-rpc
* Apache License
Expand All @@ -13,8 +13,8 @@
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.CyclicBarrier;

import code.google.nfs.rpc.Codecs;
import code.google.nfs.rpc.protocol.RPCProtocol;
import info.minzhou.lightning.rpc.Codecs;
import info.minzhou.lightning.rpc.protocol.RPCProtocol;

/**
* Test for RPC based on reflection Benchmark
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package code.google.nfs.rpc.benchmark;
package info.minzhou.lightning.rpc.benchmark;
/**
* nfs-rpc
* Apache License
Expand All @@ -8,7 +8,7 @@
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.CyclicBarrier;

import code.google.nfs.rpc.client.ClientFactory;
import info.minzhou.lightning.rpc.client.ClientFactory;
/**
* Test for RPC based on direct call Benchmark
*
Expand Down
Loading

0 comments on commit 405cb3b

Please sign in to comment.