Archival API is required 46/5046/1
authorAMIT M <am00474504@techmahindra.com>
Tue, 20 Aug 2019 12:59:24 +0000 (18:29 +0530)
committerAMIT M <am00474504@techmahindra.com>
Tue, 20 Aug 2019 13:01:06 +0000 (18:31 +0530)
Issue-ID: ACUMOS-3301
-removed snapshot name

Change-Id: Ibb116a09d2c1ba98dbb7ce724288d9ba48622ce3
Signed-off-by: AMIT M <am00474504@techmahindra.com>
elk-client/pom.xml
elk-client/src/main/java/org/acumos/elk/client/service/SnapshotServiceImpl.java
elk-client/src/main/java/org/acumos/elk/client/transport/CreateSnapshot.java
elk-stack/acumos-elk-env.sh

index ac0c438..4bd9efa 100644 (file)
@@ -16,7 +16,7 @@
 
        <groupId>org.acumos.elk-client</groupId>
        <artifactId>elk-client</artifactId>
-       <version>3.0.0-SNAPSHOT</version>
+       <version>3.0.1-SNAPSHOT</version>
        <packaging>jar</packaging>
 
        <name>elk-client</name>
index 24fae36..2dddf82 100644 (file)
@@ -135,12 +135,7 @@ public class SnapshotServiceImpl extends AbstractELKClientConnection implements
                                                .substring(0, dateTime.toString().length() - 4).toLowerCase();
                                snapshotName = "snapshot-" + dateWithTime;
 
-                               if (createSnapshot.getSnapshotName() != null
-                                               && !createSnapshot.getSnapshotName().equalsIgnoreCase("default")) {
-                                       createSnapshotRequest.snapshot(createSnapshot.getSnapshotName());
-                               } else {
-                                       createSnapshotRequest.snapshot(snapshotName);
-                               }
+                               createSnapshotRequest.snapshot(snapshotName);
 
                                RestHighLevelClient client = restHighLevelClientConnection();
                                CreateSnapshotResponse createSnapshotResponse;
index 1e39d43..e3ef26d 100644 (file)
@@ -27,9 +27,6 @@ public class CreateSnapshot {
 
        @ApiModelProperty(required = true, value = "ElasticStack repository name", example = "logstashBackup")
        private String repositoryName;
-       
-       @ApiModelProperty(required = true, value = "ElasticStack snapshot name, \"default\" for default snapshot name.", example = "snapshotName")
-       private String snapshotName;
 
        @ApiModelProperty(value = "indices names")
        private List<String> indices;
@@ -42,14 +39,6 @@ public class CreateSnapshot {
                this.repositoryName = repositoryName;
        }
 
-       public String getSnapshotName() {
-               return snapshotName;
-       }
-
-       public void setSnapshotName(String snapshotName) {
-               this.snapshotName = snapshotName;
-       }
-
        public List<String> getIndices() {
                return indices;
        }
index 024b2de..b4c4c72 100644 (file)
@@ -54,4 +54,4 @@ export NEXUS3_RELEASE_REGISTRY_LF=nexus3.acumos.org:10002
 export ELASTICSEARCH_IMAGE=acumos-elasticsearch:2.2.2
 export LOGSTASH_IMAGE=acumos-logstash:2.2.2
 export KIBANA_IMAGE=acumos-kibana:2.2.2
-export ELK_CLIENT=elk-client:3.0.0
+export ELK_CLIENT=elk-client:3.0.1