Fields Summary |
---|
private static final String | PROPNAME_MAXPOOLSIZE |
private static final String | PROPNAME_STEADYPOOLSIZE |
private static final String | PROPNAME_MAXWAITTIMEINMILLIS |
private static final String | PROPNAME_IDLETIMEOUTINSECONDS |
private static final String | PROPNAME_JNDINAME |
private static final String | PROPNAME_DESCRIPTION |
protected SunConnector | fileBean |
protected ResourceAdapter | ra |
protected com.sun.enterprise.tools.common.properties.RoleMapElement | roleMap |
protected com.sun.enterprise.tools.common.properties.PropertyElements | propertyElements |
public static final String | DEFAULT_MAP_ID |
Methods Summary |
---|
public java.lang.String | getDescription()
return ra.getDescription();
|
public int | getIdleTimeoutInSeconds()
return Integer.parseInt(ra.getAttributeValue("idle-timeout-in-seconds")); //NOI18N
|
public java.lang.String | getJndiName()
return ra.getAttributeValue("jndi-name"); //NOI18N
|
public int | getMaxPoolSize()
return Integer.parseInt(ra.getAttributeValue("max-pool-size")); //NOI18N
|
public int | getMaxWaitTimeInMillis()
return Integer.parseInt(ra.getAttributeValue("max-wait-time-in-millis")); //NOI18N
|
public com.sun.enterprise.tools.common.properties.PropertyElements | getPropertyElements()
//System.out.println("in get property elements: " + propertyElements.hashCode()); //NOI18N
return propertyElements;
|
public com.sun.enterprise.tools.common.properties.RoleMapElement | getRoleMap()
return roleMap;
|
public int | getSteadyPoolSize()
return Integer.parseInt(ra.getAttributeValue("steady-pool-size")); //NOI18N
|
public SunConnector | getSunConnector()
return fileBean;
|
private void | initListeners()
getVCS().addVetoableChangeListener(PROPNAME_MAXPOOLSIZE, greaterThanNegOne);
getVCS().addVetoableChangeListener(PROPNAME_STEADYPOOLSIZE, greaterThanNegOne);
getVCS().addVetoableChangeListener(PROPNAME_MAXWAITTIMEINMILLIS, greaterThanNegOne);
getVCS().addVetoableChangeListener(PROPNAME_IDLETIMEOUTINSECONDS, greaterThanNegOne);
getVCS().addVetoableChangeListener(PROPNAME_JNDINAME, notNull);
|
public static void | main(java.lang.String[] args)
try {
IasConnectorOneZero bean = new IasConnectorOneZero(null);
bean.outTo(System.out); //NOI18N
bean.setDescription("test setDescription"); // NOI18N
bean.setIdleTimeoutInSeconds(1);
bean.setJndiName("testSetJndiName"); // NOI18N
bean.setMaxPoolSize(2);
bean.setMaxWaitTimeInMillis(-3);
bean.setSteadyPoolSize(4);
bean.outTo(System.out); //NOI18N
}
catch (Throwable t) {
t.printStackTrace();
}
|
public void | outTo(java.io.OutputStream os)
fileBean.write(os);
|
public void | setDescription(java.lang.String newDesc)
String elementName = "description"; // NOI18N
String propName = PROPNAME_DESCRIPTION;
doElementSetProcessing(ra, newDesc, elementName, propName);
|
public void | setIdleTimeoutInSeconds(int newVal)
String attrName = "idle-timeout-in-seconds"; // NOI18N
String propName = PROPNAME_IDLETIMEOUTINSECONDS;
doAttrSetProcessing(ra, newVal,attrName, propName);
|
public void | setJndiName(java.lang.String newName)
String attrName = "jndi-name"; // NOI18N
String propName = PROPNAME_JNDINAME;
doAttrSetProcessing(ra, newName, attrName, propName);
|
public void | setMaxPoolSize(int newVal)
String attrName = "max-pool-size"; // NOI18N
String propName = PROPNAME_MAXPOOLSIZE;
doAttrSetProcessing(ra, newVal,attrName, propName);
|
public void | setMaxWaitTimeInMillis(int newVal)
String attrName = "max-wait-time-in-millis"; // NOI18N
String propName = PROPNAME_MAXWAITTIMEINMILLIS;
doAttrSetProcessing(ra, newVal,attrName, propName);
|
public void | setPropertyElements(com.sun.enterprise.tools.common.properties.PropertyElements newVal)
// why doesn't this get called
//
//System.out.println("in set property elements: " + newVal); //NOI18N
PropertyElements oldVal = propertyElements;
fireMyVetoableChange("propertyElements", oldVal, newVal); // NOI18N
propertyElements = newVal;
ra = newVal.getResourceAdapter();
fileBean.setResourceAdapter(ra);
fireMyPropertyChange("propertyElements", oldVal, newVal); // NOI18N
|
public void | setRoleMap(com.sun.enterprise.tools.common.properties.RoleMapElement newVal)
// why doesn't this get called
//
RoleMapElement oldVal = roleMap;
fireMyVetoableChange("roleMap", oldVal, newVal); // NOI18N
roleMap = newVal;
fileBean.setRoleMap(newVal.getRoleMap());
fireMyPropertyChange("roleMap", oldVal, newVal); // NOI18N
|
public void | setSteadyPoolSize(int newVal)
String attrName = "steady-pool-size"; // NOI18N
String propName = PROPNAME_STEADYPOOLSIZE;
doAttrSetProcessing(ra, newVal,attrName, propName);
|