Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
b9de46ae
Commit
b9de46ae
authored
May 27, 2019
by
Micha Mueller
Browse files
Analytics: Remove deprecated REST methods
parent
9084a00a
Changes
2
Hide whitespace changes
Inline
Side-by-side
analytics/includes/AnalyzerInterface.h
View file @
b9de46ae
...
...
@@ -147,23 +147,6 @@ public:
*/
virtual
restResponse_t
REST
(
const
string
&
action
,
const
unordered_map
<
string
,
string
>&
queries
)
=
0
;
/**
* For LEGACY SUPPORT only.
* TODO switch to new Rest API design with the method above
*
* @brief Perform a REST-triggered PUT action
*
* This method must be implemented in derived classes. It will perform an action (if any)
* on the analyzer according to the input action string. Any thrown
* exceptions will be reported in the response string.
*
* @param action Name of the action to be performed
* @param queries Vector of queries (key-value pairs)
*
* @return Response to the request as a <response, data> pair
*/
virtual
restResponse_t
REST
(
const
string
&
action
,
const
vector
<
pair
<
string
,
string
>>&
queries
)
=
0
;
/**
* @brief Starts this analyzer
*
...
...
analytics/includes/AnalyzerTemplate.h
View file @
b9de46ae
...
...
@@ -225,24 +225,6 @@ public:
throw
invalid_argument
(
"Unknown plugin action "
+
action
+
" requested!"
);
}
/**
* For LEGACY SUPPORT only.
* TODO switch to new Rest API design with the method above
*
* @brief Perform a REST-triggered PUT action
*
* This is a dummy implementation that can be overridden in user plugins. Any thrown
* exceptions will be reported in the response string.
*
* @param action Name of the action to be performed
* @param queries Vector of queries (key-value pairs)
*
* @return Response to the request as a <response, data> pair
*/
virtual
restResponse_t
REST
(
const
string
&
action
,
const
vector
<
pair
<
string
,
string
>>&
queries
)
override
{
throw
invalid_argument
(
"Unknown plugin action "
+
action
+
" requested!"
);
}
/**
* @brief Performs an on-demand compute task
*
...
...
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