You use the res-setup Ant task to configure each artifact for which you want to enable metering.
You can enable the metering feature for the following Decision Server runtime features:
The metering parameters are described in Setting up Decision Server to integrate with the metering services.
Procedure
Run the res-setup Ant task as described below for the following Decision Server runtime features.
Hosted Transparent Decision Service
The following command generates a DecisionService.war file with the metering feature enabled.
cd <odm_install_dir>/executionserver/bin
<odm_install_dir>/shared/tools/ant/bin/ant -f ressetup.xml -Dmetering.war.in=../applicationservers/tomcat8/DecisionService.war -Dmetering.war.out=<my_output_dir>/DecisionService.war -Dmetering.enable=true -Dmetering.server.url=http://<odmmeteringservicehost>:<odmmeteringserviceport> -Dmetering.api.key=<irrelevant,putanything> -Dmetering.instance.identifier=<meteringclientID> -Dmetering.send.usages=true setup-metering
Testing and simulation
The following command generates a DecisionRunner.war file with the metering feature enabled.
cd <odm_install_dir>/executionserver/bin
<odm_install_dir>/shared/tools/ant/bin/ant -f ressetup.xml -Dmetering.war.in=../applicationservers/tomcat8/DecisionRunner.war -Dmetering.war.out=<my_output_dir>/DecisionRunner.war -Dmetering.enable=true -Dmetering.server.url=http://<odmmeteringservicehost>:<odmmeteringserviceport> -Dmetering.api.key=<irrelevant,putanything> -Dmetering.instance.identifier=<meteringclientID> -Dmetering.send.usages=true setup-metering
The following command generates a testing.war file with the metering feature enabled.
cd <odm_install_dir>/executionserver/bin
<odm_install_dir>/shared/tools/ant/bin/ant -f ressetup.xml -Dmetering.war.in=../applicationservers/tomcat8/testing.war -Dmetering.war.out=<my_output_dir>/testing.war -Dmetering.enable=true -Dmetering.server.url=http://<odmmeteringservicehost>:<odmmeteringserviceport> -Dmetering.api.key=<irrelevant,putanything> -Dmetering.instance.identifier=<meteringclientID> -Dmetering.send.usages=true setup-metering
The Decision Server data is now sent to your metering service.
Back to Setting up Decision Server to integrate with the metering services
© Copyright IBM Corporation 2024