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.oil;
023:
024: /**
025: * MBean interface.
026: */
027: public interface OILServerILServiceMBean extends
028: org.jboss.mq.il.ServerILJMXServiceMBean {
029:
030: /**
031: * Get the OIL server listening port
032: * @return Value of property serverBindPort.
033: */
034: int getServerBindPort();
035:
036: /**
037: * Set the OIL 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 OIL server bind its listening port on.
044: * @return The hostname or dotted decimal address that the service is bound to.
045: */
046: java.lang.String getBindAddress();
047:
048: /**
049: * Set the interface address the OIL server bind its listening port on.
050: * @param host The host address to bind to, if any.
051: * @throws java.net.UnknownHostException Thrown if the hostname cannot be resolved to an InetAddress object.
052: */
053: void setBindAddress(java.lang.String host)
054: throws java.net.UnknownHostException;
055:
056: /**
057: * Gets the enableTcpNoDelay.
058: * @return Returns a boolean
059: */
060: boolean getEnableTcpNoDelay();
061:
062: /**
063: * Sets the enableTcpNoDelay.
064: * @param enableTcpNoDelay The enableTcpNoDelay to set
065: */
066: void setEnableTcpNoDelay(boolean enableTcpNoDelay);
067:
068: /**
069: * Gets the socket read timeout.
070: * @return Returns the read timeout in milli-seconds
071: */
072: int getReadTimeout();
073:
074: /**
075: * Sets the read time out.
076: * @param timeout The read time out in milli seconds
077: */
078: void setReadTimeout(int timeout);
079:
080: /**
081: * Get the javax.net.SocketFactory implementation class to use on the client.
082: */
083: java.lang.String getClientSocketFactory();
084:
085: /**
086: * Set the javax.net.SocketFactory implementation class to use on the client.
087: */
088: void setClientSocketFactory(java.lang.String name);
089:
090: /**
091: * Set the javax.net.ServerSocketFactory implementation class to use to create the service SocketFactory.
092: */
093: void setServerSocketFactory(java.lang.String name)
094: throws java.lang.Exception;
095:
096: /**
097: * Get the javax.net.ServerSocketFactory implementation class to use to create the service SocketFactory.
098: */
099: java.lang.String getServerSocketFactory();
100:
101: /**
102: * Set the security domain name to use with SSL aware socket factories
103: */
104: void setSecurityDomain(java.lang.String domainName);
105:
106: /**
107: * Get the security domain name to use with SSL aware socket factories
108: */
109: java.lang.String getSecurityDomain();
110:
111: }
|