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
e822aa62
Commit
e822aa62
authored
Mar 14, 2017
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added properties
parent
fb964b1c
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
69 additions
and
2 deletions
+69
-2
drip-deployer.tar.gz
drip-deployer.tar.gz
+0
-0
drip-planner.tar.gz
drip-planner.tar.gz
+0
-0
consumer.properties
drip-provisioner/etc/consumer.properties
+0
-1
provisioner.properties
drip-provisioner/etc/provisioner.properties
+1
-0
nbactions.xml
drip-provisioner/nbactions.xml
+46
-0
RPCServer.java
...main/java/nl/uva/sne/drip/drip/provisioner/RPCServer.java
+21
-1
provisioner.properies
drip-provisioner/src/main/resources/provisioner.properies
+1
-0
No files found.
drip-deployer.tar.gz
View file @
e822aa62
No preview for this file type
drip-planner.tar.gz
View file @
e822aa62
No preview for this file type
drip-provisioner/etc/consumer.properties
deleted
100644 → 0
View file @
fb964b1c
jar.file.path
=
bin/ProvisioningCore.jar
drip-provisioner/etc/provisioner.properties
0 → 100644
View file @
e822aa62
rabbitmq.host
=
127.0.0.1
drip-provisioner/nbactions.xml
0 → 100644
View file @
e822aa62
<?xml version="1.0" encoding="UTF-8"?>
<actions>
<action>
<actionName>
run
</actionName>
<packagings>
<packaging>
jar
</packaging>
</packagings>
<goals>
<goal>
process-classes
</goal>
<goal>
org.codehaus.mojo:exec-maven-plugin:1.2.1:exec
</goal>
</goals>
<properties>
<exec.args>
-classpath %classpath nl.uva.sne.drip.drip.provisioner.RPCServer /home/alogo/workspace/DRIP/drip-provisioner/etc/provisioner.properties
</exec.args>
<exec.executable>
java
</exec.executable>
</properties>
</action>
<action>
<actionName>
debug
</actionName>
<packagings>
<packaging>
jar
</packaging>
</packagings>
<goals>
<goal>
process-classes
</goal>
<goal>
org.codehaus.mojo:exec-maven-plugin:1.2.1:exec
</goal>
</goals>
<properties>
<exec.args>
-Xdebug -Xrunjdwp:transport=dt_socket,server=n,address=${jpda.address} -classpath %classpath nl.uva.sne.drip.drip.provisioner.RPCServer /home/alogo/workspace/DRIP/drip-provisioner/etc/provisioner.properties
</exec.args>
<exec.executable>
java
</exec.executable>
<jpda.listen>
true
</jpda.listen>
</properties>
</action>
<action>
<actionName>
profile
</actionName>
<packagings>
<packaging>
jar
</packaging>
</packagings>
<goals>
<goal>
process-classes
</goal>
<goal>
org.codehaus.mojo:exec-maven-plugin:1.2.1:exec
</goal>
</goals>
<properties>
<exec.args>
-classpath %classpath nl.uva.sne.drip.drip.provisioner.RPCServer /home/alogo/workspace/DRIP/drip-provisioner/etc/provisioner.properties
</exec.args>
<exec.executable>
java
</exec.executable>
</properties>
</action>
</actions>
drip-provisioner/src/main/java/nl/uva/sne/drip/drip/provisioner/RPCServer.java
View file @
e822aa62
...
@@ -19,7 +19,10 @@ import com.rabbitmq.client.AMQP;
...
@@ -19,7 +19,10 @@ import com.rabbitmq.client.AMQP;
import
com.rabbitmq.client.Channel
;
import
com.rabbitmq.client.Channel
;
import
com.rabbitmq.client.Connection
;
import
com.rabbitmq.client.Connection
;
import
com.rabbitmq.client.ConnectionFactory
;
import
com.rabbitmq.client.ConnectionFactory
;
import
java.io.FileInputStream
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.util.Properties
;
import
java.util.concurrent.TimeoutException
;
import
java.util.concurrent.TimeoutException
;
import
java.util.logging.Level
;
import
java.util.logging.Level
;
import
java.util.logging.Logger
;
import
java.util.logging.Logger
;
...
@@ -31,9 +34,26 @@ import java.util.logging.Logger;
...
@@ -31,9 +34,26 @@ import java.util.logging.Logger;
public
class
RPCServer
{
public
class
RPCServer
{
private
static
final
String
RPC_QUEUE_NAME
=
"provisioner_queue"
;
private
static
final
String
RPC_QUEUE_NAME
=
"provisioner_queue"
;
private
static
final
String
HOST
=
"127.0.0.1"
;
private
static
String
HOST
=
"127.0.0.1"
;
public
static
void
main
(
String
[]
argv
)
{
public
static
void
main
(
String
[]
argv
)
{
Properties
prop
=
new
Properties
();
if
(
argv
.
length
>=
1
)
{
try
{
prop
.
load
(
new
FileInputStream
(
argv
[
0
]));
}
catch
(
IOException
ex
)
{
Logger
.
getLogger
(
RPCServer
.
class
.
getName
()).
log
(
Level
.
SEVERE
,
null
,
ex
);
}
}
else
{
String
resourceName
=
"provisioner.properies"
;
ClassLoader
loader
=
Thread
.
currentThread
().
getContextClassLoader
();
try
(
InputStream
resourceStream
=
loader
.
getResourceAsStream
(
resourceName
))
{
prop
.
load
(
resourceStream
);
}
catch
(
IOException
ex
)
{
Logger
.
getLogger
(
RPCServer
.
class
.
getName
()).
log
(
Level
.
SEVERE
,
null
,
ex
);
}
}
HOST
=
prop
.
getProperty
(
"rabbitmq.host"
,
"127.0.0.1"
);
start
();
start
();
}
}
...
...
drip-provisioner/src/main/resources/provisioner.properies
0 → 100644
View file @
e822aa62
rabbitmq.host=127.0.0.1
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