1 5 package net.sf.panoptes.model.node; 6 7 8 import java.util.Collections ; 9 import java.util.List ; 10 11 import net.sf.panoptes.component.jmx.model.MBeanServerNode; 12 import net.sf.panoptes.component.jmx.model.MBeanLinkNode; 13 import net.sf.panoptes.component.jmx.model.MBeanWrapper; 14 15 21 public class BrokenLinkNode extends NodeSupport { 22 23 private MBeanLinkNode symlink; 24 25 public BrokenLinkNode(Node parent, MBeanLinkNode symlink) { 26 super(parent); 27 this.symlink = symlink; 28 } 29 30 public void init() { 31 32 } 33 34 public NodeDescriptor getConfigDescriptor() { 35 return new NodeDescriptor("Link to " + symlink.getObjectName().toString() + " in context " + symlink.getContext().get(MBeanServerNode.MBEANSERVERNODE_KEY), "Unnamed broken link to " + symlink.getObjectName().toString(), Node.ICON_BROKEN_LINK); 36 } 37 38 39 public void refresh() { 40 41 } 42 43 public Object getBean() { 44 return this; 45 } 46 47 public List getChildren() { 48 return Collections.EMPTY_LIST; 49 } 50 51 public boolean mightHaveChildren() { 52 return false; 53 } 54 55 } 56 | Popular Tags |