org.jboss.mq.il.oil
Class OILServerILService

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.oil.OILServerILService
All Implemented Interfaces:
MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , java.lang.Runnable, Service (src) , ServiceMBean (src)

public final class OILServerILService
extends ServerILJMXService (src)
implements java.lang.Runnable

Implements the ServerILJMXService which is used to manage the JVM IL.


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)
SERVICE_CONTROLLER_SIG, serviceName
 
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
OILServerILService()
           
 
Method Summary
 java.lang.String getBindAddress()
          Get the interface address the OIL server bind its listening port on.
 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.
 java.lang.String getName()
          Gives this JMX service a name.
 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 OIL 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()
          Main processing method for the OILServerILService object
 void setBindAddress(java.lang.String host)
          Set the interface address the OIL server bind its listening port on.
 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 OIL 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, 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

OILServerILService

public OILServerILService()
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

getName

public java.lang.String getName()
Gives this JMX service a name.

Specified by:
getName in interface ServiceMBean (src)
Overrides:
getName in class ServiceMBeanSupport (src)
Returns:
The Name 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()
Main processing method for the OILServerILService object

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 OIL server listening port

Returns:
Value of property serverBindPort.

setServerBindPort

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

Parameters:
serverBindPort - New value of property serverBindPort.

getBindAddress

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

Returns:
The hostname or dotted decimal address that the service is bound to.

setBindAddress

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

Parameters:
host - The host address to bind to, if any.
Throws:
java.net.UnknownHostException - Thrown if the hostname cannot be resolved to an InetAddress object.

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

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