modules/plugins/jboss-cache/src/main/java/org/rhq/plugins/jbosscache/JGroupsChannelComponent.java | 64 ++++ modules/plugins/jboss-cache/src/main/java/org/rhq/plugins/jbosscache/JGroupsChannelDiscovery.java | 143 ++++++++++ modules/plugins/jboss-cache/src/main/java/org/rhq/plugins/jbosscache/JGroupsRepoComponent.java | 64 ---- modules/plugins/jboss-cache/src/main/java/org/rhq/plugins/jbosscache/JGroupsRepoDiscovery.java | 143 ---------- modules/plugins/jboss-cache/src/main/resources/META-INF/rhq-plugin.xml | 106 +++---- 5 files changed, 260 insertions(+), 260 deletions(-)
New commits: commit f0b6101bf98bac9c3a64a625ba84692770bdb7e0 Author: Heiko W. Rupp hwr@redhat.com Date: Thu Jul 22 11:41:45 2010 +0200
BZ 617131 - roll back the 'channel' -> 'repo' renaming introduced in 29a4fadac497136b7a6360eed0821984baf35c55
diff --git a/modules/plugins/jboss-cache/src/main/java/org/rhq/plugins/jbosscache/JGroupsChannelComponent.java b/modules/plugins/jboss-cache/src/main/java/org/rhq/plugins/jbosscache/JGroupsChannelComponent.java new file mode 100644 index 0000000..4bf06a9 --- /dev/null +++ b/modules/plugins/jboss-cache/src/main/java/org/rhq/plugins/jbosscache/JGroupsChannelComponent.java @@ -0,0 +1,64 @@ +/* + * Jopr Management Platform + * Copyright (C) 2005-2008 Red Hat, Inc. + * All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License, version 2, as + * published by the Free Software Foundation, and/or the GNU Lesser + * General Public License, version 2.1, also as published by the Free + * Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License and the GNU Lesser General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License + * and the GNU Lesser General Public License along with this program; + * if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ +package org.rhq.plugins.jbosscache; + +import org.rhq.core.domain.measurement.AvailabilityType; +import org.rhq.core.pluginapi.inventory.ResourceComponent; +import org.rhq.core.pluginapi.inventory.ResourceContext; + +/** + * Resource component that deals with JGroups channels + * + * @author Heiko W. Rupp + */ +public class JGroupsChannelComponent implements ResourceComponent<JBossCacheComponent> { + + ResourceContext<JBossCacheComponent> context; + + /** + * This one does not (yet) have an availability of its own, but just follows the + * JBossCache instance it is associated with. + * @see org.rhq.core.pluginapi.inventory.ResourceComponent#getAvailability() + */ + public AvailabilityType getAvailability() { + return context.getParentResourceComponent().getAvailability(); + } + + /* (non-Javadoc) + * @see org.rhq.core.pluginapi.inventory.ResourceComponent#start(org.rhq.core.pluginapi.inventory.ResourceContext) + */ + public void start(ResourceContext<JBossCacheComponent> context) throws Exception { + // TODO Auto-generated method stub + this.context = context; + + } + + /* (non-Javadoc) + * @see org.rhq.core.pluginapi.inventory.ResourceComponent#stop() + */ + public void stop() { + // TODO Auto-generated method stub + + } + +} diff --git a/modules/plugins/jboss-cache/src/main/java/org/rhq/plugins/jbosscache/JGroupsChannelDiscovery.java b/modules/plugins/jboss-cache/src/main/java/org/rhq/plugins/jbosscache/JGroupsChannelDiscovery.java new file mode 100644 index 0000000..ccfb985 --- /dev/null +++ b/modules/plugins/jboss-cache/src/main/java/org/rhq/plugins/jbosscache/JGroupsChannelDiscovery.java @@ -0,0 +1,143 @@ +/* + * Jopr Management Platform + * Copyright (C) 2005-2008 Red Hat, Inc. + * All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License, version 2, as + * published by the Free Software Foundation, and/or the GNU Lesser + * General Public License, version 2.1, also as published by the Free + * Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License and the GNU Lesser General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License + * and the GNU Lesser General Public License along with this program; + * if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ +package org.rhq.plugins.jbosscache; + +import java.io.File; +import java.io.IOException; +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +import javax.management.MalformedObjectNameException; +import javax.management.ObjectName; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.jdom.Document; +import org.jdom.Element; +import org.jdom.JDOMException; +import org.jdom.input.SAXBuilder; +import org.mc4j.ems.connection.EmsConnection; + +import org.rhq.core.pluginapi.inventory.DiscoveredResourceDetails; +import org.rhq.core.pluginapi.inventory.InvalidPluginConfigurationException; +import org.rhq.core.pluginapi.inventory.ResourceDiscoveryComponent; +import org.rhq.core.pluginapi.inventory.ResourceDiscoveryContext; +import org.rhq.plugins.jbossas.util.DeploymentUtility; + +/** + * This component will discover JGroups channels within a JBoss Cache instance. + * The deal here is that we want to have zero or one JGroups channels per cache. + * We will look at the Cache config and see if it contains a + * <attribute name="ClusterConfig"> element. If so, we return a JGroups instance, + * else we return nothing. + * + * @author Heiko W. Rupp + */ +public class JGroupsChannelDiscovery implements ResourceDiscoveryComponent { + + private final Log log = LogFactory.getLog(JGroupsChannelDiscovery.class); + + /* (non-Javadoc) + * @see org.rhq.core.pluginapi.inventory.ResourceDiscoveryComponent#discoverResources(org.rhq.core.pluginapi.inventory.ResourceDiscoveryContext) + */ + public Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext context) + throws InvalidPluginConfigurationException, Exception { + + JBossCacheComponent parent = (JBossCacheComponent) context.getParentResourceComponent(); + EmsConnection emsConnection = parent.getEmsConnection(); + String resKey = context.getParentResourceContext().getResourceKey(); + File file = DeploymentUtility.getDescriptorFile(emsConnection, resKey); + if (file == null) { + log.warn("File is null for " + resKey); + return null; + } + + boolean found = false; + try { + SAXBuilder builder = new SAXBuilder(); + Document doc = builder.build(file); + + // Get the root element + Element root = doc.getRootElement(); + + // XPath xpath = XPathFactory.newInstance().newXPath(); + // TODO this expression would need to work against non-normalized versions of the name attribute + // XPathExpression xp = xpath + // .compile("/server/mbean[@name='" + resKey + "']/attribute[@name='ClusterConfig']"); + // InputSource inputSource = new InputSource(new FileInputStream(file)); + // NodeList cconfig = (NodeList) xp.evaluate(inputSource, XPathConstants.NODESET); + // if (cconfig != null && cconfig.getLength() > 0) + // found = true; + + // First look for the right mbean of *our* cache - the file may contain more than one + + // TODO move code in helper, as we'll need it later again + // TODO replace the access of 'our' ClusterConfig attribute with an XPath expression + for (Object mbeanObj : root.getChildren("mbean")) { + if (mbeanObj instanceof Element) { + Element mbean = (Element) mbeanObj; + String nameAttrib = mbean.getAttributeValue("name"); + try { + ObjectName on = new ObjectName(nameAttrib); + nameAttrib = on.getCanonicalName(); + } catch (MalformedObjectNameException e) { + log.warn("Can't canonicalize " + nameAttrib); + } + if (nameAttrib.equals(resKey)) { + // our cache instance, look for the right attribute + List children = mbean.getChildren("attribute"); + for (Object childObj : children) { + if (childObj instanceof Element) { + Element child = (Element) childObj; + String name = child.getAttributeValue("name"); + if (name.equals("ClusterConfig")) + found = true; + } + } + } + } + } + } catch (IOException e) { + log.error("IO error occurred while reading file: " + file, e); + } catch (JDOMException e) { + log.error("Parsing error occurred while reading file: " + file, e); + } + + if (found) { + DiscoveredResourceDetails detail = new DiscoveredResourceDetails(context.getResourceType(), // Resource Type + resKey + "jgroupsChannel", // ResourceKey TODO good choice ? + "JGroups channel", // resource name + null, // Version + "JGroups config for parent JBossCache", // description + context.getDefaultPluginConfiguration(), // config + null); // process info + Set<DiscoveredResourceDetails> res = new HashSet<DiscoveredResourceDetails>(1); + res.add(detail); + return res; + } + + return null; + } + +} diff --git a/modules/plugins/jboss-cache/src/main/java/org/rhq/plugins/jbosscache/JGroupsRepoComponent.java b/modules/plugins/jboss-cache/src/main/java/org/rhq/plugins/jbosscache/JGroupsRepoComponent.java deleted file mode 100644 index 85375ac..0000000 --- a/modules/plugins/jboss-cache/src/main/java/org/rhq/plugins/jbosscache/JGroupsRepoComponent.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Jopr Management Platform - * Copyright (C) 2005-2008 Red Hat, Inc. - * All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License, version 2, as - * published by the Free Software Foundation, and/or the GNU Lesser - * General Public License, version 2.1, also as published by the Free - * Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License and the GNU Lesser General Public License - * for more details. - * - * You should have received a copy of the GNU General Public License - * and the GNU Lesser General Public License along with this program; - * if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ -package org.rhq.plugins.jbosscache; - -import org.rhq.core.domain.measurement.AvailabilityType; -import org.rhq.core.pluginapi.inventory.ResourceComponent; -import org.rhq.core.pluginapi.inventory.ResourceContext; - -/** - * Resource component that deals with JGroups repos - * - * @author Heiko W. Rupp - */ -public class JGroupsRepoComponent implements ResourceComponent<JBossCacheComponent> { - - ResourceContext<JBossCacheComponent> context; - - /** - * This one does not (yet) have an availability of its own, but just follows the - * JBossCache instance it is associated with. - * @see org.rhq.core.pluginapi.inventory.ResourceComponent#getAvailability() - */ - public AvailabilityType getAvailability() { - return context.getParentResourceComponent().getAvailability(); - } - - /* (non-Javadoc) - * @see org.rhq.core.pluginapi.inventory.ResourceComponent#start(org.rhq.core.pluginapi.inventory.ResourceContext) - */ - public void start(ResourceContext<JBossCacheComponent> context) throws Exception { - // TODO Auto-generated method stub - this.context = context; - - } - - /* (non-Javadoc) - * @see org.rhq.core.pluginapi.inventory.ResourceComponent#stop() - */ - public void stop() { - // TODO Auto-generated method stub - - } - -} diff --git a/modules/plugins/jboss-cache/src/main/java/org/rhq/plugins/jbosscache/JGroupsRepoDiscovery.java b/modules/plugins/jboss-cache/src/main/java/org/rhq/plugins/jbosscache/JGroupsRepoDiscovery.java deleted file mode 100644 index 3436aa1..0000000 --- a/modules/plugins/jboss-cache/src/main/java/org/rhq/plugins/jbosscache/JGroupsRepoDiscovery.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Jopr Management Platform - * Copyright (C) 2005-2008 Red Hat, Inc. - * All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License, version 2, as - * published by the Free Software Foundation, and/or the GNU Lesser - * General Public License, version 2.1, also as published by the Free - * Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License and the GNU Lesser General Public License - * for more details. - * - * You should have received a copy of the GNU General Public License - * and the GNU Lesser General Public License along with this program; - * if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ -package org.rhq.plugins.jbosscache; - -import java.io.File; -import java.io.IOException; -import java.util.HashSet; -import java.util.List; -import java.util.Set; - -import javax.management.MalformedObjectNameException; -import javax.management.ObjectName; - -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; -import org.jdom.Document; -import org.jdom.Element; -import org.jdom.JDOMException; -import org.jdom.input.SAXBuilder; -import org.mc4j.ems.connection.EmsConnection; - -import org.rhq.core.pluginapi.inventory.DiscoveredResourceDetails; -import org.rhq.core.pluginapi.inventory.InvalidPluginConfigurationException; -import org.rhq.core.pluginapi.inventory.ResourceDiscoveryComponent; -import org.rhq.core.pluginapi.inventory.ResourceDiscoveryContext; -import org.rhq.plugins.jbossas.util.DeploymentUtility; - -/** - * This component will discover JGroups repos within a JBoss Cache instance. - * The deal here is that we want to have zero or one JGroups repos per cache. - * We will look at the Cache config and see if it contains a - * <attribute name="ClusterConfig"> element. If so, we return a JGroups instance, - * else we return nothing. - * - * @author Heiko W. Rupp - */ -public class JGroupsRepoDiscovery implements ResourceDiscoveryComponent { - - private final Log log = LogFactory.getLog(JGroupsRepoDiscovery.class); - - /* (non-Javadoc) - * @see org.rhq.core.pluginapi.inventory.ResourceDiscoveryComponent#discoverResources(org.rhq.core.pluginapi.inventory.ResourceDiscoveryContext) - */ - public Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext context) - throws InvalidPluginConfigurationException, Exception { - - JBossCacheComponent parent = (JBossCacheComponent) context.getParentResourceComponent(); - EmsConnection emsConnection = parent.getEmsConnection(); - String resKey = context.getParentResourceContext().getResourceKey(); - File file = DeploymentUtility.getDescriptorFile(emsConnection, resKey); - if (file == null) { - log.warn("File is null for " + resKey); - return null; - } - - boolean found = false; - try { - SAXBuilder builder = new SAXBuilder(); - Document doc = builder.build(file); - - // Get the root element - Element root = doc.getRootElement(); - - // XPath xpath = XPathFactory.newInstance().newXPath(); - // TODO this expression would need to work against non-normalized versions of the name attribute - // XPathExpression xp = xpath - // .compile("/server/mbean[@name='" + resKey + "']/attribute[@name='ClusterConfig']"); - // InputSource inputSource = new InputSource(new FileInputStream(file)); - // NodeList cconfig = (NodeList) xp.evaluate(inputSource, XPathConstants.NODESET); - // if (cconfig != null && cconfig.getLength() > 0) - // found = true; - - // First look for the right mbean of *our* cache - the file may contain more than one - - // TODO move code in helper, as we'll need it later again - // TODO replace the access of 'our' ClusterConfig attribute with an XPath expression - for (Object mbeanObj : root.getChildren("mbean")) { - if (mbeanObj instanceof Element) { - Element mbean = (Element) mbeanObj; - String nameAttrib = mbean.getAttributeValue("name"); - try { - ObjectName on = new ObjectName(nameAttrib); - nameAttrib = on.getCanonicalName(); - } catch (MalformedObjectNameException e) { - log.warn("Can't canonicalize " + nameAttrib); - } - if (nameAttrib.equals(resKey)) { - // our cache instance, look for the right attribute - List children = mbean.getChildren("attribute"); - for (Object childObj : children) { - if (childObj instanceof Element) { - Element child = (Element) childObj; - String name = child.getAttributeValue("name"); - if (name.equals("ClusterConfig")) - found = true; - } - } - } - } - } - } catch (IOException e) { - log.error("IO error occurred while reading file: " + file, e); - } catch (JDOMException e) { - log.error("Parsing error occurred while reading file: " + file, e); - } - - if (found) { - DiscoveredResourceDetails detail = new DiscoveredResourceDetails(context.getResourceType(), // Resource Type - resKey + "jgroupsRepo", // ResourceKey TODO good choice ? - "JGroups repo", // resource name - null, // Version - "JGroups config for parent JBossCache", // description - context.getDefaultPluginConfiguration(), // config - null); // process info - Set<DiscoveredResourceDetails> res = new HashSet<DiscoveredResourceDetails>(1); - res.add(detail); - return res; - } - - return null; - } - -} diff --git a/modules/plugins/jboss-cache/src/main/resources/META-INF/rhq-plugin.xml b/modules/plugins/jboss-cache/src/main/resources/META-INF/rhq-plugin.xml index fe28e78..2ef0f4f 100644 --- a/modules/plugins/jboss-cache/src/main/resources/META-INF/rhq-plugin.xml +++ b/modules/plugins/jboss-cache/src/main/resources/META-INF/rhq-plugin.xml @@ -16,8 +16,8 @@ discovery="JBossCacheSubsystemDiscovery" description="The JBoss Cache instances on this server" singleton="true" - > - + > + <runs-inside> <parent-resource-type name="JBossAS Server" plugin="JBossAS"/> </runs-inside> @@ -28,28 +28,28 @@ description="Statistics for JBossCache" createDeletePolicy="create-only" > - + <plugin-configuration> <c:simple-property name="objectName" readOnly="true" default="*:cache-interceptor=CacheMgmtInterceptor,*|*:treecache-interceptor=CacheMgmtInterceptor,*"/> <c:simple-property name="isTreeCache" readOnly="true" type="boolean" default="false" description="Is this a TreeCache instance or a POJO Cache"/> </plugin-configuration> - + <operation name="resetStatistics" displayName="Reset Statistics" description="Resets all statistics" /> <operation name="listAssociatedMBeans" displayName="List associated MBeans" description="List all MBeans that form this Cache instance"> <results><c:simple-property name="mbeans"></c:simple-property></results> </operation> - + <metric property=":numberOfNodes" displayName="Number of Nodes" displayType="summary" /> - - <metric property="ActivationInterceptor:activations" displayName="Activations" + + <metric property="ActivationInterceptor:activations" displayName="Activations" description="Number of passivated nodes that have been activated."/> - - <metric property="CacheLoaderInterceptor:cacheLoaderLoads" displayName="Cache Loader Loads" + + <metric property="CacheLoaderInterceptor:cacheLoaderLoads" displayName="Cache Loader Loads" measurementType="trendsup" description="Number of nodes loaded through a cache loader."/> <metric property="CacheLoaderInterceptor:cacheLoaderMisses" displayName="Cache Loader Misses" measurementType="trendsup" description="Number of unsuccessful attempts to load a node through a cache loader."/> - - <metric property="CacheMgmtInterceptor:hits" displayName="Cache Hits" category="performance" + + <metric property="CacheMgmtInterceptor:hits" displayName="Cache Hits" category="performance" measurementType="trendsup" description="Number of successful attribute retrievals."/> <metric property="CacheMgmtInterceptor:misses" displayName="Cache Misses" category="performance" measurementType="trendsup" description="Number of unsuccessful attribute retrievals."/> @@ -57,44 +57,44 @@ description="Ratio of hits to hits and misses. A hit is a get attribute operation that results in an object being returned to the client. The retrieval may be from a cache loader if the entry isn't in the local cache."/> <metric property="CacheMgmtInterceptor:readWriteRatio" displayName="Read-write-ratio" displayType="summary" description="Ratio of read operations to write operations. This is the ratio of cache hits and misses to cache stores."/> - <metric property="CacheMgmtInterceptor:stores" displayName="Cache Stores" category="performance" + <metric property="CacheMgmtInterceptor:stores" displayName="Cache Stores" category="performance" measurementType="trendsup" description="Number of attribute store operations."/> - <metric property="CacheMgmtInterceptor:evictions" displayName="Cache Evictions" category="performance" + <metric property="CacheMgmtInterceptor:evictions" displayName="Cache Evictions" category="performance" measurementType="trendsup" description="Number of node evictions."/> - <metric property="CacheMgmtInterceptor:numberOfAttributes" displayName="Number of Attributes" + <metric property="CacheMgmtInterceptor:numberOfAttributes" displayName="Number of Attributes" category="performance" description="Number of attributes currently cached." /> - <metric property="CacheMgmtInterceptor:numberOfNodes" displayName="Number of Nodes cached" + <metric property="CacheMgmtInterceptor:numberOfNodes" displayName="Number of Nodes cached" category="performance" description="Number of nodes currently cached."/> - <metric property="CacheMgmtInterceptor:elapsedTime" displayName="Elapsed Time" category="utilization" - measurementType="trendsup" description="Number of seconds that the cache has been running." + <metric property="CacheMgmtInterceptor:elapsedTime" displayName="Elapsed Time" category="utilization" + measurementType="trendsup" description="Number of seconds that the cache has been running." units="seconds"/> - <metric property="CacheMgmtInterceptor:timeSinceReset" displayName="Time since reset" category="utilization" - measurementType="trendsup" description="Number of seconds since the cache statistics have been reset." + <metric property="CacheMgmtInterceptor:timeSinceReset" displayName="Time since reset" category="utilization" + measurementType="trendsup" description="Number of seconds since the cache statistics have been reset." units="seconds"/> - <metric property="CacheMgmtInterceptor:averageReadTime" displayName="Average Read Time" category="performance" - description="Average time in milliseconds to retrieve a cache attribute, including unsuccessful attribute retrievals." + <metric property="CacheMgmtInterceptor:averageReadTime" displayName="Average Read Time" category="performance" + description="Average time in milliseconds to retrieve a cache attribute, including unsuccessful attribute retrievals." units="milliseconds"/> - <metric property="CacheMgmtInterceptor:averageWriteTime" displayName="Average Write Time" - category="performance" description="Average time in milliseconds to write a cache attribute." + <metric property="CacheMgmtInterceptor:averageWriteTime" displayName="Average Write Time" + category="performance" description="Average time in milliseconds to write a cache attribute." units="milliseconds"/> - - <metric property="CacheStoreInterceptor:cacheLoaderStores" displayName="Cache Loader Stores" + + <metric property="CacheStoreInterceptor:cacheLoaderStores" displayName="Cache Loader Stores" category="utilization" description="Number of nodes written to the cache loader." measurementType="trendsup" /> - - <metric property="InvalidationInterceptor:invalidations" displayName="Invalidataions" - category="utilization" description="Number of cached nodes that have been invalidated." + + <metric property="InvalidationInterceptor:invalidations" displayName="Invalidataions" + category="utilization" description="Number of cached nodes that have been invalidated." measurementType="trendsup" /> - - <metric property="PassivationInterceptor:passivations" displayName="Passivations" category="utilization" + + <metric property="PassivationInterceptor:passivations" displayName="Passivations" category="utilization" description="Number of cached nodes that have been passivated." measurementType="trendsup"/> - - <metric property="TxInterceptor:prepares" displayName="Tx prepares" - description="Number of transaction prepare operations performed." measurementType="trendsup" /> - <metric property="TxInterceptor:commits" displayName="Tx commits" - description="Number of transaction commit operations performed." measurementType="trendsup" /> - <metric property="TxInterceptor:rollbacks" displayName="Tx rollbacks" - description="Number of transaction rollback operations performed." measurementType="trendsup" /> - + + <metric property="TxInterceptor:prepares" displayName="Tx prepares" + description="Number of transaction prepare operations performed." measurementType="trendsup" /> + <metric property="TxInterceptor:commits" displayName="Tx commits" + description="Number of transaction commit operations performed." measurementType="trendsup" /> + <metric property="TxInterceptor:rollbacks" displayName="Tx rollbacks" + description="Number of transaction rollback operations performed." measurementType="trendsup" /> + <resource-configuration> <c:simple-property name="Flavour" default="treecache" description="Is this going to be a Pojo Cache or a Tree Cache"> @@ -103,7 +103,7 @@ <c:option name="Tree Cache" value="treecache" default="true"/> </c:property-options> </c:simple-property> - <c:simple-property name="TransactionManagerLookupClass" + <c:simple-property name="TransactionManagerLookupClass" default="org.jboss.cache.JBossTransactionManagerLookup" description="What class should be used to get a transaction manager instance"/> <c:simple-property name="IsolationLevel" default="REPEATABLE_READ" @@ -132,39 +132,39 @@ <c:simple-property name="UseReplQueue" type="boolean" default="false" description="Just used for async repl: use a replication queue "/> <c:simple-property name="ReplQueueInterval" type="integer" default="100" - description="Replication interval for replication queue (in ms) "/> + description="Replication interval for replication queue (in ms) "/> <c:simple-property name="ReplQueueMaxElements" type="integer" default="10" description="Max number of elements which trigger replication" /> <c:simple-property name="ClusterName" default="DefaultPartition" description="Name of cluster. Needs to be the same for all clusters, in order to find each other"/> - - <c:simple-property name="FetchStateOnStartup" type="boolean" default="true" + + <c:simple-property name="FetchStateOnStartup" type="boolean" default="true" description="Whether or not to fetch state on joining a cluster"/> - <c:simple-property name="InitialStateRetrievalTimeout" type="long" + <c:simple-property name="InitialStateRetrievalTimeout" type="long" description=" The max amount of time (in milliseconds) we wait until the initial state (ie. the contents of the cache) are retrieved from - existing members in a clustered environment" default="5000"/> + existing members in a clustered environment" default="5000"/> <c:simple-property name="SyncReplTimeout" type="long" default="15000" description="Number of milliseconds to wait until all responses for a synchronous call have been received."/> <c:simple-property name="LockAcquisitionTimeout" type="long" default="10000" description="Max number of milliseconds to wait for a lock acquisition."/> - + </resource-configuration> <help> <![CDATA[ - <p>Please note that the number of possible metrics varies depending on the configuration and flavour of + <p>Please note that the number of possible metrics varies depending on the configuration and flavour of Cache used.</p> ]]> </help> - - <service name="JGroupsRepo" - description="The underlying JGroups repo for this cache instance" - class="JGroupsRepoComponent" - discovery="JGroupsRepoDiscovery"> + + <service name="JGroupsChannel" + description="The underlying JGroups channel for this cache instance" + class="JGroupsChannelComponent" + discovery="JGroupsChannelDiscovery"> </service> </service> - + </server> - + </plugin> \ No newline at end of file
rhq-commits@lists.fedorahosted.org