KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > petals > tools > petalsadmin > utils > JBIEntity


1 package org.objectweb.petals.tools.petalsadmin.utils;
2
3 import java.util.Set JavaDoc;
4 import java.util.TreeSet JavaDoc;
5
6 import javax.management.ObjectName JavaDoc;
7
8 /**
9  * This class represents a jbi entity
10  *
11  * @author ddesjardins - eBMWebsourcing
12  */

13 public class JBIEntity {
14
15     /**
16      * Binding component type
17      */

18     public static final String JavaDoc BINDING_COMPONENT = "Binding component";
19
20     /**
21      * Service engine type
22      */

23     public static final String JavaDoc SERVICE_ENGINE = "Service engine";
24
25     /**
26      * Service assembly type
27      */

28     public static final String JavaDoc SERVICE_ASSEMBLY = "Service assembly";
29
30     /**
31      * Name of the entity
32      */

33     private String JavaDoc name;
34
35     /**
36      * State of the entity
37      */

38     private String JavaDoc state;
39
40     /**
41      * Description of the entity
42      */

43     private String JavaDoc description;
44
45     /**
46      * JMX ObjectName
47      */

48     private ObjectName JavaDoc objectName;
49
50     /**
51      * List of service units
52      */

53     private Set JavaDoc<String JavaDoc> serviceUnits = new TreeSet JavaDoc<String JavaDoc>();
54
55     /**
56      * Type of entity
57      */

58     private String JavaDoc type;
59
60     public String JavaDoc getName() {
61         return name;
62     }
63
64     public void setName(String JavaDoc name) {
65         this.name = name;
66     }
67
68     public String JavaDoc getState() {
69         return state;
70     }
71
72     public void setState(String JavaDoc state) {
73         this.state = state;
74     }
75
76     public String JavaDoc getDescription() {
77         return description;
78     }
79
80     public void setDescription(String JavaDoc description) {
81         this.description = description;
82     }
83
84     public ObjectName JavaDoc getObjectName() {
85         return objectName;
86     }
87
88     public void setObjectName(ObjectName JavaDoc objectName) {
89         this.objectName = objectName;
90     }
91
92     public String JavaDoc getType() {
93         return type;
94     }
95
96     public void setType(String JavaDoc type) {
97         this.type = type;
98     }
99
100     public Set JavaDoc<String JavaDoc> getServiceUnits() {
101         return serviceUnits;
102     }
103
104     public void setServiceUnits(Set JavaDoc<String JavaDoc> serviceUnits) {
105         this.serviceUnits = serviceUnits;
106     }
107
108 }
109
Popular Tags