01: package org.jgroups.jmx.protocols;
02:
03: /**
04: * @author Scott Marlow
05: * @version $Id: TCP_NIO.java,v 1.1 2005/11/22 13:58:18 smarlownovell Exp $
06: */
07: public class TCP_NIO extends TCP implements TCP_NIOMBean {
08:
09: org.jgroups.protocols.TCP_NIO p;
10:
11: public TCP_NIO() {
12: }
13:
14: public TCP_NIO(org.jgroups.stack.Protocol p) {
15: super (p);
16: this .p = (org.jgroups.protocols.TCP_NIO) p;
17: }
18:
19: public void attachProtocol(org.jgroups.stack.Protocol p) {
20: super .attachProtocol(p);
21: this .p = (org.jgroups.protocols.TCP_NIO) p;
22: }
23:
24: public int getReaderThreads() {
25: return p.getReaderThreads();
26: }
27:
28: public int getWriterThreads() {
29: return p.getWriterThreads();
30: }
31:
32: public int getProcessorThreads() {
33: return p.getProcessorThreads();
34: }
35:
36: public int getProcessorMinThreads() {
37: return p.getProcessorMinThreads();
38: }
39:
40: public int getProcessorMaxThreads() {
41: return p.getProcessorMaxThreads();
42: }
43:
44: public int getProcessorQueueSize() {
45: return p.getProcessorQueueSize();
46: }
47:
48: public int getProcessorKeepAliveTime() {
49: return p.getProcessorKeepAliveTime();
50: }
51:
52: }
|