index
int64
0
0
repo_id
stringlengths
26
205
file_path
stringlengths
51
246
content
stringlengths
8
433k
__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/util/Closeables.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...
1,400
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...
1,401
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....
1,402
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...
1,403
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 ...
1,404
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 ...
1,405
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 ...
1,406
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 ...
1,407
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 ...
1,408
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...
1,409
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...
1,410
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 ...
1,411
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 ...
1,412
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 ...
1,413
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 ...
1,414
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 ...
1,415
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...
1,416
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 ...
1,417
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 ...
1,418
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...
1,419
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...
1,420
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...
1,421
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 ...
1,422
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...
1,423
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...
1,424
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...
1,425
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...
1,426
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 ...
1,427
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...
1,428
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...
1,429
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...
1,430
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...
1,431
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...
1,432
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...
1,433
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...
1,434
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...
1,435
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...
1,436
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...
1,437
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...
1,438
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 ...
1,439
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...
1,440
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...
1,441
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...
1,442
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 ...
1,443
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...
1,444
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[...
1,445
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...
1,446
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...
1,447
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 * */ ...
1,448
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 ...
1,449
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); }
1,450
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); }
1,451
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...
1,452
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...
1,453
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 ...
1,454
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...
1,455
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 ...
1,456
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...
1,457
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...
1,458
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); }
1,459
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 ...
1,460
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 ...
1,461
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 ...
1,462
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 ...
1,463
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 ...
1,464
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 ...
1,465
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); } ...
1,466
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 ...
1,467
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 ...
1,468
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 ...
1,469
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 ...
1,470
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 ...
1,471
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 ...
1,472
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....
1,473
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 ...
1,474
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 ...
1,475
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 ...
1,476
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 ...
1,477
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 ...
1,478
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...
1,479
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...
1,480
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); } }
1,481
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 ...
1,482
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 ...
1,483
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 ...
1,484
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...
1,485
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...
1,486
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 ...
1,487
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); }
1,488
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...
1,489
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...
1,490
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...
1,491
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...
1,492
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 = ...
1,493
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...
1,494
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...
1,495
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...
1,496
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...
1,497
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...
1,498
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;...
1,499