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-s3/src/main/java/com/netflix/suro
Create_ds/suro/suro-s3/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,600
0
Create_ds/suro/suro-client/src/test/java/com/netflix
Create_ds/suro/suro-client/src/test/java/com/netflix/suro/SuroServer4Test.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,601
0
Create_ds/suro/suro-client/src/test/java/com/netflix/suro
Create_ds/suro/suro-client/src/test/java/com/netflix/suro/connection/TestConnectionOutPool.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,602
0
Create_ds/suro/suro-client/src/test/java/com/netflix/suro
Create_ds/suro/suro-client/src/test/java/com/netflix/suro/connection/TestSuroPing.java
package com.netflix.suro.connection; import com.netflix.loadbalancer.Server; import com.netflix.suro.SuroServer4Test; import org.junit.Test; import static org.junit.Assert.assertEquals; /** * @author thinker0 */ public class TestSuroPing { @Test public void pingTest() throws Exception { final Suro...
6,603
0
Create_ds/suro/suro-client/src/test/java/com/netflix/suro
Create_ds/suro/suro-client/src/test/java/com/netflix/suro/connection/TestConnectionPool.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,604
0
Create_ds/suro/suro-client/src/test/java/com/netflix/suro
Create_ds/suro/suro-client/src/test/java/com/netflix/suro/input/TestLog4JAppenderWithLog4JConfig.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,605
0
Create_ds/suro/suro-client/src/test/java/com/netflix/suro
Create_ds/suro/suro-client/src/test/java/com/netflix/suro/input/TestLog4jAppender.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,606
0
Create_ds/suro/suro-client/src/test/java/com/netflix/suro
Create_ds/suro/suro-client/src/test/java/com/netflix/suro/input/TestLog4jFormatter.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,607
0
Create_ds/suro/suro-client/src/test/java/com/netflix/suro
Create_ds/suro/suro-client/src/test/java/com/netflix/suro/sink/TestClientSuroSink.java
package com.netflix.suro.sink; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import com.google.inject.AbstractModule; import com.google.inject.Guice; import com.google.inject.Injector; import com.netflix.suro.SuroPlugin; import com.netflix.suro.SuroServer4Tes...
6,608
0
Create_ds/suro/suro-client/src/test/java/com/netflix/suro
Create_ds/suro/suro-client/src/test/java/com/netflix/suro/message/TestCompression.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,609
0
Create_ds/suro/suro-client/src/test/java/com/netflix/suro
Create_ds/suro/suro-client/src/test/java/com/netflix/suro/message/TestStringSerDe.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,610
0
Create_ds/suro/suro-client/src/test/java/com/netflix/suro
Create_ds/suro/suro-client/src/test/java/com/netflix/suro/message/TestMessageSerDe.java
package com.netflix.suro.message; import com.netflix.suro.sink.kafka.SuroKeyedMessage; import org.junit.Test; import java.util.Random; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import static org.junit.Assert.assertEquals; public c...
6,611
0
Create_ds/suro/suro-client/src/test/java/com/netflix/suro
Create_ds/suro/suro-client/src/test/java/com/netflix/suro/message/TestJsonSerDe.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,612
0
Create_ds/suro/suro-client/src/test/java/com/netflix/suro
Create_ds/suro/suro-client/src/test/java/com/netflix/suro/message/TestMessageSet.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,613
0
Create_ds/suro/suro-client/src/test/java/com/netflix/suro
Create_ds/suro/suro-client/src/test/java/com/netflix/suro/client/Test.java
package com.netflix.suro.client; import com.netflix.suro.ClientConfig; import com.netflix.suro.message.Message; import java.util.Properties; public class Test { public static void main(String[] args) throws Exception { Properties prop = new Properties(); prop.setProperty(ClientConfig.LB_TYPE, "s...
6,614
0
Create_ds/suro/suro-client/src/test/java/com/netflix/suro
Create_ds/suro/suro-client/src/test/java/com/netflix/suro/client/TestSyncSuroClient.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,615
0
Create_ds/suro/suro-client/src/test/java/com/netflix/suro/client
Create_ds/suro/suro-client/src/test/java/com/netflix/suro/client/async/TestAsyncSuroSender.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,616
0
Create_ds/suro/suro-client/src/test/java/com/netflix/suro/client
Create_ds/suro/suro-client/src/test/java/com/netflix/suro/client/async/TestAsyncSuroClientWithNonExistentFilePath.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,617
0
Create_ds/suro/suro-client/src/test/java/com/netflix/suro/client
Create_ds/suro/suro-client/src/test/java/com/netflix/suro/client/async/TestAsyncSuroClient.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,618
0
Create_ds/suro/suro-client/src/test/java/com/netflix/suro
Create_ds/suro/suro-client/src/test/java/com/netflix/suro/jackson/TestJackson.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,619
0
Create_ds/suro/suro-client/src/main/java/com/netflix
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/ClientConfig.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,620
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/connection/EurekaLoadBalancer.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,621
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/connection/ConnectionPool.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,622
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/connection/StaticLoadBalancer.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,623
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/connection/SuroPing.java
package com.netflix.suro.connection; import com.netflix.client.config.IClientConfig; import com.netflix.loadbalancer.AbstractLoadBalancerPing; import com.netflix.loadbalancer.Server; import org.apache.thrift.transport.TFramedTransport; import org.apache.thrift.transport.TSocket; import org.apache.thrift.transport.TTra...
6,624
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/input/Log4jFormatter.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,625
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/input/Log4jAppender.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,626
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/input/StringLog4jFormatter.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,627
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/input/StaticLog4jFormatter.java
package com.netflix.suro.input; import com.google.inject.Inject; import com.netflix.suro.ClientConfig; import org.apache.log4j.spi.LoggingEvent; import org.joda.time.DateTime; import org.joda.time.format.DateTimeFormat; import org.joda.time.format.DateTimeFormatter; public class StaticLog4jFormatter implements Log4jF...
6,628
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/input/JsonLog4jFormatter.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,629
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/sink/SuroSink.java
package com.netflix.suro.sink; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.netflix.suro.client.SuroClient; import com.netflix.suro.message.MessageContainer; import java.util.Properties; /** * Sink implementation of suro client for sending mes...
6,630
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/message/Compression.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,631
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/message/MessageSetBuilder.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,632
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/message/MessageSetReader.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,633
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/message
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/message/serde/SerDeFactory.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,634
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/message
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/message/serde/JsonSerDe.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,635
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/thrift/TMessageSet.java
/** * Autogenerated by Thrift Compiler (0.9.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package com.netflix.suro.thrift; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thr...
6,636
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/thrift/SuroService.java
/** * Autogenerated by Thrift Compiler (0.9.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package com.netflix.suro.thrift; import org.apache.thrift.EncodingUtils; import org.apache.thrift.TException; import org.apache.thrift.async.AsyncMethodCallback; import org.apache.t...
6,637
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/thrift/ServiceStatus.java
/** * Autogenerated by Thrift Compiler (0.9.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package com.netflix.suro.thrift; import java.util.Map; import java.util.HashMap; import org.apache.thrift.TEnum; public enum ServiceStatus implements TEnum { DEAD(0), STARTING...
6,638
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/thrift/ResultCode.java
/** * Autogenerated by Thrift Compiler (0.9.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package com.netflix.suro.thrift; import java.util.Map; import java.util.HashMap; import org.apache.thrift.TEnum; public enum ResultCode implements TEnum { OK(0), STOPPED(1), ...
6,639
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/thrift/SuroServer.java
/** * Autogenerated by Thrift Compiler (0.9.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package com.netflix.suro.thrift; import org.apache.thrift.TException; import org.apache.thrift.async.AsyncMethodCallback; import org.apache.thrift.protocol.TTupleProtocol; import or...
6,640
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/thrift/Result.java
/** * Autogenerated by Thrift Compiler (0.9.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package com.netflix.suro.thrift; import org.apache.thrift.TException; import org.apache.thrift.protocol.TTupleProtocol; import org.apache.thrift.scheme.IScheme; import org.apache.th...
6,641
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/client/SuroClient.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,642
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/client/SyncSuroClient.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,643
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/client/ConfigBasedSuroClientProvider.java
package com.netflix.suro.client; import java.util.Map; import javax.inject.Inject; import com.google.inject.Provider; import com.netflix.governator.guice.lazy.LazySingleton; import com.netflix.suro.ClientConfig; /** * Configuration base {@link ISuroClient} provider that will create an {@link ISuroClient} * imple...
6,644
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/client/ConfigBasedLoadBalancerProvider.java
package com.netflix.suro.client; import java.util.Map; import javax.inject.Inject; import com.google.inject.Provider; import com.netflix.governator.guice.lazy.LazySingleton; import com.netflix.loadbalancer.ILoadBalancer; import com.netflix.suro.ClientConfig; /** * Configuration based {@link ILoadBalancer} provider...
6,645
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/client/ISuroClient.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,646
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/client/SuroClientModule.java
package com.netflix.suro.client; import javax.inject.Singleton; import com.google.inject.AbstractModule; import com.google.inject.multibindings.MapBinder; import com.netflix.governator.guice.lazy.LazySingletonScope; import com.netflix.loadbalancer.ILoadBalancer; import com.netflix.suro.client.async.AsyncSuroClient; i...
6,647
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/client
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/client/example/SuroClient4Test.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,648
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/client
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/client/example/ExampleClient.java
package com.netflix.suro.client.example; import com.netflix.suro.ClientConfig; import com.netflix.suro.client.SuroClient; import com.netflix.suro.message.Message; import java.util.Properties; public class ExampleClient { public static void main(String[] args) { // create the client final Properti...
6,649
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/client
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/client/async/AsyncSuroClient.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,650
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/client
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/client/async/RateLimiter.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,651
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/client
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/client/async/AsyncSuroSender.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,652
0
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/client
Create_ds/suro/suro-client/src/main/java/com/netflix/suro/client/async/Queue4Client.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,653
0
Create_ds/suro/suro-elasticsearch/src/test/java/com/netflix/suro/sink
Create_ds/suro/suro-elasticsearch/src/test/java/com/netflix/suro/sink/elasticsearch/TestIndexSuffixFormatter.java
package com.netflix.suro.sink.elasticsearch; import org.joda.time.DateTime; import org.junit.Test; import java.util.Properties; import static org.junit.Assert.assertEquals; import static org.mockito.Matchers.any; import static org.mockito.Mockito.doReturn; import static org.mockito.Mockito.mock; public class TestIn...
6,654
0
Create_ds/suro/suro-elasticsearch/src/test/java/com/netflix/suro/sink
Create_ds/suro/suro-elasticsearch/src/test/java/com/netflix/suro/sink/elasticsearch/TestElasticSearchSink.java
package com.netflix.suro.sink.elasticsearch; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.BeanProperty; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.Injectabl...
6,655
0
Create_ds/suro/suro-elasticsearch/src/test/java/com/netflix/suro/sink
Create_ds/suro/suro-elasticsearch/src/test/java/com/netflix/suro/sink/elasticsearch/TestTimestampField.java
package com.netflix.suro.sink.elasticsearch; import com.google.common.collect.ImmutableMap; import org.joda.time.DateTime; import org.junit.Test; import static org.junit.Assert.assertEquals; public class TestTimestampField { @Test public void shouldNullFormatReturnsLongTS() { TimestampField field = n...
6,656
0
Create_ds/suro/suro-elasticsearch/src/test/java/com/netflix/suro/sink
Create_ds/suro/suro-elasticsearch/src/test/java/com/netflix/suro/sink/elasticsearch/TestDefaultIndexInfoBuilder.java
package com.netflix.suro.sink.elasticsearch; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.BeanProperty; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.Injectabl...
6,657
0
Create_ds/suro/suro-elasticsearch/src/main/java/com/netflix/suro/sink
Create_ds/suro/suro-elasticsearch/src/main/java/com/netflix/suro/sink/elasticsearch/ElasticSearchSink.java
package com.netflix.suro.sink.elasticsearch; import com.fasterxml.jackson.annotation.JacksonInject; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import com.google.common.annotations.VisibleForTesting; imp...
6,658
0
Create_ds/suro/suro-elasticsearch/src/main/java/com/netflix/suro/sink
Create_ds/suro/suro-elasticsearch/src/main/java/com/netflix/suro/sink/elasticsearch/IndexInfoBuilder.java
package com.netflix.suro.sink.elasticsearch; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.netflix.suro.message.Message; @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type") @JsonSubTypes(value = { @JsonSubTypes.Type(name = "defa...
6,659
0
Create_ds/suro/suro-elasticsearch/src/main/java/com/netflix/suro/sink
Create_ds/suro/suro-elasticsearch/src/main/java/com/netflix/suro/sink/elasticsearch/TimestampSlice.java
package com.netflix.suro.sink.elasticsearch; public enum TimestampSlice { ts_millisecond { public String get(long ts) { return Long.toString(ts); } }, ts_second { public String get(long ts) { return Long.toString(ts / 1000); } }, ts_minute { ...
6,660
0
Create_ds/suro/suro-elasticsearch/src/main/java/com/netflix/suro/sink
Create_ds/suro/suro-elasticsearch/src/main/java/com/netflix/suro/sink/elasticsearch/IndexSuffixFormatter.java
package com.netflix.suro.sink.elasticsearch; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.google.common.base.Function; import org.joda.time.format.DateTimeFormat; import org.joda.time.format.DateTimeFormatter; import javax.annotation.Nullable; i...
6,661
0
Create_ds/suro/suro-elasticsearch/src/main/java/com/netflix/suro/sink
Create_ds/suro/suro-elasticsearch/src/main/java/com/netflix/suro/sink/elasticsearch/TimestampField.java
package com.netflix.suro.sink.elasticsearch; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.google.common.base.Strings; import org.joda.time.*; import org.joda.time.field.DividedDateTimeField; import org.joda.time.field.OffsetDateTimeField; import ...
6,662
0
Create_ds/suro/suro-elasticsearch/src/main/java/com/netflix/suro/sink
Create_ds/suro/suro-elasticsearch/src/main/java/com/netflix/suro/sink/elasticsearch/DefaultIndexInfoBuilder.java
package com.netflix.suro.sink.elasticsearch; import com.fasterxml.jackson.annotation.JacksonInject; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.type.TypeReference;...
6,663
0
Create_ds/suro/suro-elasticsearch/src/main/java/com/netflix/suro/sink
Create_ds/suro/suro-elasticsearch/src/main/java/com/netflix/suro/sink/elasticsearch/IndexInfo.java
package com.netflix.suro.sink.elasticsearch; public interface IndexInfo { String getIndex(); String getType(); Object getSource(); String getId(); long getTimestamp(); }
6,664
0
Create_ds/suro/suro-localfile/src/test/java/com/netflix/suro/sink
Create_ds/suro/suro-localfile/src/test/java/com/netflix/suro/sink/localfile/SuroSinkPlugin.java
package com.netflix.suro.sink.localfile; import com.netflix.suro.SuroPlugin; import com.netflix.suro.sink.SuroSink; import com.netflix.suro.sink.notice.NoNotice; import com.netflix.suro.sink.notice.QueueNotice; public class SuroSinkPlugin extends SuroPlugin { @Override protected void configure() { thi...
6,665
0
Create_ds/suro/suro-localfile/src/test/java/com/netflix/suro/sink
Create_ds/suro/suro-localfile/src/test/java/com/netflix/suro/sink/localfile/TestSequenceFileWriter.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,666
0
Create_ds/suro/suro-localfile/src/test/java/com/netflix/suro/sink
Create_ds/suro/suro-localfile/src/test/java/com/netflix/suro/sink/localfile/TestTextFileWriter.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,667
0
Create_ds/suro/suro-localfile/src/test/java/com/netflix/suro/sink
Create_ds/suro/suro-localfile/src/test/java/com/netflix/suro/sink/localfile/TestLocalFileSink.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,668
0
Create_ds/suro/suro-localfile/src/test/java/com/netflix/suro/sink
Create_ds/suro/suro-localfile/src/test/java/com/netflix/suro/sink/localfile/TestFileNameFormatter.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,669
0
Create_ds/suro/suro-localfile/src/main/java/com/netflix/suro/sink
Create_ds/suro/suro-localfile/src/main/java/com/netflix/suro/sink/localfile/FileWriterBase.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,670
0
Create_ds/suro/suro-localfile/src/main/java/com/netflix/suro/sink
Create_ds/suro/suro-localfile/src/main/java/com/netflix/suro/sink/localfile/SequenceFileWriter.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,671
0
Create_ds/suro/suro-localfile/src/main/java/com/netflix/suro/sink
Create_ds/suro/suro-localfile/src/main/java/com/netflix/suro/sink/localfile/FileWriter.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,672
0
Create_ds/suro/suro-localfile/src/main/java/com/netflix/suro/sink
Create_ds/suro/suro-localfile/src/main/java/com/netflix/suro/sink/localfile/TextFileWriter.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,673
0
Create_ds/suro/suro-localfile/src/main/java/com/netflix/suro/sink
Create_ds/suro/suro-localfile/src/main/java/com/netflix/suro/sink/localfile/SequenceFileViewer.java
package com.netflix.suro.sink.localfile; import com.netflix.suro.message.serde.SerDeFactory; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.SequenceFile; import org.apache.hadoop.io.Text; import java.io.IOException; /...
6,674
0
Create_ds/suro/suro-localfile/src/main/java/com/netflix/suro/sink
Create_ds/suro/suro-localfile/src/main/java/com/netflix/suro/sink/localfile/LocalFileSink.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,675
0
Create_ds/suro/suro-localfile/src/main/java/com/netflix/suro/sink
Create_ds/suro/suro-localfile/src/main/java/com/netflix/suro/sink/localfile/FileNameFormatter.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,676
0
Create_ds/suro/suro-localfile/src/main/java/com/netflix/suro/sink
Create_ds/suro/suro-localfile/src/main/java/com/netflix/suro/sink/localfile/MessageWritable.java
package com.netflix.suro.sink.localfile; import com.netflix.suro.message.Message; import org.apache.hadoop.io.Writable; import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; public class MessageWritable implements Writable { private final Message m; public MessageWritable(Message ...
6,677
0
Create_ds/suro/suro-server/src/test/java/com/netflix
Create_ds/suro/suro-server/src/test/java/com/netflix/suro/TestUtils.java
package com.netflix.suro; import java.io.IOException; import java.net.ServerSocket; public class TestUtils { public static int pickPort() throws IOException { ServerSocket socket = new ServerSocket(0); int port = socket.getLocalPort(); socket.close(); return port; } }
6,678
0
Create_ds/suro/suro-server/src/test/java/com/netflix
Create_ds/suro/suro-server/src/test/java/com/netflix/suro/TestSuroService.java
package com.netflix.suro; import com.fasterxml.jackson.annotation.JsonCreator; import com.google.inject.Injector; import com.netflix.governator.lifecycle.LifecycleManager; import com.netflix.suro.input.DynamicPropertyInputConfigurator; import com.netflix.suro.input.SuroInput; import com.netflix.suro.message.MessageCon...
6,679
0
Create_ds/suro/suro-server/src/test/java/com/netflix/suro
Create_ds/suro/suro-server/src/test/java/com/netflix/suro/input/TestInputManager.java
package com.netflix.suro.input; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import com.google.inject.AbstractModule; import com.google.inject.Injector; import com.netflix.governator.configuration.PropertiesConfigurationProvider; import com.netflix.governato...
6,680
0
Create_ds/suro/suro-server/src/test/java/com/netflix/suro/input
Create_ds/suro/suro-server/src/test/java/com/netflix/suro/input/thrift/TestMessageSetProcessor.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,681
0
Create_ds/suro/suro-server/src/test/java/com/netflix/suro/input
Create_ds/suro/suro-server/src/test/java/com/netflix/suro/input/thrift/TestMessageSetSerDe.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,682
0
Create_ds/suro/suro-server/src/test/java/com/netflix/suro
Create_ds/suro/suro-server/src/test/java/com/netflix/suro/sink/TestSinkManager.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,683
0
Create_ds/suro/suro-server/src/test/java/com/netflix/suro/sink
Create_ds/suro/suro-server/src/test/java/com/netflix/suro/sink/notice/TestNotice.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,684
0
Create_ds/suro/suro-server/src/test/java/com/netflix/suro/sink
Create_ds/suro/suro-server/src/test/java/com/netflix/suro/sink/queue/TestMemoryQueue.java
package com.netflix.suro.sink.queue; import com.netflix.suro.message.Message; import com.netflix.suro.queue.MemoryQueue4Sink; import org.junit.Test; import java.io.IOException; import java.util.LinkedList; import java.util.List; import static org.junit.Assert.assertEquals; public class TestMemoryQueue { @Test ...
6,685
0
Create_ds/suro/suro-server/src/test/java/com/netflix/suro/sink
Create_ds/suro/suro-server/src/test/java/com/netflix/suro/sink/queue/TestFileQueue.java
package com.netflix.suro.sink.queue; import com.netflix.suro.message.Message; import com.netflix.suro.queue.FileQueue4Sink; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; import java.io.IOException; import java.util.LinkedList; import java.util.List; import static org.junit.Ass...
6,686
0
Create_ds/suro/suro-server/src/test/java/com/netflix/suro
Create_ds/suro/suro-server/src/test/java/com/netflix/suro/server/TestStatusServer.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,687
0
Create_ds/suro/suro-server/src/test/java/com/netflix/suro
Create_ds/suro/suro-server/src/test/java/com/netflix/suro/server/TestSuroControl.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,688
0
Create_ds/suro/suro-server/src/test/java/com/netflix/suro
Create_ds/suro/suro-server/src/test/java/com/netflix/suro/server/SuroServerExternalResource.java
package com.netflix.suro.server; import com.google.inject.Injector; import com.netflix.governator.lifecycle.LifecycleManager; import com.netflix.suro.SuroPlugin; import com.netflix.suro.SuroServer; import com.netflix.suro.TestUtils; import com.netflix.suro.input.DynamicPropertyInputConfigurator; import com.netflix.sur...
6,689
0
Create_ds/suro/suro-server/src/test/java/com/netflix/suro
Create_ds/suro/suro-server/src/test/java/com/netflix/suro/server/TestHealthCheck.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,690
0
Create_ds/suro/suro-server/src/test/java/com/netflix/suro
Create_ds/suro/suro-server/src/test/java/com/netflix/suro/routing/TestRoutingMap.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,691
0
Create_ds/suro/suro-server/src/test/java/com/netflix/suro
Create_ds/suro/suro-server/src/test/java/com/netflix/suro/routing/TestFilter.java
package com.netflix.suro.routing; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import com.google.inject.AbstractModule; import com.google.inject.Guice; import com.google.inject.Injector; import com.netflix.suro.SuroPlugin; import com.netflix.suro.jackson.Def...
6,692
0
Create_ds/suro/suro-server/src/test/java/com/netflix/suro
Create_ds/suro/suro-server/src/test/java/com/netflix/suro/routing/TestMessageRouter.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,693
0
Create_ds/suro/suro-server/src/main/java/com/netflix
Create_ds/suro/suro-server/src/main/java/com/netflix/suro/SuroControl.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,694
0
Create_ds/suro/suro-server/src/main/java/com/netflix
Create_ds/suro/suro-server/src/main/java/com/netflix/suro/SuroModule.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,695
0
Create_ds/suro/suro-server/src/main/java/com/netflix
Create_ds/suro/suro-server/src/main/java/com/netflix/suro/SuroService.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,696
0
Create_ds/suro/suro-server/src/main/java/com/netflix
Create_ds/suro/suro-server/src/main/java/com/netflix/suro/SuroDynamicPropertyModule.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,697
0
Create_ds/suro/suro-server/src/main/java/com/netflix
Create_ds/suro/suro-server/src/main/java/com/netflix/suro/SuroServer.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,698
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...
6,699