1 22 package org.jboss.test.cluster.drm; 23 24 import java.io.Serializable ; 25 import java.util.List ; 26 27 32 public interface IReplicants 33 { 34 public static class NotifyData implements Serializable 35 { 36 static final long serialVersionUID = -1698998375571817852L; 37 public Serializable key; 38 public List newReplicants; 39 public int newReplicantsViewId; 40 public String toString() 41 { 42 StringBuffer tmp = new StringBuffer (); 43 tmp.append("key:"); 44 tmp.append(key); 45 tmp.append(", newReplicants:"); 46 tmp.append(newReplicants); 47 return tmp.toString(); 48 } 49 } 50 51 public Serializable lookupLocalReplicant(); 52 public Serializable lookupLocalReplicant(String key); 53 public List lookupReplicants(); 54 public List lookupReplicants(String key); 55 public void add(String key, Serializable data) 56 throws Exception ; 57 public void remove(String key) 58 throws Exception ; 59 } 60 | Popular Tags |