Skip navigation links
A B C D E F G H I K L M N O P R S T U V W Z 

A

add(String, Object) - Method in class com.danga.MemCached.MemCachedClient
Adds data to the server; only the key and the value are specified.
add(String, Object, Integer) - Method in class com.danga.MemCached.MemCachedClient
Adds data to the server; the key, value, and an optional hashcode are passed in.
add(String, Object, Date) - Method in class com.danga.MemCached.MemCachedClient
Adds data to the server; the key, value, and an expiration time are specified.
add(String, Object, Date, Integer) - Method in class com.danga.MemCached.MemCachedClient
Adds data to the server; the key, value, and an expiration time are specified.
addOrDecr(String) - Method in class com.danga.MemCached.MemCachedClient
Thread safe way to initialize and decrement a counter.
addOrDecr(String, long) - Method in class com.danga.MemCached.MemCachedClient
Thread safe way to initialize and decrement a counter.
addOrDecr(String, long, Integer) - Method in class com.danga.MemCached.MemCachedClient
Thread safe way to initialize and decrement a counter.
addOrIncr(String) - Method in class com.danga.MemCached.MemCachedClient
Thread safe way to initialize and increment a counter.
addOrIncr(String, long) - Method in class com.danga.MemCached.MemCachedClient
Thread safe way to initialize and increment a counter.
addOrIncr(String, long, Integer) - Method in class com.danga.MemCached.MemCachedClient
Thread safe way to initialize and increment a counter.
addSocketToPool(Map<String, Map<SockIOPool.SockIO, Long>>, String, SockIOPool.SockIO) - Method in class com.danga.MemCached.SockIOPool
Adds a socket to a given pool for the given host.
aliveCheck - Variable in class com.danga.MemCached.SockIOPool
 
availPool - Variable in class com.danga.MemCached.SockIOPool
 

B

B_DELETED - Static variable in class com.danga.MemCached.MemCachedClient
 
B_END - Static variable in class com.danga.MemCached.MemCachedClient
 
B_NOTFOUND - Static variable in class com.danga.MemCached.MemCachedClient
 
B_STORED - Static variable in class com.danga.MemCached.MemCachedClient
 
bench(int, int, int[], String[]) - Constructor for class com.danga.MemCached.test.MemCachedTest.bench
 
buckets - Variable in class com.danga.MemCached.SockIOPool
 
bufs - Variable in class com.danga.MemCached.ByteBufArrayInputStream
 
busyPool - Variable in class com.danga.MemCached.SockIOPool
 
ByteBufArrayInputStream - Class in com.danga.MemCached
 
ByteBufArrayInputStream(List<ByteBuffer>) - Constructor for class com.danga.MemCached.ByteBufArrayInputStream
 
ByteBufArrayInputStream(ByteBuffer[]) - Constructor for class com.danga.MemCached.ByteBufArrayInputStream
 

C

channel - Variable in class com.danga.MemCached.MemCachedClient.NIOLoader.Connection
 
checkIn(SockIOPool.SockIO, boolean) - Method in class com.danga.MemCached.SockIOPool
Checks a SockIO object in with the pool.
checkIn(SockIOPool.SockIO) - Method in class com.danga.MemCached.SockIOPool
Returns a socket to the avail pool.
classLoader - Variable in class com.danga.MemCached.MemCachedClient
 
clearEOL() - Method in class com.danga.MemCached.ByteBufArrayInputStream
 
clearEOL() - Method in interface com.danga.MemCached.LineInputStream
Read everything up to and including the end of line.
clearEOL() - Method in class com.danga.MemCached.SockIOPool.SockIO
reads up to end of line and returns nothing
clearHostFromPool(Map<String, Map<SockIOPool.SockIO, Long>>, String) - Method in class com.danga.MemCached.SockIOPool
Closes and removes all sockets from specified pool for host.
CLIENT_ERROR - Static variable in class com.danga.MemCached.MemCachedClient
 
close() - Method in class com.danga.MemCached.MemCachedClient.NIOLoader.Connection
 
close() - Method in class com.danga.MemCached.SockIOPool.SockIO
sets closed flag and checks in to connection pool but does not close connections
closePool(Map<String, Map<SockIOPool.SockIO, Long>>) - Method in class com.danga.MemCached.SockIOPool
Closes all sockets in the passed in pool.
com.danga.MemCached - package com.danga.MemCached
 
com.danga.MemCached.test - package com.danga.MemCached.test
 
COMPRESS_THRESH - Static variable in class com.danga.MemCached.MemCachedClient
 
compressEnable - Variable in class com.danga.MemCached.MemCachedClient
 
compressThreshold - Variable in class com.danga.MemCached.MemCachedClient
 
Connection(SockIOPool.SockIO, StringBuilder) - Constructor for class com.danga.MemCached.MemCachedClient.NIOLoader.Connection
 
conns - Variable in class com.danga.MemCached.MemCachedClient.NIOLoader
 
CONSISTENT_HASH - Static variable in class com.danga.MemCached.SockIOPool
 
consistentBuckets - Variable in class com.danga.MemCached.SockIOPool
 
ContextObjectInputStream - Class in com.danga.MemCached
 
ContextObjectInputStream(InputStream, ClassLoader) - Constructor for class com.danga.MemCached.ContextObjectInputStream
 
createSocket(String) - Method in class com.danga.MemCached.SockIOPool
Creates a new SockIO obj for the given server.
currentBuf - Variable in class com.danga.MemCached.ByteBufArrayInputStream
 

