1 22 package org.jboss.deployment; 23 24 26 import javax.management.ObjectName ; 27 import java.io.Serializable ; 28 import java.net.URL ; 29 import java.util.ArrayList ; 30 import java.util.Collection ; 31 import java.util.Date ; 32 import java.util.List ; 33 34 41 public class SerializableDeploymentInfo implements Serializable 42 { 43 44 private static final long serialVersionUID = -3847995513551913798L; 45 46 public Date date; 48 public URL url; 50 public URL localUrl; 52 public URL watch; 54 public String shortName; 56 public long lastDeployed; 58 public long lastModified; 60 public String status; 62 public DeploymentState state; 64 public ObjectName deployer; 66 public Collection classpath = new ArrayList (); 68 public List mbeans; 70 public List subDeployments; 72 public SerializableDeploymentInfo parent; 74 public String webContext; 76 public URL documentUrl; 78 public boolean isXML; 80 public boolean isScript; 81 public boolean isDirectory; 83 public ObjectName deployedObject; 85 86 88 91 public SerializableDeploymentInfo(DeploymentInfo info) 92 { 93 this.date = info.date; 94 this.url = info.url; 95 this.localUrl = info.localUrl; 96 this.watch = info.watch; 97 this.shortName = info.shortName; 98 this.lastDeployed = info.lastDeployed; 99 this.lastModified = info.lastModified; 100 this.status = info.status; 101 this.state = info.state; 102 this.deployer = info.deployer.getServiceName(); 103 this.classpath = info.classpath; 104 this.mbeans = info.mbeans; 105 this.webContext = info.webContext; 106 this.documentUrl = info.documentUrl; 107 this.isXML = info.isXML; 108 this.isScript = info.isScript; 109 this.isDirectory = info.isDirectory; 110 this.deployedObject = info.deployedObject; 111 112 this.parent = null; 114 this.subDeployments = new ArrayList (); 115 } 116 117 120 public String toString() 121 { 122 StringBuffer s = new StringBuffer (super.toString()); 123 s.append(" { url=" + url + " }\n"); 124 s.append(" deployer: " + deployer + "\n"); 125 s.append(" status: " + status + "\n"); 126 s.append(" state: " + state + "\n"); 127 s.append(" watch: " + watch + "\n"); 128 s.append(" lastDeployed: " + lastDeployed + "\n"); 129 s.append(" lastModified: " + lastModified + "\n"); 130 s.append(" mbeans: " + mbeans + "\n"); 131 s.append(" }\n"); 132 return s.toString(); 133 } 134 } 135 | Popular Tags |