01: package org.jgroups;
02:
03: import java.io.InputStream;
04: import java.io.OutputStream;
05:
06: import org.jgroups.util.Util;
07:
08: /**
09: * @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 state_id) {
14: return null;
15: }
16:
17: public void setState(String 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 ostream) {
43: Util.close(ostream);
44: }
45:
46: public void getState(String state_id, OutputStream ostream) {
47: Util.close(ostream);
48: }
49:
50: public void setState(InputStream istream) {
51: Util.close(istream);
52: }
53:
54: public void setState(String state_id, InputStream istream) {
55: Util.close(istream);
56: }
57: }
|