KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > remoting > transport > socket > SocketServerInvokerMBean


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.remoting.transport.socket;
8
9 import org.jboss.remoting.ServerInvokerMBean;
10
11 /**
12  * MBean interface.
13  */

14 public interface SocketServerInvokerMBean extends ServerInvokerMBean
15 {
16
17    /**
18     * Starts the invoker.
19     */

20    void start() throws java.io.IOException JavaDoc;
21
22    /**
23     * Stops the invoker.
24     */

25    void stop();
26
27    /**
28     * Getter for property timeout
29     *
30     * @return Value of property timeout
31     */

32    int getSocketTimeout();
33
34    /**
35     * Setter for property timeout
36     *
37     * @param time New value of property timeout
38     */

39    void setSocketTimeout(int time);
40
41    int getCurrentThreadPoolSize();
42
43    int getCurrentClientPoolSize();
44
45    /**
46     * Getter for property numAcceptThreads
47     *
48     * @return The number of threads that exist for accepting client connections
49     */

50    int getNumAcceptThreads();
51
52    /**
53     * Setter for property numAcceptThreads
54     *
55     * @param size The number of threads that exist for accepting client connections
56     */

57    void setNumAcceptThreads(int size);
58
59    /**
60     * Setter for max pool size. The number of server threads for processing client. The default is 300.
61     *
62     * @return
63     */

64    int getMaxPoolSize();
65
66    /**
67     * The number of server threads for processing client. The default is 300.
68     *
69     * @param maxPoolSize
70     */

71    void setMaxPoolSize(int maxPoolSize);
72
73    /**
74     * Getter for property serverBindPort.
75     *
76     * @return Value of property serverBindPort.
77     */

78    int getServerBindPort();
79
80    int getBacklog();
81
82    void setBacklog(int backlog);
83
84 }
85
Popular Tags