[jboss-cvs] JBossCache/src/org/jboss/cache/util ...
Manik Surtani
manik at jboss.org
Thu May 24 14:13:59 EDT 2007
User: msurtani
Date: 07/05/24 14:13:59
Added: src/org/jboss/cache/util CachePrinter.java
Log:
fixed buggy stuff around BG comms
Revision Changes Path
1.1 date: 2007/05/24 18:13:59; author: msurtani; state: Exp;JBossCache/src/org/jboss/cache/util/CachePrinter.java
Index: CachePrinter.java
===================================================================
package org.jboss.cache.util;
import org.jboss.cache.Cache;
import org.jboss.cache.CacheImpl;
/**
* Helper that prints the contents of a {@link org.jboss.cache.Cache} to a string.
*
* @author <a href="mailto:manik at jboss.org">Manik Surtani</a>
* @since 2.0.0
*/
public class CachePrinter
{
/**
* Prints the contents of the cache (nodes + data) to a string
*
* @param c cache to print
* @return a String representation of the cache
*/
public static String printCacheDetails(Cache c)
{
// internal cast
CacheImpl ci = (CacheImpl) c;
return ci.printDetails();
}
/**
* Prints the status of locks in the cache (nodes + locks) to a string
*
* @param c cache to print
* @return a String representation of the cache
*/
public static String printCacheLockingInfo(Cache c)
{
// internal cast
CacheImpl ci = (CacheImpl) c;
return ci.printLockInfo();
}
}
More information about the jboss-cvs-commits
mailing list