1 package net.sf.panoptes.module.jmx;
2
3 import net.sf.panoptes.model.component.Component;
4 import net.sf.panoptes.model.component.ComponentQuery;
5 import net.sf.panoptes.model.node.NodeDescriptor;
6
7 import org.eclipse.swt.graphics.Image;
8
9 /***
10 * DomainNode.java
11 *
12 * Node representing a JMX domain.
13 *
14 * @author Dag Liodden
15 * @version 0.1
16 */
17 public class DomainComponent extends ComponentQuery {
18
19 /***
20 * The domain name
21 */
22 String domainName;
23
24 /***
25 * Constructor for DomainNode.
26 */
27 public DomainComponent() {
28 }
29
30 public void setDomainName(String domainName) {
31 this.domainName = domainName;
32 }
33
34 public void init() {
35 setConfigDescriptor(new NodeDescriptor("Domain " + domainName, "JMX Domain " + domainName));
36 }
37
38 /***
39 * @see com.gllt.troodon.console.Node#getIconName()
40 */
41 public Image getIcon() {
42 return Component.ICON_DOMAIN;
43 }
44
45 /* (non-Javadoc)
46 * @see net.sf.panoptes.view.configurator.Node#acceptsChildren()
47 */
48 public boolean acceptsChildren() {
49 return false;
50 }
51 /***
52 * @return
53 */
54 public String getDomainName() {
55 return domainName;
56 }
57
58 }
This page was automatically generated by Maven