Class ClusterMessageCleaningServiceControl
java.lang.Object
com.atlassian.jira.testkit.client.RestApiClient<ClusterMessageCleaningServiceControl>
com.atlassian.jira.testkit.client.BackdoorControl<ClusterMessageCleaningServiceControl>
com.atlassian.jira.functest.framework.backdoor.BackdoorControl<ClusterMessageCleaningServiceControl>
com.atlassian.jira.functest.framework.backdoor.ClusterMessageCleaningServiceControl
public class ClusterMessageCleaningServiceControl
extends BackdoorControl<ClusterMessageCleaningServiceControl>
Control for accessing the ClusterMessageCleaningServiceBackdoor via REST endpoints.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.jira.testkit.client.RestApiClient
com.atlassian.jira.testkit.client.RestApiClient.BackdoorLoggingFilter, com.atlassian.jira.testkit.client.RestApiClient.JsonMediaTypeFilter, com.atlassian.jira.testkit.client.RestApiClient.RestCall, com.atlassian.jira.testkit.client.RestApiClient.SessionlessConsistencyFilter -
Field Summary
Fields inherited from class com.atlassian.jira.testkit.client.BackdoorControl
API_REST_PATH, API_REST_VERSION, DEFAULT_REST_PATH, logger, rootPathFields inherited from class com.atlassian.jira.testkit.client.RestApiClient
REST_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionClusterMessageCleaningServiceControl(com.atlassian.jira.testkit.client.JIRAEnvironmentData environmentData) -
Method Summary
Modifier and TypeMethodDescriptionlongGet the current fixed clock time.Get the current retention period.booleanRun the cluster message cleaning service.voidsetFixedClockTime(long timeMillis) Set the fixed clock time for the cluster message cleaning service.voidsetRetentionPeriod(String period) Set the retention period for the cluster message cleaning service.Methods inherited from class com.atlassian.jira.functest.framework.backdoor.BackdoorControl
createResourceMethods inherited from class com.atlassian.jira.testkit.client.BackdoorControl
createResourceForPath, createResourceForPath, get, getRestModulePathMethods inherited from class com.atlassian.jira.testkit.client.RestApiClient
anonymous, authenticate, authoriseWithOAuth2, authoriseWithOAuth2, cleanUp, client, createResource, createResourceGadget, createResourceInternal, errorResponse, expanded, getCredentialsProvider, getEnvironmentData, loginAs, loginAs, registerResponse, resourceRoot, resourceRoot, setOf, toResponse, toResponse, toResponse, withCredentialsProvider
-
Constructor Details
-
ClusterMessageCleaningServiceControl
public ClusterMessageCleaningServiceControl(com.atlassian.jira.testkit.client.JIRAEnvironmentData environmentData)
-
-
Method Details
-
setRetentionPeriod
Set the retention period for the cluster message cleaning service.- Parameters:
period- the retention period (e.g., "1d", "2d", "1h")
-
setFixedClockTime
public void setFixedClockTime(long timeMillis) Set the fixed clock time for the cluster message cleaning service.- Parameters:
timeMillis- the fixed clock time in milliseconds
-
getRetentionPeriod
Get the current retention period.- Returns:
- the current retention period as a string
-
getFixedClockTime
public long getFixedClockTime()Get the current fixed clock time.- Returns:
- the current fixed clock time as a long
-
runService
public boolean runService()Run the cluster message cleaning service.- Returns:
- true if the service ran successfully (HTTP 200), false otherwise
-