Package de.valtech.aecu.startuphook
Class AecuCloudStartupService
- java.lang.Object
-
- de.valtech.aecu.startuphook.AecuCloudStartupService
-
public class AecuCloudStartupService extends Object
Service that executes the AECU migration if the node store type is composite (AEM Cloud).
-
-
Constructor Summary
Constructors Constructor Description AecuCloudStartupService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate(org.osgi.framework.BundleContext bundleContext)protected voidcheckAndRunMigration()Checks if the components are ready and starts the migration process.protected booleanisMigrationInProgress()Checks if an AECU migration is already in progress.protected booleanwaitForServices()Waits till Groovy Console took up our services.
-
-
-
Method Detail
-
activate
public void activate(org.osgi.framework.BundleContext bundleContext)
-
checkAndRunMigration
protected void checkAndRunMigration()
Checks if the components are ready and starts the migration process.
-
isMigrationInProgress
protected boolean isMigrationInProgress()
Checks if an AECU migration is already in progress. If AECU history tells migration is in progress then wait max. for MIGRATION_TIMEOUT.- Returns:
- migration in progress
-
waitForServices
protected boolean waitForServices() throws InterruptedExceptionWaits till Groovy Console took up our services.- Returns:
- services are ok
- Throws:
InterruptedException- sleep failed
-
-