Package org.jboss.monitor.client

Examples of org.jboss.monitor.client.BeanCacheSnapshot


      if( m_cache == null )
         return;

      synchronized (getCacheLock())
      {
         BeanCacheSnapshot snapshot = (BeanCacheSnapshot)s;
         snapshot.m_passivatingBeans = 0;
         CachePolicy policy = getCache();
         if (policy instanceof Monitorable)
         {
            ((Monitorable)policy).sample(s);
View Full Code Here


      if( m_cache == null )
         return;

      synchronized (getCacheLock())
      {
         BeanCacheSnapshot snapshot = (BeanCacheSnapshot)s;
         snapshot.m_passivatingBeans = 0;
         CachePolicy policy = getCache();
         if (policy instanceof Monitorable)
         {
            ((Monitorable)policy).sample(s);
View Full Code Here

      if(m_map == null)
         return;

      synchronized(m_map)
      {
         BeanCacheSnapshot snapshot = (BeanCacheSnapshot)s;
         snapshot.m_passivatingBeans = 0;
         snapshot.m_cacheMinCapacity = 0;
         snapshot.m_cacheMaxCapacity = Integer.MAX_VALUE;
         snapshot.m_cacheCapacity = Integer.MAX_VALUE;
         snapshot.m_cacheSize = m_map.size();
View Full Code Here

   public void sample(Object s)
   {
      if( m_cache == null )
         return;

      BeanCacheSnapshot snapshot = (BeanCacheSnapshot)s;
      LRUList list = getList();
      synchronized (m_cache.getCacheLock())
      {
         snapshot.m_cacheMinCapacity = list.m_minCapacity;
         snapshot.m_cacheMaxCapacity = list.m_maxCapacity;
View Full Code Here

            }
           
            // Take a cache snapshot
            if (cache instanceof Monitorable)
            {
               BeanCacheSnapshot snapshot = new BeanCacheSnapshot();
               snapshot.m_application = name;
               snapshot.m_container = ((Container)container).getBeanMetaData().getEjbName();
               ((Monitorable)cache).sample(snapshot);
               cacheSnapshots.add(snapshot);
            }
View Full Code Here

/*  70 */     if (this.m_map == null) {
/*  71 */       return;
/*     */     }
/*  73 */     synchronized (this.m_map)
/*     */     {
/*  75 */       BeanCacheSnapshot snapshot = (BeanCacheSnapshot)s;
/*  76 */       snapshot.m_passivatingBeans = 0;
/*  77 */       snapshot.m_cacheMinCapacity = 0;
/*  78 */       snapshot.m_cacheMaxCapacity = 2147483647;
/*  79 */       snapshot.m_cacheCapacity = 2147483647;
/*  80 */       snapshot.m_cacheSize = this.m_map.size();
View Full Code Here

/*  82 */     if (this.m_cache == null) {
/*  83 */       return;
/*     */     }
/*  85 */     synchronized (getCacheLock())
/*     */     {
/*  87 */       BeanCacheSnapshot snapshot = (BeanCacheSnapshot)s;
/*  88 */       snapshot.m_passivatingBeans = 0;
/*  89 */       CachePolicy policy = getCache();
/*  90 */       if ((policy instanceof Monitorable))
/*     */       {
/*  92 */         ((Monitorable)policy).sample(s);
View Full Code Here

/* 137 */           cache = ((StatefulSessionContainer)container).getInstanceCache();
/*     */         }
/*     */
/* 141 */         if ((cache instanceof Monitorable))
/*     */         {
/* 143 */           BeanCacheSnapshot snapshot = new BeanCacheSnapshot();
/* 144 */           snapshot.m_application = name;
/* 145 */           snapshot.m_container = ((Container)container).getBeanMetaData().getEjbName();
/* 146 */           ((Monitorable)cache).sample(snapshot);
/* 147 */           cacheSnapshots.add(snapshot);
/*     */         }
View Full Code Here

/*     */   public void sample(Object s)
/*     */   {
/* 122 */     if (this.m_cache == null) {
/* 123 */       return;
/*     */     }
/* 125 */     BeanCacheSnapshot snapshot = (BeanCacheSnapshot)s;
/* 126 */     LRUCachePolicy.LRUList list = getList();
/* 127 */     synchronized (this.m_cache.getCacheLock())
/*     */     {
/* 129 */       snapshot.m_cacheMinCapacity = list.m_minCapacity;
/* 130 */       snapshot.m_cacheMaxCapacity = list.m_maxCapacity;
View Full Code Here

TOP

Related Classes of org.jboss.monitor.client.BeanCacheSnapshot

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.