D

deadPool - Variable in class com.danga.MemCached.SockIOPool
 
debug(String, Throwable) - Method in class com.danga.MemCached.Logger
logs a debug mesg
debug(String) - Method in class com.danga.MemCached.Logger
 
decode(byte[], int) - Static method in class com.danga.MemCached.NativeHandler
Decodes byte array using memcache flag to determine type.
decodeBoolean(byte[]) - Static method in class com.danga.MemCached.NativeHandler
 
decodeByte(byte[]) - Static method in class com.danga.MemCached.NativeHandler
 
decodeByteArr(byte[]) - Static method in class com.danga.MemCached.NativeHandler
 
decodeCharacter(byte[]) - Static method in class com.danga.MemCached.NativeHandler
 
decodeDate(byte[]) - Static method in class com.danga.MemCached.NativeHandler
 
decodeDouble(byte[]) - Static method in class com.danga.MemCached.NativeHandler
 
decodeFloat(byte[]) - Static method in class com.danga.MemCached.NativeHandler
 
decodeInteger(byte[]) - Static method in class com.danga.MemCached.NativeHandler
 
decodeLong(byte[]) - Static method in class com.danga.MemCached.NativeHandler
 
decodeShort(byte[]) - Static method in class com.danga.MemCached.NativeHandler
 
decodeString(byte[]) - Static method in class com.danga.MemCached.NativeHandler
 
decodeStringBuffer(byte[]) - Static method in class com.danga.MemCached.NativeHandler
 
decodeStringBuilder(byte[]) - Static method in class com.danga.MemCached.NativeHandler
 
decr(String) - Method in class com.danga.MemCached.MemCachedClient
Decrement the value at the specified key by 1, and then return it.
decr(String, long) - Method in class com.danga.MemCached.MemCachedClient
Decrement the value at the specified key by passed in value, and then return it.
decr(String, long, Integer) - Method in class com.danga.MemCached.MemCachedClient
Decrement the value at the specified key by the specified increment, and then return it.
defaultEncoding - Variable in class com.danga.MemCached.MemCachedClient
 
delete(String) - Method in class com.danga.MemCached.MemCachedClient
Deletes an object from cache given cache key.
delete(String, Date) - Method in class com.danga.MemCached.MemCachedClient
Deletes an object from cache given cache key and expiration date.
delete(String, Integer, Date) - Method in class com.danga.MemCached.MemCachedClient
Deletes an object from cache given cache key, a delete time, and an optional hashcode.
DELETED - Static variable in class com.danga.MemCached.MemCachedClient
 
doMulti(boolean, Map<String, StringBuilder>, String[], Map<String, Object>) - Method in class com.danga.MemCached.MemCachedClient.NIOLoader
 

E

encode(Object) - Static method in class com.danga.MemCached.NativeHandler
Encodes supported types
encode(Byte) - Static method in class com.danga.MemCached.NativeHandler
 
encode(Boolean) - Static method in class com.danga.MemCached.NativeHandler
 
encode(int) - Static method in class com.danga.MemCached.NativeHandler
 
encode(long) - Static method in class com.danga.MemCached.NativeHandler
 
encode(Date) - Static method in class com.danga.MemCached.NativeHandler
 
encode(Character) - Static method in class com.danga.MemCached.NativeHandler
 
encode(String) - Static method in class com.danga.MemCached.NativeHandler
 
encode(StringBuffer) - Static method in class com.danga.MemCached.NativeHandler
 
encode(float) - Static method in class com.danga.MemCached.NativeHandler
 
encode(Short) - Static method in class com.danga.MemCached.NativeHandler
 
encode(double) - Static method in class com.danga.MemCached.NativeHandler
 
encode(StringBuilder) - Static method in class com.danga.MemCached.NativeHandler
 
encode(byte[]) - Static method in class com.danga.MemCached.NativeHandler
 
END - Static variable in class com.danga.MemCached.MemCachedClient
 
equals(Object) - Method in class com.danga.MemCached.test.UnitTests.TestClass
 
error(String, Throwable) - Method in class com.danga.MemCached.Logger
logs error mesg
error(String) - Method in class com.danga.MemCached.Logger
 
ERROR - Static variable in class com.danga.MemCached.MemCachedClient
 
ErrorHandler - Interface in com.danga.MemCached
 
errorHandler - Variable in class com.danga.MemCached.MemCachedClient
 

F

F_COMPRESSED - Static variable in class com.danga.MemCached.MemCachedClient
 
F_SERIALIZED - Static variable in class com.danga.MemCached.MemCachedClient
 
failback - Variable in class com.danga.MemCached.SockIOPool
 
failover - Variable in class com.danga.MemCached.SockIOPool
 
fatal(String, Throwable) - Method in class com.danga.MemCached.Logger
logs fatal mesg
fatal(String) - Method in class com.danga.MemCached.Logger
 
field1 - Variable in class com.danga.MemCached.test.UnitTests.TestClass
 
field2 - Variable in class com.danga.MemCached.test.UnitTests.TestClass
 
field3 - Variable in class com.danga.MemCached.test.UnitTests.TestClass
 
finalize() - Method in class com.danga.MemCached.SockIOPool.SockIO
Hack to reap any leaking children.
findPointFor(Long) - Method in class com.danga.MemCached.SockIOPool
Gets the first available key equal or above the given one, if none found, returns the first k in the bucket
flush() - Method in class com.danga.MemCached.SockIOPool.SockIO
flushes output stream
flushAll() - Method in class com.danga.MemCached.MemCachedClient
Invalidates the entire cache.
flushAll(String[]) - Method in class com.danga.MemCached.MemCachedClient
Invalidates the entire cache.

