use of com.vmware.photon.controller.model.adapters.azure.ea.utils.AzureDetailedBillHandler in project photon-model by vmware.
the class AzureCostStatsService method parseDetailedBill.
/**
* Process the detailed bill downloaded from Azure, create stats for respective entities
* and post the stats.
* @param context data holder for the current run.
*/
private void parseDetailedBill(Context context, Stages next) {
try {
AzureDetailedBillHandler billHandler = new AzureDetailedBillHandler();
// Get the subscription GUIDs from the subscription compute states.
context.parsingStatus = billHandler.parseDetailedCsv(context.billFile, context.subscriptionsAddedAfterLastRun, context.parsingStatus, context.billProcessedTimeMillis, context.currency, getDailyStatsConsumer(context, next));
if (context.parsingStatus.isParsingComplete()) {
cleanUp(context);
}
} catch (IOException ioException) {
handleError(context, null, ioException, false);
}
}
Aggregations