MCPcopy Create free account

hub / github.com/RJ/ketama / functions

Functions128 in github.com/RJ/ketama

↓ 19 callersMethodtoString
returns the string representation of this socket @return string
java_ketama/SockIOPool.java:1663
↓ 10 callersFunctionketama_get_server
libketama/ketama.c:347
↓ 8 callersMethodisConnected
Is the new socket connected yet @return
java_ketama/SockIOPool.java:1722
↓ 8 callersFunctionketama_roll
libketama/ketama.c:495
↓ 7 callersMethodgetHost
returns the host this socket is connected to @return String representation of host (hostname:port)
java_ketama/SockIOPool.java:1440
↓ 7 callersFunctionset_error
libketama/ketama.c:59
↓ 6 callersMethodaddSocketToPool
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 callersMethodclose
sets closed flag and checks in to connection pool but does not close connections
java_ketama/SockIOPool.java:1513
↓ 5 callersFunctionketama_error
libketama/ketama.c:663
↓ 5 callersMethodtrueClose
closes socket and all streams connected to it @throws IOException if fails to close streams or socket
java_ketama/SockIOPool.java:1447
↓ 5 callersMethodwrite
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 callersMethodcalculateHash
NATIVE_HASH = 0 OLD_COMPAT_HASH = 1 NEW_COMPAT_HASH = 2 KETAMA_HASH = 3 @param key @return
java_ketama/SockIOPool.java:211
↓ 4 callersMethodgetConnection
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 callersFunctionketama_hashi
libketama/ketama.c:334
↓ 4 callersFunctionketama_sem_unlock
\brief Unlocks the semaphore. * \param sem_set_id The semaphore handle that you want to unlock. */
libketama/ketama.c:149
↓ 4 callersFunctionketama_smoke
libketama/ketama.c:597
↓ 3 callersMethodcreateSocket
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 callersMethodhashCode
use the sockets hashcode for this object so we can key off of SockIOs @return int hashcode
java_ketama/SockIOPool.java:1654
↓ 3 callersMethodisRunning
()
java_ketama/SockIOPool.java:1257
↓ 3 callersFunctionketama_md5_digest
ketama.h does not expose this function */
libketama/ketama.c:193
↓ 3 callersFunctionlketama_get
lua_ketama/lketama.c:71
↓ 3 callersFunctionmd5_append
libketama/md5.c:322
↓ 3 callersFunctiontrack_shm_id
libketama/ketama.c:118
↓ 2 callersMethodcheckIn
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 callersMethodclosePool
Closes all sockets in the passed in pool. Internal utility method. @param pool pool to close
java_ketama/SockIOPool.java:1052
↓ 2 callersFunctionfile_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 callersMethodfindPointFor
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 callersMethodflush
flushes output stream @throws IOException if io problems during read
java_ketama/SockIOPool.java:1626
↓ 2 callersMethodgetInstance
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 callersMethodgetSocket
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 callersFunctioninit_shm_data_tracker
libketama/ketama.c:77
↓ 2 callersFunctioninit_shm_id_tracker
libketama/ketama.c:72
↓ 2 callersMethodisConnected
checks if the connection is open @return true if connected
java_ketama/SockIOPool.java:1524
↓ 2 callersFunctionketama_print_continuum
libketama/ketama.c:635
↓ 2 callersFunctionmd5_process
libketama/md5.c:131
↓ 2 callersFunctionnil_error
lua_ketama/lketama.c:32
↓ 2 callersMethodread
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 callersFunctionread_exact
erlang/ketama_erlang_driver.c:15
↓ 2 callersFunctiontrack_sem_id
libketama/ketama.c:100
↓ 1 callersFunctionbool_error
lua_ketama/lketama.c:40
↓ 1 callersMethodclearHostFromPool
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 callersFunctiondefault_error
lua_ketama/lketama.c:48
↓ 1 callersMethodgetSocket
Return the socket. @return
java_ketama/SockIOPool.java:1742
↓ 1 callersFunctioninit_sem_id_tracker
libketama/ketama.c:67
↓ 1 callersMethodisError
Did we have an exception while connecting? @return
java_ketama/SockIOPool.java:1733
↓ 1 callersMethodisInitialized
Returns state of pool. @return <CODE>true</CODE> if initialized.
java_ketama/SockIOPool.java:636
↓ 1 callersFunctionketama_compare
libketama/ketama.c:656
↓ 1 callersFunctionketama_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 callersFunctionketama_sem_init
\brief Initialize a semaphore. * \param key Semaphore key to use. * \return The freshly allocated semaphore handle. */
libketama/ketama.c:161
↓ 1 callersFunctionketama_sem_lock
\brief Locks the semaphore. * \param sem_set_id The semaphore handle that you want to lock. */
libketama/ketama.c:138
↓ 1 callersMethodmd5HashingAlg
Calculates the ketama hash value for a string @param s @return
java_ketama/SockIOPool.java:517
↓ 1 callersFunctionmd5_finish
libketama/md5.c:360
↓ 1 callersFunctionmd5_init
libketama/md5.c:312
↓ 1 callersMethodnewCompatHashingAlg
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 callersMethodorigCompatHashingAlg
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 callersFunctionread_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 callersFunctionread_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 callersMethodremoveSocketFromPool
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 callersMethodselfMaint
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 callersMethodsetInterval
( long interval )
java_ketama/SockIOPool.java:1255
↓ 1 callersMethodstartMaintThread
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 callersMethodstopMaintThread
Stops the maintenance thread.
java_ketama/SockIOPool.java:1126
↓ 1 callersMethodstopThread
sets stop variable and interupts any wait
java_ketama/SockIOPool.java:1265
↓ 1 callersFunctiontrack_shm_data
libketama/ketama.c:82
MethodConnectThread
Constructor @param host @param port
java_ketama/SockIOPool.java:1694
MethodMaintThread
( SockIOPool pool )
java_ketama/SockIOPool.java:1250
MethodSockIO
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
MethodSockIOPool
()
java_ketama/SockIOPool.java:173
MethodclearEOL
reads up to end of line and returns nothing @throws IOException if io problems during read
java_ketama/SockIOPool.java:1576
MethodgetFailover
Returns current state of failover flag. @return true/false
java_ketama/SockIOPool.java:433
MethodgetHashingAlg
Returns current status of customHash flag @return true/false
java_ketama/SockIOPool.java:469
MethodgetInitConn
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
MethodgetMaintSleep
Returns the current maint thread sleep time. @return sleep time in ms
java_ketama/SockIOPool.java:384
MethodgetMaxBusy
Returns the current max busy setting. @return max busy setting in ms
java_ketama/SockIOPool.java:369
MethodgetMaxConn
Returns the maximum number of spare connections allowed in available pool. @return number of connections
java_ketama/SockIOPool.java:341
MethodgetMaxIdle
Returns the current max idle setting. @return max idle setting in ms
java_ketama/SockIOPool.java:355
MethodgetMinConn
Returns the minimum number of spare connections in available pool. @return number of connections
java_ketama/SockIOPool.java:327
MethodgetNagle
Returns current status of nagle flag @return true/false
java_ketama/SockIOPool.java:449
MethodgetServers
Returns the current list of all cache servers. @return String array of servers [host:port]
java_ketama/SockIOPool.java:281
MethodgetSock
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
MethodgetSockNewHash
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
MethodgetSocketConnectTO
Returns the socket timeout for connects. @return timeout in ms
java_ketama/SockIOPool.java:414
MethodgetSocketTO
Returns the socket timeout for reads. @return timeout in ms
java_ketama/SockIOPool.java:398
MethodgetWeights
Returns the current list of weights. @return int array of weights
java_ketama/SockIOPool.java:298
Methodinitialize
Initializes the pool.
java_ketama/SockIOPool.java:538
Functioninitketama
python_ketama/ketamamodule.c:126
Functionketama_continuum_dtor
php_ketama/ketama.c:39
Functionlketama_compare
lua_ketama/lketama.c:104
Functionlketama_error
lua_ketama/lketama.c:53
Functionlketama_get_server
lua_ketama/lketama.c:87
Functionlketama_hashi
lua_ketama/lketama.c:116
Functionlketama_md5digest
lua_ketama/lketama.c:124
Functionlketama_print_continuum
lua_ketama/lketama.c:97
Functionlketama_roll
lua_ketama/lketama.c:58
Functionlketama_smoke
lua_ketama/lketama.c:77
Functionluaopen_ketama
lua_ketama/lketama.c:145
Functionmain
erlang/ketama_erlang_driver.c:25
Functionmain
libketama/ketama_test.c:13
Functionpyketama_Continuum_dealloc
python_ketama/ketamamodule.c:20
Functionpyketama_Continuum_init
python_ketama/ketamamodule.c:37
next →1–100 of 128, ranked by callers