Interface MaintenanceService
public interface MaintenanceService
-
Method Summary
Modifier and TypeMethodDescription@NonNull MaintenanceRunSpecGenerates a maintenance service run-specification containing realms in statesACTIVEandINACTIVEas "to retain" and realms in statePURGINGas "to purge".@NonNull List<MaintenanceRunInformation> Retrieve information about recent maintenance runs.@NonNull MaintenanceRunInformationperformMaintenance(@NonNull MaintenanceRunSpec maintenanceRunSpec, @NonNull OptionalLong overrideRunId) Perform maintenance.
-
Method Details
-
buildMaintenanceRunSpec
@NonNull MaintenanceRunSpec buildMaintenanceRunSpec()Generates a maintenance service run-specification containing realms in statesACTIVEandINACTIVEas "to retain" and realms in statePURGINGas "to purge". -
performMaintenance
@NonNull MaintenanceRunInformation performMaintenance(@NonNull MaintenanceRunSpec maintenanceRunSpec, @NonNull OptionalLong overrideRunId) Perform maintenance.- Parameters:
maintenanceRunSpec- define the mandatory run-specification, seebuildMaintenanceRunSpec()overrideRunId- optional run ID of the currently unfinished maintenance run that shall be superseded- Returns:
- information about the maintenance run
- Throws:
MaintenanceRunInProgressException- if the latest maintenance run has not finished andoverrideRunIdis empty or does not match that latest unfinished run
-
maintenanceRunLog
@NonNull List<MaintenanceRunInformation> maintenanceRunLog()Retrieve information about recent maintenance runs. The number of available elements is configured viaMaintenanceConfig.retainedRuns().
-