KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jgroups > ExtendedReceiverAdapter


1 package org.jgroups;
2
3 import java.io.InputStream JavaDoc;
4 import java.io.OutputStream JavaDoc;
5
6 import org.jgroups.util.Util;
7
8 /**
9  * @author Bela Ban
10  * @version $Id: ExtendedReceiverAdapter.java,v 1.6 2006/10/11 14:34:36 belaban Exp $
11  */

12 public class ExtendedReceiverAdapter implements ExtendedReceiver {
13     public byte[] getState(String JavaDoc state_id) {
14         return null;
15     }
16
17     public void setState(String JavaDoc state_id, byte[] state) {
18     }
19
20     public void receive(Message msg) {
21     }
22
23     public byte[] getState() {
24         return null;
25     }
26
27     public void setState(byte[] state) {
28     }
29
30     public void viewAccepted(View new_view) {
31     }
32
33     public void suspect(Address suspected_mbr) {
34     }
35
36     public void block() {
37     }
38
39     public void unblock() {
40     }
41
42     public void getState(OutputStream JavaDoc ostream) {
43        Util.close(ostream);
44     }
45
46     public void getState(String JavaDoc state_id, OutputStream JavaDoc ostream) {
47        Util.close(ostream);
48     }
49
50     public void setState(InputStream JavaDoc istream) {
51        Util.close(istream);
52     }
53
54     public void setState(String JavaDoc state_id, InputStream JavaDoc istream) {
55        Util.close(istream);
56     }
57 }
58
Popular Tags