G

get(String) - Method in class com.danga.MemCached.MemCachedClient
Retrieve a key from the server, using a specific hash.
get(String, Integer) - Method in class com.danga.MemCached.MemCachedClient
Retrieve a key from the server, using a specific hash.
get(String, Integer, boolean) - Method in class com.danga.MemCached.MemCachedClient
Retrieve a key from the server, using a specific hash.
getAliveCheck() - Method in class com.danga.MemCached.SockIOPool
Returns the current status of the aliveCheck flag.
getBucket(String, Integer) - Method in class com.danga.MemCached.SockIOPool
 
getBuffer() - Method in class com.danga.MemCached.MemCachedClient.NIOLoader.Connection
 
getBytes(long) - Static method in class com.danga.MemCached.NativeHandler
 
getBytes(int) - Static method in class com.danga.MemCached.NativeHandler
 
getChannel() - Method in class com.danga.MemCached.SockIOPool.SockIO
Lets caller get access to underlying channel.
getConnection(String) - Method in class com.danga.MemCached.SockIOPool
Returns a SockIO object from the pool for the passed in host.
getCounter(String) - Method in class com.danga.MemCached.MemCachedClient
Returns value in counter at given key as long.
getCounter(String, Integer) - Method in class com.danga.MemCached.MemCachedClient
Returns value in counter at given key as long.
getFailback() - Method in class com.danga.MemCached.SockIOPool
Returns current state of failover flag.
getFailover() - Method in class com.danga.MemCached.SockIOPool
Returns current state of failover flag.
getField1() - Method in class com.danga.MemCached.test.UnitTests.TestClass
 
getField2() - Method in class com.danga.MemCached.test.UnitTests.TestClass
 
getField3() - Method in class com.danga.MemCached.test.UnitTests.TestClass
 
getHash(String, Integer) - Method in class com.danga.MemCached.SockIOPool
Returns a bucket to check for a given key.
getHashingAlg() - Method in class com.danga.MemCached.SockIOPool
Returns current status of customHash flag
getHost(String) - Method in class com.danga.MemCached.SockIOPool
 
getHost(String, Integer) - Method in class com.danga.MemCached.SockIOPool
Gets the host that a particular key / hashcode resides on.
getHost() - Method in class com.danga.MemCached.SockIOPool.SockIO
returns the host this socket is connected to
getInitConn() - Method in class com.danga.MemCached.SockIOPool
Returns the current setting for the initial number of connections per server in the available pool.
getInstance(String) - Static method in class com.danga.MemCached.SockIOPool
Factory to create/retrieve new pools given a unique poolName.
getInstance() - Static method in class com.danga.MemCached.SockIOPool
Single argument version of factory used for back compat.
getLevel() - Method in class com.danga.MemCached.Logger
 
getLogger(String, int) - Static method in class com.danga.MemCached.Logger
Gets a Logger obj for given name and level.
getLogger(String) - Static method in class com.danga.MemCached.Logger
Gets a Logger obj for given name and sets default level.
getMaintSleep() - Method in class com.danga.MemCached.SockIOPool
Returns the current maint thread sleep time.
getMarkerFlag(Object) - Static method in class com.danga.MemCached.NativeHandler
Returns the flag for marking the type of the byte array.
getMaxBusy() - Method in class com.danga.MemCached.SockIOPool
Returns the current max busy setting.
getMaxConn() - Method in class com.danga.MemCached.SockIOPool
Returns the maximum number of spare connections allowed in available pool.
getMaxIdle() - Method in class com.danga.MemCached.SockIOPool
Returns the current max idle setting.
getMinConn() - Method in class com.danga.MemCached.SockIOPool
Returns the minimum number of spare connections in available pool.
getMulti(String[]) - Method in class com.danga.MemCached.MemCachedClient
Retrieve multiple objects from the memcache.
getMulti(String[], Integer[]) - Method in class com.danga.MemCached.MemCachedClient
Retrieve multiple keys from the memcache.
getMulti(String[], Integer[], boolean) - Method in class com.danga.MemCached.MemCachedClient
Retrieve multiple keys from the memcache.
getMultiArray(String[]) - Method in class com.danga.MemCached.MemCachedClient
Retrieve multiple objects from the memcache.
getMultiArray(String[], Integer[]) - Method in class com.danga.MemCached.MemCachedClient
Retrieve multiple objects from the memcache.
getMultiArray(String[], Integer[], boolean) - Method in class com.danga.MemCached.MemCachedClient
Retrieve multiple objects from the memcache.
getNagle() - Method in class com.danga.MemCached.SockIOPool
Returns current status of nagle flag
getServers() - Method in class com.danga.MemCached.SockIOPool
Returns the current list of all cache servers.
getSock(String) - Method in class com.danga.MemCached.SockIOPool
Returns appropriate SockIO object given string cache key.
getSock(String, Integer) - Method in class com.danga.MemCached.SockIOPool
Returns appropriate SockIO object given string cache key and optional hashcode.
getSocket(String, int, int) - Static method in class com.danga.MemCached.SockIOPool.SockIO
Method which gets a connection from SocketChannel.
getSocketConnectTO() - Method in class com.danga.MemCached.SockIOPool
Returns the socket timeout for connect.
getSocketTO() - Method in class com.danga.MemCached.SockIOPool
Returns the socket timeout for reads.
getWeights() - Method in class com.danga.MemCached.SockIOPool
Returns the current list of weights.

