Skip to content

Commit

Permalink
Moving data stream DTOs from storage module to core. (#18274)
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisoelkers authored Feb 16, 2024
1 parent d1dc060 commit 0cb4ae7
Show file tree
Hide file tree
Showing 18 changed files with 30 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
package org.graylog.datanode.metrics;

import org.graylog.storage.opensearch2.ism.policy.actions.RollupAction;
import org.graylog2.indexer.datastream.policy.actions.RollupAction;

import java.util.Locale;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
import org.graylog.datanode.process.StateMachineTracer;
import org.graylog.storage.opensearch2.DataStreamAdapterOS2;
import org.graylog.storage.opensearch2.ism.IsmApi;
import org.graylog.storage.opensearch2.ism.policy.IsmPolicy;
import org.graylog.storage.opensearch2.ism.policy.Policy;
import org.graylog.storage.opensearch2.ism.policy.actions.Action;
import org.graylog.storage.opensearch2.ism.policy.actions.DeleteAction;
import org.graylog.storage.opensearch2.ism.policy.actions.RolloverAction;
import org.graylog.storage.opensearch2.ism.policy.actions.RollupAction;
import org.graylog2.indexer.datastream.DataStreamService;
import org.graylog2.indexer.datastream.DataStreamServiceImpl;
import org.graylog2.indexer.datastream.policy.IsmPolicy;
import org.graylog2.indexer.datastream.policy.Policy;
import org.graylog2.indexer.datastream.policy.actions.Action;
import org.graylog2.indexer.datastream.policy.actions.DeleteAction;
import org.graylog2.indexer.datastream.policy.actions.RolloverAction;
import org.graylog2.indexer.datastream.policy.actions.RollupAction;
import org.graylog2.indexer.fieldtypes.IndexFieldTypesService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
package org.graylog.datanode.metrics;

import org.graylog.storage.opensearch2.ism.policy.actions.RollupAction;
import org.graylog2.indexer.datastream.policy.actions.RollupAction;

import java.util.Locale;
import java.util.Objects;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package org.graylog.storage.opensearch2;

import com.fasterxml.jackson.databind.ObjectMapper;
import jakarta.inject.Inject;
import org.graylog.shaded.opensearch2.org.opensearch.action.support.master.AcknowledgedResponse;
import org.graylog.shaded.opensearch2.org.opensearch.client.indices.CreateDataStreamRequest;
import org.graylog.shaded.opensearch2.org.opensearch.client.indices.DeleteComposableIndexTemplateRequest;
Expand All @@ -28,16 +29,15 @@
import org.graylog.shaded.opensearch2.org.opensearch.cluster.metadata.DataStream;
import org.graylog.shaded.opensearch2.org.opensearch.common.compress.CompressedXContent;
import org.graylog.storage.opensearch2.ism.IsmApi;
import org.graylog.storage.opensearch2.ism.policy.IsmPolicy;
import org.graylog2.indexer.IndexNotFoundException;
import org.graylog2.indexer.datastream.DataStreamAdapter;
import org.graylog2.indexer.datastream.Policy;
import org.graylog2.indexer.datastream.policy.IsmPolicy;
import org.graylog2.indexer.indices.Template;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.annotation.Nonnull;
import jakarta.inject.Inject;
import java.io.IOException;
import java.util.List;
import java.util.Objects;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import org.graylog.shaded.opensearch2.org.opensearch.client.Response;
import org.graylog.shaded.opensearch2.org.opensearch.client.ResponseException;
import org.graylog.storage.opensearch2.OpenSearchClient;
import org.graylog.storage.opensearch2.ism.policy.IsmPolicy;
import org.graylog2.indexer.datastream.policy.IsmPolicy;

import java.io.IOException;
import java.util.Objects;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
import com.fasterxml.jackson.databind.ObjectMapper;
import org.graylog.shaded.opensearch2.org.opensearch.client.indices.DataStream;
import org.graylog.storage.opensearch2.ism.IsmApi;
import org.graylog.storage.opensearch2.ism.policy.IsmPolicy;
import org.graylog.storage.opensearch2.ism.policy.IsmPolicyTest;
import org.graylog.storage.opensearch2.testing.OpenSearchInstance;
import org.graylog2.indexer.datastream.policy.IsmPolicy;
import org.graylog2.indexer.datastream.policy.IsmPolicyTest;
import org.graylog2.indexer.indices.Template;
import org.graylog2.shared.bindings.providers.ObjectMapperProvider;
import org.junit.Rule;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
*/
package org.graylog.storage.opensearch2.ism;

import org.graylog.storage.opensearch2.ism.policy.IsmPolicy;
import org.graylog.storage.opensearch2.ism.policy.IsmPolicyTest;
import org.graylog.storage.opensearch2.testing.OpenSearchInstance;
import org.graylog2.indexer.datastream.policy.IsmPolicy;
import org.graylog2.indexer.datastream.policy.IsmPolicyTest;
import org.graylog2.shared.bindings.providers.ObjectMapperProvider;
import org.junit.Rule;
import org.junit.Test;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* along with this program. If not, see
* <http://www.mongodb.com/licensing/server-side-public-license>.
*/
package org.graylog.storage.opensearch2.ism.policy;
package org.graylog2.indexer.datastream.policy;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
* along with this program. If not, see
* <http://www.mongodb.com/licensing/server-side-public-license>.
*/
package org.graylog.storage.opensearch2.ism.policy;
package org.graylog2.indexer.datastream.policy;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.graylog.storage.opensearch2.ism.policy.actions.Action;
import org.graylog2.indexer.datastream.policy.actions.Action;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* along with this program. If not, see
* <http://www.mongodb.com/licensing/server-side-public-license>.
*/
package org.graylog.storage.opensearch2.ism.policy.actions;
package org.graylog2.indexer.datastream.policy.actions;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* along with this program. If not, see
* <http://www.mongodb.com/licensing/server-side-public-license>.
*/
package org.graylog.storage.opensearch2.ism.policy.actions;
package org.graylog2.indexer.datastream.policy.actions;

import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* along with this program. If not, see
* <http://www.mongodb.com/licensing/server-side-public-license>.
*/
package org.graylog.storage.opensearch2.ism.policy.actions;
package org.graylog2.indexer.datastream.policy.actions;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* along with this program. If not, see
* <http://www.mongodb.com/licensing/server-side-public-license>.
*/
package org.graylog.storage.opensearch2.ism.policy.actions;
package org.graylog2.indexer.datastream.policy.actions;

public record DeleteAction() implements WrappedAction {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* along with this program. If not, see
* <http://www.mongodb.com/licensing/server-side-public-license>.
*/
package org.graylog.storage.opensearch2.ism.policy.actions;
package org.graylog2.indexer.datastream.policy.actions;

public record Retry(int count, String backoff, String delay) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* along with this program. If not, see
* <http://www.mongodb.com/licensing/server-side-public-license>.
*/
package org.graylog.storage.opensearch2.ism.policy.actions;
package org.graylog2.indexer.datastream.policy.actions;

import javax.annotation.Nonnull;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* along with this program. If not, see
* <http://www.mongodb.com/licensing/server-side-public-license>.
*/
package org.graylog.storage.opensearch2.ism.policy.actions;
package org.graylog2.indexer.datastream.policy.actions;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* along with this program. If not, see
* <http://www.mongodb.com/licensing/server-side-public-license>.
*/
package org.graylog.storage.opensearch2.ism.policy.actions;
package org.graylog2.indexer.datastream.policy.actions;

import com.fasterxml.jackson.annotation.JsonIgnore;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
* along with this program. If not, see
* <http://www.mongodb.com/licensing/server-side-public-license>.
*/
package org.graylog.storage.opensearch2.ism.policy;
package org.graylog2.indexer.datastream.policy;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.collect.ImmutableList;
import org.graylog.storage.opensearch2.ism.policy.actions.Action;
import org.graylog.storage.opensearch2.ism.policy.actions.DeleteAction;
import org.graylog.storage.opensearch2.ism.policy.actions.Retry;
import org.graylog2.indexer.datastream.policy.actions.Action;
import org.graylog2.indexer.datastream.policy.actions.DeleteAction;
import org.graylog2.indexer.datastream.policy.actions.Retry;
import org.graylog2.shared.bindings.providers.ObjectMapperProvider;
import org.junit.Test;

Expand Down

0 comments on commit 0cb4ae7

Please sign in to comment.