FileDocCategorySizeDatePackage
MonitoringService.javaAPI DocGlassfish v2 API8860Fri May 26 10:47:10 BST 2006com.sun.enterprise.config.serverbeans

MonitoringService

public class MonitoringService extends com.sun.enterprise.config.ConfigBean implements Serializable
This generated bean class MonitoringService matches the DTD element monitoring-service

Fields Summary
static Vector
comparators
private static final org.netbeans.modules.schema2beans.Version
runtimeVersion
public static final String
MODULE_MONITORING_LEVELS
public static final String
ELEMENT_PROPERTY
Constructors Summary
public MonitoringService()


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

		super(comparators, runtimeVersion);
		// Properties (see root bean comments for the bean graph)
		initPropertyTables(2);
		this.createProperty("module-monitoring-levels", MODULE_MONITORING_LEVELS, 
			Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, 
			ModuleMonitoringLevels.class);
		this.createAttribute(MODULE_MONITORING_LEVELS, "thread-pool", "ThreadPool", 
						AttrProp.CDATA,
						null, "OFF");
		this.createAttribute(MODULE_MONITORING_LEVELS, "orb", "Orb", 
						AttrProp.CDATA,
						null, "OFF");
		this.createAttribute(MODULE_MONITORING_LEVELS, "ejb-container", "EjbContainer", 
						AttrProp.CDATA,
						null, "OFF");
		this.createAttribute(MODULE_MONITORING_LEVELS, "web-container", "WebContainer", 
						AttrProp.CDATA,
						null, "OFF");
		this.createAttribute(MODULE_MONITORING_LEVELS, "transaction-service", "TransactionService", 
						AttrProp.CDATA,
						null, "OFF");
		this.createAttribute(MODULE_MONITORING_LEVELS, "http-service", "HttpService", 
						AttrProp.CDATA,
						null, "OFF");
		this.createAttribute(MODULE_MONITORING_LEVELS, "jdbc-connection-pool", "JdbcConnectionPool", 
						AttrProp.CDATA,
						null, "OFF");
		this.createAttribute(MODULE_MONITORING_LEVELS, "connector-connection-pool", "ConnectorConnectionPool", 
						AttrProp.CDATA,
						null, "OFF");
		this.createAttribute(MODULE_MONITORING_LEVELS, "connector-service", "ConnectorService", 
						AttrProp.CDATA,
						null, "OFF");
		this.createAttribute(MODULE_MONITORING_LEVELS, "jms-service", "JmsService", 
						AttrProp.CDATA,
						null, "OFF");
		this.createAttribute(MODULE_MONITORING_LEVELS, "jvm", "Jvm", 
						AttrProp.CDATA,
						null, "OFF");
		this.createProperty("property", ELEMENT_PROPERTY, 
			Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY, 
			ElementProperty.class);
		this.createAttribute(ELEMENT_PROPERTY, "name", "Name", 
						AttrProp.CDATA | AttrProp.REQUIRED,
						null, null);
		this.createAttribute(ELEMENT_PROPERTY, "value", "Value", 
						AttrProp.CDATA | AttrProp.REQUIRED,
						null, null);
		this.initialize(options);
	
Methods Summary
public static voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
public intaddElementProperty(ElementProperty value)

		return addElementProperty(value, true);
	
public intaddElementProperty(ElementProperty value, boolean overwrite)

		ElementProperty old = getElementPropertyByName(value.getName());
		if(old != null) {
			throw new ConfigException(StringManager.getManager(MonitoringService.class).getString("cannotAddDuplicate",  "ElementProperty"));
		}
		return this.addValue(ELEMENT_PROPERTY, value, overwrite);
	
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("ModuleMonitoringLevels");	// NOI18N
		n = (org.netbeans.modules.schema2beans.BaseBean) this.getModuleMonitoringLevels();
		if (n != null)
			n.dump(str, indent + "\t");	// NOI18N
		else
			str.append(indent+"\tnull");	// NOI18N
		this.dumpAttributes(MODULE_MONITORING_LEVELS, 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.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("MonitoringService\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public static java.lang.StringgetDefaultAttributeValue(java.lang.String attr)

		if(attr == null) return null;
		attr = attr.trim();
	return null;
	
public ElementPropertygetElementProperty(int index)

		return (ElementProperty)this.getValue(ELEMENT_PROPERTY, index);
	
public ElementProperty[]getElementProperty()

		return (ElementProperty[])this.getValues(ELEMENT_PROPERTY);
	
public ElementPropertygetElementPropertyByName(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 ModuleMonitoringLevelsgetModuleMonitoringLevels()

		return (ModuleMonitoringLevels)this.getValue(MODULE_MONITORING_LEVELS);
	
protected java.lang.StringgetRelativeXPath()
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 = "monitoring-service";
	    return (null != ret ? ret.trim() : null);
	
voidinitialize(int options)


	
public ElementPropertynewElementProperty()
Create a new bean using it's default constructor. This does not add it to any bean graph.

		return new ElementProperty();
	
public ModuleMonitoringLevelsnewModuleMonitoringLevels()
Create a new bean using it's default constructor. This does not add it to any bean graph.

		return new ModuleMonitoringLevels();
	
public static voidremoveComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.remove(c);
	
public intremoveElementProperty(ElementProperty value)

		return this.removeValue(ELEMENT_PROPERTY, value);
	
public intremoveElementProperty(ElementProperty value, boolean overwrite)

		return this.removeValue(ELEMENT_PROPERTY, value, overwrite);
	
public voidsetElementProperty(ElementProperty[] value)

		this.setValue(ELEMENT_PROPERTY, value);
	
public voidsetModuleMonitoringLevels(ModuleMonitoringLevels value)

		this.setValue(MODULE_MONITORING_LEVELS, value);
	
public intsizeElementProperty()

		return this.size(ELEMENT_PROPERTY);
	
public voidvalidate()