org.jboss.mq.il.uil2
Class UILServerILService

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.mq.il.ServerILJMXService (src) 
              extended byorg.jboss.mq.il.uil2.UILServerILService
All Implemented Interfaces:
MBeanRegistration (src) , MsgTypes (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , java.lang.Runnable, Service (src) , ServiceMBean (src)

public class UILServerILService
extends ServerILJMXService (src)
implements MsgTypes (src) , java.lang.Runnable

This is the server side MBean for the UIL2 transport layer.


Field Summary
 
Fields inherited from class org.jboss.mq.il.ServerILJMXService (src)
clientID, connectionFactoryJNDIRef, pingPeriod, xaConnectionFactoryJNDIRef
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src)
log, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.mq.il.uil2.msgs.MsgTypes (src)
m_acknowledge, m_addMessage, m_authenticate, m_browse, m_checkID, m_checkUser, m_close, m_connectionClosing, m_createQueue, m_createTopic, m_deleteTemporaryDestination, m_destroySubscription, m_getID, m_getTemporaryQueue, m_getTemporaryTopic, m_ping, m_pong, m_receive, m_receiveRequest, m_setEnabled, m_setSpyDistributedConnection, m_subscribe, m_transact, m_unsubscribe
 
Fields inherited from interface org.jboss.system.ServiceMBean (src)
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
UILServerILService()
           
 
Method Summary
 java.lang.String getBindAddress()
          Get the interface address the UIL2 server bind its listening port on
 int getBufferSize()
          Gets the buffer size.
 int getChunkSize()
          Gets the chunk size.
 java.net.InetAddress getClientAddress()
          Get the interface address the UIL2 exposed to the client as the server address
 java.util.Properties getClientConnectionProperties()
          Used to construct the GenericConnectionFactory (bindJNDIReferences() builds it) Sets up the connection properties need by a client to use this IL
 java.lang.String getClientSocketFactory()
          Get the javax.net.SocketFactory implementation class to use on the client.
 boolean getEnableTcpNoDelay()
          Gets the enableTcpNoDelay.
 int getReadTimeout()
          Gets the socket read timeout.
 java.lang.String getSecurityDomain()
          Get the security domain name to use with SSL aware socket factories
 int getServerBindPort()
          Get the UIL server listening port
 ServerIL (src) getServerIL()
          Used to construct the GenericConnectionFactory (bindJNDIReferences() builds it)
 java.lang.String getServerSocketFactory()
          Get the javax.net.ServerSocketFactory implementation class to use to create the service SocketFactory.
 void run()
          Client socket accept thread.
 void setBindAddress(java.lang.String host)
          Set the interface address the UIL2 server bind its listening port on
 void setBufferSize(int size)
          Sets the buffer size.
 void setChunkSize(int size)
          Sets the chunk size.
 void setClientAddress(java.net.InetAddress addr)
          Set the interface address the UIL2 exposed to the client as the server address
 void setClientSocketFactory(java.lang.String name)
          Set the javax.net.SocketFactory implementation class to use on the client.
 void setEnableTcpNoDelay(boolean enableTcpNoDelay)
          Sets the enableTcpNoDelay.
 void setReadTimeout(int timeout)
          Sets the read time out.
 void setSecurityDomain(java.lang.String domainName)
          Set the security domain name to use with SSL aware socket factories
 void setServerBindPort(int serverBindPort)
          Set the UIL server listening port
 void setServerSocketFactory(java.lang.String name)
          Set the javax.net.ServerSocketFactory implementation class to use to create the service SocketFactory.
 void startService()
          Starts this IL, and binds it to JNDI
 void stopService()
          Stops this IL, and unbinds it from JNDI
 
Methods inherited from class org.jboss.mq.il.ServerILJMXService (src)
bindJNDIReferences, getClientID, getConnectionFactoryJNDIRef, getJBossMQService, getPingPeriod, getXAConnectionFactoryJNDIRef, lookupJMSServer, rebind, setClientID, setConnectionFactoryJNDIRef, setInvoker, setPingPeriod, setXAConnectionFactoryJNDIRef, unbindJNDIReferences
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src)
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UILServerILService

