1 22 package org.objectweb.petals.kernel.admin; 23 24 import java.io.Serializable ; 25 26 31 public class ContainerInformation implements Serializable { 32 33 38 public static enum ContainerState { 39 42 STARTED, 43 46 STOPPED 47 }; 48 49 52 private static final long serialVersionUID = 1L; 53 54 57 private String host; 58 59 62 private String htmlPort; 63 64 67 private String jmxLogin; 68 69 72 private String jmxPassword; 73 74 77 private String jmxPort; 78 79 82 private String jndiFactory; 83 84 87 private String jndiPort; 88 89 92 private String joramDomain; 93 94 97 private String joramDomainPort; 98 99 102 private String joramId; 103 104 107 private String joramLogin; 108 109 112 private String joramPassword; 113 114 117 private String joramTCPPort; 118 119 122 private ContainerState state = ContainerState.STOPPED; 123 124 127 private String name; 128 129 132 private long uid; 133 134 public long getUid() { 135 return uid; 136 } 137 138 public void setUid(long uid) { 139 this.uid = uid; 140 } 141 142 public String getHost() { 143 return host; 144 } 145 146 public String getHtmlPort() { 147 return htmlPort; 148 } 149 150 public String getJmxLogin() { 151 return jmxLogin; 152 } 153 154 public String getJmxPassword() { 155 return jmxPassword; 156 } 157 158 public String getJmxPort() { 159 return jmxPort; 160 } 161 162 public String getJndiFactory() { 163 return jndiFactory; 164 } 165 166 public String getJndiPort() { 167 return jndiPort; 168 } 169 170 public String getJoramDomain() { 171 return joramDomain; 172 } 173 174 public String getJoramDomainPort() { 175 return joramDomainPort; 176 } 177 178 public String getJoramId() { 179 return joramId; 180 } 181 182 public String getJoramLogin() { 183 return joramLogin; 184 } 185 186 public String getJoramPassword() { 187 return joramPassword; 188 } 189 190 public String getJoramTCPPort() { 191 return joramTCPPort; 192 } 193 194 public String getName() { 195 return name; 196 } 197 198 public void setHost(String host) { 199 this.host = host; 200 } 201 202 public void setHtmlPort(String htmlPort) { 203 this.htmlPort = htmlPort; 204 } 205 206 public void setJmxLogin(String jmxLogin) { 207 this.jmxLogin = jmxLogin; 208 } 209 210 public void setJmxPassword(String jmxPassword) { 211 this.jmxPassword = jmxPassword; 212 } 213 214 public void setJmxPort(String jmxPort) { 215 this.jmxPort = jmxPort; 216 } 217 218 public void setJndiFactory(String jndiFactory) { 219 this.jndiFactory = jndiFactory; 220 } 221 222 public void setJndiPort(String jndiPort) { 223 this.jndiPort = jndiPort; 224 } 225 226 public void setJoramDomain(String joramDomain) { 227 this.joramDomain = joramDomain; 228 } 229 230 public void setJoramDomainPort(String joramPort) { 231 this.joramDomainPort = joramPort; 232 } 233 234 public void setJoramId(String joramId) { 235 this.joramId = joramId; 236 } 237 238 public void setJoramLogin(String joramLogin) { 239 this.joramLogin = joramLogin; 240 } 241 242 public void setJoramPassword(String joramPassword) { 243 this.joramPassword = joramPassword; 244 } 245 246 public void setJoramTCPPort(String joramTCPPort) { 247 this.joramTCPPort = joramTCPPort; 248 } 249 250 public void setName(String name) { 251 this.name = name; 252 } 253 254 public ContainerState getState() { 255 return state; 256 } 257 258 public void setState(ContainerState state) { 259 this.state = state; 260 } 261 262 public boolean isStarted() { 263 return state.equals(ContainerState.STARTED); 264 } 265 266 public boolean isStopped() { 267 return state.equals(ContainerState.STOPPED); 268 } 269 270 public String toString() { 271 return "Container " + joramId + " (isRunning " + isStarted() 272 + ") host: " + host + " Joram: " + joramDomainPort + " JMX: " 273 + jmxPort + " JNDI: " + jndiPort + " HTML: " + htmlPort; 274 } 275 } 276 | Popular Tags |