Clover coverage report -
Coverage timestamp: Thu Jul 5 2007 20:02:32 EDT
file stats: LOC: 75   Methods: 7
NCLOC: 42   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
LockingException.java 0% 15.4% 28.6% 18.2%
coverage coverage
 1    // $Id: LockingException.java,v 1.3 2007/01/19 14:47:41 msurtani Exp $
 2   
 3    /*
 4    * JBoss, the OpenSource J2EE webOS
 5    *
 6    * Distributable under LGPL license.
 7    * See terms of license at gnu.org.
 8    */
 9   
 10    package org.jboss.cache.lock;
 11   
 12    import org.jboss.cache.CacheException;
 13   
 14    import java.util.Map;
 15   
 16   
 17    /**
 18    * Used for all locking-related exceptions, e.g. when a lock could not be
 19    * acquired within the timeout, or when a deadlock was detected or an upgrade failed.
 20    *
 21    * @author <a href="mailto:bela@jboss.org">Bela Ban</a>.
 22    */
 23   
 24    public class LockingException extends CacheException
 25    {
 26   
 27    private static final long serialVersionUID = 5551396474793902133L;
 28   
 29    /**
 30    * A list of all nodes that failed to acquire a lock
 31    */
 32    Map failed_lockers = null;
 33   
 34  0 public LockingException()
 35    {
 36  0 super();
 37    }
 38   
 39  0 public LockingException(Map failed_lockers)
 40    {
 41  0 super();
 42  0 this.failed_lockers = failed_lockers;
 43    }
 44   
 45  2 public LockingException(String msg)
 46    {
 47  2 super(msg);
 48    }
 49   
 50  0 public LockingException(String msg, Map failed_lockers)
 51    {
 52  0 super(msg);
 53  0 this.failed_lockers = failed_lockers;
 54    }
 55   
 56  3 public LockingException(String msg, Throwable cause)
 57    {
 58  3 super(msg, cause);
 59    }
 60   
 61  0 public LockingException(String msg, Throwable cause, Map failed_lockers)
 62    {
 63  0 super(msg, cause);
 64  0 this.failed_lockers = failed_lockers;
 65    }
 66   
 67  0 public String toString()
 68    {
 69  0 String retval = super.toString();
 70  0 if (failed_lockers != null && failed_lockers.size() > 0)
 71  0 retval = retval + ", failed lockers: " + failed_lockers;
 72  0 return retval;
 73    }
 74   
 75    }