Skip to content

Commit

Permalink
renamed to vert.x
Browse files Browse the repository at this point in the history
  • Loading branch information
purplefox committed Oct 11, 2011
1 parent 284d60a commit a667491
Show file tree
Hide file tree
Showing 216 changed files with 1,214 additions and 1,202 deletions.
2 changes: 1 addition & 1 deletion .yardopts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--title "Node.x Ruby API" --readme README.md --no-private --output-dir target/docs/ruby/api/ src/main/ruby/nodex.rb src/main/ruby/core/** - LICENSE.txt
--title "vert.x Ruby API" --readme README.md --no-private --output-dir target/docs/ruby/api/ src/main/ruby/vertx.rb src/main/ruby/core/** - LICENSE.txt
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Node.x is licensed under the Apache License, Version 2.0 (the "License");
vert.x is licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

You may obtain a copy of the License at
Expand Down
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Node.x
# vert.x

## What is Node.x?
## What is vert.x?

The next generation polyglot asynchronous application framework.

* Runs on the JVM.
* Embraces the good bits of event driven frameworks like node.js without the bad bits. Then adds some even juicier bits.
* Everything is non-blocking.
* Polyglot. Node.x will be usable from multiple languages: Ruby, Groovy, Java, JavaScript, Python, Clojure, Scala. Write your code in the language *you* choose. Leverage the power of node.x from that language.
* Polyglot. vert.x will be usable from multiple languages: Ruby, Groovy, Java, JavaScript, Python, Clojure, Scala. Write your code in the language *you* choose. Leverage the power of vert.x from that language.
* Goes with the recent developments with InvokeDynamic in Java 7 and bets on the JVM being the future premier runtime for dynamic languages.
* Enables you to create network servers or clients incredibly easily.
* True scalability. Unlike other well-known event-driven frameworks, you can have more than one event loop per process. No more spinning up 32 instances just to utilise the cores on your server.
Expand All @@ -16,47 +16,47 @@ The next generation polyglot asynchronous application framework.
* Efficiently serve static files from the filesystem bypassing userspace altogether.
* Provides an elegant api for composing asynchronous actions together. Glue together HTTP, AMQP, Redis or whatever in a few lines of code.
* Asynchronous plugins will be provided for a wide variety of other systems and protocols including AMQP, Redis, REST, Gemfire, MongoDB, STOMP, Twitter, SMTP, JDBC, Memcached, JMS, ZeroMQ, JDBC, web frameworks, etc
* Module manager. Install modules from a public repository. Create your own applications and push them to the repo. Creates a market for an ecosystem of node.x modules.
* Module manager. Install modules from a public repository. Create your own applications and push them to the repo. Creates a market for an ecosystem of vert.x modules.

## Jump to the examples

Take a look at some of these working Ruby examples to see the kind of things you can do with Node.x
Take a look at some of these working Ruby examples to see the kind of things you can do with vert.x

[Ruby examples](https://github.com/purplefox/node.x/tree/master/src/examples/ruby "Ruby examples")
[Ruby examples](https://github.com/purplefox/vert.x/tree/master/src/examples/ruby "Ruby examples")

[Java examples](https://github.com/purplefox/node.x/tree/master/src/examples/java "Java examples")
[Java examples](https://github.com/purplefox/vert.x/tree/master/src/examples/java "Java examples")

## What is the status of Node.x?
## What is the status of vert.x?

The first binary release, node.x 0.1, has been released. We aim to follow the mantra of "release early, release often"
The first binary release, vert.x 0.1, has been released. We aim to follow the mantra of "release early, release often"

You can find the Road-map [here] (https://github.com/purplefox/node.x/wiki/Road-map)
You can find the Road-map [here] (https://github.com/purplefox/vert.x/wiki/Road-map)

## What is the architecture?

Node.x *core* is written in Java. We then provide a thin layer in each of the JVM languages we support which allows the API to be used in each of the supported languages.
vert.x *core* is written in Java. We then provide a thin layer in each of the JVM languages we support which allows the API to be used in each of the supported languages.

We do not expose the Java API directly in the other languages since we wish to retain the normal coding idioms for each supported language.

We don't leak Java stuff to other languages through the API.

Node.x internally uses [Netty](https://github.com/netty/netty "Netty") for much of the asynchronous IO.
vert.x internally uses [Netty](https://github.com/netty/netty "Netty") for much of the asynchronous IO.

## Building from source

Instructions for building node.x from source are [here](https://github.com/purplefox/node.x/wiki/Build-instructions)
Instructions for building vert.x from source are [here](https://github.com/purplefox/vert.x/wiki/Build-instructions)

## Installation and running the examples

Instructions for installing and running node.x are are [here] (https://github.com/purplefox/node.x/wiki/Instructions-for-installing-and-running-node.x)
Instructions for installing and running vert.x are are [here] (https://github.com/purplefox/vert.x/wiki/Instructions-for-installing-and-running-vert.x)

## Development and user discussions

[node.x dev Google Group](http://groups.google.com/group/nodex-dev "Node.x dev")
[vert.x dev Google Group](http://groups.google.com/group/nodex-dev "Node.x dev")

## FAQ

FAQ [here] (https://github.com/purplefox/node.x/wiki/FAQ)
FAQ [here] (https://github.com/purplefox/vert.x/wiki/FAQ)

## IRC

Expand Down
36 changes: 18 additions & 18 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@
~ limitations under the License.
-->

<project name="node.x" default="jar-core" basedir=".">
<project name="vert.x" default="jar-core" basedir=".">

<description>
Build script for node.x
Build script for vert.x
</description>

<!-- set global properties for this build -->
<property name="target" value="target"/>
<property name="jar-file" value="node.x.jar"/>
<property name="jar-file" value="vert.x.jar"/>
<property name="version-number" value="0.1"/>
<property name="dist-build-base" value="${target}/dist-build"/>
<property name="dist-build" value="${dist-build-base}/node.x-${version-number}"/>
<property name="dist-build" value="${dist-build-base}/vert.x-${version-number}"/>
<property name="core-src" value="src/main/java"/>
<property name="core-target" value="${target}/core/classes"/>

Expand All @@ -51,7 +51,7 @@
<include name="*.jar"/>
</fileset>
<pathelement location="${tests-target}"/>
<pathelement location="target/node.x.jar"/>
<pathelement location="target/vert.x.jar"/>
</path>

<taskdef name="testng" classpathref="test-classpath"
Expand Down Expand Up @@ -85,7 +85,7 @@

<target name="java-tests" depends="compile-tests">
<testng classpathref="test-classpath">
<!-- <testng classpathref="test-classpath" methods="org.nodex.tests.core.net.NetTest.*"> -->
<!-- <testng classpathref="test-classpath" methods="org.vertx.tests.core.net.NetTest.*"> -->
<sysproperty key="java.util.logging.config.file" value="${resources-dir}/logging.properties"/>
<classfileset dir="${tests-target}" includes="**/*Test.class" excludes="**/redis/*.class"/>
<!-- <classfileset dir="${tests-target}" includes="**/RedisReconnectTest.class"/> -->
Expand All @@ -104,14 +104,14 @@
</target>

