001: /*
002: * JBoss, Home of Professional Open Source.
003: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
004: * as indicated by the @author tags. See the copyright.txt file in the
005: * distribution for a full listing of individual contributors.
006: *
007: * This is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU Lesser General Public License as
009: * published by the Free Software Foundation; either version 2.1 of
010: * the License, or (at your option) any later version.
011: *
012: * This software is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this software; if not, write to the Free
019: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
021: */
022: package org.jboss.mq.il.uil2;
023:
024: /**
025: * MBean interface.
026: */
027: public interface UILServerILServiceMBean extends
028: org.jboss.mq.il.ServerILJMXServiceMBean {
029:
030: /**
031: * Get the UIL server listening port
032: * @return Value of property serverBindPort.
033: */
034: int getServerBindPort();
035:
036: /**
037: * Set the UIL server listening port
038: * @param serverBindPort New value of property serverBindPort.
039: */
040: void setServerBindPort(int serverBindPort);
041:
042: /**
043: * Get the interface address the UIL2 server bind its listening port on
044: */
045: java.lang.String getBindAddress();
046:
047: /**
048: * Set the interface address the UIL2 server bind its listening port on
049: */
050: void setBindAddress(java.lang.String host)
051: throws java.net.UnknownHostException;
052:
053: /**
054: * Get the interface address the UIL2 exposed to the client as the server address
055: */
056: java.net.InetAddress getClientAddress();
057:
058: /**
059: * Set the interface address the UIL2 exposed to the client as the server address
060: */
061: void setClientAddress(java.net.InetAddress addr);
062:
063: /**
064: * Gets the enableTcpNoDelay.
065: * @return Returns a boolean
066: */
067: boolean getEnableTcpNoDelay();
068:
069: /**
070: * Sets the enableTcpNoDelay.
071: * @param enableTcpNoDelay The enableTcpNoDelay to set
072: */
073: void setEnableTcpNoDelay(boolean enableTcpNoDelay);
074:
075: /**
076: * Gets the buffer size.
077: * @return Returns an int
078: */
079: int getBufferSize();
080:
081: /**
082: * Sets the buffer size.
083: * @param size the buffer size
084: */
085: void setBufferSize(int size);
086:
087: /**
088: * Gets the chunk size.
089: * @return Returns an int
090: */
091: int getChunkSize();
092:
093: /**
094: * Sets the chunk size.
095: * @param size the chunk size
096: */
097: void setChunkSize(int size);
098:
099: /**
100: * Gets the socket read timeout.
101: * @return Returns the read timeout in milli-seconds
102: */
103: int getReadTimeout();
104:
105: /**
106: * Sets the read time out.
107: * @param timeout The read time out in milli seconds
108: */
109: void setReadTimeout(int timeout);
110:
111: /**
112: * Gets the client socket read timeout.
113: * @return Returns the read timeout in milli-seconds
114: */
115: int getClientReadTimeout();
116:
117: /**
118: * Sets the read time out.
119: * @param timeout The read time out in milli seconds
120: */
121: void setClientReadTimeout(int timeout);
122:
123: /**
124: * Get the javax.net.SocketFactory implementation class to use on the client.
125: */
126: java.lang.String getClientSocketFactory();
127:
128: /**
129: * Set the javax.net.SocketFactory implementation class to use on the client.
130: */
131: void setClientSocketFactory(java.lang.String name);
132:
133: /**
134: * Set the javax.net.ServerSocketFactory implementation class to use to create the service SocketFactory.
135: */
136: void setServerSocketFactory(java.lang.String name)
137: throws java.lang.Exception;
138:
139: /**
140: * Get the javax.net.ServerSocketFactory implementation class to use to create the service SocketFactory.
141: */
142: java.lang.String getServerSocketFactory();
143:
144: /**
145: * Set the security domain name to use with SSL aware socket factories
146: */
147: void setSecurityDomain(java.lang.String domainName);
148:
149: /**
150: * Get the security domain name to use with SSL aware socket factories
151: */
152: java.lang.String getSecurityDomain();
153:
154: String getConnectAddress();
155:
156: void setConnectAddress(String addr);
157:
158: int getConnectPort();
159:
160: void setConnectPort(int port);
161: }
|