H

handleError(Throwable, String[]) - Method in class com.danga.MemCached.MemCachedClient.NIOLoader
 
handleErrorOnDelete(MemCachedClient, Throwable, String) - Method in interface com.danga.MemCached.ErrorHandler
Called for errors thrown during MemCachedClient.delete(String) and related methods.
handleErrorOnFlush(MemCachedClient, Throwable) - Method in interface com.danga.MemCached.ErrorHandler
Called for errors thrown during MemCachedClient.flushAll() and related methods.
handleErrorOnGet(MemCachedClient, Throwable, String) - Method in interface com.danga.MemCached.ErrorHandler
Called for errors thrown during MemCachedClient.get(String) and related methods.
handleErrorOnGet(MemCachedClient, Throwable, String[]) - Method in interface com.danga.MemCached.ErrorHandler
Called for errors thrown during MemCachedClient#getMulti(String) and related methods.
handleErrorOnInit(MemCachedClient, Throwable) - Method in interface com.danga.MemCached.ErrorHandler
Called for errors thrown during initialization.
handleErrorOnSet(MemCachedClient, Throwable, String) - Method in interface com.danga.MemCached.ErrorHandler
Called for errors thrown during MemCachedClient.set(String,Object) and related methods.
handleErrorOnStats(MemCachedClient, Throwable) - Method in interface com.danga.MemCached.ErrorHandler
Called for errors thrown during MemCachedClient.stats() and related methods.
handleKey(SelectionKey) - Method in class com.danga.MemCached.MemCachedClient.NIOLoader
 
hashCode() - Method in class com.danga.MemCached.SockIOPool.SockIO
use the sockets hashcode for this object so we can key off of SockIOs
hashingAlg - Variable in class com.danga.MemCached.SockIOPool
 
host - Variable in class com.danga.MemCached.SockIOPool.SockIO
 
hostDead - Variable in class com.danga.MemCached.SockIOPool
 
hostDeadDur - Variable in class com.danga.MemCached.SockIOPool
 
hostDeadLock - Variable in class com.danga.MemCached.SockIOPool
 

I

in - Variable in class com.danga.MemCached.SockIOPool.SockIO
 
incoming - Variable in class com.danga.MemCached.MemCachedClient.NIOLoader.Connection
 
incr(String) - Method in class com.danga.MemCached.MemCachedClient
Increment the value at the specified key by 1, and then return it.
incr(String, long) - Method in class com.danga.MemCached.MemCachedClient
Increment the value at the specified key by passed in val.
incr(String, long, Integer) - Method in class com.danga.MemCached.MemCachedClient
Increment the value at the specified key by the specified increment, and then return it.
incrdecr(String, String, long, Integer) - Method in class com.danga.MemCached.MemCachedClient
Increments/decrements the value at the specified key by inc.
info(String, Throwable) - Method in class com.danga.MemCached.Logger
logs info mesg
info(String) - Method in class com.danga.MemCached.Logger
 
init() - Method in class com.danga.MemCached.MemCachedClient
Initializes client object to defaults.
initConn - Variable in class com.danga.MemCached.SockIOPool
 
initialize() - Method in class com.danga.MemCached.SockIOPool
Initializes the pool.
initialized - Variable in class com.danga.MemCached.Logger
 
initialized - Variable in class com.danga.MemCached.SockIOPool
 
interval - Variable in class com.danga.MemCached.SockIOPool.MaintThread
 
isAlive() - Method in class com.danga.MemCached.SockIOPool.SockIO
 
isConnected() - Method in class com.danga.MemCached.SockIOPool.SockIO
checks if the connection is open
isDebugEnabled() - Method in class com.danga.MemCached.Logger
 
isDone - Variable in class com.danga.MemCached.MemCachedClient.NIOLoader.Connection
 
isDone() - Method in class com.danga.MemCached.MemCachedClient.NIOLoader.Connection
 
isHandled(Object) - Static method in class com.danga.MemCached.NativeHandler
Detemine of object can be natively serialized by this class.
isInfoEnabled() - Method in class com.danga.MemCached.Logger
 
isInitialized() - Method in class com.danga.MemCached.SockIOPool
Returns state of pool.
isRunning() - Method in class com.danga.MemCached.SockIOPool.MaintThread
 
ITEM - Static variable in class com.danga.MemCached.MemCachedClient
 

K

keyExists(String) - Method in class com.danga.MemCached.MemCachedClient
Checks to see if key exists in cache.
keys - Variable in class com.danga.MemCached.test.MemCachedTest.bench
 

L

level - Variable in class com.danga.MemCached.Logger
 
LEVEL_DEBUG - Static variable in class com.danga.MemCached.Logger
 
LEVEL_ERROR - Static variable in class com.danga.MemCached.Logger
 
LEVEL_FATAL - Static variable in class com.danga.MemCached.Logger
 
LEVEL_INFO - Static variable in class com.danga.MemCached.Logger
 
LEVEL_WARN - Static variable in class com.danga.MemCached.Logger
 
LineInputStream - Interface in com.danga.MemCached
 
loadMulti(LineInputStream, Map<String, Object>, boolean) - Method in class com.danga.MemCached.MemCachedClient
This method loads the data from cache into a Map.
log(String, Throwable) - Method in class com.danga.MemCached.Logger
logs mesg to std out and prints stack trace if exception passed in
log - Static variable in class com.danga.MemCached.MemCachedClient
 
