| Constructor and Description |
|---|
MigrationTo122() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(org.apache.karaf.shell.api.console.Session session,
org.apache.http.impl.client.CloseableHttpClient httpClient,
String esAddress,
org.osgi.framework.BundleContext bundleContext)
This method is called to execute the migration
|
String |
getDescription()
This method returns a short description of the changes performed during this migration
|
org.osgi.framework.Version |
getFromVersion()
This method return the minimal version before applying this migration
TODO: not used for now
|
org.osgi.framework.Version |
getToVersion()
This method return the target version after migration
|
public org.osgi.framework.Version getFromVersion()
MigrationgetFromVersion in interface Migrationpublic org.osgi.framework.Version getToVersion()
MigrationgetToVersion in interface Migrationpublic String getDescription()
MigrationgetDescription in interface Migrationpublic void execute(org.apache.karaf.shell.api.console.Session session,
org.apache.http.impl.client.CloseableHttpClient httpClient,
String esAddress,
org.osgi.framework.BundleContext bundleContext)
throws IOException
Migrationexecute in interface Migrationsession - the shell's sessionhttpClient - CloseableHttpClientesAddress - the fully qualified address at which the ElasticSearch is reachable (ie http://localhost:9200)bundleContext - the bundle context objectIOException - if there was an error while executing the migrationCopyright © 2014–2022 Apache Software Foundation. All rights reserved.