|
Since BREIN tries to
provide simplicity to final users, providers are able to define
their metrics in a language, or in a way they want. As BREIN offers
a non-functional properties selection based on QoS metrics located
in SLA templates, some semantic support is required for the SLA
templates file.
SLA translator tries to
aim the provision to every SLA aware component of a way to have a
common terminology, although service and resource providers have
defined their own SLA metrics. In this matter, those components will
be able to understand the new metrics defined by providers. The idea
is simple. Each time a SLA component cannot process a metrics, it
asks to SLA translator for a predefined one.
Prerequisites
Software Installation
SLA Translator API
Prerequisites
The SLA translator is a
Web service developed in Java, so that it can be deployed in any
Operating System. It requires Java 5 or later and Apache Tomcat 5.5
to be installed. In case Tomcat is not installed in the computer,
the installation process is aborted.
Installation
The BREIN installer
provides a wizard so that the customer can specify some
configuration information for the installation.

After all the steps are
done (like accept the license terms), the application is installed
and has some desktop links to access to the component functionality
like REF _Ref234904954 \h Figure 9
shows.

The SLAT component is
deployed as a Web service in a
.war file. By using the BREIN installer,
the
.war file is just deployed inside the
tomcat server container. In order to run the application, the user
can just link the SLAT file which start tomcat.
To configure the
component, the user can update the configuration file (slat.properties)
with the following properties:
·
log_file: the path of the file where the
logs are stored.
·
log_level: level of the log (FINE,
CONFIG,
INFO,
WARNING,
SEVERE)
·
qos: file where the QoS ontology is
located
·
namespaceqos: the namespace of the
ontology
·
thesaurus: file where the thesaurus for
SKOS is located.
Finally, the services
should be accessible locally at the following URL:
http://localhost:8080/SLAT-2.0/SLATService
SLA Translator API
|
Method |
String strQoSmetric obtainPredefinedMetric
(URI metricConcept) |
|
Arguments |
URI metricConcept
– A set of URI of the SLA templates candidates |
|
Return Value[s] |
String QoSmetric
- The strQoSmetric predefined and understandable by SLA
components |
|
Description |
This method returns the predefined metric to be used by
SLA components from new metrics defined by providers |
|
Method |
URI[]
concepQoSmetrics obtainQoSmetricsInLanguage(String
language) |
|
Arguments |
String language
– The language to obtain metrics |
|
Return Value[s] |
URI[]
concepQoSmetrics
– The QoS metrics to annotate SLA templates |
|
Description |
This method obtain all the QoS metrics to be used by
SATSLA GUI |
|