1 7 package org.jboss.cache.buddyreplication; 8 9 import org.jgroups.Address; 10 11 import java.io.Serializable ; 12 import java.util.List ; 13 import java.util.Vector ; 14 15 20 public class BuddyGroup implements Serializable { 22 25 private static final long serialVersionUID = 5391883716108410301L; 26 27 private String groupName; 28 29 private Address dataOwner; 30 31 34 List <Address> buddies = new Vector <Address>(); 36 38 public String getGroupName() 39 { 40 return groupName; 41 } 42 43 public void setGroupName(String groupName) 44 { 45 this.groupName = groupName; 46 } 47 48 public Address getDataOwner() 49 { 50 return dataOwner; 51 } 52 53 public void setDataOwner(Address dataOwner) 54 { 55 this.dataOwner = dataOwner; 56 } 57 58 public List <Address> getBuddies() 59 { 60 return buddies; 61 } 62 63 public void setBuddies(List <Address> buddies) 64 { 65 this.buddies = buddies; 66 } 67 68 82 public String toString() 83 { 84 StringBuffer b = new StringBuffer ("BuddyGroup: ("); 85 b.append("dataOwner: ").append(dataOwner).append(", "); 86 b.append("groupName: ").append(groupName).append(", "); 87 b.append("buddies: ").append(buddies).append(")"); 88 return b.toString(); 89 } 90 91 } 92 | Popular Tags |