summaryrefslogtreecommitdiffstats
path: root/docs/platform/runningEclipse.rst
diff options
context:
space:
mode:
authorSaryu Shah <ss3917@att.com>2017-11-14 03:00:56 +0000
committerSaryu Shah <ss3917@att.com>2017-11-14 03:00:56 +0000
commitef28b6dd662b9daebf120aef0c9b8d4387260c72 (patch)
treee1db001b858cc040ba4c0c93f308a54f978369a1 /docs/platform/runningEclipse.rst
parentd18118014319955fcf3402e8231f023dbde4f56a (diff)
Policy Documention Eclipse, PDP-D, Sess Pers
Documentation for Eclipse, PDP-D and Session Persistance. ------------------------------------------------------------- Change-Id: I2e988cf5cb64ea60c7173dcd716be5fa25855255 Issue-Id: POLICY-335 Signed-off-by: Saryu Shah <ss3917@att.com>
Diffstat (limited to 'docs/platform/runningEclipse.rst')
-rw-r--r--docs/platform/runningEclipse.rst55
1 files changed, 55 insertions, 0 deletions
diff --git a/docs/platform/runningEclipse.rst b/docs/platform/runningEclipse.rst
new file mode 100644
index 000000000..4d26fdac7
--- /dev/null
+++ b/docs/platform/runningEclipse.rst
@@ -0,0 +1,55 @@
+
+.. This work is licensed under a Creative Commons Attribution 4.0 International License.
+.. http://creativecommons.org/licenses/by/4.0
+
+************************
+Running PDP-D in Eclipse
+************************
+
+.. contents::
+ :depth: 3
+
+This tutorial is intended for developers who would like to run the PDP-D in an Eclipse environment. It is assumed that the drools-pdp git project has been imported in an Eclipse workspace.
+
+Starting the PDP-D
+^^^^^^^^^^^^^^^^^^
+For the Amsterdam release, the project directory will look as follows assuming all drools-pdp projects were selected when importing.
+
+ .. image:: RunEcl_drools_pdp_project.png
+
+Right click on policy-management hover over "Run As" and select "Java Application"
+
+ .. image:: RunEcl_run_as.png
+
+Search for "Main" in the pop up and select the Main with the package "org.onap.policy.drools.system" and click "OK".
+
+ .. image:: RunEcl_main.png
+
+The PDP-D will start running; the console will display output.
+
+ .. image:: RunEcl_console_output.png
+
+Interacting with the PDP-D
+^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+To interact with the PDP-D, the Telemetry API can be used. A simple GET on the engine will show that the PDP-D is running in Eclipse.
+
+ .. code-block:: bash
+
+ curl --silent --user @1b3rt:31nst31n -X GET http://localhost:9696/policy/pdp/engine/ | python -m json.tool
+
+ .. image:: RunEcl_telemetry.png
+
+An HTTP 200 message for the GET request will also appear in the console in Eclipse.
+
+ .. image:: RunEcl_pdpd_200.png
+
+.. seealso:: To create a controller and run a control loop please refer to Modifying the Amsterdam release template.
+
+
+End of Document
+
+
+.. SSNote: Wiki page ref. https://wiki.onap.org/display/DW/Running+PDP-D+in+Eclipse
+
+