Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
JAliEn
JAliEn
Commits
3907c245
Commit
3907c245
authored
Jun 26, 2018
by
Miguel Martinez Pedreira
Browse files
Missing dep from the driver tarball
parent
159162c8
Changes
3
Hide whitespace changes
Inline
Side-by-side
lib/netty-common-4.0.56.Final.jar
0 → 100644
View file @
3907c245
File added
lib/netty-transport-native-epoll-4.0.56.Final.jar
deleted
100644 → 0
View file @
159162c8
File deleted
src/alien/test/cassandra/DBCassandra.java
View file @
3907c245
...
...
@@ -2,7 +2,6 @@ package alien.test.cassandra;
import
java.net.InetAddress
;
import
java.net.UnknownHostException
;
import
java.util.ArrayList
;
import
java.util.logging.Logger
;
import
com.datastax.driver.core.Cluster
;
...
...
@@ -48,12 +47,13 @@ public class DBCassandra {
}
String
[]
ns
=
nodes
.
split
(
","
);
ArrayList
<
InetAddress
>
addresses
=
new
ArrayList
<>()
;
for
(
String
node
:
ns
)
{
String
[]
addresses
=
new
String
[
ns
.
length
]
;
for
(
int
i
=
0
;
i
<
ns
.
length
;
i
++
)
{
try
{
addresses
.
add
(
InetAddress
.
getByName
(
node
));
addresses
[
i
]
=
InetAddress
.
getByName
(
ns
[
i
]).
getHostAddress
();
logger
.
info
(
"Node address["
+
i
+
"]: "
+
addresses
[
i
]);
}
catch
(
UnknownHostException
e
)
{
logger
.
severe
(
"Cannot create InetAddress from: "
+
n
ode
+
" - Exception: "
+
e
);
logger
.
severe
(
"Cannot create InetAddress from: "
+
n
s
[
i
]
+
" - Exception: "
+
e
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment