index int64 0 0 | repo_id stringlengths 9 205 | file_path stringlengths 31 246 | content stringlengths 1 12.2M | __index_level_0__ int64 0 10k |
|---|---|---|---|---|
0 | Create_ds/suro/suro-server/src/main/java/com/netflix/suro | Create_ds/suro/suro-server/src/main/java/com/netflix/suro/input/SuroInputPlugin.java | package com.netflix.suro.input;
import com.netflix.suro.SuroPlugin;
import com.netflix.suro.input.kafka.KafkaConsumer;
import com.netflix.suro.input.remotefile.CloudTrail;
import com.netflix.suro.input.remotefile.JsonLine;
import com.netflix.suro.input.remotefile.S3Consumer;
import com.netflix.suro.input.thrift.Thrift... | 6,700 |
0 | Create_ds/suro/suro-server/src/main/java/com/netflix/suro | Create_ds/suro/suro-server/src/main/java/com/netflix/suro/input/DynamicPropertyInputConfigurator.java | package com.netflix.suro.input;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.inject.Inject;
import com.netflix.config.DynamicStringProperty;
import com.netflix.governator.annotations.Configuration;
import org.slf4j.Logger;
import org.slf4j.... | 6,701 |
0 | Create_ds/suro/suro-server/src/main/java/com/netflix/suro | Create_ds/suro/suro-server/src/main/java/com/netflix/suro/input/InputManager.java | package com.netflix.suro.input;
import com.google.common.collect.Sets;
import com.google.inject.Singleton;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.Concurre... | 6,702 |
0 | Create_ds/suro/suro-server/src/main/java/com/netflix/suro/input | Create_ds/suro/suro-server/src/main/java/com/netflix/suro/input/thrift/MessageSetSerDe.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,703 |
0 | Create_ds/suro/suro-server/src/main/java/com/netflix/suro/input | Create_ds/suro/suro-server/src/main/java/com/netflix/suro/input/thrift/ThriftServer.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,704 |
0 | Create_ds/suro/suro-server/src/main/java/com/netflix/suro/input | Create_ds/suro/suro-server/src/main/java/com/netflix/suro/input/thrift/CustomServerSocket.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,705 |
0 | Create_ds/suro/suro-server/src/main/java/com/netflix/suro/input | Create_ds/suro/suro-server/src/main/java/com/netflix/suro/input/thrift/MessageSetProcessor.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,706 |
0 | Create_ds/suro/suro-server/src/main/java/com/netflix/suro/input | Create_ds/suro/suro-server/src/main/java/com/netflix/suro/input/thrift/ServerConfig.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,707 |
0 | Create_ds/suro/suro-server/src/main/java/com/netflix/suro | Create_ds/suro/suro-server/src/main/java/com/netflix/suro/sink/ServerSinkPlugin.java | package com.netflix.suro.sink;
import com.netflix.suro.SuroPlugin;
import com.netflix.suro.message.Message;
import com.netflix.suro.sink.elasticsearch.ElasticSearchSink;
import com.netflix.suro.sink.kafka.KafkaSink;
import com.netflix.suro.sink.kafka.KafkaSinkV2;
import com.netflix.suro.sink.kafka.SuroKeyedMessage;
im... | 6,708 |
0 | Create_ds/suro/suro-server/src/main/java/com/netflix/suro/sink | Create_ds/suro/suro-server/src/main/java/com/netflix/suro/sink/notice/LogNotice.java | package com.netflix.suro.sink.notice;
import com.netflix.util.Pair;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class LogNotice implements Notice<String> {
public static final String TYPE = "log";
private static Logger log = LoggerFactory.getLogger(LogNotice.class);
@Override
pub... | 6,709 |
0 | Create_ds/suro/suro-server/src/main/java/com/netflix/suro/sink | Create_ds/suro/suro-server/src/main/java/com/netflix/suro/sink/notice/SQSNotice.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,710 |
0 | Create_ds/suro/suro-server/src/main/java/com/netflix/suro | Create_ds/suro/suro-server/src/main/java/com/netflix/suro/server/SinkStat.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,711 |
0 | Create_ds/suro/suro-server/src/main/java/com/netflix/suro | Create_ds/suro/suro-server/src/main/java/com/netflix/suro/server/HealthCheck.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,712 |
0 | Create_ds/suro/suro-server/src/main/java/com/netflix/suro | Create_ds/suro/suro-server/src/main/java/com/netflix/suro/server/StatusServer.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,713 |
0 | Create_ds/suro/suro-server/src/main/java/com/netflix/suro | Create_ds/suro/suro-server/src/main/java/com/netflix/suro/queue/Queue4Server.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,714 |
0 | Create_ds/suro/suro-server/src/main/java/com/netflix/suro | Create_ds/suro/suro-server/src/main/java/com/netflix/suro/aws/PropertyAWSCredentialsProvider.java | package com.netflix.suro.aws;
import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.AWSCredentialsProvider;
import com.netflix.governator.annotations.Configuration;
/**
* An {@link AWSCredentialsProvider} implementation that is backed by Java properties. It is up to wired
* {@link com.netflix.governat... | 6,715 |
0 | Create_ds/suro/suro-integration-test/src/test/java/com/netflix | Create_ds/suro/suro-integration-test/src/test/java/com/netflix/suro/TestSuroClient.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,716 |
0 | Create_ds/suro/suro-integration-test/src/test/java/com/netflix | Create_ds/suro/suro-integration-test/src/test/java/com/netflix/suro/TestSuroServer.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,717 |
0 | Create_ds/suro/suro-integration-test/src/test/java/com/netflix | Create_ds/suro/suro-integration-test/src/test/java/com/netflix/suro/TestPauseOnLongQueueKafkaConsumer.java | package com.netflix.suro;
import com.amazonaws.util.StringInputStream;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.BeanProperty;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.InjectableValues;
import com.fasterxml.jac... | 6,718 |
0 | Create_ds/suro/suro-integration-test/src/test/java/com/netflix | Create_ds/suro/suro-integration-test/src/test/java/com/netflix/suro/TestPauseOnInsufficientDiskSpaceThriftServer.java | package com.netflix.suro;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Lists;
import com.google.common.util.concurrent.RateLimiter;
import com.netflix.suro.client.SuroClient... | 6,719 |
0 | Create_ds/suro/suro-core/src/test/java/com/netflix/suro | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/sink/TestQueuedSink.java | package com.netflix.suro.sink;
import com.netflix.suro.message.Message;
import com.netflix.suro.queue.FileQueue4Sink;
import com.netflix.suro.queue.MemoryQueue4Sink;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import java.io.IOException;
import java.util.LinkedList;
import ja... | 6,720 |
0 | Create_ds/suro/suro-core/src/test/java/com/netflix/suro | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/queue/TestFileBlockingQueue.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,721 |
0 | Create_ds/suro/suro-core/src/test/java/com/netflix/suro | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/queue/FileQueueLoadTest.java | package com.netflix.suro.queue;
import com.netflix.suro.message.Message;
import com.netflix.suro.message.MessageSerDe;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import java.io.IOException;
import java.util.Collections;
import java.util.Queue;
import... | 6,722 |
0 | Create_ds/suro/suro-core/src/test/java/com/netflix/suro | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing/RoutingKeyFilterTest.java | /**
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 6,723 |
0 | Create_ds/suro/suro-core/src/test/java/com/netflix/suro | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing/XpathFilterTest.java | /**
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 6,724 |
0 | Create_ds/suro/suro-core/src/test/java/com/netflix/suro | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing/FilterTestUtil.java | /**
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 6,725 |
0 | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing/filter/ExistsMessageFilterTest.java | package com.netflix.suro.routing.filter;
import com.google.common.collect.ImmutableMap;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class ExistsMessageFilterTest {
@Before
public void setUp() throws Exception {
}
@After
... | 6,726 |
0 | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing/filter/AlwaysTrueMessageFilterTest.java | package com.netflix.suro.routing.filter;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static com.netflix.suro.routing.filter.VerificationUtil.DUMMY_INPUT;
import static org.junit.Assert.assertTrue;
public class AlwaysTrueMessageFilterTest {
@Before
public void setUp() throws Exce... | 6,727 |
0 | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing/filter/MessageFiltersTest.java | package com.netflix.suro.routing.filter;
import com.netflix.suro.routing.filter.RegexValuePredicate.MatchPolicy;
import org.junit.Test;
import java.io.IOException;
import static com.netflix.suro.routing.filter.MessageFilters.*;
import static com.netflix.suro.routing.filter.VerificationUtil.*;
import static org.junit... | 6,728 |
0 | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing/filter/NumericValuePredicateTest.java | package com.netflix.suro.routing.filter;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class NumericValuePredicateTest {
@Before
public void setUp() throws Exception {
}
@After
public void tearDown() throws Exception {
}
@Test
p... | 6,729 |
0 | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing/filter/VerificationUtil.java | package com.netflix.suro.routing.filter;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
public class VerificationUtil {
public static final Object DUMMY_INPUT = new Object();
private VerificationUtil(){}
/**
* Creating mocked filter instead of using AwaysTrueFilter so this t... | 6,730 |
0 | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing/filter/AndMessageFilterTest.java | package com.netflix.suro.routing.filter;
import com.google.common.collect.ImmutableList;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.List;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.never;
impor... | 6,731 |
0 | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing/filter/PathValueMessageFilterTest.java | package com.netflix.suro.routing.filter;
import com.google.common.collect.Maps;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import java.util.Map;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.mockito.Mo... | 6,732 |
0 | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing/filter/OrMessageFilterTest.java | package com.netflix.suro.routing.filter;
import com.google.common.collect.ImmutableList;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.List;
import static com.netflix.suro.routing.filter.VerificationUtil.*;
import static org.junit.Assert.assertFalse;
import static org.junit... | 6,733 |
0 | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing/filter/AlwaysFalseMessageFilterTest.java | package com.netflix.suro.routing.filter;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static com.netflix.suro.routing.filter.VerificationUtil.DUMMY_INPUT;
import static org.junit.Assert.assertFalse;
public class AlwaysFalseMessageFilterTest {
@Before
public void setUp() throws Ex... | 6,734 |
0 | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing/filter/NotMessageFilterTest.java | package com.netflix.suro.routing.filter;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static com.netflix.suro.routing.filter.VerificationUtil.*;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public class NotMessageFilterTest {
@Before
publi... | 6,735 |
0 | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing/filter/TimeStringValuePredicateTest.java | package com.netflix.suro.routing.filter;
import org.joda.time.format.DateTimeFormat;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.Date;
import static org.junit.Assert.assertEquals;
public class TimeStringValuePredicateTest {
@Before
public void setUp() throws Exception... | 6,736 |
0 | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing/filter/MockRequestTrace.java | package com.netflix.suro.routing.filter;
/**
* Just for testing. Copy of platform's request trace.
*
*/
import java.util.HashMap;
import java.util.Map;
public class MockRequestTrace {
boolean bIsToplevelRequest = false;
public static final String CLIENTINFO_SERVICE_NAME = "service_name";
public s... | 6,737 |
0 | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing/filter/RegexValuePredicateTest.java | package com.netflix.suro.routing.filter;
import com.netflix.suro.routing.filter.RegexValuePredicate.MatchPolicy;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class RegexValuePredicateTest {
@Before
public void setUp() throws Exception ... | 6,738 |
0 | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing/filter/NullValuePredicateTest.java | package com.netflix.suro.routing.filter;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public class NullValuePredicateTest {
@Before
public void setUp() throws Exception {
}
@After
public void tear... | 6,739 |
0 | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing/filter/TimeMillisValuePredicateTest.java | package com.netflix.suro.routing.filter;
import org.joda.time.format.DateTimeFormat;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.Date;
import static org.junit.Assert.assertEquals;
public class TimeMillisValuePredicateTest {
@Before
public void setUp() throws Exception... | 6,740 |
0 | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing/filter/StringValuePredicateTest.java | package com.netflix.suro.routing.filter;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class StringValuePredicateTest {
@Before
public void setUp() throws Exception {
}
@After
public void tearDown() throws Exception {
}
@Test
pu... | 6,741 |
0 | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing/filter/TimeRangeValuePredicateTest.java | package com.netflix.suro.routing.filter;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.Date;
import static org.junit.Assert.assertEquals;
public class TimeRangeValuePredicateTest {
private static final String DEFAULT_TIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss:SSS";
@Before
... | 6,742 |
0 | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing/filter | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing/filter/parser/CompositeMessageFilterParsingTest.java | package com.netflix.suro.routing.filter.parser;
import com.google.common.base.Joiner;
import com.google.common.base.Splitter;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Maps;
import com.netflix.suro.routing.filter.MessageFilter;
import com.netflix.suro.routing.filter.MessageFilter... | 6,743 |
0 | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing/filter | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing/filter/parser/FilterPredicate.java | package com.netflix.suro.routing.filter.parser;
import com.google.common.base.Joiner;
public enum FilterPredicate {
stringComp("xpath(\"%s\") %s \"%s\""),
numberComp("xpath(\"%s\") %s %s"),
between("xpath(\"%s\") between (%s, %s)") {
public String create(String path, String operator, Object value) {
Object[... | 6,744 |
0 | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing/filter | Create_ds/suro/suro-core/src/test/java/com/netflix/suro/routing/filter/parser/SimpleMessageFilterParsingTest.java | package com.netflix.suro.routing.filter.parser;
import com.google.common.base.Splitter;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Maps;
import com.netflix.suro.routing.filter.MessageFilter;
import com.netflix.suro.routing.filter.Mess... | 6,745 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/SuroPlugin.java | package com.netflix.suro;
import com.google.inject.AbstractModule;
import com.google.inject.multibindings.Multibinder;
import com.netflix.suro.input.RecordParser;
import com.netflix.suro.input.SuroInput;
import com.netflix.suro.routing.Filter;
import com.netflix.suro.sink.Sink;
import com.netflix.suro.sink.notice.Noti... | 6,746 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/TypeHolder.java | package com.netflix.suro;
/**
* Holder for a generic subtype to be registered with guice as a Map<String, TypeWrapper>
* so that we can cross link Guice injection with Jackson injection.
*
* Tried to use TypeLiteral but guice doesn't seem to like mixing TypeLiteral with
* MapBinder
*
* @author elandau
*
*/
... | 6,747 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/TagKey.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,748 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/input/RecordParser.java | package com.netflix.suro.input;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.netflix.suro.message.MessageContainer;
import java.util.List;
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
public interface RecordParser {
List<MessageContainer> parse(String data);
}
| 6,749 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/input/SuroInput.java | package com.netflix.suro.input;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
public interface SuroInput {
String getId();
void start() throws Exception;
void shutdown();
void setPause(long ms);
}
| 6,750 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/servo/Servo.java | package com.netflix.suro.servo;
import com.netflix.servo.DefaultMonitorRegistry;
import com.netflix.servo.monitor.*;
import com.netflix.servo.tag.BasicTagList;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.TimeUnit;
public class Servo {
priv... | 6,751 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/servo/Meter.java | package com.netflix.suro.servo;
import com.netflix.servo.monitor.BasicCounter;
import com.netflix.servo.monitor.MonitorConfig;
public class Meter {
private BasicCounter counter;
private long startTime;
public Meter(MonitorConfig config) {
counter = new BasicCounter(config);
startTime = Sy... | 6,752 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/sink/SinkManager.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,753 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/sink/DynamicPropertySinkConfigurator.java | package com.netflix.suro.sink;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.inject.Inject;
import com.netflix.config.DynamicStringProperty;
import com.netflix.governator.annotations.Configuration;
import org.slf4j.Logger;
import org.slf4j.L... | 6,754 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/sink/Sink.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,755 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/sink/QueuedSink.java | package com.netflix.suro.sink;
import com.google.common.annotations.VisibleForTesting;
import com.netflix.servo.annotations.DataSourceType;
import com.netflix.servo.annotations.Monitor;
import com.netflix.servo.monitor.DynamicCounter;
import com.netflix.servo.monitor.MonitorConfig;
import com.netflix.suro.TagKey;
impo... | 6,756 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/sink/ThreadPoolQueuedSink.java | package com.netflix.suro.sink;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import com.netflix.servo.annotations.DataSourceType;
import com.netflix.servo.annotations.Monitor;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.T... | 6,757 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/sink/DataConverter.java | package com.netflix.suro.sink;
import java.util.Map;
public interface DataConverter {
Map<String, Object> convert(Map<String, Object> msg);
}
| 6,758 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/sink | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/sink/remotefile/RemotePrefixFormatter.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,759 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/sink | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/sink/notice/NoNotice.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,760 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/sink | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/sink/notice/Notice.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,761 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/sink | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/sink/notice/QueueNotice.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,762 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/message/Message.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,763 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/message/MessageContainer.java | package com.netflix.suro.message;
import com.fasterxml.jackson.core.type.TypeReference;
/**
* Wrapper for a message with caching for deserialization
*
* @author elandau
*/
public interface MessageContainer {
/**
* Get the 'routing' key for this message. Note that the routing key is not
* part of ... | 6,764 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/message/StringMessage.java | package com.netflix.suro.message;
import com.fasterxml.jackson.core.type.TypeReference;
public class StringMessage implements MessageContainer {
private final Message message;
public static StringMessage from(String routingKey, String body) {
return new StringMessage(routingKey, body);
}
... | 6,765 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/message/StringSerDe.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,766 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/message/SerDe.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,767 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/message/ByteArrayDataOutputStream.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,768 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/message/DefaultMessageContainer.java | package com.netflix.suro.message;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.collect.Lists;
import java.util.List;
public class DefaultMessageContainer implements MessageContainer {
private final Message message;
private ... | 6,769 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/message/MessageSerDe.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,770 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/queue/FileBlockingQueue.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,771 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/queue/MemoryQueue4Sink.java | package com.netflix.suro.queue;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.netflix.suro.message.Message;
import javax.annotation.concurrent.NotThreadSafe;
import java.util.List;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.... | 6,772 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/queue/FileQueue4Sink.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,773 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/queue/MessageQueue4Sink.java | package com.netflix.suro.queue;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.netflix.suro.message.Message;
import java.util.List;
import java.util.concurrent.TimeUnit;
/**
* Queue interface used in {@link com.netflix.suro.sink.Sink}.
* With ... | 6,774 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing/MessageRouter.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,775 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing/RegexFilter.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,776 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing/XPathFilter.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,777 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing/JsonMapConverter.java | /**
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 6,778 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing/DynamicPropertyRoutingMapConfigurator.java | package com.netflix.suro.routing;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import com.netflix.config.DynamicStringProperty;
import com.netflix.governator.annotations.Configuration;
impo... | 6,779 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing/RoutingPlugin.java | package com.netflix.suro.routing;
import com.netflix.suro.SuroPlugin;
public class RoutingPlugin extends SuroPlugin {
@Override
protected void configure() {
this.addFilterType(RegexFilter.TYPE, RegexFilter.class);
this.addFilterType(XPathFilter.TYPE, XPathFilter.class);
}
}
| 6,780 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing/RoutingMap.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,781 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing/RoutingKeyFilter.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,782 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing/Filter.java | /*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 6,783 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing/MessageConverter.java | package com.netflix.suro.routing;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.netflix.suro.message.MessageContainer;
/**
* Converts an {@link com.netflix.suro.message.MessageContainer} to a Java object that is suitable
* for filtering by {@l... | 6,784 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing/filter/TimeRangeValuePredicate.java | package com.netflix.suro.routing.filter;
import com.google.common.base.Preconditions;
import com.google.common.base.Strings;
import org.joda.time.Interval;
import org.joda.time.format.DateTimeFormatter;
import javax.annotation.Nullable;
public class TimeRangeValuePredicate implements ValuePredicate<Long> {
private... | 6,785 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing/filter/BaseMessageFilter.java | package com.netflix.suro.routing.filter;
/**
* Base implementation of {@link SerializableMessageFilter} to implement serialization mechanism. <br/>
* The idea behind serialization is to store the DSL from which this filter was created. This approach works as there is
* no time where we create this instance without ... | 6,786 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing/filter/ValuePredicate.java | package com.netflix.suro.routing.filter;
import com.google.common.base.Predicate;
public interface ValuePredicate<T> extends Predicate<T>{
// Emphasize that every {@code ValuePredicate} instance can be used as a key
// in a collection.
public int hashCode();
public boolean equals(Object o);
}
| 6,787 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing/filter/BooleanValuePredicate.java | package com.netflix.suro.routing.filter;
import com.google.common.base.Objects;
import javax.annotation.Nullable;
public class BooleanValuePredicate implements ValuePredicate<Boolean> {
private Boolean value;
private BooleanValuePredicate(@Nullable Boolean value){
this.value = value;
}
@Override
publi... | 6,788 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing/filter/MessageFilters.java | package com.netflix.suro.routing.filter;
import com.google.common.collect.ImmutableList;
/**
* A number of static helper methods to simplify the construction of combined event filters.
*/
public class MessageFilters {
private MessageFilters(){}
public static MessageFilter alwaysTrue(){
return AlwaysTr... | 6,789 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing/filter/PathValueMessageFilter.java | package com.netflix.suro.routing.filter;
import org.apache.commons.jxpath.JXPathContext;
public class PathValueMessageFilter extends BaseMessageFilter {
private String xpath;
private ValuePredicate predicate;
public PathValueMessageFilter(String path, ValuePredicate predicate) {
this.xpath = path;
this.pred... | 6,790 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing/filter/NotMessageFilter.java | package com.netflix.suro.routing.filter;
import com.google.common.base.Predicate;
import com.google.common.base.Predicates;
public class NotMessageFilter extends BaseMessageFilter {
final private Predicate<Object> notPredicate;
public NotMessageFilter(MessageFilter filter) {
this.notPredicate = Predicate... | 6,791 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing/filter/AlwaysTrueMessageFilter.java | package com.netflix.suro.routing.filter;
final public class AlwaysTrueMessageFilter extends BaseMessageFilter {
private AlwaysTrueMessageFilter() {
setOriginalDslString("true");
}
@Override
public boolean apply(Object input) {
return true;
}
public static final AlwaysTrueMessageFilter INSTANCE = ... | 6,792 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing/filter/NumericValuePredicate.java | package com.netflix.suro.routing.filter;
import com.google.common.base.Preconditions;
import com.google.common.collect.Maps;
import com.google.common.primitives.Doubles;
import java.util.Map;
import java.util.Set;
public class NumericValuePredicate implements ValuePredicate<Number> {
private Number value;
private... | 6,793 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing/filter/SerializableMessageFilter.java | package com.netflix.suro.routing.filter;
/**
* An optional feature for a {@link MessageFilter} which indicates that the event filter can be converted back and forth
* from a string. <br/>
* Typically, if the filter is an expression of a language, as defined by {@link com.netflix.suro.routing.filter.lang}, then
* i... | 6,794 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing/filter/AndMessageFilter.java | package com.netflix.suro.routing.filter;
import com.google.common.base.Predicate;
import com.google.common.base.Predicates;
public class AndMessageFilter extends BaseMessageFilter {
final private Predicate<Object> andPredicate;
public AndMessageFilter(MessageFilter... filters) {
this.andPredicate = Pr... | 6,795 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing/filter/RegexValuePredicate.java | package com.netflix.suro.routing.filter;
import com.google.common.base.Preconditions;
import javax.annotation.Nullable;
import java.util.regex.Pattern;
public class RegexValuePredicate implements ValuePredicate<String> {
private String regex;
private Pattern pattern;
private MatchPolicy policy;
public Regex... | 6,796 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing/filter/TimeStringValuePredicate.java | package com.netflix.suro.routing.filter;
import org.joda.time.format.DateTimeFormatter;
import javax.annotation.Nullable;
public class TimeStringValuePredicate implements ValuePredicate<String> {
private String valueFormat;
private String inputFormat;
private String value;
private String fnName;
private DateT... | 6,797 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing/filter/MessageFilterCompiler.java | package com.netflix.suro.routing.filter;
import com.netflix.suro.routing.filter.lang.InvalidFilterException;
import com.netflix.suro.routing.filter.lang.MessageFilterParser;
import com.netflix.suro.routing.filter.lang.MessageFilterParsingException;
import com.netflix.suro.routing.filter.lang.MessageFilterTranslatable;... | 6,798 |
0 | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing | Create_ds/suro/suro-core/src/main/java/com/netflix/suro/routing/filter/TimeUtil.java | package com.netflix.suro.routing.filter;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
public class TimeUtil {
/**
* Converts the given time format string to a {@link org.joda.time.format.DateTimeFormatter} instance.
*
* @param formatName A name used to identify th... | 6,799 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.