<target name="javadoc" depends="compile-core">
<javadoc destdir="${target}/${javadoc-dir}" author="true" version="false" use="true" windowtitle="Node.x Java API"
classpathref="core-lib-classpath" Public="true" sourcepath="${core-src}" packagenames="org.nodex.java.core.*"
excludepackagenames="org.nodex.java.core.internal">
<javadoc destdir="${target}/${javadoc-dir}" author="true" version="false" use="true" windowtitle="vert.x Java API"
classpathref="core-lib-classpath" Public="true" sourcepath="${core-src}" packagenames="org.vertx.java.core.*"
excludepackagenames="org.vertx.java.core.internal">
<!-- <fileset dir="${core-src}" defaultexcludes="yes">
<include name="org/nodex/java/core/**"/>
<include name="org/vertx/java/core/**"/>
</fileset>
-->
<doctitle><![CDATA[<h1>Node.x Java API</h1>]]></doctitle>
<doctitle><![CDATA[<h1>vert.x Java API</h1>]]></doctitle>
</javadoc>
</target>

Expand Down Expand Up @@ -162,12 +162,12 @@
<mkdir dir="${dist-build}/bin"/>

<exec executable="cp">
<arg value="src/scripts/nodex-java"/>
<arg value="${dist-build}/bin/nodex-java"/>
<arg value="src/scripts/vertx-java"/>
<arg value="${dist-build}/bin/vertx-java"/>
</exec>
<exec executable="cp">
<arg value="src/scripts/nodex-ruby"/>
<arg value="${dist-build}/bin/nodex-ruby"/>
<arg value="src/scripts/vertx-ruby"/>
<arg value="${dist-build}/bin/vertx-ruby"/>
</exec>

