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
d5334ea6
Commit
d5334ea6
authored
Mar 10, 2017
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documentation
parent
f28be060
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
95 additions
and
15 deletions
+95
-15
CloudConfigurationController0.java
...a/sne/drip/api/v0/rest/CloudConfigurationController0.java
+1
-1
DeployController0.java
...n/java/nl/uva/sne/drip/api/v0/rest/DeployController0.java
+3
-3
PlannerController0.java
.../java/nl/uva/sne/drip/api/v0/rest/PlannerController0.java
+1
-1
ProvisionController0.java
...ava/nl/uva/sne/drip/api/v0/rest/ProvisionController0.java
+2
-4
UserController0.java
...ain/java/nl/uva/sne/drip/api/v0/rest/UserController0.java
+1
-1
UserPublicKeysController0.java
...l/uva/sne/drip/api/v0/rest/UserPublicKeysController0.java
+0
-3
UserScriptController0.java
...va/nl/uva/sne/drip/api/v0/rest/UserScriptController0.java
+1
-1
Attribute.java
...main/java/nl/uva/sne/drip/commons/v0/types/Attribute.java
+16
-0
ConfScript.java
...ain/java/nl/uva/sne/drip/commons/v0/types/ConfScript.java
+5
-0
Configure.java
...main/java/nl/uva/sne/drip/commons/v0/types/Configure.java
+30
-0
Execute.java
...c/main/java/nl/uva/sne/drip/commons/v0/types/Execute.java
+14
-0
Register.java
.../main/java/nl/uva/sne/drip/commons/v0/types/Register.java
+10
-0
Result.java
...rc/main/java/nl/uva/sne/drip/commons/v0/types/Result.java
+11
-1
No files found.
drip-api/src/main/java/nl/uva/sne/drip/api/v0/rest/CloudConfigurationController0.java
View file @
d5334ea6
...
@@ -44,7 +44,7 @@ import org.springframework.web.bind.annotation.RequestBody;
...
@@ -44,7 +44,7 @@ import org.springframework.web.bind.annotation.RequestBody;
* @author S. Koulouzis
* @author S. Koulouzis
*/
*/
@RestController
@RestController
@RequestMapping
(
"/user/v0.0/switch/account/configure
/
"
)
@RequestMapping
(
"/user/v0.0/switch/account/configure"
)
@Component
@Component
public
class
CloudConfigurationController0
{
public
class
CloudConfigurationController0
{
...
...
drip-api/src/main/java/nl/uva/sne/drip/api/v0/rest/DeployController0.java
View file @
d5334ea6
...
@@ -41,7 +41,7 @@ import org.springframework.web.bind.annotation.RequestBody;
...
@@ -41,7 +41,7 @@ import org.springframework.web.bind.annotation.RequestBody;
* @author S. Koulouzis
* @author S. Koulouzis
*/
*/
@RestController
@RestController
@RequestMapping
(
"/user/v0.0/switch/deploy
/
"
)
@RequestMapping
(
"/user/v0.0/switch/deploy"
)
@Component
@Component
@PreAuthorize
(
"isAuthenticated()"
)
@PreAuthorize
(
"isAuthenticated()"
)
public
class
DeployController0
{
public
class
DeployController0
{
...
@@ -49,14 +49,14 @@ public class DeployController0 {
...
@@ -49,14 +49,14 @@ public class DeployController0 {
@Autowired
@Autowired
private
DeployClusterService
deployService
;
private
DeployClusterService
deployService
;
@RequestMapping
(
value
=
"/kubernetes"
,
method
=
RequestMethod
.
POST
,
consumes
=
MediaType
.
TEXT_XML_VALUE
)
@RequestMapping
(
value
=
"/kubernetes"
,
method
=
RequestMethod
.
POST
,
consumes
=
MediaType
.
TEXT_XML_VALUE
,
produces
=
MediaType
.
TEXT_XML_VALUE
)
@RolesAllowed
({
UserService
.
USER
,
UserService
.
ADMIN
})
@RolesAllowed
({
UserService
.
USER
,
UserService
.
ADMIN
})
public
@ResponseBody
public
@ResponseBody
Result
deployKubernetes
(
@RequestBody
Deploy
deploy
)
{
Result
deployKubernetes
(
@RequestBody
Deploy
deploy
)
{
return
deploy
(
deploy
,
"kubernetes"
);
return
deploy
(
deploy
,
"kubernetes"
);
}
}
@RequestMapping
(
value
=
"/swarm"
,
method
=
RequestMethod
.
POST
,
consumes
=
MediaType
.
TEXT_XML_VALUE
)
@RequestMapping
(
value
=
"/swarm"
,
method
=
RequestMethod
.
POST
,
consumes
=
MediaType
.
TEXT_XML_VALUE
,
produces
=
MediaType
.
TEXT_XML_VALUE
)
@RolesAllowed
({
UserService
.
USER
,
UserService
.
ADMIN
})
@RolesAllowed
({
UserService
.
USER
,
UserService
.
ADMIN
})
public
@ResponseBody
public
@ResponseBody
Result
deploySwarm
(
@RequestBody
Deploy
deploy
)
{
Result
deploySwarm
(
@RequestBody
Deploy
deploy
)
{
...
...
drip-api/src/main/java/nl/uva/sne/drip/api/v0/rest/PlannerController0.java
View file @
d5334ea6
...
@@ -56,7 +56,7 @@ public class PlannerController0 {
...
@@ -56,7 +56,7 @@ public class PlannerController0 {
@Autowired
@Autowired
private
ToscaService
toscaService
;
private
ToscaService
toscaService
;
@RequestMapping
(
value
=
"/planning"
,
method
=
RequestMethod
.
POST
,
consumes
=
MediaType
.
TEXT_XML_VALUE
)
@RequestMapping
(
value
=
"/planning"
,
method
=
RequestMethod
.
POST
,
consumes
=
MediaType
.
TEXT_XML_VALUE
,
produces
=
MediaType
.
TEXT_XML_VALUE
)
@RolesAllowed
({
UserService
.
USER
,
UserService
.
ADMIN
})
@RolesAllowed
({
UserService
.
USER
,
UserService
.
ADMIN
})
public
@ResponseBody
public
@ResponseBody
Result
plan
(
@RequestBody
Plan
plan0
)
{
Result
plan
(
@RequestBody
Plan
plan0
)
{
...
...
drip-api/src/main/java/nl/uva/sne/drip/api/v0/rest/ProvisionController0.java
View file @
d5334ea6
...
@@ -58,7 +58,7 @@ import org.springframework.web.bind.annotation.RequestBody;
...
@@ -58,7 +58,7 @@ import org.springframework.web.bind.annotation.RequestBody;
* @author S. Koulouzis
* @author S. Koulouzis
*/
*/
@RestController
@RestController
@RequestMapping
(
"/user/v0.0/switch/provision
/
"
)
@RequestMapping
(
"/user/v0.0/switch/provision"
)
@Component
@Component
@PreAuthorize
(
"isAuthenticated()"
)
@PreAuthorize
(
"isAuthenticated()"
)
public
class
ProvisionController0
{
public
class
ProvisionController0
{
...
@@ -78,8 +78,6 @@ public class ProvisionController0 {
...
@@ -78,8 +78,6 @@ public class ProvisionController0 {
@Autowired
@Autowired
private
PlannerService
planService
;
private
PlannerService
planService
;
@RequestMapping
(
value
=
"/upload"
,
method
=
RequestMethod
.
POST
,
consumes
=
MediaType
.
TEXT_XML_VALUE
)
@RequestMapping
(
value
=
"/upload"
,
method
=
RequestMethod
.
POST
,
consumes
=
MediaType
.
TEXT_XML_VALUE
)
@RolesAllowed
({
UserService
.
USER
,
UserService
.
ADMIN
})
@RolesAllowed
({
UserService
.
USER
,
UserService
.
ADMIN
})
public
@ResponseBody
public
@ResponseBody
...
@@ -121,7 +119,7 @@ public class ProvisionController0 {
...
@@ -121,7 +119,7 @@ public class ProvisionController0 {
+
provInfo
.
getId
();
+
provInfo
.
getId
();
}
}
@RequestMapping
(
value
=
"/execute"
,
method
=
RequestMethod
.
POST
,
consumes
=
MediaType
.
TEXT_XML_VALUE
)
@RequestMapping
(
value
=
"/execute"
,
method
=
RequestMethod
.
POST
,
consumes
=
MediaType
.
TEXT_XML_VALUE
,
produces
=
MediaType
.
TEXT_XML_VALUE
)
@RolesAllowed
({
UserService
.
USER
,
UserService
.
ADMIN
})
@RolesAllowed
({
UserService
.
USER
,
UserService
.
ADMIN
})
public
@ResponseBody
public
@ResponseBody
Result
execute
(
@RequestBody
Execute
exc
)
{
Result
execute
(
@RequestBody
Execute
exc
)
{
...
...
drip-api/src/main/java/nl/uva/sne/drip/api/v0/rest/UserController0.java
View file @
d5334ea6
...
@@ -39,7 +39,7 @@ import org.springframework.web.bind.annotation.RequestBody;
...
@@ -39,7 +39,7 @@ import org.springframework.web.bind.annotation.RequestBody;
* @author S. Koulouzis
* @author S. Koulouzis
*/
*/
@RestController
@RestController
@RequestMapping
(
"/manager/v0.0/switch/account
/
"
)
@RequestMapping
(
"/manager/v0.0/switch/account"
)
@Component
@Component
public
class
UserController0
{
public
class
UserController0
{
...
...
drip-api/src/main/java/nl/uva/sne/drip/api/v0/rest/UserPublicKeysController0.java
View file @
d5334ea6
...
@@ -15,8 +15,6 @@
...
@@ -15,8 +15,6 @@
*/
*/
package
nl
.
uva
.
sne
.
drip
.
api
.
v0
.
rest
;
package
nl
.
uva
.
sne
.
drip
.
api
.
v0
.
rest
;
import
java.util.ArrayList
;
import
java.util.List
;
import
javax.annotation.security.RolesAllowed
;
import
javax.annotation.security.RolesAllowed
;
import
nl.uva.sne.drip.api.service.ProvisionService
;
import
nl.uva.sne.drip.api.service.ProvisionService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -28,7 +26,6 @@ import org.springframework.web.bind.annotation.RestController;
...
@@ -28,7 +26,6 @@ import org.springframework.web.bind.annotation.RestController;
import
nl.uva.sne.drip.api.service.UserKeyService
;
import
nl.uva.sne.drip.api.service.UserKeyService
;
import
nl.uva.sne.drip.api.service.UserService
;
import
nl.uva.sne.drip.api.service.UserService
;
import
nl.uva.sne.drip.commons.v0.types.ConfUserKey
;
import
nl.uva.sne.drip.commons.v0.types.ConfUserKey
;
import
nl.uva.sne.drip.commons.v0.types.Attribute
;
import
nl.uva.sne.drip.commons.v1.types.LoginKey
;
import
nl.uva.sne.drip.commons.v1.types.LoginKey
;
import
nl.uva.sne.drip.commons.v1.types.ProvisionInfo
;
import
nl.uva.sne.drip.commons.v1.types.ProvisionInfo
;
import
org.springframework.http.MediaType
;
import
org.springframework.http.MediaType
;
...
...
drip-api/src/main/java/nl/uva/sne/drip/api/v0/rest/UserScriptController0.java
View file @
d5334ea6
...
@@ -38,7 +38,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
...
@@ -38,7 +38,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
* @author S. Koulouzis
* @author S. Koulouzis
*/
*/
@RestController
@RestController
@RequestMapping
(
"/user/v0.0/switch/provision
/
"
)
@RequestMapping
(
"/user/v0.0/switch/provision"
)
@Component
@Component
public
class
UserScriptController0
{
public
class
UserScriptController0
{
...
...
drip-api/src/main/java/nl/uva/sne/drip/commons/v0/types/Attribute.java
View file @
d5334ea6
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
*/
*/
package
nl
.
uva
.
sne
.
drip
.
commons
.
v0
.
types
;
package
nl
.
uva
.
sne
.
drip
.
commons
.
v0
.
types
;
import
com.webcohesion.enunciate.metadata.DocumentationExample
;
import
javax.xml.bind.annotation.XmlAttribute
;
import
javax.xml.bind.annotation.XmlAttribute
;
import
javax.xml.bind.annotation.XmlValue
;
import
javax.xml.bind.annotation.XmlValue
;
...
@@ -24,8 +25,23 @@ import javax.xml.bind.annotation.XmlValue;
...
@@ -24,8 +25,23 @@ import javax.xml.bind.annotation.XmlValue;
*/
*/
public
class
Attribute
{
public
class
Attribute
{
/**
* Name of the file/public key.
*/
@DocumentationExample
(
"planner_output_all"
)
@XmlAttribute
@XmlAttribute
public
String
name
;
public
String
name
;
/**
* There are two levels of description files for topologies designed by users.
* If the level attribute for the element file is 1, then this file is the top-level description,
* which defines how the sub-topologies are connected to each other.
* If the level attribute is 0, then the file is the low-level description,
* which describes the topology in one data center in detail.
* On the other hand, the name of low-level description file must be the
* sub-topology name appeared in the high-level description file. (For example, here should be zh_a and zh_b.)
*/
@DocumentationExample
(
"0"
)
@XmlAttribute
@XmlAttribute
public
String
level
;
public
String
level
;
...
...
drip-api/src/main/java/nl/uva/sne/drip/commons/v0/types/ConfScript.java
View file @
d5334ea6
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
*/
*/
package
nl
.
uva
.
sne
.
drip
.
commons
.
v0
.
types
;
package
nl
.
uva
.
sne
.
drip
.
commons
.
v0
.
types
;
import
com.webcohesion.enunciate.metadata.DocumentationExample
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
javax.xml.bind.annotation.XmlRootElement
;
/**
/**
...
@@ -24,5 +25,9 @@ import javax.xml.bind.annotation.XmlRootElement;
...
@@ -24,5 +25,9 @@ import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
@XmlRootElement
public
class
ConfScript
extends
Execute
{
public
class
ConfScript
extends
Execute
{
/**
* The script contents with new lines replace by '\n'
*/
@DocumentationExample
(
"#!/bin/bash\\n\\nlogstashScript=/root/runLogstash.sh\\nscreen -S logstash -dm /bin/bash \"$logstashScript\"\\n\\n\\nlogLevelPath=/root/\\nlogLevelFile=$logLevelPath/logstash_loglevel.csv\\nremotePath=/media/lobcder/skoulouz/\\nremoteLogPath=$remotePath/logs\\nlocalLogPath=/root/logs\\n\\nmkdir $localLogPath\\n\\n\\nfor logArchPath in $remoteLogPath/*.gz; do\\n echo \"File -> $logArchPath\"\\n if [ ! -f $logArchPath.lock ]; then\\n touch $logArchPath.lock\\n cp $logArchPath $localLogPath\\n logArchName=$(basename $logArchPath)\\n tar -xvf $localLogPath/$logArchName -C $localLogPath\\n sleep 120\\n modTime=-100\\n while [ ! -f $logLevelFile ]\\n do\\n sleep 5\\n done\\n while [ $modTime -lt 120 ]\\n do\\n moddate=$(stat -c %Y $logLevelFile)\\n moddate=${moddate%% *}\\n now=$(date +%s)\\n modTime=\"$(( $now - $moddate))\"\\n echo $modTime\\n sleep 5\\n done\\n rm $localLogPath/*.tar.gz\\n rm $localLogPath/*.log\\n modTime=-100\\n fi\\ndone\\n \\n\\nscreen -X -S logstash quit\\nsleep 5\\n\\nuid=`ifconfig | grep eth0 | awk '{print $NF}' | sed 's/://g'`\\n\\nfor csvFiles in $logLevelPath/*.csv; do\\n echo $csvFiles $csvFiles$uid.csv\\n mv $csvFiles $csvFiles$uid.csv\\n cp $csvFiles$uid.csv $remotePath\\ndone\\n\\nkillall java \\n"
)
public
String
script
;
public
String
script
;
}
}
drip-api/src/main/java/nl/uva/sne/drip/commons/v0/types/Configure.java
View file @
d5334ea6
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
*/
*/
package
nl
.
uva
.
sne
.
drip
.
commons
.
v0
.
types
;
package
nl
.
uva
.
sne
.
drip
.
commons
.
v0
.
types
;
import
com.webcohesion.enunciate.metadata.DocumentationExample
;
import
java.util.List
;
import
java.util.List
;
import
javax.xml.bind.annotation.XmlElement
;
import
javax.xml.bind.annotation.XmlElement
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
javax.xml.bind.annotation.XmlRootElement
;
...
@@ -26,14 +27,43 @@ import javax.xml.bind.annotation.XmlRootElement;
...
@@ -26,14 +27,43 @@ import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
@XmlRootElement
public
class
Configure
{
public
class
Configure
{
/**
* Not used. It's there for backwards compatibility.
*/
@DocumentationExample
(
"user"
)
public
String
user
;
public
String
user
;
/**
* Not used. It's there for backwards compatibility.
*/
@DocumentationExample
(
"123"
)
public
String
pwd
;
public
String
pwd
;
/**
* The key id for the cloud provider.
*
*/
@DocumentationExample
(
"AKIAITY3K5ZUQ6M7YBSQ"
)
public
String
keyid
;
public
String
keyid
;
/**
* The key for the cloud provider.
*/
@DocumentationExample
(
"6J7uo99ifrff45126Gsy5vgb3bmrtwY6hBxtYt9y"
)
public
String
key
;
public
String
key
;
@XmlElement
(
name
=
"loginKey"
)
@XmlElement
(
name
=
"loginKey"
)
public
List
<
LoginKey0
>
loginKey
;
public
List
<
LoginKey0
>
loginKey
;
/**
* The binary keystore (user.jks) for the cloud provider encoded in base64
*/
@DocumentationExample
(
"/u3+7QAAAAIAAAABAWuf2AAACvDCCArgwDgYKKwYBBEBAQUABIIC\\npKlNUfpKLNCy0h8P4L5XeECwwIN/tezeaOVsjvzLsXeiBsB/luYv9gttoeKFbcJb/IDpZr\\nfpL1tjF8Sed6g38kNoWwnVVoNZ1ILpITjESL6FkZW+gGAPS+XHp8l52/2Dj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ias in key store
*/
@DocumentationExample
(
"exogeni"
)
public
String
geniKeyAlias
;
public
String
geniKeyAlias
;
@XmlElement
(
name
=
"loginPubKey"
)
@XmlElement
(
name
=
"loginPubKey"
)
...
...
drip-api/src/main/java/nl/uva/sne/drip/commons/v0/types/Execute.java
View file @
d5334ea6
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
*/
*/
package
nl
.
uva
.
sne
.
drip
.
commons
.
v0
.
types
;
package
nl
.
uva
.
sne
.
drip
.
commons
.
v0
.
types
;
import
com.webcohesion.enunciate.metadata.DocumentationExample
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
javax.xml.bind.annotation.XmlRootElement
;
/**
/**
...
@@ -24,8 +25,21 @@ import javax.xml.bind.annotation.XmlRootElement;
...
@@ -24,8 +25,21 @@ import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
@XmlRootElement
public
class
Execute
{
public
class
Execute
{
/**
* Not used. It's there for backwards compatibility.
*/
@DocumentationExample
(
"user"
)
public
String
user
;
public
String
user
;
/**
* Not used. It's there for backwards compatibility.
*/
@DocumentationExample
(
"123"
)
public
String
pwd
;
public
String
pwd
;
/**
* A referance id used from the servcie to do the provisioning
*/
@DocumentationExample
(
"58c2c2f3a8d4b56889878d03"
)
public
String
action
;
public
String
action
;
}
}
drip-api/src/main/java/nl/uva/sne/drip/commons/v0/types/Register.java
View file @
d5334ea6
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
*/
*/
package
nl
.
uva
.
sne
.
drip
.
commons
.
v0
.
types
;
package
nl
.
uva
.
sne
.
drip
.
commons
.
v0
.
types
;
import
com.webcohesion.enunciate.metadata.DocumentationExample
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
javax.xml.bind.annotation.XmlRootElement
;
/**
/**
...
@@ -24,7 +25,16 @@ import javax.xml.bind.annotation.XmlRootElement;
...
@@ -24,7 +25,16 @@ import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
@XmlRootElement
public
class
Register
{
public
class
Register
{
/**
* The user name
*/
@DocumentationExample
(
"user"
)
public
String
user
;
public
String
user
;
/**
* The user password
*/
@DocumentationExample
(
"123abc"
)
public
String
pwd
;
public
String
pwd
;
}
}
drip-api/src/main/java/nl/uva/sne/drip/commons/v0/types/Result.java
View file @
d5334ea6
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
*/
*/
package
nl
.
uva
.
sne
.
drip
.
commons
.
v0
.
types
;
package
nl
.
uva
.
sne
.
drip
.
commons
.
v0
.
types
;
import
com.webcohesion.enunciate.metadata.DocumentationExample
;
import
java.util.List
;
import
java.util.List
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
javax.xml.bind.annotation.XmlRootElement
;
...
@@ -24,10 +25,19 @@ import javax.xml.bind.annotation.XmlRootElement;
...
@@ -24,10 +25,19 @@ import javax.xml.bind.annotation.XmlRootElement;
*/
*/
@XmlRootElement
@XmlRootElement
public
class
Result
{
public
class
Result
{
/**
* The status of the response
*/
@DocumentationExample
(
"Success"
)
public
String
status
;
public
String
status
;
/**
* Not used. Not used. It's there for backwards compatibility.
*/
@DocumentationExample
(
"INFO"
)
public
String
info
;
public
String
info
;
public
List
<
Attribute
>
file
;
public
List
<
Attribute
>
file
;
}
}
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