Class DenormalisedPermissionChangeStateAnalyticsEvent
- java.lang.Object
-
- com.atlassian.confluence.security.denormalisedpermissions.impl.analytics.DenormalisedPermissionChangeStateAnalyticsEvent
-
@AsynchronousPreferred public class DenormalisedPermissionChangeStateAnalyticsEvent extends Object
An analytic event which is sent when state of Denormalised permission service is changed.- Since:
- 7.11.0
-
-
Method Summary
-
-
-
Method Detail
-
buildServiceReadyEvent
public static DenormalisedPermissionChangeStateAnalyticsEvent buildServiceReadyEvent(DenormalisedServiceStateRecord.ServiceType serviceType, Long durationMillisecond, Integer processedRecordsCount)
An analytic event which is sent when service state is changed toDenormalisedPermissionServiceState.SERVICE_READY
- Parameters:
serviceType
- service type (content or space)durationMillisecond
- Time to switch fromDenormalisedPermissionServiceState.INITIALISING
toDenormalisedPermissionServiceState.SERVICE_READY
stateprocessedRecordsCount
- Amount of spaces or pages that were processed (non-empty for SERVICE_READY event only)- Returns:
- An analytic event
-
buildServiceDisabledEvent
public static DenormalisedPermissionChangeStateAnalyticsEvent buildServiceDisabledEvent(DenormalisedServiceStateRecord.ServiceType serviceType, Long durationMillisecond)
An analytic event which is sent when service state is changed toDenormalisedPermissionServiceState.DISABLED
- Parameters:
serviceType
- service type (content or space)durationMillisecond
- Time to switch fromDenormalisedPermissionServiceState.SHUTTING_DOWN
toDenormalisedPermissionServiceState.DISABLED
state- Returns:
- An analytic event
-
buildChangeStateEvent
public static DenormalisedPermissionChangeStateAnalyticsEvent buildChangeStateEvent(DenormalisedServiceStateRecord.ServiceType serviceType, DenormalisedPermissionServiceState newState)
An analytic event which is sent when service state is changed.- Parameters:
serviceType
- service type (content or space)newState
- New service state- Returns:
- An analytic event
-
getServiceType
public DenormalisedServiceStateRecord.ServiceType getServiceType()
-
getNewState
public DenormalisedPermissionServiceState getNewState()
-
getDurationMillisecond
public Long getDurationMillisecond()
-
getProcessedSpacesCount
public Integer getProcessedSpacesCount()
-
getProcessedContentRecordsCount
public Integer getProcessedContentRecordsCount()
-
-