Class InventorySyncStatistics
- java.lang.Object
-
- com.commercetools.sync.commons.helpers.BaseSyncStatistics<InventorySyncStatistics>
-
- com.commercetools.sync.inventories.helpers.InventorySyncStatistics
-
public class InventorySyncStatistics extends BaseSyncStatistics<InventorySyncStatistics>
-
-
Constructor Summary
Constructors Constructor Description InventorySyncStatistics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetReportMessage()Builds a summary of the inventory sync statistics instance that looks like the following example:protected InventorySyncStatisticsgetThis()-
Methods inherited from class com.commercetools.sync.commons.helpers.BaseSyncStatistics
calculateProcessingTime, equals, getCreated, getDefaultReportMessageForResource, getFailed, getLatestBatchHumanReadableProcessingTime, getLatestBatchProcessingTimeInDays, getLatestBatchProcessingTimeInHours, getLatestBatchProcessingTimeInMillis, getLatestBatchProcessingTimeInMinutes, getLatestBatchProcessingTimeInSeconds, getProcessed, getSyncStatisticsClassName, getUpdated, hashCode, incrementCreated, incrementCreated, incrementFailed, incrementFailed, incrementProcessed, incrementProcessed, incrementUpdated, incrementUpdated, startTimer
-
-
-
-
Method Detail
-
getReportMessage
public java.lang.String getReportMessage()
Builds a summary of the inventory sync statistics instance that looks like the following example:Summary: 25 inventory entries were processed in total (9 created, 5 updated, 2 failed to sync).- Specified by:
getReportMessagein classBaseSyncStatistics<InventorySyncStatistics>- Returns:
- summary message
-
getThis
protected InventorySyncStatistics getThis()
Description copied from class:BaseSyncStatisticsReturnsthisinstance ofT, which extendsBaseSyncStatistics. The purpose of this method is to make sure thatthisis an instance of a class which extendsBaseSyncStatisticsin order to be used in the generic methods of the class. Otherwise, without this method, the methods above would need to castthis to Twhich could lead to a runtime error of the class was extended in a wrong way.- Specified by:
getThisin classBaseSyncStatistics<InventorySyncStatistics>- Returns:
- an instance of the class that overrides this method.
-
-