net.rubyeye.xmemcached.utils.hibernate
Class XmemcachedClientFactory

java.lang.Object
  extended by net.rubyeye.xmemcached.utils.hibernate.XmemcachedClientFactory
All Implemented Interfaces:
com.googlecode.hibernate.memcached.MemcacheClientFactory

public class XmemcachedClientFactory
extends java.lang.Object
implements com.googlecode.hibernate.memcached.MemcacheClientFactory

Parses hibernate properties to produce a MemcachedClient.
See MemcachedCacheProvider for property details. SPI for xmemcached.

Author:
dennis

Field Summary
static java.lang.String PROP_COMMAND_FACTORY
           
static java.lang.String PROP_HASH_ALGORITHM
           
static java.lang.String PROP_OPERATION_TIMEOUT
           
static java.lang.String PROP_READ_BUFFER_SIZE
           
static java.lang.String PROP_SERVERS
           
static java.lang.String PROP_SESSION_LOCATOR
           
 
Constructor Summary
XmemcachedClientFactory(com.googlecode.hibernate.memcached.PropertiesHelper properties)
           
 
Method Summary
 com.googlecode.hibernate.memcached.Memcache createMemcacheClient()
           
protected  CommandFactory getCommandFactory()
           
 java.lang.String getCommandFactoryName()
           
 HashAlgorithm getHashAlgorithm()
           
 long getOperationTimeoutMillis()
           
protected  com.googlecode.hibernate.memcached.PropertiesHelper getProperties()
           
 int getReadBufferSize()
           
 java.lang.String getServerList()
           
protected  MemcachedSessionLocator getSessionLocator()
           
 java.lang.String getSessionLocatorName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_SERVERS

public static final java.lang.String PROP_SERVERS
See Also:
Constant Field Values

PROP_READ_BUFFER_SIZE

public static final java.lang.String PROP_READ_BUFFER_SIZE
See Also:
Constant Field Values

PROP_OPERATION_TIMEOUT

public static final java.lang.String PROP_OPERATION_TIMEOUT
See Also:
Constant Field Values

PROP_HASH_ALGORITHM

public static final java.lang.String PROP_HASH_ALGORITHM
See Also:
Constant Field Values

PROP_COMMAND_FACTORY

public static final java.lang.String PROP_COMMAND_FACTORY
See Also:
Constant Field Values

PROP_SESSION_LOCATOR

public static final java.lang.String PROP_SESSION_LOCATOR
See Also:
Constant Field Values
Constructor Detail

XmemcachedClientFactory

public XmemcachedClientFactory(com.googlecode.hibernate.memcached.PropertiesHelper properties)
Method Detail

createMemcacheClient

public com.googlecode.hibernate.memcached.Memcache createMemcacheClient()
                                                                 throws java.lang.Exception
Specified by:
createMemcacheClient in interface com.googlecode.hibernate.memcached.MemcacheClientFactory
Throws:
java.lang.Exception

getSessionLocator

protected MemcachedSessionLocator getSessionLocator()

getCommandFactory

protected CommandFactory getCommandFactory()

getServerList

public java.lang.String getServerList()

getReadBufferSize

public int getReadBufferSize()

getOperationTimeoutMillis

public long getOperationTimeoutMillis()

getHashAlgorithm

public HashAlgorithm getHashAlgorithm()

getCommandFactoryName

public java.lang.String getCommandFactoryName()

getSessionLocatorName

public java.lang.String getSessionLocatorName()

getProperties

protected com.googlecode.hibernate.memcached.PropertiesHelper getProperties()


Copyright © 2011. All Rights Reserved.