1 22 package org.jboss.mx.server.registry; 23 24 import java.util.Enumeration ; 25 import java.util.Vector ; 26 27 import javax.management.ObjectName ; 28 29 39 public class MbeanInfoDb extends Object 40 { 41 protected Vector fMbInfosToStore; 42 43 public MbeanInfoDb() 44 { 45 super(); 46 } 47 48 public void add(ObjectName nameOfMbean) 49 { 50 mbInfosToStore().add(nameOfMbean); 51 } 52 53 public void add(Vector namesOfMbeans) 54 { 55 mbInfosToStore().addAll(namesOfMbeans); 56 } 57 58 62 protected Vector mbInfosToStore() 63 { 64 if(fMbInfosToStore == null) 65 { 66 fMbInfosToStore = new Vector (10); 67 } 68 return fMbInfosToStore; 69 } 70 71 public Enumeration mbiPersistenceQueue() 72 { 73 return mbInfosToStore().elements(); 74 } 75 76 public void removeFromMbiQueue(ObjectName name) 77 { 78 mbInfosToStore().remove(name); 79 } 80 } | Popular Tags |