Skip to content

Commit

Permalink
Add serialization for ATOM and SMALL_ATOM
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Labazin authored and Artem Labazin committed Sep 28, 2018
1 parent 098de58 commit 7630ead
Show file tree
Hide file tree
Showing 26 changed files with 40 additions and 32 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Turn on checkstyle JavaDocs module.
- Add updates to the protocol, like new `ControlMessage`.

## [1.6.5](https://github.com/appulse-projects/encon-java/releases/tag/1.6.5) - 2018-09-28

### Changed

- Quick fix for [GitHub issue](https://github.com/appulse-projects/encon-java/issues/10), added `ATOM` and `SMALL_ATOM` serialization.

## [1.6.4](https://github.com/appulse-projects/encon-java/releases/tag/1.6.4) - 2018-09-14

### Added
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ $> mvn clean compile
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] encon 1.6.4 ........................................ SUCCESS [ 1.210 s]
[INFO] encon 1.6.5 ........................................ SUCCESS [ 1.210 s]
[INFO] encon-common ....................................... SUCCESS [ 25.693 s]
[INFO] encon-terms ........................................ SUCCESS [ 27.517 s]
[INFO] encon-config ....................................... SUCCESS [ 18.707 s]
Expand All @@ -64,7 +64,7 @@ $> mvn clean compile
[INFO] handler-advanced ................................... SUCCESS [ 11.289 s]
[INFO] load-config ........................................ SUCCESS [ 3.725 s]
[INFO] load-config-spring ................................. SUCCESS [ 6.420 s]
[INFO] benchmark 1.6.4 .................................... SUCCESS [ 5.594 s]
[INFO] benchmark 1.6.5 .................................... SUCCESS [ 5.594 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion benchmark/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ limitations under the License.
<parent>
<groupId>io.appulse.encon</groupId>
<artifactId>encon-parent</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
</parent>

<artifactId>benchmark</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion encon-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ limitations under the License.
<parent>
<groupId>io.appulse.encon</groupId>
<artifactId>encon-parent</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
</parent>

<artifactId>encon-common</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions encon-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ First of all, add config's dependency:
<dependency>
<groupId>io.appulse.encon</groupId>
<artifactId>encon-config</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
</dependency>
...
</dependencies>
Expand All @@ -23,7 +23,7 @@ First of all, add config's dependency:
**Gradle**:

```groovy
compile 'io.appulse.encon:encon-config:1.6.4'
compile 'io.appulse.encon:encon-config:1.6.5'
```

### File based configuration
Expand Down
2 changes: 1 addition & 1 deletion encon-config/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ limitations under the License.
<parent>
<groupId>io.appulse.encon</groupId>
<artifactId>encon-parent</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
</parent>

<artifactId>encon-config</artifactId>
Expand Down
8 changes: 4 additions & 4 deletions encon-databind/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ First of all, add databind's dependency:
<dependency>
<groupId>io.appulse.encon</groupId>
<artifactId>encon</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
</dependency>
<dependency>
<groupId>io.appulse.encon</groupId>
<artifactId>encon-databind</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
</dependency>
...
</dependencies>
Expand All @@ -28,8 +28,8 @@ First of all, add databind's dependency:
**Gradle**:

```groovy
compile 'io.appulse.encon:encon:1.6.4'
compile 'io.appulse.encon:encon-databind:1.6.4'
compile 'io.appulse.encon:encon:1.6.5'
compile 'io.appulse.encon:encon-databind:1.6.5'
```

Let's imagine, you have POJO like this:
Expand Down
2 changes: 1 addition & 1 deletion encon-databind/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ limitations under the License.
<parent>
<groupId>io.appulse.encon</groupId>
<artifactId>encon-parent</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
</parent>

<artifactId>encon-databind</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions encon-handler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ First of all, add dependency:
<dependency>
<groupId>io.appulse.encon</groupId>
<artifactId>encon-handler</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
</dependency>
...
</dependencies>
Expand All @@ -23,7 +23,7 @@ First of all, add dependency:
**Gradle**:

```groovy
compile 'io.appulse.encon:encon-handler:1.6.4'
compile 'io.appulse.encon:encon-handler:1.6.5'
```

### Basics
Expand Down
2 changes: 1 addition & 1 deletion encon-handler/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ limitations under the License.
<parent>
<groupId>io.appulse.encon</groupId>
<artifactId>encon-parent</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
</parent>

<artifactId>encon-handler</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion encon-spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ limitations under the License.
<parent>
<groupId>io.appulse.encon</groupId>
<artifactId>encon-parent</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
</parent>

<artifactId>encon-spring</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion encon-terms/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ limitations under the License.
<parent>
<groupId>io.appulse.encon</groupId>
<artifactId>encon-parent</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
</parent>

<artifactId>encon-terms</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,11 @@ public boolean isTextual () {
protected void serialize (ByteBuf buffer) {
switch (getType()) {
case SMALL_ATOM_UTF8:
case SMALL_ATOM:
buffer.writeByte(bytes.length);
break;
case ATOM_UTF8:
case ATOM:
buffer.writeShort(bytes.length);
break;
default:
Expand Down
4 changes: 2 additions & 2 deletions encon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Adding encon's dependency to your `JVM` app:
<dependency>
<groupId>io.appulse.encon</groupId>
<artifactId>encon</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
</dependency>
...
</dependencies>
Expand All @@ -30,7 +30,7 @@ Adding encon's dependency to your `JVM` app:
**Gradle**:

```groovy
compile 'io.appulse.encon:encon:1.6.4'
compile 'io.appulse.encon:encon:1.6.5'
```

## Start the Node
Expand Down
2 changes: 1 addition & 1 deletion encon/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ limitations under the License.
<parent>
<groupId>io.appulse.encon</groupId>
<artifactId>encon-parent</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
</parent>

<artifactId>encon</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-queue/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ limitations under the License.
<parent>
<groupId>io.appulse.encon</groupId>
<artifactId>examples</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
</parent>

<groupId>io.appulse.encon.examples</groupId>
Expand Down
2 changes: 1 addition & 1 deletion examples/databind/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ limitations under the License.
<parent>
<groupId>io.appulse.encon</groupId>
<artifactId>examples</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
</parent>

<groupId>io.appulse.encon.examples</groupId>
Expand Down
2 changes: 1 addition & 1 deletion examples/echo-server-spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ limitations under the License.
<parent>
<groupId>io.appulse.encon</groupId>
<artifactId>examples</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
</parent>

<dependencyManagement>
Expand Down
2 changes: 1 addition & 1 deletion examples/echo-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ limitations under the License.
<parent>
<groupId>io.appulse.encon</groupId>
<artifactId>examples</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
</parent>

<groupId>io.appulse.encon.examples</groupId>
Expand Down
2 changes: 1 addition & 1 deletion examples/handler-advanced/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ limitations under the License.
<parent>
<groupId>io.appulse.encon</groupId>
<artifactId>examples</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
</parent>

<groupId>io.appulse.encon.examples</groupId>
Expand Down
2 changes: 1 addition & 1 deletion examples/handler-basic/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ limitations under the License.
<parent>
<groupId>io.appulse.encon</groupId>
<artifactId>examples</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
</parent>

<groupId>io.appulse.encon.examples</groupId>
Expand Down
2 changes: 1 addition & 1 deletion examples/load-config-spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ limitations under the License.
<parent>
<groupId>io.appulse.encon</groupId>
<artifactId>examples</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
</parent>

<dependencyManagement>
Expand Down
2 changes: 1 addition & 1 deletion examples/load-config/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ limitations under the License.
<parent>
<groupId>io.appulse.encon</groupId>
<artifactId>examples</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
</parent>

<groupId>io.appulse.encon.examples</groupId>
Expand Down
2 changes: 1 addition & 1 deletion examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ limitations under the License.
<parent>
<groupId>io.appulse.encon</groupId>
<artifactId>encon-parent</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
</parent>

<artifactId>examples</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/simple/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ limitations under the License.
<parent>
<groupId>io.appulse.encon</groupId>
<artifactId>examples</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
</parent>

<groupId>io.appulse.encon.examples</groupId>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ limitations under the License.

<groupId>io.appulse.encon</groupId>
<artifactId>encon-parent</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
<packaging>pom</packaging>

<properties>
Expand Down Expand Up @@ -74,7 +74,7 @@ limitations under the License.
<url>https://github.com/appulse-projects/encon-java</url>
<connection>scm:git:https://github.com/appulse-projects/encon-java.git</connection>
<developerConnection>scm:git:https://github.com/appulse-projects/encon-java.git</developerConnection>
<tag>1.6.4</tag>
<tag>1.6.5</tag>
</scm>

<distributionManagement>
Expand Down

0 comments on commit 7630ead

Please sign in to comment.