Skip to content

Commit

Permalink
Removed unused imports
Browse files Browse the repository at this point in the history
Signed-off-by:Marcos Gonzalez Mayedo <[email protected]>
Signed-off-by: Marcos Gonzalez Mayedo <[email protected]>
  • Loading branch information
Marcos Gonzalez Mayedo committed Jul 25, 2023
1 parent 5971190 commit 53086c4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import org.opensearch.dataprepper.plugins.sink.config.AwsConfig;
import software.amazon.awssdk.auth.credentials.AwsCredentialsProvider;
import software.amazon.awssdk.core.client.config.ClientOverrideConfiguration;
import software.amazon.awssdk.core.retry.RetryPolicy;
import software.amazon.awssdk.services.cloudwatchlogs.CloudWatchLogsClient;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import lombok.Builder;
import org.opensearch.dataprepper.model.event.EventHandle;
import org.opensearch.dataprepper.model.event.JacksonEvent;
import org.opensearch.dataprepper.plugins.sink.packaging.ThreadTaskEvents;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -65,7 +64,7 @@ private List<InputLogEvent> prepareInputLogEvents(final ThreadTaskEvents eventDa
/**
* Flush function to handle the flushing of logs to CloudWatchLogs services;
* @param inputLogEvents Collection of inputLogEvents to be flushed
* @return true if successful, false otherwise
* @param eventHandles Collection of EventHandles for events
*/
public void dispatchLogs(List<InputLogEvent> inputLogEvents, Collection<EventHandle> eventHandles) {
boolean failedPost = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@

import static java.util.concurrent.Executors.newCachedThreadPool; //TODO: Can implement a more strict pooling method if needed.

/**
* CloudWatchLogs Service encapsulates the log processing step.
* It accomplishes this by:
* 1. Reading in log events.
* 2. Buffering data.
* 3. Checking for limit conditions.
* 4. Making PLE calls to CloudWatchLogs.
*/
public class CloudWatchLogsService {
private static final Logger LOG = LoggerFactory.getLogger(CloudWatchLogsService.class);
private final CloudWatchLogsClient cloudWatchLogsClient;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.mockito.MockedStatic;
import org.opensearch.dataprepper.model.event.Event;
import org.opensearch.dataprepper.model.event.EventHandle;
import org.opensearch.dataprepper.model.event.JacksonEvent;
Expand Down

0 comments on commit 53086c4

Please sign in to comment.