1 22 package org.jboss.monitor.client; 23 24 30 public class BeanCacheSnapshot 31 implements java.io.Serializable 32 { 33 35 public String m_application; 37 public String m_container; 38 public int m_passivatingBeans; 39 public int m_cacheMinCapacity; 40 public int m_cacheMaxCapacity; 41 public int m_cacheCapacity; 42 public int m_cacheSize; 43 private StringBuffer m_buffer = new StringBuffer (); 44 45 47 public BeanCacheSnapshot() {} 49 50 public String toString() 52 { 53 m_buffer.setLength(0); 54 m_buffer.append("Cache Snapshot for application '"); 55 m_buffer.append(m_application); 56 m_buffer.append("', container for bean '"); 57 m_buffer.append(m_container); 58 m_buffer.append("':\nmin capacity: "); 59 m_buffer.append(m_cacheMinCapacity); 60 m_buffer.append("\nmax capacity: "); 61 m_buffer.append(m_cacheMaxCapacity); 62 m_buffer.append("\ncapacity: "); 63 m_buffer.append(m_cacheCapacity); 64 m_buffer.append("\nsize: "); 65 m_buffer.append(m_cacheSize); 66 m_buffer.append("\nnumber of beans scheduled for passivation: "); 67 m_buffer.append(m_passivatingBeans); 68 return m_buffer.toString(); 69 } 70 } 71 | Popular Tags |