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/staash/staash-svc/src/main/java/com/netflix/staash/rest
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/util/Pair.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 t...
700
0
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/util/PaasUtils.java
/* * Copyright (C) 2012 DataStax 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 applicab...
701
0
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/util/HostSupplier.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 t...
702
0
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/util/StaashRequestContext.java
package com.netflix.staash.rest.util; import java.util.UUID; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.atomic.AtomicLong; import org.joda.time.DateTime; import org.joda.time.format.DateTimeFormat; import org.joda.time.format.DateTimeFormatter; import org.slf4j.Logger; import org.slf4j...
703
0
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/util/StaashConstants.java
package com.netflix.staash.rest.util; public interface StaashConstants { public static final int MAX_FILE_UPLOAD_SIZE_IN_KB = 5000; public static final int CHUNK_SIZE_IN_KB = 256; }
704
0
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/util/MetaConstants.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 t...
705
0
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/resources/StaashDataResourceImpl.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 t...
706
0
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/resources/StaashAuditFilter.java
package com.netflix.staash.rest.resources; import java.util.List; import java.util.Map.Entry; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.ws.rs.core.Context; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.MultivaluedMap; import javax.ws.rs.core...
707
0
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/resources/StaashAdminResourceImpl.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 t...
708
0
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/dao/CqlDataDaoImpl.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 t...
709
0
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/dao/CqlMetaDaoImpl.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 t...
710
0
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/dao/DataDao.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 t...
711
0
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/dao/CqlMetaDaoImplNew.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 t...
712
0
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/dao/MetaDao.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 t...
713
0
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/dao/AstyanaxDataDaoImpl.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 t...
714
0
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/dao/CqlDataDaoImplNew.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 t...
715
0
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/dao/AstyanaxMetaDaoImpl.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 t...
716
0
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/dao/MysqlDaoImpl.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 t...
717
0
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/meta
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/meta/entity/PaasDBEntity.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 t...
718
0
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/meta
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/meta/entity/PaasTableEntity.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 t...
719
0
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/meta
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/meta/entity/EntityType.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 t...
720
0
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/meta
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/meta/entity/PaasStorageEntity.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 t...
721
0
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/meta
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/meta/entity/PaasTimeseriesEntity.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 t...
722
0
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/meta
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/meta/entity/Entity.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 t...
723
0
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/main/PaasMain.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 t...
724
0
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest
Create_ds/staash/staash-svc/src/main/java/com/netflix/staash/rest/modules/PaasPropertiesModule.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 t...
725
0
Create_ds/EVCache/evcache-client-sample/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-client-sample/src/main/java/com/netflix/evcache/sample/EVCacheClientZipkinTracingSample.java
package com.netflix.evcache.sample; import brave.Tracing; import com.netflix.evcache.EVCache; import com.netflix.evcache.EVCacheException; import com.netflix.evcache.EVCacheTracingEventListener; import com.netflix.evcache.pool.EVCacheClientPoolManager; import zipkin2.Span; import java.util.ArrayList; import java.util...
726
0
Create_ds/EVCache/evcache-client-sample/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-client-sample/src/main/java/com/netflix/evcache/sample/EVCacheClientSample.java
package com.netflix.evcache.sample; import com.netflix.evcache.EVCache; import com.netflix.evcache.EVCacheException; import java.util.concurrent.Future; /** * Created by senugula on 3/24/16. * Updated by akpratt on 5/13/16. */ /** * This standalone program demonstrates how to use EVCacheClient for * set/get op...
727
0
Create_ds/EVCache/evcache-zipkin-tracing/src/test/java/com/netflix
Create_ds/EVCache/evcache-zipkin-tracing/src/test/java/com/netflix/evcache/EVCacheTracingEventListenerUnitTests.java
package com.netflix.evcache; import brave.Tracing; import com.netflix.evcache.event.EVCacheEvent; import com.netflix.evcache.pool.EVCacheClient; import com.netflix.evcache.pool.EVCacheClientPoolManager; import net.spy.memcached.CachedData; import org.mockito.invocation.InvocationOnMock; import org.mockito.stubbing.Ans...
728
0
Create_ds/EVCache/evcache-zipkin-tracing/src/main/java/com/netflix
Create_ds/EVCache/evcache-zipkin-tracing/src/main/java/com/netflix/evcache/EVCacheTracingTags.java
package com.netflix.evcache; public class EVCacheTracingTags { public static String CACHE_NAME_PREFIX = "evcache.cache_name_prefix"; public static String APP_NAME = "evcache.app_name"; public static String STATUS = "evcache.status"; public static String LATENCY = "evcache.latency"; public static St...
729
0
Create_ds/EVCache/evcache-zipkin-tracing/src/main/java/com/netflix
Create_ds/EVCache/evcache-zipkin-tracing/src/main/java/com/netflix/evcache/EVCacheTracingEventListener.java
package com.netflix.evcache; import brave.Span; import brave.Tracer; import com.netflix.evcache.event.EVCacheEvent; import com.netflix.evcache.event.EVCacheEventListener; import com.netflix.evcache.pool.EVCacheClient; import com.netflix.evcache.pool.EVCacheClientPoolManager; import net.spy.memcached.CachedData; import...
730
0
Create_ds/EVCache/evcache-core/src/test/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/test/java/com/netflix/evcache/test/Base.java
package com.netflix.evcache.test; import java.util.Arrays; import java.util.Map; import java.util.Map.Entry; import java.util.Properties; import java.util.concurrent.CompletableFuture; import java.util.concurrent.Future; import java.util.concurrent.TimeUnit; import org.apache.log4j.Appender; import org.apache.log4j....
731
0
Create_ds/EVCache/evcache-core/src/test/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/test/java/com/netflix/evcache/test/SimpleEVCacheTest.java
package com.netflix.evcache.test; import java.util.Arrays; import java.util.Map; import java.util.Properties; import java.util.concurrent.BlockingQueue; import java.util.concurrent.Future; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeU...
732
0
Create_ds/EVCache/evcache-core/src/test/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/test/java/com/netflix/evcache/test/MockEVCacheTest.java
package com.netflix.evcache.test; import static org.mockito.Matchers.anyCollection; import static org.mockito.Matchers.anyInt; import static org.mockito.Matchers.anyObject; import static org.mockito.Matchers.anyString; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import static org.te...
733
0
Create_ds/EVCache/evcache-core/src/test/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/test/java/com/netflix/evcache/test/SimpleEurekaEVCacheTest.java
package com.netflix.evcache.test; import static org.testng.Assert.assertNotNull; import static org.testng.Assert.assertTrue; import java.util.Map; import java.util.concurrent.BlockingQueue; import java.util.concurrent.Future; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ThreadPoolExecu...
734
0
Create_ds/EVCache/evcache-core/src/main/java/net/spy
Create_ds/EVCache/evcache-core/src/main/java/net/spy/memcached/EVCacheConnection.java
package net.spy.memcached; import java.io.IOException; import java.net.InetSocketAddress; import java.nio.channels.CancelledKeyException; import java.nio.channels.ClosedSelectorException; import java.util.Collection; import java.util.ConcurrentModificationException; import java.util.List; import java.util.Map; import ...
735
0
Create_ds/EVCache/evcache-core/src/main/java/net/spy
Create_ds/EVCache/evcache-core/src/main/java/net/spy/memcached/EVCacheNodeMBean.java
package net.spy.memcached; public interface EVCacheNodeMBean extends EVCacheNode { }
736
0
Create_ds/EVCache/evcache-core/src/main/java/net/spy
Create_ds/EVCache/evcache-core/src/main/java/net/spy/memcached/EVCacheMemcachedClient.java
package net.spy.memcached; import java.io.IOException; import java.net.InetSocketAddress; import java.net.SocketAddress; import java.time.Duration; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.Iterator; import java.util.List; import j...
737
0
Create_ds/EVCache/evcache-core/src/main/java/net/spy
Create_ds/EVCache/evcache-core/src/main/java/net/spy/memcached/EVCacheMemcachedNodeROImpl.java
package net.spy.memcached; import java.io.IOException; import java.net.SocketAddress; import java.nio.ByteBuffer; import java.nio.channels.SelectionKey; import java.nio.channels.SocketChannel; import java.util.Collection; import net.spy.memcached.ops.Operation; public class EVCacheMemcachedNodeROImpl implements Memc...
738
0
Create_ds/EVCache/evcache-core/src/main/java/net/spy
Create_ds/EVCache/evcache-core/src/main/java/net/spy/memcached/EVCacheNode.java
package net.spy.memcached; import java.util.List; import com.netflix.evcache.EVCache; import com.netflix.evcache.pool.EVCacheClient; import com.netflix.evcache.pool.ServerGroup; import com.netflix.spectator.api.Tag; public interface EVCacheNode extends MemcachedNode { void registerMonitors(); boolean isAvai...
739
0
Create_ds/EVCache/evcache-core/src/main/java/net/spy/memcached/protocol
Create_ds/EVCache/evcache-core/src/main/java/net/spy/memcached/protocol/ascii/ExecCmdOperationImpl.java
package net.spy.memcached.protocol.ascii; import java.nio.ByteBuffer; import java.util.Arrays; import net.spy.memcached.ops.OperationState; import net.spy.memcached.ops.OperationStatus; import net.spy.memcached.ops.StatusCode; public class ExecCmdOperationImpl extends OperationImpl implements ExecCmdOperation { ...
740
0
Create_ds/EVCache/evcache-core/src/main/java/net/spy/memcached/protocol
Create_ds/EVCache/evcache-core/src/main/java/net/spy/memcached/protocol/ascii/MetaArithmeticOperationImpl.java
package net.spy.memcached.protocol.ascii; import net.spy.memcached.KeyUtil; import net.spy.memcached.ops.Mutator; import net.spy.memcached.ops.MutatorOperation; import net.spy.memcached.ops.OperationCallback; import net.spy.memcached.ops.OperationStatus; import net.spy.memcached.ops.OperationState; import net.spy.memc...
741
0
Create_ds/EVCache/evcache-core/src/main/java/net/spy/memcached/protocol
Create_ds/EVCache/evcache-core/src/main/java/net/spy/memcached/protocol/ascii/EVCacheAsciiNodeImpl.java
package net.spy.memcached.protocol.ascii; import java.io.IOException; import java.lang.management.ManagementFactory; import java.net.InetSocketAddress; import java.net.SocketAddress; import java.nio.channels.SocketChannel; import java.util.List; import java.util.concurrent.BlockingQueue; import java.util.concurrent.a...
742
0
Create_ds/EVCache/evcache-core/src/main/java/net/spy/memcached/protocol
Create_ds/EVCache/evcache-core/src/main/java/net/spy/memcached/protocol/ascii/MetaDebugOperationImpl.java
package net.spy.memcached.protocol.ascii; import java.nio.ByteBuffer; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import net.spy.memcached.KeyUtil; import net.spy.memcached.ops.OperationState; import net.spy.memcached.ops.OperationStatus; import net.spy.memcached.ops.StatusCode; public class MetaDebugO...
743
0
Create_ds/EVCache/evcache-core/src/main/java/net/spy/memcached/protocol
Create_ds/EVCache/evcache-core/src/main/java/net/spy/memcached/protocol/ascii/ExecCmdOperation.java
package net.spy.memcached.protocol.ascii; import net.spy.memcached.ops.Operation; import net.spy.memcached.ops.OperationCallback; public interface ExecCmdOperation extends Operation { /** * Callback for cmd operation. */ interface Callback extends OperationCallback { } }
744
0
Create_ds/EVCache/evcache-core/src/main/java/net/spy/memcached/protocol
Create_ds/EVCache/evcache-core/src/main/java/net/spy/memcached/protocol/ascii/EVCacheOperationImpl.java
package net.spy.memcached.protocol.ascii; import net.spy.memcached.ops.OperationCallback; public class EVCacheOperationImpl extends OperationImpl { protected EVCacheOperationImpl(OperationCallback cb) { super(cb); } @Override public void handleLine(String line) { // TODO Auto-gener...
745
0
Create_ds/EVCache/evcache-core/src/main/java/net/spy/memcached/protocol
Create_ds/EVCache/evcache-core/src/main/java/net/spy/memcached/protocol/ascii/MetaGetOperationImpl.java
package net.spy.memcached.protocol.ascii; import java.nio.ByteBuffer; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import net.spy.memcached.KeyUtil; import net.spy.memcached.ops.OperationCallback; import net.spy.memcached.ops.OperationState; import net.spy.memcached.ops.OperationStatus; import net.spy.m...
746
0
Create_ds/EVCache/evcache-core/src/main/java/net/spy/memcached/protocol
Create_ds/EVCache/evcache-core/src/main/java/net/spy/memcached/protocol/ascii/MetaGetOperation.java
package net.spy.memcached.protocol.ascii; import net.spy.memcached.ops.Operation; import net.spy.memcached.ops.OperationCallback; public interface MetaGetOperation extends Operation { /** * Operation callback for the get request. */ public interface Callback extends OperationCallback { /** ...
747
0
Create_ds/EVCache/evcache-core/src/main/java/net/spy/memcached/protocol
Create_ds/EVCache/evcache-core/src/main/java/net/spy/memcached/protocol/ascii/MetaDebugOperation.java
package net.spy.memcached.protocol.ascii; import net.spy.memcached.ops.Operation; import net.spy.memcached.ops.OperationCallback; public interface MetaDebugOperation extends Operation { /** * Operation callback for the get request. */ public interface Callback extends OperationCallback { /** ...
748
0
Create_ds/EVCache/evcache-core/src/main/java/net/spy/memcached/protocol
Create_ds/EVCache/evcache-core/src/main/java/net/spy/memcached/protocol/binary/EVCacheNodeImpl.java
package net.spy.memcached.protocol.binary; import java.io.IOException; import java.lang.management.ManagementFactory; import java.net.InetSocketAddress; import java.net.SocketAddress; import java.nio.channels.SocketChannel; import java.util.List; import java.util.concurrent.BlockingQueue; import java.util.concurrent.a...
749
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/EVCacheImpl.java
package com.netflix.evcache; import static com.netflix.evcache.util.Sneaky.sneakyThrow; import java.lang.management.ManagementFactory; import java.time.Duration; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.I...
750
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/EVCacheKey.java
package com.netflix.evcache; import java.util.HashMap; import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.netflix.archaius.api.Property; import com.netflix.evcache.util.KeyHasher; import com.netflix.evcache.util.KeyHasher.HashingAlgorithm; public class EVCacheKey { private...
751
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/EVCacheClientPoolConfigurationProperties.java
package com.netflix.evcache; import java.time.Duration; public class EVCacheClientPoolConfigurationProperties { /** * Prefix to be applied to keys. */ private String keyPrefix; /** * Time-to-live in seconds. */ private Duration timeToLive; /** * Whether or not retry is to be enabled. */ ...
752
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/EVCacheException.java
package com.netflix.evcache; public class EVCacheException extends Exception { private static final long serialVersionUID = -3885811159646046383L; public EVCacheException(String message) { super(message); } public EVCacheException(String message, Throwable cause) { super(message, cau...
753
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/EVCacheLatch.java
package com.netflix.evcache; import java.util.List; import java.util.concurrent.Future; import java.util.concurrent.TimeUnit; import com.netflix.evcache.event.EVCacheEvent; import net.spy.memcached.internal.OperationCompletionListener; /** * EVCacheLatch is a blocking mechanism that allows one or more threads to ...
754
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/EVCacheConnectException.java
package com.netflix.evcache; import java.io.IOException; public class EVCacheConnectException extends IOException { private static final long serialVersionUID = 8065483548278456469L; public EVCacheConnectException(String message) { super(message); } public EVCacheConnectException(String mes...
755
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/EVCacheGetOperationListener.java
package com.netflix.evcache; import com.netflix.evcache.operation.EVCacheOperationFuture; import net.spy.memcached.internal.GenericCompletionListener; public interface EVCacheGetOperationListener<T> extends GenericCompletionListener<EVCacheOperationFuture<T>> { }
756
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/EVCacheMissException.java
package com.netflix.evcache; public class EVCacheMissException extends EVCacheException { private static final long serialVersionUID = 222337840463312890L; public EVCacheMissException(String message) { super(message); } public EVCacheMissException(String message, Throwable cause) { s...
757
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/EVCacheInMemoryCache.java
package com.netflix.evcache; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.concurrent.Callable; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutorService; import ja...
758
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/EVCacheInternal.java
package com.netflix.evcache; import com.netflix.evcache.operation.EVCacheItem; import com.netflix.evcache.operation.EVCacheItemMetaData; import com.netflix.evcache.pool.EVCacheClientPoolManager; import net.spy.memcached.CachedData; import net.spy.memcached.MemcachedNode; import net.spy.memcached.transcoders.Transcoder...
759
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/EVCacheTranscoder.java
package com.netflix.evcache; import com.netflix.evcache.util.EVCacheConfig; import net.spy.memcached.CachedData; public class EVCacheTranscoder extends EVCacheSerializingTranscoder { public EVCacheTranscoder() { this(EVCacheConfig.getInstance().getPropertyRepository().get("default.evcache.max.data.size"...
760
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/EVCacheInternalImpl.java
package com.netflix.evcache; import com.netflix.archaius.api.PropertyRepository; import com.netflix.evcache.operation.EVCacheItem; import com.netflix.evcache.operation.EVCacheItemMetaData; import com.netflix.evcache.pool.EVCacheClient; import com.netflix.evcache.pool.EVCacheClientPoolManager; import com.netflix.evcach...
761
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/EVCacheImplMBean.java
package com.netflix.evcache; public interface EVCacheImplMBean extends EVCache { }
762
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/EVCacheSerializingTranscoder.java
/** * Copyright (C) 2006-2009 Dustin Sallings * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merg...
763
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/EVCache.java
package com.netflix.evcache; import java.time.Duration; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.Locale; import java.util.Map; import java.util.concurrent.CompletableFuture; import java.util.concurrent.Future; import javax.annotation.Nullable; import javax.injec...
764
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/EVCacheReadQueueException.java
package com.netflix.evcache; public class EVCacheReadQueueException extends EVCacheException { private static final long serialVersionUID = -7660503904923117538L; public EVCacheReadQueueException(String message) { super(message); } public EVCacheReadQueueException(String message, Throwable c...
765
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/dto/EVCacheResponseStatus.java
package com.netflix.evcache.dto; public class EVCacheResponseStatus { private String status; public EVCacheResponseStatus(String status) { this.status = status; } public String getStatus() { return status; } public void setStatus(String status) { this.status = status;...
766
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/dto/KeyMapDto.java
package com.netflix.evcache.dto; import com.netflix.evcache.EVCacheKey; import java.util.Map; public class KeyMapDto { Map<String, EVCacheKey> keyMap; boolean isKeyHashed; public KeyMapDto(Map<String, EVCacheKey> keyMap, boolean isKeyHashed) { this.keyMap = keyMap; this.isKeyHashed = isK...
767
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/operation/EVCacheItem.java
package com.netflix.evcache.operation; public class EVCacheItem<T> { private final EVCacheItemMetaData item; private T data = null; private int flag = 0; public EVCacheItem() { item = new EVCacheItemMetaData(); } public EVCacheItemMetaData getItemMetaData() { return item; ...
768
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/operation/EVCacheOperationFuture.java
package com.netflix.evcache.operation; import com.google.common.util.concurrent.ThreadFactoryBuilder; import java.lang.management.GarbageCollectorMXBean; import java.lang.management.ManagementFactory; import java.lang.management.RuntimeMXBean; import java.time.Duration; import java.util.ArrayList; import java.util.Lis...
769
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/operation/EVCacheAsciiOperationFactory.java
package com.netflix.evcache.operation; import net.spy.memcached.protocol.ascii.AsciiOperationFactory; import net.spy.memcached.protocol.ascii.ExecCmdOperation; import net.spy.memcached.protocol.ascii.ExecCmdOperationImpl; import net.spy.memcached.protocol.ascii.MetaDebugOperation; import net.spy.memcached.protocol.asc...
770
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/operation/EVCacheFuture.java
package com.netflix.evcache.operation; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.netflix.evcache.pool.EVCacheClient; import...
771
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/operation/EVCacheBulkGetFuture.java
package com.netflix.evcache.operation; import java.lang.management.GarbageCollectorMXBean; import java.lang.management.ManagementFactory; import java.lang.management.RuntimeMXBean; import java.time.Duration; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashMap...
772
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/operation/EVCacheLatchImpl.java
package com.netflix.evcache.operation; import java.time.Duration; import java.util.ArrayList; import java.util.List; import java.util.concurrent.CountDownLatch; import java.util.concurrent.Future; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; import org.slf4j.Logger; import org.sl...
773
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/operation/EVCacheItemMetaData.java
package com.netflix.evcache.operation; /** * <B><u>Meta </u></B> * <br> * The meta debug command is a human readable dump of all available internal * metadata of an item, minus the value.<br> * <br> * <b><i>me &lt;key&gt;r\n</i></b><br> * <br> * <key> means one key string.<br> * <br> * The response looks lik...
774
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/operation/EVCacheFutures.java
package com.netflix.evcache.operation; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import java.util.concurrent.atomic.AtomicInteger; import org.slf4j.Logger; import org.slf4j.LoggerFactory; imp...
775
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/metrics/EVCacheMetricsFactory.java
package com.netflix.evcache.metrics; import java.time.Duration; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.StringTokenizer; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.atomic.AtomicLong;...
776
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/connection/BaseConnectionFactory.java
package com.netflix.evcache.connection; import java.io.IOException; import java.net.InetSocketAddress; import java.net.SocketAddress; import java.nio.channels.SocketChannel; import java.util.Collection; import java.util.List; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.BlockingQueue; im...
777
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/connection/IConnectionBuilder.java
package com.netflix.evcache.connection; import com.netflix.evcache.pool.EVCacheClient; import net.spy.memcached.ConnectionFactory; public interface IConnectionBuilder { ConnectionFactory getConnectionFactory(EVCacheClient client); }
778
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/connection/BaseAsciiConnectionFactory.java
package com.netflix.evcache.connection; import java.io.IOException; import java.net.InetSocketAddress; import java.net.SocketAddress; import java.nio.channels.SocketChannel; import java.util.Collection; import java.util.List; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.BlockingQueue; im...
779
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/connection/ConnectionFactoryBuilder.java
package com.netflix.evcache.connection; import com.netflix.archaius.api.Property; import com.netflix.evcache.pool.EVCacheClient; import com.netflix.evcache.util.EVCacheConfig; import net.spy.memcached.ConnectionFactory; public class ConnectionFactoryBuilder implements IConnectionBuilder { public ConnectionFacto...
780
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/util/EVCacheConfig.java
package com.netflix.evcache.util; import java.lang.reflect.Type; import java.util.function.Consumer; import java.util.function.Function; import javax.inject.Inject; import com.netflix.archaius.DefaultPropertyFactory; import com.netflix.archaius.api.Property; import com.netflix.archaius.api.PropertyListener; import ...
781
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/util/Pair.java
package com.netflix.evcache.util; public class Pair<E1, E2> { public E1 first() { return first; } public void setFirst(E1 first) { this.first = first; } public E2 second() { return second; } public void setSecond(E2 second) { this.second = second; } ...
782
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/util/RetryCount.java
package com.netflix.evcache.util; public class RetryCount { private int retryCount; public RetryCount() { retryCount = 1; } public void incr() { retryCount++; } public int get(){ return retryCount; } }
783
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/util/KeyHasher.java
package com.netflix.evcache.util; import java.util.Arrays; import java.util.Base64; import java.util.Base64.Encoder; import org.apache.log4j.BasicConfigurator; import org.apache.log4j.ConsoleAppender; import org.apache.log4j.Level; import org.apache.log4j.PatternLayout; import org.slf4j.Logger; import org.slf4j.Logge...
784
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/util/EVCacheBulkDataDto.java
package com.netflix.evcache.util; import com.netflix.evcache.EVCacheKey; import java.util.List; import java.util.Map; public class EVCacheBulkDataDto<T> { private Map<String, T> decanonicalR; private List<EVCacheKey> evcKeys; public EVCacheBulkDataDto(Map<String, T> decanonicalR, List<EVCacheKey> evcKey...
785
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/util/ServerGroupCircularIterator.java
package com.netflix.evcache.util; import java.util.Iterator; import java.util.Set; import com.netflix.evcache.pool.ServerGroup; /** * A circular iterator for ReplicaSets. This ensures that all ReplicaSets are * equal number of requests. * * @author smadappa */ public class ServerGroupCircularIterator { pri...
786
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/util/Sneaky.java
package com.netflix.evcache.util; /** * Sneaky can be used to sneakily throw checked exceptions without actually declaring this in your method's throws clause. * This somewhat contentious ability should be used carefully, of course. */ public class Sneaky { public static RuntimeException sneakyThrow(Throwable t...
787
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/util/ZoneFallbackIterator.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...
788
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/util/SupplierUtils.java
package com.netflix.evcache.util; import java.util.concurrent.Callable; import java.util.function.Supplier; public final class SupplierUtils { private SupplierUtils() { } public static <T> Supplier<T> wrap(Callable<T> callable) { return () -> { try { return callable.ca...
789
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/util/CircularIterator.java
package com.netflix.evcache.util; import java.lang.reflect.Array; import java.util.Collection; import java.util.Iterator; /** * A circular iterator for ReplicaSets. This ensures that all ReplicaSets are * equal number of requests. * * @author smadappa */ public class CircularIterator<T> { private Entry<T> e...
790
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/config/EVCachePersistedProperties.java
package com.netflix.evcache.config; import java.net.URL; import java.net.URLEncoder; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import java.util.concurrent.TimeUnit; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.netflix.archaius.config.PollingDynamicConfig; import c...
791
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/pool/EVCacheClientPool.java
package com.netflix.evcache.pool; import java.io.IOException; import java.lang.management.ManagementFactory; import java.net.InetSocketAddress; import java.net.SocketAddress; import java.time.Duration; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Collections; impor...
792
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/pool/EVCacheClientPoolManager.java
package com.netflix.evcache.pool; import java.io.IOException; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.StringTokenizer; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.ScheduledFuture; import jav...
793
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/pool/EVCacheExecutor.java
package com.netflix.evcache.pool; import java.lang.management.ManagementFactory; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.RejectedExecutionHandler; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; import javax.management.MBeanServer; import java...
794
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/pool/EVCacheScheduledExecutorMBean.java
package com.netflix.evcache.pool; public interface EVCacheScheduledExecutorMBean { boolean isShutdown(); boolean isTerminating(); boolean isTerminated(); int getCorePoolSize(); int getMaximumPoolSize(); int getQueueSize(); int getPoolSize(); int getActiveCount(); int getLar...
795
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/pool/EVCacheScheduledExecutor.java
package com.netflix.evcache.pool; import java.lang.management.ManagementFactory; import java.util.concurrent.RejectedExecutionHandler; import java.util.concurrent.ScheduledThreadPoolExecutor; import java.util.concurrent.ThreadFactory; import java.util.concurrent.TimeUnit; import javax.management.MBeanServer; import j...
796
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/pool/EVCacheExecutorMBean.java
package com.netflix.evcache.pool; public interface EVCacheExecutorMBean { boolean isShutdown(); boolean isTerminating(); boolean isTerminated(); int getCorePoolSize(); int getMaximumPoolSize(); int getQueueSize(); int getPoolSize(); int getActiveCount(); int getLargestPoolS...
797
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/pool/EVCacheKetamaNodeLocatorConfiguration.java
package com.netflix.evcache.pool; import java.net.InetSocketAddress; import java.net.SocketAddress; import java.util.HashMap; import java.util.Map; import com.netflix.archaius.api.Property; import com.netflix.evcache.util.EVCacheConfig; import net.spy.memcached.MemcachedNode; import net.spy.memcached.util.DefaultKet...
798
0
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache
Create_ds/EVCache/evcache-core/src/main/java/com/netflix/evcache/pool/ChunkTranscoder.java
package com.netflix.evcache.pool; import net.spy.memcached.CachedData; import net.spy.memcached.transcoders.BaseSerializingTranscoder; import net.spy.memcached.transcoders.Transcoder; /** * A local transcoder used only by EVCache client to ensure we don't try to deserialize chunks * * @author smadappa * */ publ...
799