public UILServerILService()
Method Detail

getClientConnectionProperties

public java.util.Properties getClientConnectionProperties()
Used to construct the GenericConnectionFactory (bindJNDIReferences() builds it) Sets up the connection properties need by a client to use this IL

Overrides:
getClientConnectionProperties in class ServerILJMXService (src)
Returns:
The ClientConnectionProperties value

getServerIL

public ServerIL (src)  getServerIL()
Used to construct the GenericConnectionFactory (bindJNDIReferences() builds it)

Specified by:
getServerIL in class ServerILJMXService (src)
Returns:
The ServerIL value

run

public void run()
Client socket accept thread.

Specified by:
run in interface java.lang.Runnable

startService

public void startService()
                  throws java.lang.Exception
Starts this IL, and binds it to JNDI

Overrides:
startService in class ServerILJMXService (src)
Throws:
java.lang.Exception - Description of Exception

stopService

public void stopService()
Stops this IL, and unbinds it from JNDI

Overrides:
stopService in class ServerILJMXService (src)

getServerBindPort

public int getServerBindPort()
Get the UIL server listening port

Returns:
Value of property serverBindPort.

setServerBindPort

public void setServerBindPort(int serverBindPort)
Set the UIL server listening port

Parameters:
serverBindPort - New value of property serverBindPort.

getBindAddress

public java.lang.String getBindAddress()
Get the interface address the UIL2 server bind its listening port on


setBindAddress

public void setBindAddress(java.lang.String host)
                    throws java.net.UnknownHostException
Set the interface address the UIL2 server bind its listening port on

Throws:
java.net.UnknownHostException

getClientAddress

public java.net.InetAddress getClientAddress()
Get the interface address the UIL2 exposed to the client as the server address


setClientAddress

public void setClientAddress(java.net.InetAddress addr)
Set the interface address the UIL2 exposed to the client as the server address


getEnableTcpNoDelay

public boolean getEnableTcpNoDelay()
Gets the enableTcpNoDelay.

Returns:
Returns a boolean

setEnableTcpNoDelay

public void setEnableTcpNoDelay(boolean enableTcpNoDelay)
Sets the enableTcpNoDelay.

Parameters:
enableTcpNoDelay - The enableTcpNoDelay to set

getBufferSize

public int getBufferSize()
Gets the buffer size.

Returns:
Returns an int

setBufferSize

public void setBufferSize(int size)
Sets the buffer size.

Parameters:
size - the buffer size

getChunkSize

public int getChunkSize()
Gets the chunk size.

Returns:
Returns an int

setChunkSize

public void setChunkSize(int size)
Sets the chunk size.

Parameters:
size - the chunk size

getReadTimeout

public int getReadTimeout()
Gets the socket read timeout.

Returns:
Returns the read timeout in milli-seconds

setReadTimeout

public void setReadTimeout(int timeout)
Sets the read time out.

Parameters:
timeout - The read time out in milli seconds

getClientSocketFactory

public java.lang.String getClientSocketFactory()
Get the javax.net.SocketFactory implementation class to use on the client.


setClientSocketFactory

public void setClientSocketFactory(java.lang.String name)
Set the javax.net.SocketFactory implementation class to use on the client.


setServerSocketFactory

public void setServerSocketFactory(java.lang.String name)
                            throws java.lang.Exception
Set the javax.net.ServerSocketFactory implementation class to use to create the service SocketFactory.

Throws:
java.lang.Exception

getServerSocketFactory

public java.lang.String getServerSocketFactory()
Get the javax.net.ServerSocketFactory implementation class to use to create the service SocketFactory.


setSecurityDomain

public void setSecurityDomain(java.lang.String domainName)
Set the security domain name to use with SSL aware socket factories


getSecurityDomain

public java.lang.String getSecurityDomain()
Get the security domain name to use with SSL aware socket factories