Class M005_CreateMetadataIndexAndDropJobStatsIndex
java.lang.Object
org.jobrunr.storage.nosql.elasticsearch.migrations.ElasticSearchMigration
org.jobrunr.storage.nosql.elasticsearch.migrations.M005_CreateMetadataIndexAndDropJobStatsIndex
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.elasticsearch.action.index.IndexRequest
void
runMigration
(org.elasticsearch.client.RestHighLevelClient client, String indexPrefix) Methods inherited from class org.jobrunr.storage.nosql.elasticsearch.migrations.ElasticSearchMigration
createIndex, createIndex, indexExists, mapping, updateIndex, waitForHealthyCluster
-
Field Details
-
JOBRUNR_JOB_STATS
- See Also:
-
-
Constructor Details
-
M005_CreateMetadataIndexAndDropJobStatsIndex
public M005_CreateMetadataIndexAndDropJobStatsIndex()
-
-
Method Details
-
runMigration
public void runMigration(org.elasticsearch.client.RestHighLevelClient client, String indexPrefix) throws IOException - Specified by:
runMigration
in classElasticSearchMigration
- Throws:
IOException
-
jobStats
public static org.elasticsearch.action.index.IndexRequest jobStats(long totalSucceededAmount, String metadataIndexName)
-