正在加载图片...
Endpoint Operations Management Agent Plug-in Development Kit Custom MBean Plug-in Examples Here are examples of MBean plugins that you can use to assist you in creating your plug-ins tomcat-string-cache-plugin. xmL <service name="String Cache server= Sun JvM version= 1.5> property name= OBJECT_NAME <property name="AUTOINVENTORY_NAME value="%platform name% Tomcat String Cache"/> plugin type="autoinventory"/> <plugin type="measurement class="org. hyperic ha. product jmx. MxMeasurementPlugin"/> plugin type="control class="org. hyperic hq. product jmx. Mx ControLPlugin"/> <l-- reset is an MBean operation, set* are attribute setters -> <actions include="reset, setcacheSize, settrainThreshold"/ <properties> property name="cachesize"description="Cache Size"/> <property name="trainThreshold"description="TrainThreshold"/ properties> <filter name=" template value="S[]ECT_NAME]: Salias]"/> <metric name="Availability emplate="S[OBJECT_NAME: Availability indicator="true"/ <metric name="Cache Hits alias=" hitCount collectionType=" trendsup ndicator="true"/ </service> </plugin> tomcat-webapp-cache-plugin. xmL lugin> <servlce namer server ion="1.5"> property name= OBJECT_NAME re. IncCustom MBean Plug-in Examples Here are examples of MBean plugins that you can use to assist you in creating your plug-ins. tomcat-string-cache-plugin.xml <plugin> <service name="String Cache" server="Sun JVM" version="1.5"> <property name="OBJECT_NAME" value="Catalina:type=StringCache"/> <property name="AUTOINVENTORY_NAME" value="%platform.name% Tomcat String Cache"/> <plugin type="autoinventory"/> <plugin type="measurement" class="org.hyperic.hq.product.jmx.MxMeasurementPlugin"/> <plugin type="control" class="org.hyperic.hq.product.jmx.MxControlPlugin"/> <!-- reset is an MBean operation, set* are attribute setters --> <actions include="reset,setcacheSize,settrainThreshold"/> <properties> <property name="cacheSize" description="Cache Size"/> <property name="trainThreshold" description="TrainThreshold"/> </properties> <filter name="template" value="${OBJECT_NAME}:${alias}"/> <metric name="Availability" template="${OBJECT_NAME}:Availability" indicator="true"/> <metric name="Cache Hits" alias="hitCount" collectionType="trendsup" indicator="true"/> </service> </plugin> tomcat-webapp-cache-plugin.xml <plugin> <service name="WebApp Cache" server="Sun JVM" version="1.5"> <property name="OBJECT_NAME" Endpoint Operations Management Agent Plug-in Development Kit VMware, Inc. 9
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有