Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RJ/ketama
/ functions
Functions
128 in github.com/RJ/ketama
⨍
Functions
128
◇
Types & classes
9
↓ 19 callers
Method
toString
returns the string representation of this socket @return string
java_ketama/SockIOPool.java:1663
↓ 10 callers
Function
ketama_get_server
libketama/ketama.c:347
↓ 8 callers
Method
isConnected
Is the new socket connected yet @return
java_ketama/SockIOPool.java:1722
↓ 8 callers
Function
ketama_roll
libketama/ketama.c:495
↓ 7 callers
Method
getHost
returns the host this socket is connected to @return String representation of host (hostname:port)
java_ketama/SockIOPool.java:1440
↓ 7 callers
Function
set_error
libketama/ketama.c:59
↓ 6 callers
Method
addSocketToPool
Adds a socket to a given pool for the given host. Internal utility method. @param pool pool to add to @param host host this socket is connected to @
java_ketama/SockIOPool.java:945
↓ 5 callers
Method
close
sets closed flag and checks in to connection pool but does not close connections
java_ketama/SockIOPool.java:1513
↓ 5 callers
Function
ketama_error
libketama/ketama.c:663
↓ 5 callers
Method
trueClose
closes socket and all streams connected to it @throws IOException if fails to close streams or socket
java_ketama/SockIOPool.java:1447
↓ 5 callers
Method
write
writes a byte array to the output stream @param b byte array to write @throws IOException if an io error happens
java_ketama/SockIOPool.java:1640
↓ 4 callers
Method
calculateHash
NATIVE_HASH = 0 OLD_COMPAT_HASH = 1 NEW_COMPAT_HASH = 2 KETAMA_HASH = 3 @param key @return
java_ketama/SockIOPool.java:211
↓ 4 callers
Method
getConnection
Returns a SockIO object from the pool for the passed in host. Meant to be called from a more intelligent method<br/> which handles choosing appropria
java_ketama/SockIOPool.java:857
↓ 4 callers
Function
ketama_hashi
libketama/ketama.c:334
↓ 4 callers
Function
ketama_sem_unlock
\brief Unlocks the semaphore. * \param sem_set_id The semaphore handle that you want to unlock. */
libketama/ketama.c:149
↓ 4 callers
Function
ketama_smoke
libketama/ketama.c:597
↓ 3 callers
Method
createSocket
Creates a new SockIO obj for the given server. If server fails to connect, then return null and do not try<br/> again until a duration has passed. T
java_ketama/SockIOPool.java:650
↓ 3 callers
Method
hashCode
use the sockets hashcode for this object so we can key off of SockIOs @return int hashcode
java_ketama/SockIOPool.java:1654
↓ 3 callers
Method
isRunning
()
java_ketama/SockIOPool.java:1257
↓ 3 callers
Function
ketama_md5_digest
ketama.h does not expose this function */
libketama/ketama.c:193
↓ 3 callers
Function
lketama_get
lua_ketama/lketama.c:71
↓ 3 callers
Function
md5_append
libketama/md5.c:322
↓ 3 callers
Function
track_shm_id
libketama/ketama.c:118
↓ 2 callers
Method
checkIn
Checks a SockIO object in with the pool. This will remove SocketIO from busy pool, and optionally<br/> add to avail pool. @param socket socket to re
java_ketama/SockIOPool.java:1016
↓ 2 callers
Method
closePool
Closes all sockets in the passed in pool. Internal utility method. @param pool pool to close
java_ketama/SockIOPool.java:1052
↓ 2 callers
Function
file_modtime
\brief Retrieve the modification time of a file. * \param filename The full path to the file. * \return The timestamp of the latest modification t
libketama/ketama.c:207
↓ 2 callers
Method
findPointFor
Gets the first available key equal or above the given one, if none found, returns the first k in the bucket @param k key @return
java_ketama/SockIOPool.java:235
↓ 2 callers
Method
flush
flushes output stream @throws IOException if io problems during read
java_ketama/SockIOPool.java:1626
↓ 2 callers
Method
getInstance
Factory to create/retrieve new pools given a unique poolName. @param poolName unique name of the pool @return instance of SockIOPool
java_ketama/SockIOPool.java:181
↓ 2 callers
Method
getSocket
Method which spawns thread to get a connection and then enforces a timeout on the initial connection. This should be backed by a thread pool. Any vo
java_ketama/SockIOPool.java:1399
↓ 2 callers
Function
init_shm_data_tracker
libketama/ketama.c:77
↓ 2 callers
Function
init_shm_id_tracker
libketama/ketama.c:72
↓ 2 callers
Method
isConnected
checks if the connection is open @return true if connected
java_ketama/SockIOPool.java:1524
↓ 2 callers
Function
ketama_print_continuum
libketama/ketama.c:635
↓ 2 callers
Function
md5_process
libketama/md5.c:131
↓ 2 callers
Function
nil_error
lua_ketama/lketama.c:32
↓ 2 callers
Method
read
reads length bytes into the passed in byte array from dtream @param b byte array @throws IOException if io problems during read
java_ketama/SockIOPool.java:1608
↓ 2 callers
Function
read_exact
erlang/ketama_erlang_driver.c:15
↓ 2 callers
Function
track_sem_id
libketama/ketama.c:100
↓ 1 callers
Function
bool_error
lua_ketama/lketama.c:40
↓ 1 callers
Method
clearHostFromPool
Closes and removes all sockets from specified pool for host. Internal utility method. @param pool pool to clear @param host host to clear
java_ketama/SockIOPool.java:987
↓ 1 callers
Function
default_error
lua_ketama/lketama.c:48
↓ 1 callers
Method
getSocket
Return the socket. @return
java_ketama/SockIOPool.java:1742
↓ 1 callers
Function
init_sem_id_tracker
libketama/ketama.c:67
↓ 1 callers
Method
isError
Did we have an exception while connecting? @return
java_ketama/SockIOPool.java:1733
↓ 1 callers
Method
isInitialized
Returns state of pool. @return <CODE>true</CODE> if initialized.
java_ketama/SockIOPool.java:636
↓ 1 callers
Function
ketama_compare
libketama/ketama.c:656
↓ 1 callers
Function
ketama_create_continuum
\brief Generates the continuum of servers (each server as many points on a circle). * \param key Shared memory key for storing the newly created con
libketama/ketama.c:386
↓ 1 callers
Function
ketama_sem_init
\brief Initialize a semaphore. * \param key Semaphore key to use. * \return The freshly allocated semaphore handle. */
libketama/ketama.c:161
↓ 1 callers
Function
ketama_sem_lock
\brief Locks the semaphore. * \param sem_set_id The semaphore handle that you want to lock. */
libketama/ketama.c:138
↓ 1 callers
Method
md5HashingAlg
Calculates the ketama hash value for a string @param s @return
java_ketama/SockIOPool.java:517
↓ 1 callers
Function
md5_finish
libketama/md5.c:360
↓ 1 callers
Function
md5_init
libketama/md5.c:312
↓ 1 callers
Method
newCompatHashingAlg
Internal private hashing method. This is the new hashing algorithm from other clients. Found to be fast and have very good distribution. UPDATE: Thi
java_ketama/SockIOPool.java:503
↓ 1 callers
Method
origCompatHashingAlg
Internal private hashing method. This is the original hashing algorithm from other clients. Found to be slow and have poor distribution. @param key
java_ketama/SockIOPool.java:481
↓ 1 callers
Function
read_server_definitions
\brief Retrieve all server definitions from a file. * \param filename The full path to the file which contains the server definitions. * \param co
libketama/ketama.c:275
↓ 1 callers
Function
read_server_line
\brief Retrieve a serverinfo struct for one a sever definition. * \param line The entire server definition in plain-text. * \return A serverinfo s
libketama/ketama.c:223
↓ 1 callers
Method
removeSocketFromPool
Removes a socket from specified pool for host. Internal utility method. @param pool pool to remove from @param host host pool @param socket socket t
java_ketama/SockIOPool.java:970
↓ 1 callers
Method
selfMaint
Runs self maintenance on all internal pools. This is typically called by the maintenance thread to manage pool size.
java_ketama/SockIOPool.java:1136
↓ 1 callers
Method
setInterval
( long interval )
java_ketama/SockIOPool.java:1255
↓ 1 callers
Method
startMaintThread
Starts the maintenance thread. This thread will manage the size of the active pool<br/> as well as move any closed, but not checked in sockets<br/> b
java_ketama/SockIOPool.java:1105
↓ 1 callers
Method
stopMaintThread
Stops the maintenance thread.
java_ketama/SockIOPool.java:1126
↓ 1 callers
Method
stopThread
sets stop variable and interupts any wait
java_ketama/SockIOPool.java:1265
↓ 1 callers
Function
track_shm_data
libketama/ketama.c:82
Method
ConnectThread
Constructor @param host @param port
java_ketama/SockIOPool.java:1694
Method
MaintThread
( SockIOPool pool )
java_ketama/SockIOPool.java:1250
Method
SockIO
creates a new SockIO object wrapping a socket connection to host:port, and its input and output streams @param pool Pool this object is tied to @para
java_ketama/SockIOPool.java:1332
Method
SockIOPool
()
java_ketama/SockIOPool.java:173
Method
clearEOL
reads up to end of line and returns nothing @throws IOException if io problems during read
java_ketama/SockIOPool.java:1576
Method
getFailover
Returns current state of failover flag. @return true/false
java_ketama/SockIOPool.java:433
Method
getHashingAlg
Returns current status of customHash flag @return true/false
java_ketama/SockIOPool.java:469
Method
getInitConn
Returns the current setting for the initial number of connections per server in the available pool. @return number of connections
java_ketama/SockIOPool.java:313
Method
getMaintSleep
Returns the current maint thread sleep time. @return sleep time in ms
java_ketama/SockIOPool.java:384
Method
getMaxBusy
Returns the current max busy setting. @return max busy setting in ms
java_ketama/SockIOPool.java:369
Method
getMaxConn
Returns the maximum number of spare connections allowed in available pool. @return number of connections
java_ketama/SockIOPool.java:341
Method
getMaxIdle
Returns the current max idle setting. @return max idle setting in ms
java_ketama/SockIOPool.java:355
Method
getMinConn
Returns the minimum number of spare connections in available pool. @return number of connections
java_ketama/SockIOPool.java:327
Method
getNagle
Returns current status of nagle flag @return true/false
java_ketama/SockIOPool.java:449
Method
getServers
Returns the current list of all cache servers. @return String array of servers [host:port]
java_ketama/SockIOPool.java:281
Method
getSock
Returns appropriate SockIO object given string cache key. @param key hashcode for cache key @return SockIO obj connected to server
java_ketama/SockIOPool.java:716
Method
getSockNewHash
Returns appropriate SockIO object given string cache key and optional hashcode. Trys to get SockIO from pool. Fails over to additional pools in even
java_ketama/SockIOPool.java:795
Method
getSocketConnectTO
Returns the socket timeout for connects. @return timeout in ms
java_ketama/SockIOPool.java:414
Method
getSocketTO
Returns the socket timeout for reads. @return timeout in ms
java_ketama/SockIOPool.java:398
Method
getWeights
Returns the current list of weights. @return int array of weights
java_ketama/SockIOPool.java:298
Method
initialize
Initializes the pool.
java_ketama/SockIOPool.java:538
Function
initketama
python_ketama/ketamamodule.c:126
Function
ketama_continuum_dtor
php_ketama/ketama.c:39
Function
lketama_compare
lua_ketama/lketama.c:104
Function
lketama_error
lua_ketama/lketama.c:53
Function
lketama_get_server
lua_ketama/lketama.c:87
Function
lketama_hashi
lua_ketama/lketama.c:116
Function
lketama_md5digest
lua_ketama/lketama.c:124
Function
lketama_print_continuum
lua_ketama/lketama.c:97
Function
lketama_roll
lua_ketama/lketama.c:58
Function
lketama_smoke
lua_ketama/lketama.c:77
Function
luaopen_ketama
lua_ketama/lketama.c:145
Function
main
erlang/ketama_erlang_driver.c:25
Function
main
libketama/ketama_test.c:13
Function
pyketama_Continuum_dealloc
python_ketama/ketamamodule.c:20
Function
pyketama_Continuum_init
python_ketama/ketamamodule.c:37
next →
1–100 of 128, ranked by callers