BeanCachepublic 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 void | addComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.add(c);
| public void | dump(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.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("BeanCache\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
| public java.lang.String | getCacheIdleTimeoutInSeconds()
return (String)this.getValue(CACHE_IDLE_TIMEOUT_IN_SECONDS);
| public java.lang.String | getIsCacheOverflowAllowed()
return (String)this.getValue(IS_CACHE_OVERFLOW_ALLOWED);
| public java.lang.String | getMaxCacheSize()
return (String)this.getValue(MAX_CACHE_SIZE);
| public java.lang.String | getRemovalTimeoutInSeconds()
return (String)this.getValue(REMOVAL_TIMEOUT_IN_SECONDS);
| public java.lang.String | getResizeQuantity()
return (String)this.getValue(RESIZE_QUANTITY);
| public java.lang.String | getVictimSelectionPolicy()
return (String)this.getValue(VICTIM_SELECTION_POLICY);
| void | initialize(int options)
| public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
| public void | setCacheIdleTimeoutInSeconds(java.lang.String value)
this.setValue(CACHE_IDLE_TIMEOUT_IN_SECONDS, value);
| public void | setIsCacheOverflowAllowed(java.lang.String value)
this.setValue(IS_CACHE_OVERFLOW_ALLOWED, value);
| public void | setMaxCacheSize(java.lang.String value)
this.setValue(MAX_CACHE_SIZE, value);
| public void | setRemovalTimeoutInSeconds(java.lang.String value)
this.setValue(REMOVAL_TIMEOUT_IN_SECONDS, value);
| public void | setResizeQuantity(java.lang.String value)
this.setValue(RESIZE_QUANTITY, value);
| public void | setVictimSelectionPolicy(java.lang.String value)
this.setValue(VICTIM_SELECTION_POLICY, value);
| public void | validate()
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) {
}
|
|