<copy todir="${dist-build}/examples">
Expand All @@ -184,9 +184,9 @@
</copy>

<!-- Don't create the zip since file permissions are not preserved - use tar.gz instead
<zip destfile="${target}/node.x-${version-number}.zip" basedir="${dist-build-base}"/> -->
<zip destfile="${target}/vert.x-${version-number}.zip" basedir="${dist-build-base}"/> -->

<tar destfile="${target}/node.x-${version-number}.tar" longfile="gnu">
<tar destfile="${target}/vert.x-${version-number}.tar" longfile="gnu">
<tarfileset dir="${dist-build-base}" filemode="755">
<include name="**/bin/**"/>
</tarfileset>
Expand All @@ -195,7 +195,7 @@
</tarfileset>
</tar>

<gzip destfile="${target}/node.x-${version-number}.tar.gz" src="${target}/node.x-${version-number}.tar"/>
<gzip destfile="${target}/vert.x-${version-number}.tar.gz" src="${target}/vert.x-${version-number}.tar"/>
</target>

</project>
6 changes: 3 additions & 3 deletions docs/dev-manual.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
Node.x developers manual
vert.x developers manual
------------------------

Topics:

1) Intro to node.x - what is it?
1) Intro to vert.x - what is it?

2) Creating TCP servers and clients

3) Creating HTTP servers and clients

4) Websockets

5) The node.x concurrency model
5) The vert.x concurrency model

6) Sharing data between event loops

Expand Down
6 changes: 3 additions & 3 deletions mgmt/Planning.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Node.x planning/ideas/TODO
vert.x planning/ideas/TODO
==========================

Modules
Expand All @@ -14,7 +14,7 @@ STDIO - done
Buffer - done
Composition - partially done
Shared data - done
Node (including Timers, registering handlers) - done
Vertx (including Timers, registering handlers) - done
FileSystem - done
ParseTools - done
Http - done
Expand Down Expand Up @@ -76,7 +76,7 @@ TODO
12) Netty needs to implement event loop
13) HTTP server side 100-continue handling
15) Netty should build timers into event loop
19) Make Java nodex methods static ??
19) Make Java vertx methods static ??
20) Package manager and deployment
21) HTTPClient should pool HTTP connections in same way as redis client, i.e. have HTTPPool and HTTPConnection class -
otherwise can't do proper pipelining since can't guarantee same connection.
Expand Down
42 changes: 21 additions & 21 deletions src/examples/java/README
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Node.x Java Examples
vert.x Java Examples
====================

Prerequisites:
Expand All @@ -13,9 +13,9 @@ Prerequisites:

2. Run an example by invoking:

nodex-java -cp classes <example class name>
vertx-java -cp classes <example class name>

where <example class name> is, for example, org.nodex.java.examples.echo.EchoServer
where <example class name> is, for example, org.vertx.java.examples.echo.EchoServer

There now follows a description of all the available examples:

Expand All @@ -26,13 +26,13 @@ A simple echo server which echos back any sent to it

To run the server:

nodex-java -cp classes org.nodex.java.examples.echo.EchoServer
vertx-java -cp classes org.vertx.java.examples.echo.EchoServer

Then either telnet localhost 8080 and notice how text entered via telnet is echoed back

Instead of telnet you can also run a simple echo client:

nodex-java -cp classes org.nodex.java.examples.echo.EchoClient
vertx-java -cp classes org.vertx.java.examples.echo.EchoClient

Fanout Server
=============
Expand All @@ -41,7 +41,7 @@ Fans out all data received on any one connection to all other connections.

To run the server:

nodex-java -cp classes org.nodex.java.examples.fanout.FanoutServer
vertx-java -cp classes org.vertx.java.examples.fanout.FanoutServer

