[jboss-cvs] JBossCache/src/org/jboss/cache/jmx ...

Brian Stansberry brian.stansberry at jboss.com
Wed May 23 01:22:46 EDT 2007


  User: bstansberry
  Date: 07/05/23 01:22:46

  Modified:    src/org/jboss/cache/jmx  CacheLegacyJmxWrapper.java
  Log:
  Add getClusterConfig
  Cache the passed in Elements so we can return via the getter
  
  Revision  Changes    Path
  1.8       +11 -1     JBossCache/src/org/jboss/cache/jmx/CacheLegacyJmxWrapper.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CacheLegacyJmxWrapper.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/jmx/CacheLegacyJmxWrapper.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- CacheLegacyJmxWrapper.java	11 May 2007 22:40:59 -0000	1.7
  +++ CacheLegacyJmxWrapper.java	23 May 2007 05:22:46 -0000	1.8
  @@ -44,13 +44,14 @@
    * configuration of the cache using the JBoss AS 4.x JMX microkernel.
    *
    * @author <a href="brian.stansberry at jboss.com">Brian Stansberry</a>
  - * @version $Revision: 1.7 $
  + * @version $Revision: 1.8 $
    */
   public class CacheLegacyJmxWrapper extends CacheJmxWrapper implements CacheLegacyJmxWrapperMBean, NotificationBroadcaster
   {
      private Element buddyReplConfig;
      private Element evictionConfig;
      private Element cacheLoaderConfig;
  +   private Element clusterConfig;
      private ObjectName multiplexerService;
   
      public CacheLegacyJmxWrapper()
  @@ -137,6 +138,11 @@
         return getConfiguration().getClusterConfig();
      }
   
  +   public Element getClusterConfig()
  +   {
  +      return clusterConfig;
  +   }
  +
      public Element getEvictionPolicyConfig()
      {
         return evictionConfig;
  @@ -250,6 +256,7 @@
            brc = XmlConfigurationParser.parseBuddyReplicationConfig(config);
         }
         getConfiguration().setBuddyReplicationConfig(brc);
  +      this.buddyReplConfig = config;
      }
   
      public void setCacheLoaderConfiguration(Element cache_loader_config)
  @@ -260,6 +267,7 @@
            clc = XmlConfigurationParser.parseCacheLoaderConfig(cache_loader_config);
         }
         getConfiguration().setCacheLoaderConfig(clc);
  +      this.cacheLoaderConfig = cache_loader_config;
      }
   
      public void setCacheMode(String mode) throws Exception
  @@ -275,6 +283,7 @@
            props = XmlConfigurationParser.parseClusterConfigXml(config);
         }
         getConfiguration().setClusterConfig(props);
  +      this.clusterConfig = config;
      }
   
      public void setClusterName(String name)
  @@ -295,6 +304,7 @@
            ec = XmlConfigurationParser.parseEvictionConfig(config);
         }
         getConfiguration().setEvictionConfig(ec);
  +      this.evictionConfig = config;
      }
   
      public void setExposeManagementStatistics(boolean expose)
  
  
  



More information about the jboss-cvs-commits mailing list