FileDocCategorySizeDatePackage
BeanCache.javaAPI DocGlassfish v2 API35639Fri May 04 22:34:40 BST 2007com.sun.enterprise.tools.common.dd.ejb

BeanCache

public class BeanCache extends com.sun.enterprise.tools.common.dd.SunBaseBean
This generated bean class BeanCache matches the schema element bean-cache Generated on Wed Aug 13 10:43:32 PDT 2003

Fields Summary
static Vector
comparators
public static final String
MAX_CACHE_SIZE
public static final String
RESIZE_QUANTITY
public static final String
IS_CACHE_OVERFLOW_ALLOWED
public static final String
CACHE_IDLE_TIMEOUT_IN_SECONDS
public static final String
REMOVAL_TIMEOUT_IN_SECONDS
public static final String
VICTIM_SELECTION_POLICY
Constructors Summary
public BeanCache()

	// NOI18N

	  
		this(Common.USE_DEFAULT_VALUES);
	
public BeanCache(int options)

		super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
		// Properties (see root bean comments for the bean graph)
		this.createProperty("max-cache-size", 	// NOI18N
			MAX_CACHE_SIZE, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("resize-quantity", 	// NOI18N
			RESIZE_QUANTITY, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("is-cache-overflow-allowed", 	// NOI18N
			IS_CACHE_OVERFLOW_ALLOWED, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("cache-idle-timeout-in-seconds", 	// NOI18N
			CACHE_IDLE_TIMEOUT_IN_SECONDS, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("removal-timeout-in-seconds", 	// NOI18N
			REMOVAL_TIMEOUT_IN_SECONDS, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("victim-selection-policy", 	// NOI18N
			VICTIM_SELECTION_POLICY, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.initialize(options);
	
Methods Summary
public static voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
public voiddump(java.lang.StringBuffer str, java.lang.String indent)

		String s;
		Object o;
		org.netbeans.modules.schema2beans.BaseBean n;
		str.append(indent);
		str.append("MaxCacheSize");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getMaxCacheSize();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(MAX_CACHE_SIZE, 0, str, indent);

		str.append(indent);
		str.append("ResizeQuantity");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getResizeQuantity();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(RESIZE_QUANTITY, 0, str, indent);

		str.append(indent);
		str.append("IsCacheOverflowAllowed");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getIsCacheOverflowAllowed();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(IS_CACHE_OVERFLOW_ALLOWED, 0, str, indent);

		str.append(indent);
		str.append("CacheIdleTimeoutInSeconds");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getCacheIdleTimeoutInSeconds();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(CACHE_IDLE_TIMEOUT_IN_SECONDS, 0, str, indent);

		str.append(indent);
		str.append("RemovalTimeoutInSeconds");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getRemovalTimeoutInSeconds();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(REMOVAL_TIMEOUT_IN_SECONDS, 0, str, indent);

		str.append(indent);
		str.append("VictimSelectionPolicy");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getVictimSelectionPolicy();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(VICTIM_SELECTION_POLICY, 0, str, indent);

	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("BeanCache\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public java.lang.StringgetCacheIdleTimeoutInSeconds()

		return (String)this.getValue(CACHE_IDLE_TIMEOUT_IN_SECONDS);
	
public java.lang.StringgetIsCacheOverflowAllowed()

		return (String)this.getValue(IS_CACHE_OVERFLOW_ALLOWED);
	
public java.lang.StringgetMaxCacheSize()

		return (String)this.getValue(MAX_CACHE_SIZE);
	
public java.lang.StringgetRemovalTimeoutInSeconds()

		return (String)this.getValue(REMOVAL_TIMEOUT_IN_SECONDS);
	
public java.lang.StringgetResizeQuantity()

		return (String)this.getValue(RESIZE_QUANTITY);
	
public java.lang.StringgetVictimSelectionPolicy()

		return (String)this.getValue(VICTIM_SELECTION_POLICY);
	
voidinitialize(int options)

						
	
public static voidremoveComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.remove(c);
	
public voidsetCacheIdleTimeoutInSeconds(java.lang.String value)

		this.setValue(CACHE_IDLE_TIMEOUT_IN_SECONDS, value);
	
public voidsetIsCacheOverflowAllowed(java.lang.String value)

		this.setValue(IS_CACHE_OVERFLOW_ALLOWED, value);
	
public voidsetMaxCacheSize(java.lang.String value)

		this.setValue(MAX_CACHE_SIZE, value);
	
public voidsetRemovalTimeoutInSeconds(java.lang.String value)

		this.setValue(REMOVAL_TIMEOUT_IN_SECONDS, value);
	
public voidsetResizeQuantity(java.lang.String value)

		this.setValue(RESIZE_QUANTITY, value);
	
public voidsetVictimSelectionPolicy(java.lang.String value)

		this.setValue(VICTIM_SELECTION_POLICY, value);
	
public voidvalidate()

		boolean restrictionFailure = false;
		// Validating property maxCacheSize
		if (getMaxCacheSize() != null) {
		}
		// Validating property resizeQuantity
		if (getResizeQuantity() != null) {
		}
		// Validating property isCacheOverflowAllowed
		if (getIsCacheOverflowAllowed() != null) {
		}
		// Validating property cacheIdleTimeoutInSeconds
		if (getCacheIdleTimeoutInSeconds() != null) {
		}
		// Validating property removalTimeoutInSeconds
		if (getRemovalTimeoutInSeconds() != null) {
		}
		// Validating property victimSelectionPolicy
		if (getVictimSelectionPolicy() != null) {
		}