站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 messaging API Documentation 英文版文档

OILServerILService (JBoss Messaging API) - JBoss 3.2.7 messaging API Documentation 英文版文档


org.jboss.mq.il.oil
Class OILServerILService

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.mq.il.ServerILJMXService
              extended byorg.jboss.mq.il.oil.OILServerILService
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, OILServerILServiceMBean, Runnable, ServerILJMXServiceMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean

public final class OILServerILService
extends ServerILJMXService
implements Runnable, OILServerILServiceMBean

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

Version:
$Revision: 1.23.2.6 $
Author:
Hiram Chirino (Cojonudo14@hotmail.com)

Field Summary
 
Fields inherited from class org.jboss.mq.il.ServerILJMXService
clientID, connectionFactoryJNDIRef, pingPeriod, xaConnectionFactoryJNDIRef
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
OILServerILService()
           
 
Method Summary
 String getBindAddress()
          Get the interface address the OIL server bind its listening port on.
 Properties getClientConnectionProperties()
          Used to construct the GenericConnectionFactory (bindJNDIReferences() builds it) Sets up the connection properties need by a client to use this IL
 String getClientSocketFactory()
          Get the javax.net.SocketFactory implementation class to use on the client.
 boolean getEnableTcpNoDelay()
          Gets the enableTcpNoDelay.
 String getName()
          Gives this JMX service a name.
 int getReadTimeout()
          Gets the socket read timeout.
 String getSecurityDomain()
          Get the security domain name to use with SSL aware socket factories
 int getServerBindPort()
          Get the OIL server listening port
 ServerIL getServerIL()
          Used to construct the GenericConnectionFactory (bindJNDIReferences() builds it)
 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(String host)
          Set the interface address the OIL server bind its listening port on.
 void setClientSocketFactory(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(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(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
bindJNDIReferences, getClientID, getConnectionFactoryJNDIRef, getJBossMQService, getPingPeriod, getXAConnectionFactoryJNDIRef, lookupJMSServer, rebind, setClientID, setConnectionFactoryJNDIRef, setInvoker, setPingPeriod, setXAConnectionFactoryJNDIRef, unbindJNDIReferences
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
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
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.mq.il.ServerILJMXServiceMBean
getClientID, getConnectionFactoryJNDIRef, getJBossMQService, getPingPeriod, getXAConnectionFactoryJNDIRef, setClientID, setConnectionFactoryJNDIRef, setInvoker, setPingPeriod, setXAConnectionFactoryJNDIRef
 
Methods inherited from interface org.jboss.system.ServiceMBean
getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Constructor Detail

OILServerILService

public OILServerILService()
Method Detail

getClientConnectionProperties

public 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
Returns:
The ClientConnectionProperties value

getName

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

Specified by:
getName in interface org.jboss.system.ServiceMBean
Returns:
The Name value

getServerIL

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

Specified by:
getServerIL in class ServerILJMXService
Returns:
The ServerIL value

run

public void run()
Main processing method for the OILServerILService object

Specified by:
run in interface Runnable

startService

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

Overrides:
startService in class ServerILJMXService
Throws:
Exception - Description of Exception

stopService

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

Overrides:
stopService in class ServerILJMXService

getServerBindPort

public int getServerBindPort()
Get the OIL server listening port

Specified by:
getServerBindPort in interface OILServerILServiceMBean
Returns:
Value of property serverBindPort.

setServerBindPort

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

Specified by:
setServerBindPort in interface OILServerILServiceMBean
Parameters:
serverBindPort - New value of property serverBindPort.

getBindAddress

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

Specified by:
getBindAddress in interface OILServerILServiceMBean
Returns:
The hostname or dotted decimal address that the service is bound to.

setBindAddress

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

Specified by:
setBindAddress in interface OILServerILServiceMBean
Parameters:
host - The host address to bind to, if any.
Throws:
UnknownHostException - Thrown if the hostname cannot be resolved to an InetAddress object.

getEnableTcpNoDelay

public boolean getEnableTcpNoDelay()
Gets the enableTcpNoDelay.

Specified by:
getEnableTcpNoDelay in interface OILServerILServiceMBean
Returns:
Returns a boolean

setEnableTcpNoDelay

public void setEnableTcpNoDelay(boolean enableTcpNoDelay)
Sets the enableTcpNoDelay.

Specified by:
setEnableTcpNoDelay in interface OILServerILServiceMBean
Parameters:
enableTcpNoDelay - The enableTcpNoDelay to set

getReadTimeout

public int getReadTimeout()
Gets the socket read timeout.

Specified by:
getReadTimeout in interface OILServerILServiceMBean
Returns:
Returns the read timeout in milli-seconds

setReadTimeout

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

Specified by:
setReadTimeout in interface OILServerILServiceMBean
Parameters:
timeout - The read time out in milli seconds

getClientSocketFactory

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

Specified by:
getClientSocketFactory in interface OILServerILServiceMBean

setClientSocketFactory

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

Specified by:
setClientSocketFactory in interface OILServerILServiceMBean

setServerSocketFactory

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

Specified by:
setServerSocketFactory in interface OILServerILServiceMBean
Throws:
Exception

getServerSocketFactory

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

Specified by:
getServerSocketFactory in interface OILServerILServiceMBean

setSecurityDomain

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

Specified by:
setSecurityDomain in interface OILServerILServiceMBean

getSecurityDomain

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

Specified by:
getSecurityDomain in interface OILServerILServiceMBean


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.