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

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


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

  Modified:    src/org/jboss/cache/pojo/jmx  PojoCacheLegacyJmxWrapper.java
  Log:
  Add getClusterConfig
  Cache the passed in Elements so we can return via the getter
  
  Revision  Changes    Path
  1.2       +11 -1     JBossCache/src/org/jboss/cache/pojo/jmx/PojoCacheLegacyJmxWrapper.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: PojoCacheLegacyJmxWrapper.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/pojo/jmx/PojoCacheLegacyJmxWrapper.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- PojoCacheLegacyJmxWrapper.java	11 May 2007 22:40:59 -0000	1.1
  +++ PojoCacheLegacyJmxWrapper.java	23 May 2007 05:22:26 -0000	1.2
  @@ -43,7 +43,7 @@
    * 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.1 $
  + * @version $Revision: 1.2 $
    */
   public class PojoCacheLegacyJmxWrapper extends PojoCacheJmxWrapper 
      implements PojoCacheLegacyJmxWrapperMBean
  @@ -51,6 +51,7 @@
      private Element buddyReplConfig;
      private Element evictionConfig;
      private Element cacheLoaderConfig;
  +   private Element clusterConfig;
      private ObjectName multiplexerService;
   
      public PojoCacheLegacyJmxWrapper()
  @@ -137,6 +138,11 @@
         return getConfiguration().getClusterConfig();
      }
   
  +   public Element getClusterConfig()
  +   {
  +      return clusterConfig;
  +   }
  +
      public Element getEvictionPolicyConfig()
      {
         return evictionConfig;
  @@ -254,6 +260,7 @@
            brc = XmlConfigurationParser.parseBuddyReplicationConfig(config);
         }
         getConfiguration().setBuddyReplicationConfig(brc);
  +      this.buddyReplConfig = config;
      }
   
      public void setCacheLoaderConfiguration(Element cache_loader_config)
  @@ -264,6 +271,7 @@
            clc = XmlConfigurationParser.parseCacheLoaderConfig(cache_loader_config);
         }
         getConfiguration().setCacheLoaderConfig(clc);
  +      this.cacheLoaderConfig = cache_loader_config;
      }
   
      public void setCacheMode(String mode) throws Exception
  @@ -279,6 +287,7 @@
            props = XmlConfigurationParser.parseClusterConfigXml(config);
         }
         getConfiguration().setClusterConfig(props);
  +      this.clusterConfig = config;
      }
   
      public void setClusterName(String name)
  @@ -299,6 +308,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