log - Static variable in class com.danga.MemCached.NativeHandler
 
log - Static variable in class com.danga.MemCached.SockIOPool
 
log - Static variable in class com.danga.MemCached.SockIOPool.MaintThread
 
log - Static variable in class com.danga.MemCached.SockIOPool.SockIO
 
log - Static variable in class com.danga.MemCached.test.MemCachedBench
 
log - Static variable in class com.danga.MemCached.test.UnitTests
 
Logger - Class in com.danga.MemCached
This is a generic logger class for use in logging.
Logger(String, int) - Constructor for class com.danga.MemCached.Logger
 
Logger(String) - Constructor for class com.danga.MemCached.Logger
 
loggers - Static variable in class com.danga.MemCached.Logger
 

M

main(String[]) - Static method in class com.danga.MemCached.test.MemCachedBench
 
main(String[]) - Static method in class com.danga.MemCached.test.MemCachedTest
This runs through some simple tests of the MemCacheClient.
main(String[]) - Static method in class com.danga.MemCached.test.TestMemcached
 
main(String[]) - Static method in class com.danga.MemCached.test.UnitTests
This runs through some simple tests of the MemCacheClient.
maintSleep - Variable in class com.danga.MemCached.SockIOPool
 
maintThread - Variable in class com.danga.MemCached.SockIOPool
 
MaintThread(SockIOPool) - Constructor for class com.danga.MemCached.SockIOPool.MaintThread
 
MARKER_BOOLEAN - Static variable in class com.danga.MemCached.MemCachedClient
 
MARKER_BYTE - Static variable in class com.danga.MemCached.MemCachedClient
 
MARKER_BYTEARR - Static variable in class com.danga.MemCached.MemCachedClient
 
MARKER_CHARACTER - Static variable in class com.danga.MemCached.MemCachedClient
 
MARKER_DATE - Static variable in class com.danga.MemCached.MemCachedClient
 
MARKER_DOUBLE - Static variable in class com.danga.MemCached.MemCachedClient
 
MARKER_FLOAT - Static variable in class com.danga.MemCached.MemCachedClient
 
MARKER_INTEGER - Static variable in class com.danga.MemCached.MemCachedClient
 
MARKER_LONG - Static variable in class com.danga.MemCached.MemCachedClient
 
MARKER_SHORT - Static variable in class com.danga.MemCached.MemCachedClient
 
MARKER_STRING - Static variable in class com.danga.MemCached.MemCachedClient
 
MARKER_STRINGBUFFER - Static variable in class com.danga.MemCached.MemCachedClient
 
MARKER_STRINGBUILDER - Static variable in class com.danga.MemCached.MemCachedClient
 
MAX_RETRY_DELAY - Static variable in class com.danga.MemCached.SockIOPool
 
maxBusyTime - Variable in class com.danga.MemCached.SockIOPool
 
maxConn - Variable in class com.danga.MemCached.SockIOPool
 
maxCreate - Variable in class com.danga.MemCached.SockIOPool
 
maxIdle - Variable in class com.danga.MemCached.SockIOPool
 
mc - Variable in class com.danga.MemCached.MemCachedClient.NIOLoader
 
mc - Static variable in class com.danga.MemCached.test.UnitTests
 
MD5 - Static variable in class com.danga.MemCached.SockIOPool
 
md5HashingAlg(String) - Static method in class com.danga.MemCached.SockIOPool
Internal private hashing method.
MemCachedBench - Class in com.danga.MemCached.test
 
MemCachedBench() - Constructor for class com.danga.MemCached.test.MemCachedBench
 
MemCachedClient - Class in com.danga.MemCached
This is a Java client for the memcached server available from http://www.danga.com/memcached/.
MemCachedClient() - Constructor for class com.danga.MemCached.MemCachedClient
Creates a new instance of MemCachedClient.
MemCachedClient(String) - Constructor for class com.danga.MemCached.MemCachedClient
Creates a new instance of MemCachedClient accepting a passed in pool name.
MemCachedClient(ClassLoader) - Constructor for class com.danga.MemCached.MemCachedClient
Creates a new instance of MemCacheClient but acceptes a passed in ClassLoader.
MemCachedClient(ClassLoader, ErrorHandler) - Constructor for class com.danga.MemCached.MemCachedClient
Creates a new instance of MemCacheClient but acceptes a passed in ClassLoader and a passed in ErrorHandler.
MemCachedClient(ClassLoader, ErrorHandler, String) - Constructor for class com.danga.MemCached.MemCachedClient
Creates a new instance of MemCacheClient but acceptes a passed in ClassLoader, ErrorHandler, and SockIOPool name.
MemCachedClient.NIOLoader - Class in com.danga.MemCached
 
MemCachedClient.NIOLoader.Connection - Class in com.danga.MemCached
 
MemCachedTest - Class in com.danga.MemCached.test
 
MemCachedTest() - Constructor for class com.danga.MemCached.test.MemCachedTest
 
MemCachedTest.bench - Class in com.danga.MemCached.test
Test code per thread.
minConn - Variable in class com.danga.MemCached.SockIOPool
 
mLoader - Variable in class com.danga.MemCached.ContextObjectInputStream
 

N

nagle - Variable in class com.danga.MemCached.SockIOPool
 
name - Variable in class com.danga.MemCached.Logger
 
