Package com.atlassian.confluence.upgrade
Class AttachmentMigrationAnalyticsEvent
- java.lang.Object
-
- com.atlassian.confluence.upgrade.AttachmentMigrationAnalyticsEvent
-
@AsynchronousPreferred public class AttachmentMigrationAnalyticsEvent extends Object
Used when theAttachmentMigratorToV4
runs a migration, requiring analytics.- Since:
- 8.2
- See Also:
AttachmentMigratorToV4
,AttachmentMigratorToV4Reporter
-
-
Field Summary
Fields Modifier and Type Field Description static String
COMPLETED
static String
COMPLETED_WITH_WARNINGS
static String
ERROR_ACTION
static String
ERROR_MIGRATION
static String
ERROR_REJECTED
static String
ERROR_TERMINATION
static String
INTERRUPTED
-
Constructor Summary
Constructors Constructor Description AttachmentMigrationAnalyticsEvent(int numDuplicates, int numFailedToMigrate, int numCores, String migrationResult)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMigrationResult()
Get the outcome of the migrationint
getNumCores()
Get number of cores nominated to perform migrationint
getNumDuplicates()
Get number of attachments stored in multiple locationsint
getNumFailedToMigrate()
Get number of stored files that are not attachments
-
-
-
Field Detail
-
COMPLETED
public static final String COMPLETED
- See Also:
- Constant Field Values
-
COMPLETED_WITH_WARNINGS
public static final String COMPLETED_WITH_WARNINGS
- See Also:
- Constant Field Values
-
INTERRUPTED
public static final String INTERRUPTED
- See Also:
- Constant Field Values
-
ERROR_MIGRATION
public static final String ERROR_MIGRATION
- See Also:
- Constant Field Values
-
ERROR_ACTION
public static final String ERROR_ACTION
- See Also:
- Constant Field Values
-
ERROR_REJECTED
public static final String ERROR_REJECTED
- See Also:
- Constant Field Values
-
ERROR_TERMINATION
public static final String ERROR_TERMINATION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AttachmentMigrationAnalyticsEvent
public AttachmentMigrationAnalyticsEvent(int numDuplicates, int numFailedToMigrate, int numCores, String migrationResult)
-
-
Method Detail
-
getNumDuplicates
public int getNumDuplicates()
Get number of attachments stored in multiple locations- Returns:
- number of duplicated attachments
-
getNumFailedToMigrate
public int getNumFailedToMigrate()
Get number of stored files that are not attachments- Returns:
- number of Non-attachment files
-
getNumCores
public int getNumCores()
Get number of cores nominated to perform migration- Returns:
- number of cores used to migrate
-
getMigrationResult
public String getMigrationResult()
Get the outcome of the migration- Returns:
- String: "completed", "completedWithWarnings", or "interrupted", based on outcome of migration
-
-