KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > invocation > pooled > server > PooledInvokerMBean


1 /*
2 * JBoss, Home of Professional Open Source
3 * Copyright 2005, JBoss Inc., and individual contributors as indicated
4 * by the @authors tag. See the copyright.txt in the distribution for a
5 * full listing of individual contributors.
6 *
7 * This is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU Lesser General Public License as
9 * published by the Free Software Foundation; either version 2.1 of
10 * the License, or (at your option) any later version.
11 *
12 * This software is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this software; if not, write to the Free
19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21 */

22 package org.jboss.invocation.pooled.server;
23
24 import java.net.ServerSocket JavaDoc;
25 import javax.management.ObjectName JavaDoc;
26 import javax.net.ServerSocketFactory;
27
28 import org.jboss.invocation.pooled.interfaces.PooledInvokerProxy;
29
30 /**
31  * The PooledInvoker standard MBean interface.
32  * @author Bill Burke
33  * @author Scott.Stark@jboss.org
34  * @version $Revision: 40981 $
35  */

36 public interface PooledInvokerMBean extends org.jboss.system.ServiceMBean
37 {
38
39    /**
40     * Getter for property numAcceptThreads
41     * @return Value of property numAcceptThreads
42     */

43    int getNumAcceptThreads();
44
45    /**
46     * Setter for property numAcceptThreads
47     * @param size New value of property numAcceptThreads.
48     */

49    void setNumAcceptThreads(int size);
50
51    /**
52     * Getter for property maxPoolSize;
53     * @return Value of property maxPoolSize.
54     */

55    int getMaxPoolSize();
56
57    /**
58     * Setter for property maxPoolSize.
59     * @param maxPoolSize New value of property serverBindPort.
60     */

61    void setMaxPoolSize(int maxPoolSize);
62
63    /**
64     * Getter for property maxPoolSize;
65     * @return Value of property maxPoolSize.
66     */

67    int getClientMaxPoolSize();
68
69    /**
70     * Setter for property maxPoolSize.
71     * @param clientMaxPoolSize New value of property serverBindPort.
72     */

73    void setClientMaxPoolSize(int clientMaxPoolSize);
74
75    /**
76     * Getter for property timeout
77     * @return Value of property timeout
78     */

79    int getSocketTimeout();
80
81    /**
82     * Setter for property timeout
83     * @param time New value of property timeout
84     */

85    void setSocketTimeout(int time);
86
87    /**
88     * @return Current client connection pool size
89     */

90    int getCurrentClientPoolSize();
91
92    /**
93     * @return current connection thread pool size
94     */

95    int getCurrentThreadPoolSize();
96
97    /**
98     * Getter for property serverBindPort.
99     * @return Value of property serverBindPort.
100     */

101    int getServerBindPort();
102
103    /**
104     * Setter for property serverBindPort.
105     * @param serverBindPort New value of property serverBindPort.
106     */

107    void setServerBindPort(int serverBindPort);
108
109    /**
110     * @return the address the client proxy connects to
111     */

112    String JavaDoc getClientConnectAddress();
113    /**
114     * Set the clientConnectAddress
115     * @param clientConnectAddress - address the client proxy connects to
116     */

117    void setClientConnectAddress(java.lang.String JavaDoc clientConnectAddress);
118
119    /**
120     * @return the client local bind port
121     */

122    int getClientConnectPort();
123    /**
124     * @param clientConnectPort - the client local bind port
125     */

126    void setClientConnectPort(int clientConnectPort);
127
128    /**
129     * @return the number of connect retries
130     */

131    public int getClientRetryCount();
132    /**
133     * @param clientRetryCount - the number of connect retries
134     */

135    public void setClientRetryCount(int clientRetryCount);
136
137    /**
138     * @return the server accept backlog
139     */

140    int getBacklog();
141    /**
142     * @param backlog - the server accept backlog
143     */

144    void setBacklog(int backlog);
145
146    /**
147     * @return Socket.setTcpNoDelay flag
148     */

149    boolean isEnableTcpNoDelay();
150    /**
151     * Socket.setTcpNoDelay flag
152     * @param enableTcpNoDelay
153     */

154    void setEnableTcpNoDelay(boolean enableTcpNoDelay);
155
156    String JavaDoc getServerBindAddress();
157
158    void setServerBindAddress(String JavaDoc serverBindAddress);
159
160    /**
161     * mbean get-set pair for field transactionManagerService Get the value of
162     * transactionManagerService
163     * @return value of transactionManagerService
164     */

165    ObjectName JavaDoc getTransactionManagerService();
166
167    /**
168     * Set the value of transactionManagerService
169     * @param transactionManagerService Value to assign to transactionManagerService
170     */

171    void setTransactionManagerService(ObjectName JavaDoc transactionManagerService);
172
173    PooledInvokerProxy getOptimizedInvokerProxy();
174
175    /**
176     * Set the client socket factory implementation
177     * @return the javax.net.SocketFactory implementation class name
178     */

179    public String JavaDoc getClientSocketFactoryName();
180    /**
181     * Set the client factory implementation
182     * @param factoryName - the javax.net.SocketFactory implementation class name
183     */

184    public void setClientSocketFactoryName(String JavaDoc factoryName);
185
186    /**
187     * Set the server socket factory implementation
188     * @return the javax.net.ServerSocketFactory implementation class name
189     */

190    public String JavaDoc getServerSocketFactoryName();
191    /**
192     * Set the server factory implementation
193     * @param factoryName - the javax.net.ServerSocketFactory implementation class name
194     */

195    public void setServerSocketFactoryName(String JavaDoc factoryName);
196
197    public ServerSocketFactory getServerSocketFactory();
198    public void setServerSocketFactory(ServerSocketFactory factory);
199
200    public String JavaDoc getSslDomain();
201    public void setSslDomain(String JavaDoc sslDomain);
202    
203 }
204
Popular Tags