NATIVE_HASH - Static variable in class com.danga.MemCached.SockIOPool
 
NativeHandler - Class in com.danga.MemCached
Handle encoding standard Java types directly which can result in significant memory savings: Currently the Memcached driver for Java supports the setSerialize() option.
NativeHandler() - Constructor for class com.danga.MemCached.NativeHandler
 
NestedIOException - Exception in com.danga.MemCached
Bridge class to provide nested Exceptions with IOException which has constructors that don't take Throwables.
NestedIOException(Throwable) - Constructor for exception com.danga.MemCached.NestedIOException
Create a new NestedIOException instance.
NestedIOException(String, Throwable) - Constructor for exception com.danga.MemCached.NestedIOException
 
NEW_COMPAT_HASH - Static variable in class com.danga.MemCached.SockIOPool
 
newCompatHashingAlg(String) - Static method in class com.danga.MemCached.SockIOPool
Internal private hashing method.
NIOLoader(MemCachedClient) - Constructor for class com.danga.MemCached.MemCachedClient.NIOLoader
 
NOTFOUND - Static variable in class com.danga.MemCached.MemCachedClient
 
NOTSTORED - Static variable in class com.danga.MemCached.MemCachedClient
 
numConns - Variable in class com.danga.MemCached.MemCachedClient.NIOLoader
 

O

object - Variable in class com.danga.MemCached.test.MemCachedTest.bench
 
OK - Static variable in class com.danga.MemCached.MemCachedClient
 
OLD_COMPAT_HASH - Static variable in class com.danga.MemCached.SockIOPool
 
origCompatHashingAlg(String) - Static method in class com.danga.MemCached.SockIOPool
Internal private hashing method.
out - Variable in class com.danga.MemCached.SockIOPool.SockIO
 
outgoing - Variable in class com.danga.MemCached.MemCachedClient.NIOLoader.Connection
 

P

pool - Variable in class com.danga.MemCached.MemCachedClient
 
pool - Variable in class com.danga.MemCached.SockIOPool.MaintThread
 
pool - Variable in class com.danga.MemCached.SockIOPool.SockIO
 
poolMultiplier - Variable in class com.danga.MemCached.SockIOPool
 
poolName - Variable in class com.danga.MemCached.MemCachedClient
 
pools - Static variable in class com.danga.MemCached.SockIOPool
 
populateBuckets() - Method in class com.danga.MemCached.SockIOPool
 
populateConsistentBuckets() - Method in class com.danga.MemCached.SockIOPool
 
primitiveAsString - Variable in class com.danga.MemCached.MemCachedClient
 

R

read() - Method in class com.danga.MemCached.ByteBufArrayInputStream
 
read(byte[]) - Method in class com.danga.MemCached.ByteBufArrayInputStream
 
read(byte[]) - Method in interface com.danga.MemCached.LineInputStream
Read some bytes.
read(byte[]) - Method in class com.danga.MemCached.SockIOPool.SockIO
reads length bytes into the passed in byte array from dtream
readLine() - Method in class com.danga.MemCached.ByteBufArrayInputStream
 
readLine() - Method in interface com.danga.MemCached.LineInputStream
Read everything up to the next end-of-line.
readLine() - Method in class com.danga.MemCached.SockIOPool.SockIO
reads a line intentionally not using the deprecated readLine method from DataInputStream
readResponse(SelectionKey) - Method in class com.danga.MemCached.MemCachedClient.NIOLoader
 
removeSocketFromPool(Map<String, Map<SockIOPool.SockIO, Long>>, String, SockIOPool.SockIO) - Method in class com.danga.MemCached.SockIOPool
Removes a socket from specified pool for host.
replace(String, Object) - Method in class com.danga.MemCached.MemCachedClient
Updates data on the server; only the key and the value are specified.
replace(String, Object, Integer) - Method in class com.danga.MemCached.MemCachedClient
Updates data on the server; only the key and the value and an optional hash are specified.
replace(String, Object, Date) - Method in class com.danga.MemCached.MemCachedClient
Updates data on the server; the key, value, and an expiration time are specified.
replace(String, Object, Date, Integer) - Method in class com.danga.MemCached.MemCachedClient
Updates data on the server; the key, value, and an expiration time are specified.
resolveClass(ObjectStreamClass) - Method in class com.danga.MemCached.ContextObjectInputStream
 
run() - Method in class com.danga.MemCached.SockIOPool.MaintThread
Start the thread.
run() - Method in class com.danga.MemCached.test.MemCachedTest.bench
 
runAlTests(MemCachedClient) - Static method in class com.danga.MemCached.test.UnitTests
 
running - Variable in class com.danga.MemCached.SockIOPool.MaintThread
 
runs - Variable in class com.danga.MemCached.test.MemCachedTest.bench
 

S

sanitizeKey(String) - Method in class com.danga.MemCached.MemCachedClient
 
sanitizeKeys - Variable in class com.danga.MemCached.MemCachedClient
 
selector - Variable in class com.danga.MemCached.MemCachedClient.NIOLoader
 
selfMaint() - Method in class com.danga.MemCached.SockIOPool
Runs self maintenance on all internal pools.
SERVER_ERROR - Static variable in class com.danga.MemCached.MemCachedClient
 
servers - Variable in class com.danga.MemCached.SockIOPool
 
