Download gecko Free Java Code
Description
A RPC framework in taobao based on java NIO.
Source Files
The download file gecko-master.zip has the following entries.
COPYING.txt/*ww w .ja va2 s . c o m*/
README.md
clover.license
pom.xml
src/main/java/com/taobao/gecko/core/buffer/AbstractIoBuffer.java
src/main/java/com/taobao/gecko/core/buffer/BufferDataException.java
src/main/java/com/taobao/gecko/core/buffer/CachedBufferAllocator.java
src/main/java/com/taobao/gecko/core/buffer/IoBuffer.java
src/main/java/com/taobao/gecko/core/buffer/IoBufferAllocator.java
src/main/java/com/taobao/gecko/core/buffer/IoBufferHexDumper.java
src/main/java/com/taobao/gecko/core/buffer/IoBufferWrapper.java
src/main/java/com/taobao/gecko/core/buffer/SimpleBufferAllocator.java
src/main/java/com/taobao/gecko/core/command/AbstractResponseCommand.java
src/main/java/com/taobao/gecko/core/command/Command.java
src/main/java/com/taobao/gecko/core/command/CommandFactory.java
src/main/java/com/taobao/gecko/core/command/CommandHeader.java
src/main/java/com/taobao/gecko/core/command/Constants.java
src/main/java/com/taobao/gecko/core/command/RequestCommand.java
src/main/java/com/taobao/gecko/core/command/ResponseCommand.java
src/main/java/com/taobao/gecko/core/command/ResponseStatus.java
src/main/java/com/taobao/gecko/core/command/kernel/BooleanAckCommand.java
src/main/java/com/taobao/gecko/core/command/kernel/DummyAckCommand.java
src/main/java/com/taobao/gecko/core/command/kernel/DummyRequestCommand.java
src/main/java/com/taobao/gecko/core/command/kernel/HeartBeatRequestCommand.java
src/main/java/com/taobao/gecko/core/config/Configuration.java
src/main/java/com/taobao/gecko/core/core/CodecFactory.java
src/main/java/com/taobao/gecko/core/core/Controller.java
src/main/java/com/taobao/gecko/core/core/ControllerLifeCycle.java
src/main/java/com/taobao/gecko/core/core/ControllerStateListener.java
src/main/java/com/taobao/gecko/core/core/Dispatcher.java
src/main/java/com/taobao/gecko/core/core/EventType.java
src/main/java/com/taobao/gecko/core/core/Handler.java
src/main/java/com/taobao/gecko/core/core/ServerController.java
src/main/java/com/taobao/gecko/core/core/Session.java
src/main/java/com/taobao/gecko/core/core/SessionConfig.java
src/main/java/com/taobao/gecko/core/core/SessionManager.java
src/main/java/com/taobao/gecko/core/core/SocketOption.java
src/main/java/com/taobao/gecko/core/core/UDPSession.java
src/main/java/com/taobao/gecko/core/core/WriteMessage.java
src/main/java/com/taobao/gecko/core/core/impl/AbstractController.java
src/main/java/com/taobao/gecko/core/core/impl/AbstractSession.java
src/main/java/com/taobao/gecko/core/core/impl/ByteBufferCodecFactory.java
src/main/java/com/taobao/gecko/core/core/impl/ByteBufferWriteMessage.java
src/main/java/com/taobao/gecko/core/core/impl/FileWriteMessage.java
src/main/java/com/taobao/gecko/core/core/impl/FutureImpl.java
src/main/java/com/taobao/gecko/core/core/impl/FutureLockImpl.java
src/main/java/com/taobao/gecko/core/core/impl/HandlerAdapter.java
src/main/java/com/taobao/gecko/core/core/impl/PoisonWriteMessage.java
src/main/java/com/taobao/gecko/core/core/impl/PoolDispatcher.java
src/main/java/com/taobao/gecko/core/core/impl/StandardSocketOption.java
src/main/java/com/taobao/gecko/core/core/impl/TextLineCodecFactory.java
src/main/java/com/taobao/gecko/core/core/impl/UDPHandlerAdapter.java
src/main/java/com/taobao/gecko/core/extension/ConnectFailListener.java
src/main/java/com/taobao/gecko/core/extension/GeckoTCPConnectorController.java
src/main/java/com/taobao/gecko/core/nio/NioSession.java
src/main/java/com/taobao/gecko/core/nio/NioSessionConfig.java
src/main/java/com/taobao/gecko/core/nio/SelectionKeyHandler.java
src/main/java/com/taobao/gecko/core/nio/SingleConnector.java
src/main/java/com/taobao/gecko/core/nio/TCPConnectorController.java
src/main/java/com/taobao/gecko/core/nio/TCPController.java
src/main/java/com/taobao/gecko/core/nio/UDPConnectorController.java
src/main/java/com/taobao/gecko/core/nio/UDPController.java
src/main/java/com/taobao/gecko/core/nio/impl/AbstractNioSession.java
src/main/java/com/taobao/gecko/core/nio/impl/DatagramChannelController.java
src/main/java/com/taobao/gecko/core/nio/impl/NioController.java
src/main/java/com/taobao/gecko/core/nio/impl/NioTCPSession.java
src/main/java/com/taobao/gecko/core/nio/impl/NioUDPSession.java
src/main/java/com/taobao/gecko/core/nio/impl/Reactor.java
src/main/java/com/taobao/gecko/core/nio/impl/SelectorManager.java
src/main/java/com/taobao/gecko/core/nio/impl/SocketChannelController.java
src/main/java/com/taobao/gecko/core/nio/impl/TimerRef.java
src/main/java/com/taobao/gecko/core/nio/impl/TimerRefQueue.java
src/main/java/com/taobao/gecko/core/nio/input/ChannelInputStream.java
src/main/java/com/taobao/gecko/core/nio/output/ChannelOutputStream.java
src/main/java/com/taobao/gecko/core/statistics/Statistics.java
src/main/java/com/taobao/gecko/core/statistics/impl/DefaultStatistics.java
src/main/java/com/taobao/gecko/core/statistics/impl/SimpleStatistics.java
src/main/java/com/taobao/gecko/core/util/ByteBufferMatcher.java
src/main/java/com/taobao/gecko/core/util/ByteBufferUtils.java
src/main/java/com/taobao/gecko/core/util/CircularQueue.java
src/main/java/com/taobao/gecko/core/util/ConcurrentHashSet.java
src/main/java/com/taobao/gecko/core/util/DefaultExceptionMonitor.java
src/main/java/com/taobao/gecko/core/util/DispatcherFactory.java
src/main/java/com/taobao/gecko/core/util/ExceptionMonitor.java
src/main/java/com/taobao/gecko/core/util/LinkedTransferQueue.java
src/main/java/com/taobao/gecko/core/util/MBeanUtils.java
src/main/java/com/taobao/gecko/core/util/MapBackedSet.java
src/main/java/com/taobao/gecko/core/util/MyMBeanServer.java
src/main/java/com/taobao/gecko/core/util/OpaqueGenerator.java
src/main/java/com/taobao/gecko/core/util/PositiveAtomicCounter.java
src/main/java/com/taobao/gecko/core/util/PropertyUtils.java
src/main/java/com/taobao/gecko/core/util/RemotingUtils.java
src/main/java/com/taobao/gecko/core/util/ResourcesUtils.java
src/main/java/com/taobao/gecko/core/util/SelectorFactory.java
src/main/java/com/taobao/gecko/core/util/ShiftAndByteBufferMatcher.java
src/main/java/com/taobao/gecko/core/util/ShiftOrByteBufferMatcher.java
src/main/java/com/taobao/gecko/core/util/SimpleQueue.java
src/main/java/com/taobao/gecko/core/util/StringUtils.java
src/main/java/com/taobao/gecko/core/util/SystemUtils.java
src/main/java/com/taobao/gecko/core/util/TransferQueue.java
src/main/java/com/taobao/gecko/core/util/WorkerThreadFactory.java
src/main/java/com/taobao/gecko/service/Connection.java
src/main/java/com/taobao/gecko/service/ConnectionLifeCycleListener.java
src/main/java/com/taobao/gecko/service/ConnectionSelector.java
src/main/java/com/taobao/gecko/service/GroupAllConnectionCallBackListener.java
src/main/java/com/taobao/gecko/service/MultiGroupCallBackListener.java
src/main/java/com/taobao/gecko/service/RemotingClient.java
src/main/java/com/taobao/gecko/service/RemotingContext.java
src/main/java/com/taobao/gecko/service/RemotingController.java
src/main/java/com/taobao/gecko/service/RemotingFactory.java
src/main/java/com/taobao/gecko/service/RemotingServer.java
src/main/java/com/taobao/gecko/service/RequestProcessor.java
src/main/java/com/taobao/gecko/service/SingleRequestCallBackListener.java
src/main/java/com/taobao/gecko/service/callback/AbstractRequestCallBack.java
src/main/java/com/taobao/gecko/service/callback/GroupAllConnectionRequestCallBack.java
src/main/java/com/taobao/gecko/service/callback/MultiGroupRequestCallBack.java
src/main/java/com/taobao/gecko/service/callback/SingleRequestCallBack.java
src/main/java/com/taobao/gecko/service/config/BaseConfig.java
src/main/java/com/taobao/gecko/service/config/ClientConfig.java
src/main/java/com/taobao/gecko/service/config/ServerConfig.java
src/main/java/com/taobao/gecko/service/config/WireFormatType.java
src/main/java/com/taobao/gecko/service/exception/IllegalMessageException.java
src/main/java/com/taobao/gecko/service/exception/NotifyRemotingException.java
src/main/java/com/taobao/gecko/service/impl/BaseRemotingController.java
src/main/java/com/taobao/gecko/service/impl/DefaultConnection.java
src/main/java/com/taobao/gecko/service/impl/DefaultRemotingClient.java
src/main/java/com/taobao/gecko/service/impl/DefaultRemotingContext.java
src/main/java/com/taobao/gecko/service/impl/DefaultRemotingContextMBean.java
src/main/java/com/taobao/gecko/service/impl/DefaultRemotingServer.java
src/main/java/com/taobao/gecko/service/impl/GeckoHandler.java
src/main/java/com/taobao/gecko/service/impl/GroupManager.java
src/main/java/com/taobao/gecko/service/impl/GroupManagerMBean.java
src/main/java/com/taobao/gecko/service/impl/InvalidCallBackScanTask.java
src/main/java/com/taobao/gecko/service/impl/InvalidConnectionScanTask.java
src/main/java/com/taobao/gecko/service/impl/RandomConnectionSelector.java
src/main/java/com/taobao/gecko/service/impl/ReconnectManager.java
src/main/java/com/taobao/gecko/service/impl/ReconnectTask.java
src/main/java/com/taobao/gecko/service/impl/RequestCallBack.java
src/main/java/com/taobao/gecko/service/impl/RoundRobinConnectionSelector.java
src/main/java/com/taobao/gecko/service/impl/ScanAllConnectionRunner.java
src/main/java/com/taobao/gecko/service/impl/ScanTask.java
src/main/java/com/taobao/gecko/service/processor/HeartBeatCommandProecssor.java
src/main/java/com/taobao/gecko/service/timer/ConcurrentIdentityHashMap.java
src/main/java/com/taobao/gecko/service/timer/HashedWheelTimer.java
src/main/java/com/taobao/gecko/service/timer/MapBackedSet.java
src/main/java/com/taobao/gecko/service/timer/ReusableIterator.java
src/main/java/com/taobao/gecko/service/timer/ThreadRenamingRunnable.java
src/main/java/com/taobao/gecko/service/timer/Timeout.java
src/main/java/com/taobao/gecko/service/timer/Timer.java
src/main/java/com/taobao/gecko/service/timer/TimerTask.java
src/main/java/com/taobao/gecko/service/udp/UDPClient.java
src/main/java/com/taobao/gecko/service/udp/UDPController.java
src/main/java/com/taobao/gecko/service/udp/UDPServer.java
src/main/java/com/taobao/gecko/service/udp/UDPServiceHandler.java
src/main/java/com/taobao/gecko/service/udp/impl/DefaultUDPClient.java
src/main/java/com/taobao/gecko/service/udp/impl/DefaultUDPServer.java
src/test/java/com/taobao/gecko/core/buffer/Bar.java
src/test/java/com/taobao/gecko/core/buffer/Foo.java
src/test/java/com/taobao/gecko/core/buffer/IoBufferTest.java
src/test/java/com/taobao/gecko/core/config/ConfigurationTest.java
src/test/java/com/taobao/gecko/core/core/SocketOptionUnitTest.java
src/test/java/com/taobao/gecko/core/core/impl/AbstractControllerUnitTest.java
src/test/java/com/taobao/gecko/core/core/impl/ByteBufferCodecFactoryUnitTest.java
src/test/java/com/taobao/gecko/core/core/impl/FutureImplUnitTest.java
src/test/java/com/taobao/gecko/core/core/impl/FutureLockImplUnitTest.java
src/test/java/com/taobao/gecko/core/core/impl/PoolDispatcherUnitTest.java
src/test/java/com/taobao/gecko/core/core/impl/TextLineCodecFactoryUnitTest.java
src/test/java/com/taobao/gecko/core/intergration/tcp/InputOutputStreamUnitTest.java
src/test/java/com/taobao/gecko/core/intergration/tcp/SessionIdleUnitTest.java
src/test/java/com/taobao/gecko/core/intergration/tcp/SessionTimeoutUnitTest.java
src/test/java/com/taobao/gecko/core/intergration/tcp/TCPControllerTest.java
src/test/java/com/taobao/gecko/core/intergration/udp/UDPCOntrollerTest.java
src/test/java/com/taobao/gecko/core/nio/TCPConnectorControllerUnitTest.java
src/test/java/com/taobao/gecko/core/nio/TCPControllerUnitTest.java
src/test/java/com/taobao/gecko/core/nio/UDPConnectorControllerUnitTest.java
src/test/java/com/taobao/gecko/core/nio/UDPControllerUnitTest.java
src/test/java/com/taobao/gecko/core/nio/impl/MockSelectableChannel.java
src/test/java/com/taobao/gecko/core/nio/impl/MockSelectionKey.java
src/test/java/com/taobao/gecko/core/nio/impl/NioServerControllerUnitTest.java
src/test/java/com/taobao/gecko/core/nio/impl/NioTCPSessionUnitTest.java
src/test/java/com/taobao/gecko/core/nio/impl/PriorityQueuePerformanceTest.java
src/test/java/com/taobao/gecko/core/nio/impl/ReactorUnitTest.java
src/test/java/com/taobao/gecko/core/nio/impl/SelectorManagerUnitTest.java
src/test/java/com/taobao/gecko/core/nio/impl/TimerRefQueueUnitTest.java
src/test/java/com/taobao/gecko/core/performance/TimerPerformanceTest.java
src/test/java/com/taobao/gecko/core/statistcs/SimpleStatisticsTest.java
src/test/java/com/taobao/gecko/core/util/ByteBufferMatcherTest.java
src/test/java/com/taobao/gecko/core/util/ByteBufferUtilsTest.java
src/test/java/com/taobao/gecko/core/util/DispatcherFactoryUnitTest.java
src/test/java/com/taobao/gecko/core/util/OpaqueGeneratorUnitTest.java
src/test/java/com/taobao/gecko/core/util/QueueTest.java
src/test/java/com/taobao/gecko/core/util/ShiftAndByteBufferMatcherTest.java
src/test/java/com/taobao/gecko/core/util/ShiftOrByteBufferMatcherTest.java
src/test/java/com/taobao/gecko/core/util/SystemUtilsUniTest.java
src/test/java/com/taobao/gecko/example/rpc/client/RpcProxyFactory.java
src/test/java/com/taobao/gecko/example/rpc/command/RpcCommand.java
src/test/java/com/taobao/gecko/example/rpc/command/RpcRequest.java
src/test/java/com/taobao/gecko/example/rpc/command/RpcResponse.java
src/test/java/com/taobao/gecko/example/rpc/example/Hello.java
src/test/java/com/taobao/gecko/example/rpc/example/client/HelloClient.java
src/test/java/com/taobao/gecko/example/rpc/example/server/HelloImpl.java
src/test/java/com/taobao/gecko/example/rpc/example/server/HelloServer.java
src/test/java/com/taobao/gecko/example/rpc/exception/RpcRuntimeException.java
src/test/java/com/taobao/gecko/example/rpc/server/BeanLocator.java
src/test/java/com/taobao/gecko/example/rpc/server/RpcServer.java
src/test/java/com/taobao/gecko/example/rpc/server/RpcSkeleton.java
src/test/java/com/taobao/gecko/example/rpc/transport/RpcCodecFactory.java
src/test/java/com/taobao/gecko/example/rpc/transport/RpcRequestProcessor.java
src/test/java/com/taobao/gecko/example/rpc/transport/RpcWireFormatType.java
src/test/java/com/taobao/gecko/service/benchmark/Benchmark.java
src/test/java/com/taobao/gecko/service/benchmark/MultiGroupBenchmarkClient.java
src/test/java/com/taobao/gecko/service/benchmark/MultiGroupBenchmarkServer.java
src/test/java/com/taobao/gecko/service/benchmark/Remoting.java
src/test/java/com/taobao/gecko/service/callback/GroupAllConnectionRequestCallBackUnitTest.java
src/test/java/com/taobao/gecko/service/callback/MultiGroupRequestCallBackUnitTest.java
src/test/java/com/taobao/gecko/service/callback/SingleRequestCallBackUnitTest.java
src/test/java/com/taobao/gecko/service/impl/BaseConnectionSelectorUnitTest.java
src/test/java/com/taobao/gecko/service/impl/DefaultConnectionUnitTest.java
src/test/java/com/taobao/gecko/service/impl/DefaultRemotingClientUnitTest.java
src/test/java/com/taobao/gecko/service/impl/DefaultRemotingContextUnitTest.java
src/test/java/com/taobao/gecko/service/impl/DefaultRemotingServerUnitTest.java
src/test/java/com/taobao/gecko/service/impl/DummyRequestProcessor.java
src/test/java/com/taobao/gecko/service/impl/GroupManagerUnitTest.java
src/test/java/com/taobao/gecko/service/impl/RandomConnectionSelectorUnitTest.java
src/test/java/com/taobao/gecko/service/impl/ReconnectManagerUnitTest.java
src/test/java/com/taobao/gecko/service/impl/RoundRobinConnectionSelectorUnitTest.java
src/test/java/com/taobao/gecko/service/impl/TransferFileUnitTest.java
src/test/java/com/taobao/gecko/service/mock/MockConnection.java
src/test/java/com/taobao/gecko/service/mock/MockConnectionResponseError.java
src/test/java/com/taobao/gecko/service/mock/MockConnectionResponseNoListener.java
src/test/java/com/taobao/gecko/service/mock/MockConnectionResponseOK.java
src/test/java/com/taobao/gecko/service/mock/MockSession.java
src/test/java/com/taobao/gecko/service/notify/Constants.java
src/test/java/com/taobao/gecko/service/notify/DecoderState.java
src/test/java/com/taobao/gecko/service/notify/NotifyCommand.java
src/test/java/com/taobao/gecko/service/notify/NotifyCommandFactory.java
src/test/java/com/taobao/gecko/service/notify/NotifyProtocolCodecFactory.java
src/test/java/com/taobao/gecko/service/notify/NotifyProtos.java
src/test/java/com/taobao/gecko/service/notify/NotifyWireFormatType.java
src/test/java/com/taobao/gecko/service/notify/NotifyWrapDecoder.java
src/test/java/com/taobao/gecko/service/notify/NotifyWrapEncoder.java
src/test/java/com/taobao/gecko/service/notify/OpCode.java
src/test/java/com/taobao/gecko/service/notify/RequestCommandDecoder.java
src/test/java/com/taobao/gecko/service/notify/RequestCommandEncoder.java
src/test/java/com/taobao/gecko/service/notify/ResponseCommandDecoder.java
src/test/java/com/taobao/gecko/service/notify/ResponseCommandEncoder.java
src/test/java/com/taobao/gecko/service/notify/ResponseStatusCode.java
src/test/java/com/taobao/gecko/service/notify/readme
src/test/java/com/taobao/gecko/service/notify/request/NotifyDummyRequestCommand.java
src/test/java/com/taobao/gecko/service/notify/request/NotifyHeartBeatCommand.java
src/test/java/com/taobao/gecko/service/notify/request/NotifyRequestCommand.java
src/test/java/com/taobao/gecko/service/notify/request/NotifyRequestCommandHeader.java
src/test/java/com/taobao/gecko/service/notify/response/NotifyBooleanAckCommand.java
src/test/java/com/taobao/gecko/service/notify/response/NotifyDummyAckCommand.java
src/test/java/com/taobao/gecko/service/notify/response/NotifyResponseCommand.java
src/test/java/com/taobao/gecko/service/processor/HeartBeatCommandProcessorUnitTest.java
src/test/java/com/taobao/gecko/service/udp/UDPServiceUnitTest.java
src/test/java/com/taobao/gecko/utils/ClockWatch.java
src/test/java/com/taobao/gecko/utils/ConcurrentTestCase.java
src/test/java/com/taobao/gecko/utils/ConcurrentTestRunner.java
src/test/java/com/taobao/gecko/utils/ConcurrentTestTask.java
src/test/resources/log4j.properties
Download
Click the following link to download gecko-master.zip.
gecko-master.zip