Package com.atlassian.confluence.upgrade
Class AttachmentMigrationAnalyticsEvent
java.lang.Object
com.atlassian.confluence.upgrade.AttachmentMigrationAnalyticsEvent
Used when the
AttachmentMigratorToV4
runs a migration, requiring analytics.- Since:
- 8.2
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAttachmentMigrationAnalyticsEvent
(int numDuplicates, int numFailedToMigrate, int numCores, String migrationResult) -
Method Summary
Modifier and TypeMethodDescriptionGet the outcome of the migrationint
Get number of cores nominated to perform migrationint
Get number of attachments stored in multiple locationsint
Get number of stored files that are not attachments
-
Field Details
-
COMPLETED
- See Also:
-
COMPLETED_WITH_WARNINGS
- See Also:
-
INTERRUPTED
- See Also:
-
ERROR_MIGRATION
- See Also:
-
ERROR_ACTION
- See Also:
-
ERROR_REJECTED
- See Also:
-
ERROR_TERMINATION
- See Also:
-
-
Constructor Details
-
AttachmentMigrationAnalyticsEvent
public AttachmentMigrationAnalyticsEvent(int numDuplicates, int numFailedToMigrate, int numCores, String migrationResult)
-
-
Method Details
-
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
Get the outcome of the migration- Returns:
- String: "completed", "completedWithWarnings", or "interrupted", based on outcome of migration
-