set(String, Object) - Method in class com.danga.MemCached.MemCachedClient
Stores data on the server; only the key and the value are specified.
set(String, Object, Integer) - Method in class com.danga.MemCached.MemCachedClient
Stores data on the server; only the key and the value are specified.
set(String, Object, Date) - Method in class com.danga.MemCached.MemCachedClient
Stores data on the server; the key, value, and an expiration time are specified.
set(String, Object, Date, Integer) - Method in class com.danga.MemCached.MemCachedClient
Stores data on the server; the key, value, and an expiration time are specified.
set(String, String, Object, Date, Integer, boolean) - Method in class com.danga.MemCached.MemCachedClient
Stores data to cache.
setAliveCheck(boolean) - Method in class com.danga.MemCached.SockIOPool
Sets the aliveCheck flag for the pool.
setClassLoader(ClassLoader) - Method in class com.danga.MemCached.MemCachedClient
Sets an optional ClassLoader to be used for serialization.
setCompressEnable(boolean) - Method in class com.danga.MemCached.MemCachedClient
Enable storing compressed data, provided it meets the threshold requirements.
setCompressThreshold(long) - Method in class com.danga.MemCached.MemCachedClient
Sets the required length for data to be considered for compression.
setDefaultEncoding(String) - Method in class com.danga.MemCached.MemCachedClient
Sets default String encoding when storing primitives as Strings.
setErrorHandler(ErrorHandler) - Method in class com.danga.MemCached.MemCachedClient
Sets an optional ErrorHandler.
setFailback(boolean) - Method in class com.danga.MemCached.SockIOPool
Sets the failback flag for the pool.
setFailover(boolean) - Method in class com.danga.MemCached.SockIOPool
Sets the failover flag for the pool.
setHashingAlg(int) - Method in class com.danga.MemCached.SockIOPool
Sets the hashing algorithm we will use.
setInitConn(int) - Method in class com.danga.MemCached.SockIOPool
Sets the initial number of connections per server in the available pool.
setInterval(long) - Method in class com.danga.MemCached.SockIOPool.MaintThread
 
setLevel(int) - Method in class com.danga.MemCached.Logger
 
setMaintSleep(long) - Method in class com.danga.MemCached.SockIOPool
Set the sleep time between runs of the pool maintenance thread.
setMaxBusyTime(long) - Method in class com.danga.MemCached.SockIOPool
Sets the max busy time for threads in the busy pool.
setMaxConn(int) - Method in class com.danga.MemCached.SockIOPool
Sets the maximum number of spare connections allowed in our available pool.
setMaxIdle(long) - Method in class com.danga.MemCached.SockIOPool
Sets the max idle time for threads in the available pool.
setMinConn(int) - Method in class com.danga.MemCached.SockIOPool
Sets the minimum number of spare connections to maintain in our available pool.
setNagle(boolean) - Method in class com.danga.MemCached.SockIOPool
Sets the Nagle alg flag for the pool.
setPrimitiveAsString(boolean) - Method in class com.danga.MemCached.MemCachedClient
Enables storing primitive types as their String values.
setSanitizeKeys(boolean) - Method in class com.danga.MemCached.MemCachedClient
Enables/disables sanitizing keys by URLEncoding.
setServers(String[]) - Method in class com.danga.MemCached.SockIOPool
Sets the list of all cache servers.
setSocketConnectTO(int) - Method in class com.danga.MemCached.SockIOPool
Sets the socket timeout for connect.
setSocketTO(int) - Method in class com.danga.MemCached.SockIOPool
Sets the socket timeout for reads.
setWeights(Integer[]) - Method in class com.danga.MemCached.SockIOPool
Sets the list of weights to apply to the server list.
shutDown() - Method in class com.danga.MemCached.SockIOPool
Shuts down the pool.
size - Variable in class com.danga.MemCached.test.MemCachedTest.bench
 
sock - Variable in class com.danga.MemCached.MemCachedClient.NIOLoader.Connection
 
sock - Variable in class com.danga.MemCached.SockIOPool.SockIO
 
socketConnectTO - Variable in class com.danga.MemCached.SockIOPool
 
socketTO - Variable in class com.danga.MemCached.SockIOPool
 
SockIO(SockIOPool, String, int, int, int, boolean) - Constructor for class com.danga.MemCached.SockIOPool.SockIO
creates a new SockIO object wrapping a socket connection to host:port, and its input and output streams
SockIO(SockIOPool, String, int, int, boolean) - Constructor for class com.danga.MemCached.SockIOPool.SockIO
creates a new SockIO object wrapping a socket connection to host:port, and its input and output streams
SockIOPool - Class in com.danga.MemCached
This class is a connection pool for maintaning a pool of persistent connections
to memcached servers.
SockIOPool() - Constructor for class com.danga.MemCached.SockIOPool
 
SockIOPool.MaintThread - Class in com.danga.MemCached
Class which extends thread and handles maintenance of the pool.
SockIOPool.SockIO - Class in com.danga.MemCached
MemCached Java client, utility class for Socket IO.
startMaintThread() - Method in class com.danga.MemCached.SockIOPool
Starts the maintenance thread.
STATS - Static variable in class com.danga.MemCached.MemCachedClient
 
stats() - Method in class com.danga.MemCached.MemCachedClient
Retrieves stats for all servers.
stats(String[]) - Method in class com.danga.MemCached.MemCachedClient
Retrieves stats for passed in servers (or all servers).
stats(String[], String, String) - Method in class com.danga.MemCached.MemCachedClient
 
