Skip to content

Commit d5196a1

Browse files
Artem LabazinArtem Labazin
authored andcommitted
update dependencies
1 parent b8491ab commit d5196a1

File tree

56 files changed

+381
-420
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+381
-420
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2424
- Do we really need `ErlangInteger.cache` methods?
2525
- Add atom's table equivalent.
2626

27+
## [1.6.8](https://github.com/appulse-projects/encon-java/releases/tag/1.6.8) - 2019-04-07
28+
29+
### Changed
30+
31+
- Updated dependencies and plugins versions.
32+
2733
## [1.6.7](https://github.com/appulse-projects/encon-java/releases/tag/1.6.7) - 2018-10-07
2834

2935
### Changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ $> mvn clean compile
5050
[INFO] ------------------------------------------------------------------------
5151
[INFO] Reactor Summary:
5252
[INFO]
53-
[INFO] encon 1.6.7 ........................................ SUCCESS [ 1.210 s]
53+
[INFO] encon 1.6.8 ........................................ SUCCESS [ 1.210 s]
5454
[INFO] encon-common ....................................... SUCCESS [ 25.693 s]
5555
[INFO] encon-terms ........................................ SUCCESS [ 27.517 s]
5656
[INFO] encon-config ....................................... SUCCESS [ 18.707 s]
@@ -68,7 +68,7 @@ $> mvn clean compile
6868
[INFO] handler-advanced ................................... SUCCESS [ 11.289 s]
6969
[INFO] load-config ........................................ SUCCESS [ 3.725 s]
7070
[INFO] load-config-spring ................................. SUCCESS [ 6.420 s]
71-
[INFO] benchmark 1.6.7 .................................... SUCCESS [ 5.594 s]
71+
[INFO] benchmark 1.6.8 .................................... SUCCESS [ 5.594 s]
7272
[INFO] ------------------------------------------------------------------------
7373
[INFO] BUILD SUCCESS
7474
[INFO] ------------------------------------------------------------------------

benchmark/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ limitations under the License.
2525
<parent>
2626
<groupId>io.appulse.encon</groupId>
2727
<artifactId>encon-parent</artifactId>
28-
<version>1.6.7</version>
28+
<version>1.6.8</version>
2929
</parent>
3030

3131
<artifactId>benchmark</artifactId>

benchmark/src/main/java/io/appulse/encon/benchmark/Main.java

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,19 @@
1616

1717
package io.appulse.encon.benchmark;
1818

19+
import static java.util.concurrent.TimeUnit.SECONDS;
20+
1921
import java.io.IOException;
22+
import java.net.InetAddress;
2023
import java.util.concurrent.ExecutorService;
2124
import java.util.concurrent.Executors;
25+
import java.util.concurrent.Future;
2226

23-
import io.appulse.epmd.java.server.cli.CommonOptions;
24-
import io.appulse.epmd.java.server.command.server.ServerCommandExecutor;
25-
import io.appulse.epmd.java.server.command.server.ServerCommandOptions;
27+
import io.appulse.epmd.java.server.SubcommandServer;
2628
import io.appulse.utils.SocketUtils;
29+
import lombok.SneakyThrows;
30+
import lombok.val;
31+
import lombok.extern.slf4j.Slf4j;
2732

