Class MigrationsStatus
java.lang.Object
org.ametys.runtime.plugins.admin.migration.MigrationsStatus
- All Implemented Interfaces:
Component
,Serviceable
Component for retrieving info about all past and available automatic upgrades.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMigrationsStatus
(Map<String, Object> clientParameters) Retrieves the status of automatic migrationsvoid
service
(ServiceManager manager)
-
Constructor Details
-
MigrationsStatus
public MigrationsStatus()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getMigrationsStatus
public Map<String,Object> getMigrationsStatus(Map<String, Object> clientParameters) throws ConfigurationException, MigrationExceptionRetrieves the status of automatic migrations- Parameters:
clientParameters
- The client parameters such as the node to refresh- Returns:
- a JSON view of all existing automatic migrations.
- Throws:
ConfigurationException
- if an error occurred reading the configurationMigrationException
- if an error occurred retrieving the versions
-