Then telnet localhost 8080 from different consoles. Note how data entered in telnet is echoed to all connected connections

Expand All @@ -53,13 +53,13 @@ request and displays the response it receives.

To run the server:

nodex-java -cp classes org.nodex.java.examples.http.ServerExample
vertx-java -cp classes org.vertx.java.examples.http.ServerExample

Then point your browser at http://localhost:8080

Alternatively, you can also run the HTTP client:

nodex-java -cp classes org.nodex.java.examples.http.ClientExample
vertx-java -cp classes org.vertx.java.examples.http.ClientExample

HTTPS
=====
Expand All @@ -68,13 +68,13 @@ Like the HTTP example, but using HTTPS

To run the server:

nodex-java -cp classes org.nodex.java.examples.https.ServerExample
vertx-java -cp classes org.vertx.java.examples.https.ServerExample

Then point your browser at http://localhost:4443

Alternatively, you can also run the HTTPS client:

nodex-java -cp classes org.nodex.java.examples.https.ClientExample
vertx-java -cp classes org.vertx.java.examples.https.ClientExample

You'll get a warning from your browser since the server certificate the server is using is not known to it, that's
normal.
Expand All @@ -97,15 +97,15 @@ To run, open three consoles.

In console 1, run the http server:

nodex-java -cp classes org.nodex.java.examples.proxy.HttpServer
vertx-java -cp classes org.vertx.java.examples.proxy.HttpServer

In console 2, run the proxy server:

nodex-java -cp classes org.nodex.java.examples.proxy.ProxyServer
vertx-java -cp classes org.vertx.java.examples.proxy.ProxyServer

In console 3, run the http client:

nodex-java -cp classes org.nodex.java.examples.proxy.HttpClient
vertx-java -cp classes org.vertx.java.examples.proxy.HttpClient

PubSub
======
Expand Down Expand Up @@ -138,7 +138,7 @@ Where:

To run the server:

nodex-java -cp classes org.nodex.java.examples.pubsub.PubSubServer
vertx-java -cp classes org.vertx.java.examples.pubsub.PubSubServer

Then open some more consoles and telnet localhost 8080, and experiment with the protocol.

Expand All @@ -152,7 +152,7 @@ The example contains three static pages: index.html, page1.html and page2.html w

To run the server:

nodex-java -cp classes org.nodex.java.examples.sendfile.SendFileExample
vertx-java -cp classes org.vertx.java.examples.sendfile.SendFileExample

Then point your browser at http://localhost:8080 and click around

Expand All @@ -163,11 +163,11 @@ This is like the echo example, but this time using SSL.

To run the server:

nodex-java -cp classes org.nodex.java.examples.ssl.SSLServer
vertx-java -cp classes org.vertx.java.examples.ssl.SSLServer

To run the client:

nodex-java -cp classes org.nodex.java.examples.ssl.SSLClient
vertx-java -cp classes org.vertx.java.examples.ssl.SSLClient

Upload
======
Expand All @@ -177,11 +177,11 @@ HTTP request and streams the data to a file on disk.

To run the server:

nodex-java -cp classes org.nodex.java.examples.upload.UploadServer
vertx-java -cp classes org.vertx.java.examples.upload.UploadServer

To run the client:

nodex-java -cp classes org.nodex.java.examples.upload.UploadClient
vertx-java -cp classes org.vertx.java.examples.upload.UploadClient

Websockets
==========
Expand All @@ -191,7 +191,7 @@ to create a websocket to a server, and send and receive data from it.

To run the server:

nodex-java -cp classes org.nodex.java.examples.websockets.WebsocketsExample
vertx-java -cp classes org.vertx.java.examples.websockets.WebsocketsExample

Then point your browser at: http://localhost:8080

Expand All @@ -205,7 +205,7 @@ To run this example you must have a Redis server running on localhost.

The, to run the example:

nodex-java -cp classes org.nodex.java.examples.redis.RedisExample
vertx-java -cp classes org.vertx.java.examples.redis.RedisExample

Then point your browser at: http://localhost:8080 and hit refresh a few times

Expand Down
Loading

0 comments on commit a667491

Please sign in to comment.