01: package org.jgroups.jmx.protocols;
02:
03: import org.jgroups.jmx.ProtocolMBean;
04: import org.jgroups.Address;
05:
06: import java.net.UnknownHostException;
07: import java.util.List;
08:
09: /**
10: * @author Bela Ban
11: * @version $Id: TPMBean.java,v 1.5 2005/11/09 17:42:52 belaban Exp $
12: */
13: public interface TPMBean extends ProtocolMBean {
14: Address getLocalAddress();
15:
16: String getBindAddress();
17:
18: String getChannelName();
19:
20: long getMessagesSent();
21:
22: long getMessagesReceived();
23:
24: long getBytesSent();
25:
26: long getBytesReceived();
27:
28: public void setBindAddress(String bind_address)
29: throws UnknownHostException;
30:
31: boolean isReceiveOnAllInterfaces();
32:
33: List getReceiveInterfaces();
34:
35: boolean isSendOnAllInterfaces();
36:
37: List getSendInterfaces();
38:
39: boolean isDiscardIncompatiblePackets();
40:
41: void setDiscardIncompatiblePackets(boolean flag);
42:
43: boolean isEnableBundling();
44:
45: void setEnableBundling(boolean flag);
46:
47: int getMaxBundleSize();
48:
49: void setMaxBundleSize(int size);
50:
51: long getMaxBundleTimeout();
52:
53: void setMaxBundleTimeout(long timeout);
54:
55: int getOutgoingQueueSize();
56:
57: int getIncomingQueueSize();
58:
59: boolean isLoopback();
60:
61: void setLoopback(boolean b);
62:
63: boolean isUseIncomingPacketHandler();
64:
65: boolean isUseOutgoungPacketHandler();
66:
67: int getOutgoingQueueMaxSize();
68:
69: void setOutgoingQueueMaxSize(int new_size);
70: }
|