2833
import org.openjdk.jmh.runner.Defaults;
2934
import org.openjdk.jmh.runner.NoBenchmarksException;
@@ -39,11 +44,12 @@
3944
* @since 1.6.0
4045
* @author Artem Labazin
4146
*/
47+
@Slf4j
4248
public class Main {
4349

4450
private static ExecutorService executor;
4551

46-
private static ServerCommandExecutor server;
52+
private static Future<?> future;
4753

4854
public static void main(String[] argv) throws RunnerException, IOException {
4955
try {
@@ -111,24 +117,35 @@ public static void main(String[] argv) throws RunnerException, IOException {
111117
}
112118
}
113119

120+
@SneakyThrows
114121
private static void startEpmd () {
115122
if (!SocketUtils.isPortAvailable(4369)) {
116123
return;
117124
}
118125
executor = Executors.newSingleThreadExecutor();
119126

120-
ServerCommandOptions options = new ServerCommandOptions();
121-
options.setChecks(true);
127+
val server = SubcommandServer.builder()
128+
.port(SocketUtils.findFreePort().orElseThrow(RuntimeException::new))
129+
.ip(InetAddress.getByName("0.0.0.0"))
130+
.build();
122131

123-
server = new ServerCommandExecutor(new CommonOptions(), options);
124-
executor.execute(server::execute);
132+
future = executor.submit(() -> {
133+
try {
134+
server.run();
135+
} catch (Throwable ex) {
136+
log.error("popa", ex);
137+
}
138+
});
139+
SECONDS.sleep(1);
125140
}
126141

127142
private static void stopEpmd () {
128143
if (executor == null) {
129144
return;
130145
}
131-
server.close();
146+
if (future != null) {
147+
future.cancel(true);
148+
}
132149
executor.shutdown();
133150
}
134151
}

encon-common/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ limitations under the License.
2525
<parent>
2626
<groupId>io.appulse.encon</groupId>
2727
<artifactId>encon-parent</artifactId>
28-
<version>1.6.7</version>
28+
<version>1.6.8</version>
2929
</parent>
3030

3131
<artifactId>encon-common</artifactId>

encon-common/src/main/java/io/appulse/encon/common/NodeDescriptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public static boolean removeFromCache (@NonNull NodeDescriptor descriptor) {
185185

186186
private static NodeDescriptor getFromCacheOrCreateNew (@NonNull String node) {
187187
val atIndex = node.indexOf('@');
188-
val isShortName = atIndex < 0 || node.indexOf('.', atIndex) < 0;
188+
boolean isShortName = atIndex < 0 || node.indexOf('.', atIndex) < 0;
189189
return getFromCacheOrCreateNew(node, isShortName);
190190
}
191191

encon-common/src/test/java/io/appulse/encon/common/DistributionFlagTest.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@
2323

2424
import java.util.stream.Stream;
2525

26-
import io.appulse.utils.test.TestMethodNamePrinter;
27-
28-
import org.junit.Rule;
2926
import org.junit.Test;
30-
import org.junit.rules.TestRule;
3127

3228
/**
3329
*
@@ -36,9 +32,6 @@
3632
*/
3733
public class DistributionFlagTest {
3834

39-
@Rule
40-
public TestRule watcher = new TestMethodNamePrinter();
41-
4235
@Test
4336
public void parse () {
4437
Stream.of(DistributionFlag.values()).forEach(it -> {

encon-common/src/test/java/io/appulse/encon/common/NodeDescriptorTest.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,8 @@
2020

2121
import java.net.InetAddress;
2222

23-
import io.appulse.utils.test.TestMethodNamePrinter;
24-
2523
import org.assertj.core.api.SoftAssertions;
26-
import org.junit.Rule;
2724
import org.junit.Test;
28-
import org.junit.rules.TestRule;
2925

3026
/**
3127
*
@@ -34,9 +30,6 @@
3430
*/
3531
public class NodeDescriptorTest {
3632

37-
@Rule
38-
public TestRule watcher = new TestMethodNamePrinter();
39-
4033
@Test
4134
public void fullShortName () throws Exception {
4235
InetAddress address = InetAddress.getByName("localhost");

encon-config/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ First of all, add config's dependency:
1919
<dependency>
2020
<groupId>io.appulse.encon</groupId>
2121
<artifactId>encon-config</artifactId>
22-
<version>1.6.7</version>
22+
<version>1.6.8</version>
2323
</dependency>
2424
...
2525
</dependencies>
@@ -28,7 +28,7 @@ First of all, add config's dependency:
2828
**Gradle**:
2929

3030
```groovy
31-
compile 'io.appulse.encon:encon-config:1.6.7'
31+
compile 'io.appulse.encon:encon-config:1.6.8'
3232
```
3333

3434
### File based configuration

encon-config/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ limitations under the License.
2525
<parent>
2626
<groupId>io.appulse.encon</groupId>
2727
<artifactId>encon-parent</artifactId>
28-
<version>1.6.7</version>
28+
<version>1.6.8</version>
2929
</parent>
3030

3131
<artifactId>encon-config</artifactId>
@@ -50,7 +50,7 @@ limitations under the License.
5050
<dependency>
5151
<groupId>org.yaml</groupId>
5252
<artifactId>snakeyaml</artifactId>
53-
<version>1.21</version>
53+
<version>1.24</version>
5454
</dependency>
5555

5656
<dependency>

0 commit comments

Comments
 (0)