Package org.jboss.cache.jmx

Examples of org.jboss.cache.jmx.CacheJmxWrapperMBean


      MBeanServer server = MBeanServerLocator.locateJBoss();
      String name = config.name();
      if (name == null || name.trim().length() == 0)
         name = CacheConfig.DEFAULT_CLUSTERED_OBJECT_NAME;
      ObjectName cacheON = new ObjectName(name);
      CacheJmxWrapperMBean mbean = (CacheJmxWrapperMBean) MBeanProxyExt.create(CacheJmxWrapperMBean.class, cacheON, server);
      cache = mbean.getCache();

      cacheNode = new Fqn(new Object[] { this.ejbContainer.getDeploymentQualifiedName() });

      // Try to create an eviction region per ejb
      region = cache.getRegion(cacheNode, true);
View Full Code Here


/* 320 */     MBeanServer server = MBeanServerLocator.locateJBoss();
/* 321 */     String name = config.name();
/* 322 */     if ((name == null) || (name.trim().length() == 0))
/* 323 */       name = "jboss.cache:service=EJB3SFSBClusteredCache";
/* 324 */     ObjectName cacheON = new ObjectName(name);
/* 325 */     CacheJmxWrapperMBean mbean = (CacheJmxWrapperMBean)MBeanProxyExt.create(CacheJmxWrapperMBean.class, cacheON, server);
/* 326 */     this.cache = mbean.getCache();
/*     */
/* 328 */     this.cacheNode = new Fqn(new Object[] { this.ejbContainer.getDeploymentQualifiedName() });
/*     */
/* 331 */     this.region = this.cache.getRegion(this.cacheNode, true);
/* 332 */     EvictionPolicyConfig epc = getEvictionPolicyConfig((int)config.idleTimeoutSeconds(), config.maxSize());
View Full Code Here

/* 29 */       if (cacheName == null)
/*    */       {
/* 31 */         cacheName = "jboss.cache:service=EJB3EntityTreeCache";
/*    */       }
/* 33 */       ObjectName mbeanObjectName = new ObjectName(cacheName);
/* 34 */       CacheJmxWrapperMBean mbean = (CacheJmxWrapperMBean)MBeanProxyExt.create(CacheJmxWrapperMBean.class, mbeanObjectName, MBeanServerLocator.locateJBoss());
/* 35 */       this.cache = mbean.getCache();
/* 36 */       this.optimistic = this.cache.getConfiguration().isNodeLockingOptimistic();
/*    */     }
/*    */     catch (Exception e)
/*    */     {
/* 40 */       throw new CacheException(e);
View Full Code Here

          if (cacheName == null)
          {
             cacheName = TreeCacheProviderHook.DEFAULT_MBEAN_OBJECT_NAME;
          }
          ObjectName mbeanObjectName = new ObjectName(cacheName);
          CacheJmxWrapperMBean mbean = (CacheJmxWrapperMBean) MBeanProxyExt.create(CacheJmxWrapperMBean.class, mbeanObjectName, MBeanServerLocator.locateJBoss());
          cache = mbean.getCache();
          optimistic = cache.getConfiguration().isNodeLockingOptimistic();
       }
       catch (Exception e)
       {
          throw new CacheException(e);
View Full Code Here

      MBeanServer server = MBeanServerLocator.locateJBoss();
      String name = config.name();
      if (name == null || name.trim().length() == 0)
         name = CacheConfig.DEFAULT_CLUSTERED_OBJECT_NAME;
      ObjectName cacheON = new ObjectName(name);
      CacheJmxWrapperMBean mbean = (CacheJmxWrapperMBean) MBeanProxyExt.create(CacheJmxWrapperMBean.class, cacheON, server);
      cache = mbean.getCache();

      cacheNode = new Fqn(new Object[] { this.ejbContainer.getDeploymentPropertyListString() });
     
      // Try to create an eviction region per ejb
      region = cache.getRegion(cacheNode, true);
View Full Code Here

TOP

Related Classes of org.jboss.cache.jmx.CacheJmxWrapperMBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.