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-s3/src/main/java/com/netflix/suro/sink/remotefile
Create_ds/suro/suro-s3/src/main/java/com/netflix/suro/sink/remotefile/formatter/PrefixFormatter.java
package com.netflix.suro.sink.remotefile.formatter; public interface PrefixFormatter { String format(); }
1,300
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...
1,301
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 ...
1,302
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 ...
1,303
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...
1,304
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 ...
1,305
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...
1,306
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 ...
1,307
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 ...
1,308
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...
1,309
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 ...
1,310
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 ...
1,311
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...
1,312
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 ...
1,313
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 ...
1,314
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...
1,315
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 ...
1,316
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 ...
1,317
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 ...
1,318
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 ...
1,319
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 ...
1,320
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 ...
1,321
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 ...
1,322
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 ...
1,323
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 ...
1,324
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...
1,325
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 ...
1,326
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 ...
1,327
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 ...
1,328
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...
1,329
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 ...
1,330
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...
1,331
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 ...
1,332
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 ...
1,333
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 ...
1,334
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 ...
1,335
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 ...
1,336
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...
1,337
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...
1,338
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...
1,339
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), ...
1,340
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...
1,341
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...
1,342
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 ...
1,343
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 ...
1,344
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...
1,345
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...
1,346
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 ...
1,347
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...
1,348
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 ...
1,349
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...
1,350
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 ...
1,351
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 ...
1,352
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 ...
1,353
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 ...
1,354
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...
1,355
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...
1,356
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...
1,357
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...
1,358
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...
1,359
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...
1,360
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 { ...
1,361
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...
1,362
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 ...
1,363
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;...
1,364
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(); }
1,365
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...
1,366
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 ...
1,367
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 ...
1,368
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 ...
1,369
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 ...
1,370
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 ...
1,371
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 ...
1,372
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 ...
1,373
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 ...
1,374
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; /...
1,375
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 ...
1,376
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 ...
1,377
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 ...
1,378
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; } }
1,379
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...
1,380
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...
1,381
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 ...
1,382
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 ...
1,383
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 ...
1,384
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 ...
1,385
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 ...
1,386
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...
1,387
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 ...
1,388
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...
1,389
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...
1,390
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 ...
1,391
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 ...
1,392
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...
1,393
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 ...
1,394
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...
1,395
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...
1,396
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...
1,397
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...
1,398
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 ...
1,399