org.jboss.mq.il.oil2
Class OIL2ServerILService

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

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

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


Nested Class Summary
 class OIL2ServerILService.RequestListner (src)
           
 
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
OIL2ServerILService()
           
 
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.
 java.lang.String getSecurityDomain()
          Get the security domain name to use with SSL aware socket factories
 int getServerBindPort()
          Getter for property serverBindPort.
 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 setSecurityDomain(java.lang.String domainName)
          Set the security domain name to use with SSL aware socket factories
 void setServerBindPort(int serverBindPort)
          Setter for property serverBindPort.
 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

OIL2ServerILService

public OIL2ServerILService()
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()
Getter for property serverBindPort.

Returns:
Value of property serverBindPort.

setServerBindPort

public void setServerBindPort(int serverBindPort)
Setter for property serverBindPort.

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

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