statsCacheDump(int, int) - Method in class com.danga.MemCached.MemCachedClient
Retrieves items cachedump for all servers.
statsCacheDump(String[], int, int) - Method in class com.danga.MemCached.MemCachedClient
Retrieves stats for passed in servers (or all servers).
statsItems() - Method in class com.danga.MemCached.MemCachedClient
Retrieves stats items for all servers.
statsItems(String[]) - Method in class com.danga.MemCached.MemCachedClient
Retrieves stats for passed in servers (or all servers).
statsSlabs() - Method in class com.danga.MemCached.MemCachedClient
Retrieves stats items for all servers.
statsSlabs(String[]) - Method in class com.danga.MemCached.MemCachedClient
Retrieves stats for passed in servers (or all servers).
stopMaintThread() - Method in class com.danga.MemCached.SockIOPool
Stops the maintenance thread.
stopThread - Variable in class com.danga.MemCached.SockIOPool.MaintThread
 
stopThread() - Method in class com.danga.MemCached.SockIOPool.MaintThread
sets stop variable and interupts any wait
storeCounter(String, long) - Method in class com.danga.MemCached.MemCachedClient
Store a counter to memcached given a key
storeCounter(String, Long) - Method in class com.danga.MemCached.MemCachedClient
Store a counter to memcached given a key
storeCounter(String, Long, Integer) - Method in class com.danga.MemCached.MemCachedClient
Store a counter to memcached given a key
STORED - Static variable in class com.danga.MemCached.MemCachedClient
 

T

test1() - Static method in class com.danga.MemCached.test.UnitTests
 
test10() - Static method in class com.danga.MemCached.test.UnitTests
 
test11() - Static method in class com.danga.MemCached.test.UnitTests
 
test12() - Static method in class com.danga.MemCached.test.UnitTests
 
test13() - Static method in class com.danga.MemCached.test.UnitTests
 
test14() - Static method in class com.danga.MemCached.test.UnitTests
 
test15() - Static method in class com.danga.MemCached.test.UnitTests
 
test16() - Static method in class com.danga.MemCached.test.UnitTests
 
test17() - Static method in class com.danga.MemCached.test.UnitTests
 
test18() - Static method in class com.danga.MemCached.test.UnitTests
 
test19() - Static method in class com.danga.MemCached.test.UnitTests
 
test2() - Static method in class com.danga.MemCached.test.UnitTests
 
test20(int, int, int) - Static method in class com.danga.MemCached.test.UnitTests
 
test21() - Static method in class com.danga.MemCached.test.UnitTests
 
test22() - Static method in class com.danga.MemCached.test.UnitTests
 
test23() - Static method in class com.danga.MemCached.test.UnitTests
 
test24() - Static method in class com.danga.MemCached.test.UnitTests
 
test3() - Static method in class com.danga.MemCached.test.UnitTests
 
test4() - Static method in class com.danga.MemCached.test.UnitTests
 
test5() - Static method in class com.danga.MemCached.test.UnitTests
 
test6() - Static method in class com.danga.MemCached.test.UnitTests
 
test7() - Static method in class com.danga.MemCached.test.UnitTests
 
test8() - Static method in class com.danga.MemCached.test.UnitTests
 
test9() - Static method in class com.danga.MemCached.test.UnitTests
 
TestClass(String, String, Integer) - Constructor for class com.danga.MemCached.test.UnitTests.TestClass
 
TestMemcached - Class in com.danga.MemCached.test
 
TestMemcached() - Constructor for class com.danga.MemCached.test.TestMemcached
 
threadInfo - Static variable in class com.danga.MemCached.test.MemCachedTest
 
threadNum - Variable in class com.danga.MemCached.test.MemCachedTest.bench
 
toInt(byte[]) - Static method in class com.danga.MemCached.NativeHandler
This works by taking each of the bit patterns and converting them to ints taking into account 2s complement and then adding them..
toLong(byte[]) - Static method in class com.danga.MemCached.NativeHandler
 
toString() - Method in class com.danga.MemCached.ByteBufArrayInputStream
 
toString() - Method in class com.danga.MemCached.MemCachedClient.NIOLoader.Connection
 
toString() - Method in class com.danga.MemCached.SockIOPool.SockIO
returns the string representation of this socket
totalWeight - Variable in class com.danga.MemCached.SockIOPool
 
trueClose() - Method in class com.danga.MemCached.SockIOPool.SockIO
closes socket and all streams connected to it
trueClose(boolean) - Method in class com.danga.MemCached.SockIOPool.SockIO
closes socket and all streams connected to it

U

UnitTests - Class in com.danga.MemCached.test
 
UnitTests() - Constructor for class com.danga.MemCached.test.UnitTests
 
UnitTests.TestClass - Class in com.danga.MemCached.test
Class for testing serializing of objects.

V

VALUE - Static variable in class com.danga.MemCached.MemCachedClient
 

W

warn(String, Throwable) - Method in class com.danga.MemCached.Logger
logs warn mesg
warn(String) - Method in class com.danga.MemCached.Logger
 
weights - Variable in class com.danga.MemCached.SockIOPool
 
write(byte[]) - Method in class com.danga.MemCached.SockIOPool.SockIO
writes a byte array to the output stream
writeRequest(SelectionKey) - Method in class com.danga.MemCached.MemCachedClient.NIOLoader
 

Z

ZERO - Static variable in class com.danga.MemCached.SockIOPool
 
A B C D E F G H I K L M N O P R S T U V W Z 
Skip navigation links

Copyright © 2005 - greg whalin