dain        2006/02/01 06:50:02

  Modified:    modules/core/src/java/org/openejb/client ServerMetaData.java
  Log:

  Major refactor
  Split container into an object to represent a deployed ejb and a set of 
shared containers which process invocations
  Introduced interface between CMP container and CMP engine
  
  Revision  Changes    Path
  1.4       +15 -9     
openejb/modules/core/src/java/org/openejb/client/ServerMetaData.java
  
  Index: ServerMetaData.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/client/ServerMetaData.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ServerMetaData.java       21 Dec 2005 14:21:50 -0000      1.3
  +++ ServerMetaData.java       1 Feb 2006 11:50:02 -0000       1.4
  @@ -57,7 +57,6 @@
    * @since 11/25/2001
    */
   public class ServerMetaData implements Externalizable{
  -
       transient String nodeName;
       transient int port;
   
  @@ -69,10 +68,9 @@
       transient InetAddress address;
   
       public ServerMetaData(){
  -
       }
       
  -    public ServerMetaData(String nodeName, String host, int port) throws 
UnknownHostException{
  +    public ServerMetaData(String nodeName, String host, int port) throws 
UnknownHostException {
           this.nodeName = nodeName;
           this.address = InetAddress.getByName( host );
           this.port = port;
  @@ -82,18 +80,22 @@
           return nodeName;
       }
   
  -    public int getPort(){
  -        return port;
  +    public void setNodeName(String nodeName) {
  +        this.nodeName = nodeName;
       }
   
  -    public InetAddress getAddress(){
  -        return address;
  +    public int getPort(){
  +        return port;
       }
   
       public void setPort(int port){
           this.port = port;
       }
   
  +    public InetAddress getAddress(){
  +        return address;
  +    }
  +
       public void setAddress(InetAddress address){
           this.address = address;
       }
  @@ -117,7 +119,11 @@
       public int hashCode() {
           return nodeName.hashCode() * address.hashCode() * port;
       }
  -    
  +
  +    public String toString() {
  +        return nodeName + " " + address + ":" + port;
  +    }
  +
       /**
        * The object implements the readExternal method to restore its
        * contents by calling the methods of DataInput for primitive
  
  
  

Reply via email to