org.jboss.ha.framework.server.lock
Class LocalAndClusterLockManager

java.lang.Object
  extended by org.jboss.ha.framework.server.lock.LocalAndClusterLockManager

public class LocalAndClusterLockManager
extends Object

Version:
$Revision:$
Author:
Brian Stansberry

Constructor Summary
LocalAndClusterLockManager(String serviceHAName, org.jboss.ha.framework.interfaces.HAPartition partition)
           
 
Method Summary
 void lockGlobally(Serializable lockName, long timeout)
           
 void lockLocally(Serializable lockName, long timeout)
           
 void start()
           
 void stop()
           
 void unlockGlobally(Serializable lockName)
           
 void unlockLocally(Serializable lockName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalAndClusterLockManager

public LocalAndClusterLockManager(String serviceHAName,
                                  org.jboss.ha.framework.interfaces.HAPartition partition)
Method Detail

lockLocally

public void lockLocally(Serializable lockName,
                        long timeout)
                 throws TimeoutException,
                        InterruptedException
Throws:
TimeoutException
InterruptedException

unlockLocally

public void unlockLocally(Serializable lockName)

lockGlobally

public void lockGlobally(Serializable lockName,
                         long timeout)
                  throws TimeoutException,
                         InterruptedException
Throws:
TimeoutException
InterruptedException

unlockGlobally

public void unlockGlobally(Serializable lockName)

start

public void start()
           throws Exception
Throws:
Exception

stop

public void stop()
          throws Exception
Throws:
Exception


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.