Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CONF
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UvA
CONF
Commits
fbd089e7
Commit
fbd089e7
authored
Feb 15, 2017
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Chaned from system call to java call
parent
7da2d687
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
8 deletions
+16
-8
pom.xml
drip-provisioner/pom.xml
+7
-0
Consumer.java
.../main/java/nl/uva/sne/drip/drip/provisioner/Consumer.java
+9
-8
No files found.
drip-provisioner/pom.xml
View file @
fbd089e7
...
...
@@ -20,6 +20,13 @@
<version>
1.0-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
nl.uva.sne.drip
</groupId>
<artifactId>
drip-provisioning-core
</artifactId>
<version>
1.0-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
com.rabbitmq
</groupId>
<artifactId>
amqp-client
</artifactId>
...
...
drip-provisioner/src/main/java/nl/uva/sne/drip/drip/provisioner/Consumer.java
View file @
fbd089e7
...
...
@@ -241,14 +241,15 @@ public class Consumer extends DefaultConsumer {
}
String
cmd
=
"java -jar "
+
jarFilePath
+
" ec2="
+
ec2ConfFilePath
+
" exogeni="
+
geniConfFilePath
+
" logDir="
+
logDir
+
" topology="
+
mainTopologyPath
;
try
{
Logger
.
getLogger
(
Consumer
.
class
.
getName
()).
log
(
Level
.
INFO
,
"Executing: "
+
cmd
);
Process
p
=
Runtime
.
getRuntime
().
exec
(
cmd
);
p
.
waitFor
();
}
catch
(
IOException
|
InterruptedException
e
)
{
// TODO Auto-generated catch block
Logger
.
getLogger
(
Consumer
.
class
.
getName
()).
log
(
Level
.
SEVERE
,
null
,
e
);
}
Provisioning
.
ProvisioningCore
.
main
(
cmd
.
split
(
" "
));
// try {
// Logger.getLogger(Consumer.class.getName()).log(Level.INFO, "Executing: " + cmd);
// Process p = Runtime.getRuntime().exec(cmd);
// p.waitFor();
// } catch (IOException | InterruptedException e) {
// // TODO Auto-generated catch block
// Logger.getLogger(Consumer.class.getName()).log(Level.SEVERE, null, e);
// }
topologyElement
x
=
new
topologyElement
();
x
.
topologyName
=
"kubernetes"
;
...
...
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