me.prettyprint.cassandra.locking
Class AbstractLockManager

java.lang.Object
  extended by me.prettyprint.cassandra.locking.AbstractLockManager
All Implemented Interfaces:
HLockManager
Direct Known Subclasses:
HLockManagerImpl

public abstract class AbstractLockManager
extends Object
implements HLockManager

Author:
patricioe (Patricio Echague - patricioe@gmail.com)

Field Summary
protected  Cluster cluster
           
protected static String DUMMY_VALUE
           
protected  Keyspace keyspace
           
protected  HLockManagerConfigurator lockManagerConfigurator
           
 
Constructor Summary
AbstractLockManager(Cluster cluster)
           
AbstractLockManager(Cluster cluster, HLockManagerConfigurator hlmc)
           
AbstractLockManager(Cluster cluster, Keyspace keyspace)
           
AbstractLockManager(Cluster cluster, Keyspace keyspace, HLockManagerConfigurator lockManagerConfigurator)
           
 
Method Summary
 Cluster getCluster()
          the Cluster this Lock Manager is running on
 Keyspace getKeyspace()
           
 HLockManagerConfigurator getLockManagerConfigurator()
           
 void init()
          Initializes the Lock Manager.
 void setCluster(Cluster cluster)
           
 void setKeyspace(Keyspace keyspace)
           
 void setLockManagerConfigurator(HLockManagerConfigurator lockManagerConfigurator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface me.prettyprint.hector.api.locking.HLockManager
acquire, acquire, createLock, release
 

Field Detail

DUMMY_VALUE

protected static final String DUMMY_VALUE
See Also:
Constant Field Values

cluster

protected Cluster cluster

keyspace

protected Keyspace keyspace

lockManagerConfigurator

protected HLockManagerConfigurator lockManagerConfigurator
Constructor Detail

AbstractLockManager

public AbstractLockManager(Cluster cluster,
                           Keyspace keyspace,
                           HLockManagerConfigurator lockManagerConfigurator)

AbstractLockManager

public AbstractLockManager(Cluster cluster)

AbstractLockManager

public AbstractLockManager(Cluster cluster,
                           HLockManagerConfigurator hlmc)

AbstractLockManager

public AbstractLockManager(Cluster cluster,
                           Keyspace keyspace)
Method Detail

init

public void init()
Description copied from interface: HLockManager
Initializes the Lock Manager.

Specified by:
init in interface HLockManager

getCluster

public Cluster getCluster()
Description copied from interface: HLockManager
the Cluster this Lock Manager is running on

Specified by:
getCluster in interface HLockManager
Returns:

setCluster

public void setCluster(Cluster cluster)

getKeyspace

public Keyspace getKeyspace()
Specified by:
getKeyspace in interface HLockManager
Returns:
The keyspace associated to this lock manager

setKeyspace

public void setKeyspace(Keyspace keyspace)

getLockManagerConfigurator

public HLockManagerConfigurator getLockManagerConfigurator()
Specified by:
getLockManagerConfigurator in interface HLockManager
Returns:
the configuration of this Lock Manager.

setLockManagerConfigurator

public void setLockManagerConfigurator(HLockManagerConfigurator lockManagerConfigurator)


Copyright © 2013. All Rights Reserved.