Methods Summary |
---|
public static void | addComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.add(c);
|
public int | addElementProperty(ElementProperty value)
return addElementProperty(value, true);
|
public int | addElementProperty(ElementProperty value, boolean overwrite)
ElementProperty old = getElementPropertyByName(value.getName());
if(old != null) {
throw new ConfigException(StringManager.getManager(EjbContainer.class).getString("cannotAddDuplicate", "ElementProperty"));
}
return this.addValue(ELEMENT_PROPERTY, value, overwrite);
|
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("EjbTimerService"); // NOI18N
n = (org.netbeans.modules.schema2beans.BaseBean) this.getEjbTimerService();
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(EJB_TIMER_SERVICE, 0, str, indent);
str.append(indent);
str.append("ElementProperty["+this.sizeElementProperty()+"]"); // NOI18N
for(int i=0; i<this.sizeElementProperty(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
n = (org.netbeans.modules.schema2beans.BaseBean) this.getElementProperty(i);
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(ELEMENT_PROPERTY, i, str, indent);
}
|
public java.lang.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("EjbContainer\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
|
public java.lang.String | getCacheIdleTimeoutInSeconds()Getter for CacheIdleTimeoutInSeconds of the Element ejb-container
return getAttributeValue(ServerTags.CACHE_IDLE_TIMEOUT_IN_SECONDS);
|
public java.lang.String | getCacheResizeQuantity()Getter for CacheResizeQuantity of the Element ejb-container
return getAttributeValue(ServerTags.CACHE_RESIZE_QUANTITY);
|
public java.lang.String | getCommitOption()Getter for CommitOption of the Element ejb-container
return getAttributeValue(ServerTags.COMMIT_OPTION);
|
public static java.lang.String | getDefaultAttributeValue(java.lang.String attr)
if(attr == null) return null;
attr = attr.trim();
if(attr.equals(ServerTags.STEADY_POOL_SIZE)) return "32".trim();
if(attr.equals(ServerTags.POOL_RESIZE_QUANTITY)) return "16".trim();
if(attr.equals(ServerTags.MAX_POOL_SIZE)) return "64".trim();
if(attr.equals(ServerTags.CACHE_RESIZE_QUANTITY)) return "32".trim();
if(attr.equals(ServerTags.MAX_CACHE_SIZE)) return "512".trim();
if(attr.equals(ServerTags.POOL_IDLE_TIMEOUT_IN_SECONDS)) return "600".trim();
if(attr.equals(ServerTags.CACHE_IDLE_TIMEOUT_IN_SECONDS)) return "600".trim();
if(attr.equals(ServerTags.REMOVAL_TIMEOUT_IN_SECONDS)) return "5400".trim();
if(attr.equals(ServerTags.VICTIM_SELECTION_POLICY)) return "nru".trim();
if(attr.equals(ServerTags.COMMIT_OPTION)) return "B".trim();
return null;
|
public static java.lang.String | getDefaultCacheIdleTimeoutInSeconds()Get the default value of CacheIdleTimeoutInSeconds from dtd
return "600".trim();
|
public static java.lang.String | getDefaultCacheResizeQuantity()Get the default value of CacheResizeQuantity from dtd
return "32".trim();
|
public static java.lang.String | getDefaultCommitOption()Get the default value of CommitOption from dtd
return "B".trim();
|
public static java.lang.String | getDefaultMaxCacheSize()Get the default value of MaxCacheSize from dtd
return "512".trim();
|
public static java.lang.String | getDefaultMaxPoolSize()Get the default value of MaxPoolSize from dtd
return "64".trim();
|
public static java.lang.String | getDefaultPoolIdleTimeoutInSeconds()Get the default value of PoolIdleTimeoutInSeconds from dtd
return "600".trim();
|
public static java.lang.String | getDefaultPoolResizeQuantity()Get the default value of PoolResizeQuantity from dtd
return "16".trim();
|
public static java.lang.String | getDefaultRemovalTimeoutInSeconds()Get the default value of RemovalTimeoutInSeconds from dtd
return "5400".trim();
|
public static java.lang.String | getDefaultSteadyPoolSize()Get the default value of SteadyPoolSize from dtd
return "32".trim();
|
public static java.lang.String | getDefaultVictimSelectionPolicy()Get the default value of VictimSelectionPolicy from dtd
return "nru".trim();
|
public EjbTimerService | getEjbTimerService()
return (EjbTimerService)this.getValue(EJB_TIMER_SERVICE);
|
public ElementProperty | getElementProperty(int index)
return (ElementProperty)this.getValue(ELEMENT_PROPERTY, index);
|
public ElementProperty[] | getElementProperty()
return (ElementProperty[])this.getValues(ELEMENT_PROPERTY);
|
public ElementProperty | getElementPropertyByName(java.lang.String id)
if (null != id) { id = id.trim(); }
ElementProperty[] o = getElementProperty();
if (o == null) return null;
for (int i=0; i < o.length; i++) {
if(o[i].getAttributeValue(Common.convertName(ServerTags.NAME)).equals(id)) {
return o[i];
}
}
return null;
|
public java.lang.String | getMaxCacheSize()Getter for MaxCacheSize of the Element ejb-container
return getAttributeValue(ServerTags.MAX_CACHE_SIZE);
|
public java.lang.String | getMaxPoolSize()Getter for MaxPoolSize of the Element ejb-container
return getAttributeValue(ServerTags.MAX_POOL_SIZE);
|
public java.lang.String | getPoolIdleTimeoutInSeconds()Getter for PoolIdleTimeoutInSeconds of the Element ejb-container
return getAttributeValue(ServerTags.POOL_IDLE_TIMEOUT_IN_SECONDS);
|
public java.lang.String | getPoolResizeQuantity()Getter for PoolResizeQuantity of the Element ejb-container
return getAttributeValue(ServerTags.POOL_RESIZE_QUANTITY);
|
protected java.lang.String | getRelativeXPath()get the xpath representation for this element
returns something like abc[@name='value'] or abc
depending on the type of the bean
String ret = null;
ret = "ejb-container";
return (null != ret ? ret.trim() : null);
|
public java.lang.String | getRemovalTimeoutInSeconds()Getter for RemovalTimeoutInSeconds of the Element ejb-container
return getAttributeValue(ServerTags.REMOVAL_TIMEOUT_IN_SECONDS);
|
public java.lang.String | getSessionStore()Getter for SessionStore of the Element ejb-container
return getAttributeValue(ServerTags.SESSION_STORE);
|
public java.lang.String | getSteadyPoolSize()Getter for SteadyPoolSize of the Element ejb-container
return getAttributeValue(ServerTags.STEADY_POOL_SIZE);
|
public java.lang.String | getVictimSelectionPolicy()Getter for VictimSelectionPolicy of the Element ejb-container
return getAttributeValue(ServerTags.VICTIM_SELECTION_POLICY);
|
void | initialize(int options)
|
public EjbTimerService | newEjbTimerService()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new EjbTimerService();
|
public ElementProperty | newElementProperty()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new ElementProperty();
|
public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
|
public int | removeElementProperty(ElementProperty value)
return this.removeValue(ELEMENT_PROPERTY, value);
|
public int | removeElementProperty(ElementProperty value, boolean overwrite)
return this.removeValue(ELEMENT_PROPERTY, value, overwrite);
|
public void | setCacheIdleTimeoutInSeconds(java.lang.String v, boolean overwrite)Modify the CacheIdleTimeoutInSeconds of the Element ejb-container
setAttributeValue(ServerTags.CACHE_IDLE_TIMEOUT_IN_SECONDS, v, overwrite);
|
public void | setCacheIdleTimeoutInSeconds(java.lang.String v)Modify the CacheIdleTimeoutInSeconds of the Element ejb-container
setAttributeValue(ServerTags.CACHE_IDLE_TIMEOUT_IN_SECONDS, v);
|
public void | setCacheResizeQuantity(java.lang.String v, boolean overwrite)Modify the CacheResizeQuantity of the Element ejb-container
setAttributeValue(ServerTags.CACHE_RESIZE_QUANTITY, v, overwrite);
|
public void | setCacheResizeQuantity(java.lang.String v)Modify the CacheResizeQuantity of the Element ejb-container
setAttributeValue(ServerTags.CACHE_RESIZE_QUANTITY, v);
|
public void | setCommitOption(java.lang.String v, boolean overwrite)Modify the CommitOption of the Element ejb-container
setAttributeValue(ServerTags.COMMIT_OPTION, v, overwrite);
|
public void | setCommitOption(java.lang.String v)Modify the CommitOption of the Element ejb-container
setAttributeValue(ServerTags.COMMIT_OPTION, v);
|
public void | setEjbTimerService(EjbTimerService value)
this.setValue(EJB_TIMER_SERVICE, value);
|
public void | setElementProperty(ElementProperty[] value)
this.setValue(ELEMENT_PROPERTY, value);
|
public void | setMaxCacheSize(java.lang.String v, boolean overwrite)Modify the MaxCacheSize of the Element ejb-container
setAttributeValue(ServerTags.MAX_CACHE_SIZE, v, overwrite);
|
public void | setMaxCacheSize(java.lang.String v)Modify the MaxCacheSize of the Element ejb-container
setAttributeValue(ServerTags.MAX_CACHE_SIZE, v);
|
public void | setMaxPoolSize(java.lang.String v, boolean overwrite)Modify the MaxPoolSize of the Element ejb-container
setAttributeValue(ServerTags.MAX_POOL_SIZE, v, overwrite);
|
public void | setMaxPoolSize(java.lang.String v)Modify the MaxPoolSize of the Element ejb-container
setAttributeValue(ServerTags.MAX_POOL_SIZE, v);
|
public void | setPoolIdleTimeoutInSeconds(java.lang.String v, boolean overwrite)Modify the PoolIdleTimeoutInSeconds of the Element ejb-container
setAttributeValue(ServerTags.POOL_IDLE_TIMEOUT_IN_SECONDS, v, overwrite);
|
public void | setPoolIdleTimeoutInSeconds(java.lang.String v)Modify the PoolIdleTimeoutInSeconds of the Element ejb-container
setAttributeValue(ServerTags.POOL_IDLE_TIMEOUT_IN_SECONDS, v);
|
public void | setPoolResizeQuantity(java.lang.String v, boolean overwrite)Modify the PoolResizeQuantity of the Element ejb-container
setAttributeValue(ServerTags.POOL_RESIZE_QUANTITY, v, overwrite);
|
public void | setPoolResizeQuantity(java.lang.String v)Modify the PoolResizeQuantity of the Element ejb-container
setAttributeValue(ServerTags.POOL_RESIZE_QUANTITY, v);
|
public void | setRemovalTimeoutInSeconds(java.lang.String v, boolean overwrite)Modify the RemovalTimeoutInSeconds of the Element ejb-container
setAttributeValue(ServerTags.REMOVAL_TIMEOUT_IN_SECONDS, v, overwrite);
|
public void | setRemovalTimeoutInSeconds(java.lang.String v)Modify the RemovalTimeoutInSeconds of the Element ejb-container
setAttributeValue(ServerTags.REMOVAL_TIMEOUT_IN_SECONDS, v);
|
public void | setSessionStore(java.lang.String v, boolean overwrite)Modify the SessionStore of the Element ejb-container
setAttributeValue(ServerTags.SESSION_STORE, v, overwrite);
|
public void | setSessionStore(java.lang.String v)Modify the SessionStore of the Element ejb-container
setAttributeValue(ServerTags.SESSION_STORE, v);
|
public void | setSteadyPoolSize(java.lang.String v, boolean overwrite)Modify the SteadyPoolSize of the Element ejb-container
setAttributeValue(ServerTags.STEADY_POOL_SIZE, v, overwrite);
|
public void | setSteadyPoolSize(java.lang.String v)Modify the SteadyPoolSize of the Element ejb-container
setAttributeValue(ServerTags.STEADY_POOL_SIZE, v);
|
public void | setVictimSelectionPolicy(java.lang.String v, boolean overwrite)Modify the VictimSelectionPolicy of the Element ejb-container
setAttributeValue(ServerTags.VICTIM_SELECTION_POLICY, v, overwrite);
|
public void | setVictimSelectionPolicy(java.lang.String v)Modify the VictimSelectionPolicy of the Element ejb-container
setAttributeValue(ServerTags.VICTIM_SELECTION_POLICY, v);
|
public int | sizeElementProperty()
return this.size(ELEMENT_PROPERTY);
|
public void | validate()
|