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
2a282261
Commit
2a282261
authored
Mar 17, 2020
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added MissingVMTopologyException
parent
db7c4550
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
2 deletions
+37
-2
ToscaHelper.java
.../main/java/nl/uva/sne/drip/commons/utils/ToscaHelper.java
+10
-2
MissingVMTopologyException.java
...sne/drip/model/Exceptions/MissingVMTopologyException.java
+27
-0
No files found.
commons/src/main/java/nl/uva/sne/drip/commons/utils/ToscaHelper.java
View file @
2a282261
...
@@ -119,8 +119,16 @@ public class ToscaHelper {
...
@@ -119,8 +119,16 @@ public class ToscaHelper {
}
}
public
List
<
NodeTemplateMap
>
getVMTopologyTemplates
()
throws
ApiException
{
public
List
<
NodeTemplateMap
>
getVMTopologyTemplates
()
throws
ApiException
{
List
<
NodeTemplateMap
>
vmTopologyTemplates
=
api
.
getNodeTemplates
(
String
.
valueOf
(
id
),
"tosca.nodes.ARTICONF.VM.topology"
,
null
,
null
,
null
,
null
,
null
,
null
,
null
);
return
vmTopologyTemplates
;
try
{
List
<
NodeTemplateMap
>
vmTopologyTemplates
=
api
.
getNodeTemplates
(
String
.
valueOf
(
id
),
"tosca.nodes.ARTICONF.VM.topology"
,
null
,
null
,
null
,
null
,
null
,
null
,
null
);
return
vmTopologyTemplates
;
}
catch
(
ApiException
ex
)
{
if
(
ex
.
getCode
()
==
404
)
{
return
null
;
}
throw
ex
;
}
}
}
public
List
<
NodeTemplateMap
>
getTemplateVMsForVMTopology
(
NodeTemplateMap
nodeTemplateMap
)
throws
ApiException
{
public
List
<
NodeTemplateMap
>
getTemplateVMsForVMTopology
(
NodeTemplateMap
nodeTemplateMap
)
throws
ApiException
{
...
...
commons/src/main/java/nl/uva/sne/drip/model/Exceptions/MissingVMTopologyException.java
0 → 100644
View file @
2a282261
/*
* Copyright 2020 S. Koulouzis
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
nl
.
uva
.
sne
.
drip
.
model
.
Exceptions
;
/**
*
* @author S. Koulouzis
*/
public
class
MissingVMTopologyException
extends
Exception
{
public
MissingVMTopologyException
(
String
string
)
{
super
(
string
);
}
}
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