|
The billing calculator
determines how much to charge a customer based on the SLA they are
using, and how much service they used. Hence, the input to this is
the usage on the SLA and the SLA ID. The output is a call to the
Trade Account Service with the amount to bill the customer and the
ID of the account.
This is a service
hosted by a service provider and used to keep track of their
customers’ spending at the service provider, from which statements
(bills) can be generated. The Billing Calculator connects to this
service, and reports the amounts owed by a particular customer. The
customer can access this service to find out the amounts they owe,
and make payments out of band. The service provider’s manager can
record the customer’s payments.
Prerequisites
Software Installation
Prerequisites
The Billing Calculator
is a Java set of libraries having no particular installation
prerequisites apart from Jena and Pellet (They should be provided
before the installation package).
Installation
The BC 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 BC file which starts Tomcat.
To configure the
component, the user can update the configuration file (sess.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)
·
url_slat: the URL
where the BC service is deployed
Finally, the services
should be accessible locally at the following URL:
http://localhost:8080/BC-2.0/BCService
|