Download phantom Free Java Code

Description

Phantom is a high performance proxy for accessing distributed services. It is an RPC system with support for different transports and protocols. Phantom is inspired by Twitter Finagle clients and builds on the capabilities of technologies like Netty, Unix.

Icons

phantom

Source Files

The download file phantom-master.zip has the following entries.


.gitignore// w ww .  ja  v a  2 s .c om
CHANGELOG.md
README.md
channel-handler-http/pom.xml
channel-handler-http/src/main/java/com/flipkart/phantom/runtime/impl/server/netty/handler/http/HttpChannelHandler.java
channel-handler-http/src/main/java/com/flipkart/phantom/runtime/impl/server/netty/handler/http/MethodRoutingHttpChannelHandler.java
channel-handler-http/src/main/java/com/flipkart/phantom/runtime/impl/server/netty/handler/http/RoutingHttpChannelHandler.java
channel-handler-thrift/pom.xml
channel-handler-thrift/src/main/java/com/flipkart/phantom/runtime/impl/server/netty/channel/thrift/ThriftNettyChannelBuffer.java
channel-handler-thrift/src/main/java/com/flipkart/phantom/runtime/impl/server/netty/decoder/thrift/ThriftBufferDecoder.java
channel-handler-thrift/src/main/java/com/flipkart/phantom/runtime/impl/server/netty/handler/thrift/ThriftChannelHandler.java
dashboard/pom.xml
dashboard/src/main/java/com/flipkart/sp/dashboard/impl/spring/jetty/JettyWebAppContextFactory.java
dashboard/src/main/java/com/flipkart/sp/dashboard/impl/spring/web/DefaultController.java
dashboard/src/main/java/com/flipkart/sp/dashboard/impl/spring/web/TurbineInitializer.java
dashboard/src/main/resources/WEB-INF/controller-context.xml
dashboard/src/main/resources/WEB-INF/hystrix-dashboard/components/hystrixCommand/hystrixCommand.css
dashboard/src/main/resources/WEB-INF/hystrix-dashboard/components/hystrixCommand/hystrixCommand.js
dashboard/src/main/resources/WEB-INF/hystrix-dashboard/components/hystrixCommand/magnifying-glass-icon-20.png
dashboard/src/main/resources/WEB-INF/hystrix-dashboard/components/hystrixCommand/magnifying-glass-icon.png
dashboard/src/main/resources/WEB-INF/hystrix-dashboard/components/hystrixCommand/templates/hystrixCircuit.html
dashboard/src/main/resources/WEB-INF/hystrix-dashboard/components/hystrixCommand/templates/hystrixCircuitContainer.html
dashboard/src/main/resources/WEB-INF/hystrix-dashboard/components/hystrixCommand/templates/hystrixCircuitProperties.html
dashboard/src/main/resources/WEB-INF/hystrix-dashboard/components/hystrixThreadPool/hystrixThreadPool.css
dashboard/src/main/resources/WEB-INF/hystrix-dashboard/components/hystrixThreadPool/hystrixThreadPool.js
dashboard/src/main/resources/WEB-INF/hystrix-dashboard/components/hystrixThreadPool/templates/hystrixThreadPool.html
dashboard/src/main/resources/WEB-INF/hystrix-dashboard/components/hystrixThreadPool/templates/hystrixThreadPoolContainer.html
dashboard/src/main/resources/WEB-INF/hystrix-dashboard/css/global.css
dashboard/src/main/resources/WEB-INF/hystrix-dashboard/css/resets.css
dashboard/src/main/resources/WEB-INF/hystrix-dashboard/css/simplegrid/1236_grid.css
dashboard/src/main/resources/WEB-INF/hystrix-dashboard/css/simplegrid/720_grid.css
dashboard/src/main/resources/WEB-INF/hystrix-dashboard/css/simplegrid/986_grid.css
dashboard/src/main/resources/WEB-INF/hystrix-dashboard/css/simplegrid/LICENSE.txt
dashboard/src/main/resources/WEB-INF/hystrix-dashboard/css/simplegrid/README.txt
dashboard/src/main/resources/WEB-INF/hystrix-dashboard/css/simplegrid/percentage_grid.css
dashboard/src/main/resources/WEB-INF/hystrix-dashboard/js/LICENSE
dashboard/src/main/resources/WEB-INF/hystrix-dashboard/js/d3.v2.min.js
dashboard/src/main/resources/WEB-INF/hystrix-dashboard/js/jquery.tinysort.min.js
dashboard/src/main/resources/WEB-INF/hystrix-dashboard/js/tmpl.js
dashboard/src/main/resources/WEB-INF/hystrix-dashboard/monitor/monitor.css
dashboard/src/main/resources/WEB-INF/hystrix-dashboard/monitor/monitor.html
dashboard/src/main/resources/WEB-INF/pages/cluster-dashboard.ftl
dashboard/src/main/resources/WEB-INF/pages/footer.ftl
dashboard/src/main/resources/WEB-INF/pages/header.ftl
dashboard/src/main/resources/WEB-INF/pages/home.ftl
dashboard/src/main/resources/WEB-INF/pages/resources/images/ajax-loader.gif
dashboard/src/main/resources/WEB-INF/pages/resources/images/delete.png
dashboard/src/main/resources/WEB-INF/pages/resources/images/favicon.ico
dashboard/src/main/resources/WEB-INF/pages/resources/images/footer-left.png
dashboard/src/main/resources/WEB-INF/pages/resources/images/footer-right.png
dashboard/src/main/resources/WEB-INF/pages/resources/images/footer-stretch.png
dashboard/src/main/resources/WEB-INF/pages/resources/images/header-left.png
dashboard/src/main/resources/WEB-INF/pages/resources/images/header-right.png
dashboard/src/main/resources/WEB-INF/pages/resources/images/header-stretch.png
dashboard/src/main/resources/WEB-INF/pages/resources/images/help.png
dashboard/src/main/resources/WEB-INF/pages/resources/images/issues.gif
dashboard/src/main/resources/WEB-INF/pages/resources/images/module-icon.png
dashboard/src/main/resources/WEB-INF/pages/resources/images/primary-item-background.png
dashboard/src/main/resources/WEB-INF/pages/resources/images/primary-menu-stretch.png
dashboard/src/main/resources/WEB-INF/pages/resources/images/primary-wrapper-left.png
dashboard/src/main/resources/WEB-INF/pages/resources/images/primary-wrapper-right.png
dashboard/src/main/resources/WEB-INF/pages/resources/images/table-header-background.png
dashboard/src/main/resources/WEB-INF/pages/resources/images/table-header-bottom-background.png
dashboard/src/main/resources/WEB-INF/pages/resources/images/table-header-top-background.png
dashboard/src/main/resources/WEB-INF/pages/resources/js/jquery-1.4.2.min.js
dashboard/src/main/resources/WEB-INF/pages/resources/js/jquery.validate-1.7.0.min.js
dashboard/src/main/resources/WEB-INF/pages/resources/styles/colors.css
dashboard/src/main/resources/WEB-INF/pages/resources/styles/local.css
dashboard/src/main/resources/WEB-INF/pages/resources/styles/main.css
dashboard/src/main/resources/WEB-INF/pages/resources/styles/print.css
dashboard/src/main/resources/WEB-INF/servlet-config.xml
dashboard/src/main/resources/WEB-INF/web.xml
dashboard/src/main/resources/external/bootstrap.xml
dashboard/src/main/resources/external/bootstrap_extensions.xml
dashboard/src/main/resources/external/dashboard-config.properties
dashboard/src/main/resources/external/jetty-config.xml
dashboard/src/main/resources/external/logback.xml
docs/Composing-service-responses.png
docs/Config-agent.png
docs/Config-php.png
docs/Logging-agent.png
docs/Logging-php.png
docs/Phantom architecture.png
docs/Phantom http config.png
docs/Phantom-config-landing-page.png
docs/Phantom-edit-config.png
docs/Phantom-tech-stack.png
docs/Service Proxy Config.png
docs/Service Proxy.png
docs/settings.xml
netty-uds/pom.xml
netty-uds/src/main/java/com/flipkart/phantom/netty/uds/OioAcceptedSocketChannel.java
netty-uds/src/main/java/com/flipkart/phantom/netty/uds/OioClientSocketChannel.java
netty-uds/src/main/java/com/flipkart/phantom/netty/uds/OioClientSocketChannelFactory.java
netty-uds/src/main/java/com/flipkart/phantom/netty/uds/OioClientSocketPipelineSink.java
netty-uds/src/main/java/com/flipkart/phantom/netty/uds/OioDatagramChannel.java
netty-uds/src/main/java/com/flipkart/phantom/netty/uds/OioDatagramChannelFactory.java
netty-uds/src/main/java/com/flipkart/phantom/netty/uds/OioDatagramPipelineSink.java
netty-uds/src/main/java/com/flipkart/phantom/netty/uds/OioDatagramWorker.java
netty-uds/src/main/java/com/flipkart/phantom/netty/uds/OioServerSocketChannel.java
netty-uds/src/main/java/com/flipkart/phantom/netty/uds/OioServerSocketChannelFactory.java
netty-uds/src/main/java/com/flipkart/phantom/netty/uds/OioServerSocketPipelineSink.java
netty-uds/src/main/java/com/flipkart/phantom/netty/uds/OioSocketChannel.java
netty-uds/src/main/java/com/flipkart/phantom/netty/uds/OioWorker.java
pom.xml
runtime-netty-uds/pom.xml
runtime-netty-uds/src/main/java/com/flipkart/phantom/runtime/impl/server/netty/UDSNettyServer.java
runtime-oio-uds/pom.xml
runtime-oio-uds/src/main/java/com/flipkart/phantom/runtime/impl/server/oio/UDSOIOServer.java
runtime/.gitignore
runtime/pom.xml
runtime/src/main/java/com/flipkart/phantom/runtime/ServiceProxyFrameworkConstants.java
runtime/src/main/java/com/flipkart/phantom/runtime/impl/jetty/JettyWebAppContextFactory.java
runtime/src/main/java/com/flipkart/phantom/runtime/impl/notifier/HystrixEventReceiver.java
runtime/src/main/java/com/flipkart/phantom/runtime/impl/server/AbstractNetworkServer.java
runtime/src/main/java/com/flipkart/phantom/runtime/impl/server/concurrent/NamedThreadFactory.java
runtime/src/main/java/com/flipkart/phantom/runtime/impl/server/netty/AbstractNettyNetworkServer.java
runtime/src/main/java/com/flipkart/phantom/runtime/impl/server/netty/ChannelHandlerPipelineFactory.java
runtime/src/main/java/com/flipkart/phantom/runtime/impl/server/netty/TCPNettyServer.java
runtime/src/main/java/com/flipkart/phantom/runtime/impl/server/netty/decoder/command/CommandBufferDecoder.java
runtime/src/main/java/com/flipkart/phantom/runtime/impl/server/netty/handler/IdleChannelDisconnectHandler.java
runtime/src/main/java/com/flipkart/phantom/runtime/impl/server/netty/handler/command/AsyncCommandProcessingChannelHandler.java
runtime/src/main/java/com/flipkart/phantom/runtime/impl/server/netty/handler/command/CommandInterpreter.java
runtime/src/main/java/com/flipkart/phantom/runtime/impl/server/netty/handler/command/CommandProcessingChannelHandler.java
runtime/src/main/java/com/flipkart/phantom/runtime/impl/spring/ServiceProxyComponentContainer.java
runtime/src/main/java/com/flipkart/phantom/runtime/impl/spring/admin/SPConfigServiceImpl.java
runtime/src/main/java/com/flipkart/phantom/runtime/impl/spring/utils/ConfigFileUtils.java
runtime/src/main/java/com/flipkart/phantom/runtime/impl/spring/web/AppNameAddingInterceptorHandler.java
runtime/src/main/java/com/flipkart/phantom/runtime/impl/spring/web/DefaultController.java
runtime/src/main/java/com/flipkart/phantom/runtime/impl/spring/web/HandlerConfigController.java
runtime/src/main/java/com/flipkart/phantom/runtime/impl/spring/web/WebContextLoaderListener.java
runtime/src/main/java/com/flipkart/phantom/runtime/spi/server/NetworkServer.java
runtime/src/main/java/com/flipkart/phantom/runtime/spi/spring/admin/SPConfigService.java
runtime/src/main/resources/WEB-INF/controller-context.xml
runtime/src/main/resources/WEB-INF/hystrix-dashboard/components/hystrixCommand/hystrixCommand.css
runtime/src/main/resources/WEB-INF/hystrix-dashboard/components/hystrixCommand/hystrixCommand.js
runtime/src/main/resources/WEB-INF/hystrix-dashboard/components/hystrixCommand/magnifying-glass-icon-20.png
runtime/src/main/resources/WEB-INF/hystrix-dashboard/components/hystrixCommand/magnifying-glass-icon.png
runtime/src/main/resources/WEB-INF/hystrix-dashboard/components/hystrixCommand/templates/hystrixCircuit.html
runtime/src/main/resources/WEB-INF/hystrix-dashboard/components/hystrixCommand/templates/hystrixCircuitContainer.html
runtime/src/main/resources/WEB-INF/hystrix-dashboard/components/hystrixCommand/templates/hystrixCircuitProperties.html
runtime/src/main/resources/WEB-INF/hystrix-dashboard/components/hystrixThreadPool/hystrixThreadPool.css
runtime/src/main/resources/WEB-INF/hystrix-dashboard/components/hystrixThreadPool/hystrixThreadPool.js
runtime/src/main/resources/WEB-INF/hystrix-dashboard/components/hystrixThreadPool/templates/hystrixThreadPool.html
runtime/src/main/resources/WEB-INF/hystrix-dashboard/components/hystrixThreadPool/templates/hystrixThreadPoolContainer.html
runtime/src/main/resources/WEB-INF/hystrix-dashboard/css/global.css
runtime/src/main/resources/WEB-INF/hystrix-dashboard/css/resets.css
runtime/src/main/resources/WEB-INF/hystrix-dashboard/css/simplegrid/1236_grid.css
runtime/src/main/resources/WEB-INF/hystrix-dashboard/css/simplegrid/720_grid.css
runtime/src/main/resources/WEB-INF/hystrix-dashboard/css/simplegrid/986_grid.css
runtime/src/main/resources/WEB-INF/hystrix-dashboard/css/simplegrid/LICENSE.txt
runtime/src/main/resources/WEB-INF/hystrix-dashboard/css/simplegrid/README.txt
runtime/src/main/resources/WEB-INF/hystrix-dashboard/css/simplegrid/percentage_grid.css
runtime/src/main/resources/WEB-INF/hystrix-dashboard/js/LICENSE
runtime/src/main/resources/WEB-INF/hystrix-dashboard/js/d3.v2.min.js
runtime/src/main/resources/WEB-INF/hystrix-dashboard/js/jquery.tinysort.min.js
runtime/src/main/resources/WEB-INF/hystrix-dashboard/js/tmpl.js
runtime/src/main/resources/WEB-INF/hystrix-dashboard/monitor/monitor.css
runtime/src/main/resources/WEB-INF/hystrix-dashboard/monitor/monitor.html
runtime/src/main/resources/WEB-INF/pages/configuration.ftl
runtime/src/main/resources/WEB-INF/pages/dashboard.ftl
runtime/src/main/resources/WEB-INF/pages/footer.ftl
runtime/src/main/resources/WEB-INF/pages/header.ftl
runtime/src/main/resources/WEB-INF/pages/home.ftl
runtime/src/main/resources/WEB-INF/pages/message.ftl
runtime/src/main/resources/WEB-INF/pages/modifyConfig.ftl
runtime/src/main/resources/WEB-INF/pages/resources/codemirror/lib/codemirror.css
runtime/src/main/resources/WEB-INF/pages/resources/codemirror/lib/codemirror.js
runtime/src/main/resources/WEB-INF/pages/resources/codemirror/mode/xml/xml.js
runtime/src/main/resources/WEB-INF/pages/resources/codemirror/theme/neat.css
runtime/src/main/resources/WEB-INF/pages/resources/images/ajax-loader.gif
runtime/src/main/resources/WEB-INF/pages/resources/images/delete.png
runtime/src/main/resources/WEB-INF/pages/resources/images/favicon.ico
runtime/src/main/resources/WEB-INF/pages/resources/images/footer-left.png
runtime/src/main/resources/WEB-INF/pages/resources/images/footer-right.png
runtime/src/main/resources/WEB-INF/pages/resources/images/footer-stretch.png
runtime/src/main/resources/WEB-INF/pages/resources/images/header-left.png
runtime/src/main/resources/WEB-INF/pages/resources/images/header-right.png
runtime/src/main/resources/WEB-INF/pages/resources/images/header-stretch.png
runtime/src/main/resources/WEB-INF/pages/resources/images/help.png
runtime/src/main/resources/WEB-INF/pages/resources/images/issues.gif
runtime/src/main/resources/WEB-INF/pages/resources/images/module-icon.png
runtime/src/main/resources/WEB-INF/pages/resources/images/primary-item-background.png
runtime/src/main/resources/WEB-INF/pages/resources/images/primary-menu-stretch.png
runtime/src/main/resources/WEB-INF/pages/resources/images/primary-wrapper-left.png
runtime/src/main/resources/WEB-INF/pages/resources/images/primary-wrapper-right.png
runtime/src/main/resources/WEB-INF/pages/resources/images/table-header-background.png
runtime/src/main/resources/WEB-INF/pages/resources/images/table-header-bottom-background.png
runtime/src/main/resources/WEB-INF/pages/resources/images/table-header-top-background.png
runtime/src/main/resources/WEB-INF/pages/resources/js/jquery-1.4.2.min.js
runtime/src/main/resources/WEB-INF/pages/resources/js/jquery.validate-1.7.0.min.js
runtime/src/main/resources/WEB-INF/pages/resources/styles/colors.css
runtime/src/main/resources/WEB-INF/pages/resources/styles/local.css
runtime/src/main/resources/WEB-INF/pages/resources/styles/main.css
runtime/src/main/resources/WEB-INF/pages/resources/styles/print.css
runtime/src/main/resources/WEB-INF/pages/viewConfig.ftl
runtime/src/main/resources/WEB-INF/servlet-config.xml
runtime/src/main/resources/WEB-INF/web.xml
runtime/src/main/resources/WEB-INF/webapp-config.xml
runtime/src/main/resources/packaged/common-proxy-config.xml
runtime/src/main/resources/packaged/common-proxy-server-nature-config.xml
runtime/src/main/resources/packaged/default-proxy-core-config.properties
runtime/src/test/java/com/flipkart/phantom/runtime/impl/server/netty/handler/command/CommandInterpreterTest.java
sample-http-proxy/pom.xml
sample-http-proxy/src/main/resources/external/bootstrap.xml
sample-http-proxy/src/main/resources/external/dashboard-config.properties
sample-http-proxy/src/main/resources/external/logback.xml
sample-http-proxy/src/main/resources/external/spring-proxy-handler-config.xml
sample-http-proxy/src/main/resources/external/spring-proxy-handler-config_Routing_Sample.xml
sample-http-proxy/src/main/resources/external/spring-proxy-listener-config.xml
sample-http-proxy/src/main/resources/external/spring-proxy-listener-config_Routing_Sample.xml
sample-task-proxy/pom.xml
sample-task-proxy/src/main/java/com/flipkart/phantom/sample/handler/ArithmeticTaskHandler.java
sample-task-proxy/src/main/php/PhantomClient.php
sample-task-proxy/src/main/resources/external/bootstrap.xml
sample-task-proxy/src/main/resources/external/dashboard-config.properties
sample-task-proxy/src/main/resources/external/logback.xml
sample-task-proxy/src/main/resources/external/spring-proxy-handler-config.xml
sample-task-proxy/src/main/resources/external/spring-proxy-listener-config.xml
sample-thrift-proxy/pom.xml
sample-thrift-proxy/src/main/java/thrift/ArithmeticClient.java
sample-thrift-proxy/src/main/java/thrift/ArithmeticService.java
sample-thrift-proxy/src/main/java/thrift/ArithmeticServiceImpl.java
sample-thrift-proxy/src/main/java/thrift/Server.java
sample-thrift-proxy/src/main/resources/arithmetic.thrift
sample-thrift-proxy/src/main/resources/external/bootstrap.xml
sample-thrift-proxy/src/main/resources/external/dashboard-config.properties
sample-thrift-proxy/src/main/resources/external/logback.xml
sample-thrift-proxy/src/main/resources/external/spring-proxy-handler-config.xml
sample-thrift-proxy/src/main/resources/external/spring-proxy-listener-config.xml
task-http/pom.xml
task-http/src/main/java/com/flipkart/phantom/http/impl/HttpConnectionPool.java
task-http/src/main/java/com/flipkart/phantom/http/impl/HttpProxy.java
task-http/src/main/java/com/flipkart/phantom/http/impl/HttpProxyExecutor.java
task-http/src/main/java/com/flipkart/phantom/http/impl/HttpProxyExecutorRepository.java
task-http/src/main/java/com/flipkart/phantom/http/impl/HttpRequestWrapper.java
task-http/src/main/java/com/flipkart/phantom/http/impl/SimpleHttpProxy.java
task-http/src/main/java/com/flipkart/phantom/http/impl/registry/HttpProxyRegistry.java
task-thrift/pom.xml
task-thrift/src/main/java/com/flipkart/phantom/thrift/impl/HystrixThriftProxy.java
task-thrift/src/main/java/com/flipkart/phantom/thrift/impl/ProxyServiceClient.java
task-thrift/src/main/java/com/flipkart/phantom/thrift/impl/ThriftProxy.java
task-thrift/src/main/java/com/flipkart/phantom/thrift/impl/ThriftProxyExecutor.java
task-thrift/src/main/java/com/flipkart/phantom/thrift/impl/ThriftProxyExecutorRepository.java
task-thrift/src/main/java/com/flipkart/phantom/thrift/impl/ThriftRequestWrapper.java
task-thrift/src/main/java/com/flipkart/phantom/thrift/impl/proxy/DefaultThriftProxy.java
task-thrift/src/main/java/com/flipkart/phantom/thrift/impl/proxy/SocketObjectFactory.java
task-thrift/src/main/java/com/flipkart/phantom/thrift/impl/registry/ThriftProxyRegistry.java
task/pom.xml
task/src/main/java/com/flipkart/phantom/event/ServiceProxyEvent.java
task/src/main/java/com/flipkart/phantom/event/ServiceProxyEventProducer.java
task/src/main/java/com/flipkart/phantom/event/consumer/RequestLogger.java
task/src/main/java/com/flipkart/phantom/task/impl/HystrixTaskHandler.java
task/src/main/java/com/flipkart/phantom/task/impl/TaskContextFactory.java
task/src/main/java/com/flipkart/phantom/task/impl/TaskContextImpl.java
task/src/main/java/com/flipkart/phantom/task/impl/TaskHandler.java
task/src/main/java/com/flipkart/phantom/task/impl/TaskHandlerExecutor.java
task/src/main/java/com/flipkart/phantom/task/impl/TaskHandlerExecutorRepository.java
task/src/main/java/com/flipkart/phantom/task/impl/TaskRequestWrapper.java
task/src/main/java/com/flipkart/phantom/task/impl/TaskResult.java
task/src/main/java/com/flipkart/phantom/task/impl/registry/TaskHandlerRegistry.java
task/src/main/java/com/flipkart/phantom/task/spi/AbstractHandler.java
task/src/main/java/com/flipkart/phantom/task/spi/Executor.java
task/src/main/java/com/flipkart/phantom/task/spi/RequestWrapper.java
task/src/main/java/com/flipkart/phantom/task/spi/TaskContext.java
task/src/main/java/com/flipkart/phantom/task/spi/registry/AbstractHandlerRegistry.java
task/src/main/java/com/flipkart/phantom/task/spi/registry/HandlerConfigInfo.java
task/src/main/java/com/flipkart/phantom/task/spi/repository/ExecutorRepository.java
task/src/main/java/com/flipkart/phantom/task/utils/StringUtils.java
task/src/main/java/com/flipkart/phantom/task/utils/SystemUtils.java
task/src/main/java/com/flipkart/phantom/task/utils/TaskHandlerUtils.java

Download

Click the following link to download phantom-master.zip.

phantom-master.zip




















Home »
  Java Free Code »
    Social Media »




Facebook
Github
LinkedIn
Twitter