Fixed TODO from last commit, that NULL values cannot be passed back in
Jersey. This issue is fixed with a try-catch around the request and
catching a UniformInterfaceException. It's possible to get the status
code from the UniformInterfaceException via
UniformInterfaceException.getResponse().getStatus().

Change-Id: I282dc9088e18c9ab4776990df2206ce180150a75
Signed-off-by: Peter Merkert <p.merkert@sap.com>
Added a comment to the ScheduledExperimentMixIn class.

Change-Id: I3c602f4ca692f629fa03c152cf360fd2a9393ff7
Signed-off-by: Peter Merkert <p.merkert@sap.com>
The mixin of the ParameterNamespace is now advanced with an annotation
to the method getFullName(). Before i handled the issue with telling the
Jackson ObjectWrapper to not fail on unknown properties
("DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES"). But this error
handling is then used for every class the object wrapper deserializes.
This is not a pretty good style and therefore now replaced with the
MixIn annotation in the class ParameterNamespaceMixIn.

Change-Id: Ib187a4230057bc896b1726c8fdfa6eff9f4906a6
Signed-off-by: Peter Merkert <p.merkert@sap.com>
Added RESTful service to get details of the executedExperiements.

The service needs the MEClog and MEClog-entries. These classes have been
added. MEClog is a database entity, too. Therefor the persistence.xml
has changed.

The new service can be requested via execute/details. Details is a new
URI and has been added to the ServiceConfiguration.

The ExecutedExperimentDetails is another new entity and can be qureied
in the ServicePersistenceProvider now.

A test has been added to this service. But it is only checked for no
entries in the database yet. There should be a test to check valid
experiement results.

Change-Id: I9d977e3fb44e92e9506cb87fffd3937141effc1e
Signed-off-by: Peter Merkert <p.merkert@sap.com>
Removed unused imports from the classes. The ExecutionServiceTest once
queried for an account which was not used. This line is not deleted.
Added a startup service to wait for MEController connections with a
ServerSocket.
The ServerSocket is created on startup of the application.

Change-Id: Ib1d7068375023fb3f8ca742140a62d46a4704e9c
Signed-off-by: Peter Merkert <p.merkert@sap.com>
Added service to request the ScenarioInstance for the account.

Change-Id: Ib2b1b621e36d13e3eafdbc5fc46698ad63bae188
Signed-off-by: Peter Merkert <p.merkert@sap.com>
Added new configuration properties for the upcoming services.

One configuration property is used to look-up the MEC connection port in
the general configuration.

The other addition are related to service URLs.

Change-Id: Icf10c32de98badca09acaf669e9d89bdb02c7f7a
Signed-off-by: Peter Merkert <p.merkert@sap.com>
Added method to the ServicePersistenceProvider get the MEClog.

Change-Id: Icd15c88721b4fc398b34d624f4008512cb1f04c5
Signed-off-by: Peter Merkert <p.merkert@sap.com>
Set the method Enable and Disable to a method to deprecated, as the
service is RESTful and therefor there should be no queue handling the
upcoming MEController tasks. Therefore the methods will be removed in
the next several days.

Added a method tio execute a scheduled experiement. The experiment with
the given ID is then executed with SoPeCoRunner. The Runner needed to be
imported and therefore the pom.xml changed.

The new service has not been tested yet!

Change-Id: I54a73ae0424955d10d6b87bc2d96d33fa63446c1
Signed-off-by: Peter Merkert <p.merkert@sap.com>
The ExecutionTest is created to test once a complete creation of all
required items for an experiement execution. At the moment the test
works great.
But it's confusing, because I don't know what the SoPeCo Runner is
acutally doing now, when no MEC is connected.

TODO: Check whats happening at the execute service in the test.

Change-Id: Ib3600510edb0105d86c31344ce6ebfc3b145507f
Signed-off-by: Peter Merkert <p.merkert@sap.com>
Changed the name of the MeasurementDefinitionService to
MeasurementEnvironmentDefinitionService.

Reason: There is no MeasurementDefinition, only
MeasurementEnvironmentDefinition.

Change-Id: I736b2353f0847148ed8a97fbbe52a25b9e3dbf93
Signed-off-by: Peter Merkert <p.merkert@sap.com>
Changed the URI for portReachable check to CHECK and MEC status to
STATUS. Before it was vice versa: portReachable STATUS and MEC status
was CHECK. Let's say kind of bug :-)

Change-Id: I5251f5b4318ef69fdccae6a3062bc4d94774e4ac
Signed-off-by: Peter Merkert <p.merkert@sap.com>