public interface Migration
| 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
|
org.osgi.framework.Version getFromVersion()
org.osgi.framework.Version getToVersion()
String getDescription()
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
session - 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.