1 28 29 package com.caucho.server.cluster; 30 31 import java.io.IOException ; 32 import java.io.ObjectInputStream ; 33 import java.io.ObjectOutputStream ; 34 35 38 public interface DistributedObject { 39 42 public String getId(); 43 44 47 public long getCRC(); 48 49 52 public void setCRC(long crc); 53 54 57 public int getUpdateCount(); 58 59 62 public void setUpdateCount(int count); 63 64 69 public void load(ObjectInputStream is) 70 throws IOException ; 71 72 77 public void store(ObjectOutputStream os) 78 throws IOException ; 79 80 public ObjectBacking getBacking(); 81 82 public ClusterServer getOwningServer(); 83 public ClusterServer getBackupServer(); 84 } 85 | Popular Tags |