1 22 package org.objectweb.petals.kernel.admin.util; 23 24 import java.util.ArrayList ; 25 import java.util.List ; 26 27 import javax.management.MBeanServer ; 28 import javax.management.ObjectName ; 29 30 35 public class AdminServiceMoc implements AdminServiceMocMBean { 36 37 40 private MBeanServer beanServer; 41 42 45 public static List <ObjectName > bindingsCompo = new ArrayList <ObjectName >(); 46 47 public AdminServiceMoc(MBeanServer beanServer) { 48 super(); 49 this.beanServer = beanServer; 50 this.beanServer.getClass(); 52 bindingsCompo = new ArrayList <ObjectName >(); 53 } 54 55 public ObjectName [] getBindingComponents() { 56 return bindingsCompo.toArray(new ObjectName [0]); 57 } 58 59 public ObjectName getComponentByName(String name) { 60 return null; 61 } 62 63 public ObjectName [] getEngineComponents() { 64 return bindingsCompo.toArray(new ObjectName [0]); 65 } 66 67 public String getSystemInfo() { 68 return null; 69 } 70 71 public ObjectName getSystemService(String serviceName) { 72 return null; 73 } 74 75 public ObjectName [] getSystemServices() { 76 return null; 77 } 78 79 public boolean isBinding(String componentName) { 80 return false; 81 } 82 83 public boolean isEngine(String componentName) { 84 return false; 85 } 86 87 } 88 | Popular Tags |