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