Marking the Usage Files as Completed

The readyUsageForUpload action has been introduced in the sntl_licensing_transfer API for marking the running usage files as completed.

Declare Variables/Constants

public static String contactServer = "localhost";

Attribute attrAppContext = null;
ApplicationContext appContext = null;
String transferActionReadyUsageForUpload = "<readyUsageForUpload/>";

API Calls

Use the following API calls to mark the usage files as completed:

>attrAppContext = new Attribute();

>attrAppContext.set(LicensingConstants.SNTL_ATTR_APPCONTEXT_CONTACT_SERVER, contactServer);

>appContext = new ApplicationContext(attrAppContext);

>appContext.transfer(transferActionReadyUsageForUpload, null, null, null);