1 29 30 31 package com.caucho.server.cluster; 32 33 import com.caucho.management.server.AbstractManagedObject; 34 import com.caucho.management.server.PersistentStoreMXBean; 35 36 public class StoreAdmin extends AbstractManagedObject 37 implements PersistentStoreMXBean 38 { 39 private final StoreManager _manager; 40 41 protected StoreAdmin(StoreManager manager) 42 { 43 _manager = manager; 44 } 45 46 public String getName() 47 { 48 return null; 49 } 50 51 public String getType() 52 { 53 return "PersistentStore"; 54 } 55 56 60 public String getStoreType() 61 { 62 return "none"; 63 } 64 65 69 72 public long getObjectCount() 73 { 74 return _manager.getObjectCount(); 75 } 76 77 80 public long getLoadCountTotal() 81 { 82 return _manager.getLoadCount(); 83 } 84 85 88 public long getLoadFailCountTotal() 89 { 90 return _manager.getLoadFailCount(); 91 } 92 93 96 public long getSaveCountTotal() 97 { 98 return _manager.getSaveCount(); 99 } 100 101 104 public long getSaveFailCountTotal() 105 { 106 return _manager.getSaveFailCount(); 107 } 108 109 public String toString() 110 { 111 return "StoreAdmin[" + getObjectName() + "]"; 112 } 113 } 114 | Popular Tags |