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

HAILServerILService (JBoss Cluster API) - JBoss 4.0.1 sp1 cluster API Documentation 英文版文档


org.jboss.mq.il.ha
Class HAILServerILService

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.ha.HAILServerILService
All Implemented Interfaces:
HAILServerILServiceMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.mq.il.ServerILJMXServiceMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class HAILServerILService
extends org.jboss.mq.il.ServerILJMXService
implements HAILServerILServiceMBean

This is the server side MBean for the HAIL transport layer. It builts upon UIL2.

Version:
$Revision: 1.2 $
Author:
ivelin@apache.org

Field Summary
static String NOTIFICATION_SINGLETON_MOVED
           
 
Fields inherited from class org.jboss.mq.il.ServerILJMXService
clientID, connectionFactoryJNDIRef, pingPeriod, xaConnectionFactoryJNDIRef
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
server, 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
HAILServerILService()
           
 
Method Summary
 void broadcastSingletonChangeNotification()
          Broadcasts a notification to the cluster partition.
 int getBufferSize()
          Gets the buffer size.
 int getChunkSize()
          Gets the chunk size.
 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.
 InetAddress getServerAddress()
           
 org.jboss.mq.il.ServerIL getServerIL()
          Used to construct the GenericConnectionFactory (bindJNDIReferences() builds it)
 Integer getServerPort()
           
 javax.management.ObjectName getSharedStateService()
          Get the name of the MBean HANotificationBroadcaster.
 javax.management.ObjectName getUILServerILService()
          Get the value of UIL2Service.
 javax.management.ObjectName getUILService()
          Get the name of the MBean UILService.
 boolean isMasterNode()
           
 void setSharedStateService(javax.management.ObjectName sharedStateService)
          Set the name of the HAILSharedState MBean .
 void setUILServerILService(javax.management.ObjectName uilService)
          Set the value of UILServerILService.
 void setUILService(javax.management.ObjectName uilService)
          Set the name of the MBean UILService.
 void startService()
          Starts this IL, and binds it to JNDI
 void startSingleton()
          Invoked when this mbean is elected to run the singleton service, or in other words when this node is elected for master.
 void stopService()
          Stops this IL, and unbinds it from JNDI
 void stopSingleton()
          Invoked when this mbean is elected to no longer run the singleton service, or in other words when this node is elected for slave.
 void updateSharedState()
          Share the coordinates of the new UIL singleton server and notify world
 
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
 

Field Detail

NOTIFICATION_SINGLETON_MOVED

public static final String NOTIFICATION_SINGLETON_MOVED
See Also:
Constant Field Values
Constructor Detail

HAILServerILService

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

Returns:
The ClientConnectionProperties value

getServerIL

public org.jboss.mq.il.ServerIL getServerIL()
Used to construct the GenericConnectionFactory (bindJNDIReferences() builds it)

Returns:
The ServerIL value

startService

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

Throws:
Exception - Description of Exception

stopService

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


getUILServerILService

public javax.management.ObjectName getUILServerILService()
Get the value of UIL2Service.

Returns:
value of UILServerILService.

setUILServerILService

public void setUILServerILService(javax.management.ObjectName uilService)
Set the value of UILServerILService.


broadcastSingletonChangeNotification

public void broadcastSingletonChangeNotification()
                                          throws javax.management.InstanceNotFoundException,
                                                 javax.management.MBeanException,
                                                 javax.management.ReflectionException
Broadcasts a notification to the cluster partition.

Throws:
javax.management.InstanceNotFoundException
javax.management.MBeanException
javax.management.ReflectionException

startSingleton

public void startSingleton()
Description copied from interface: HAILServerILServiceMBean
Invoked when this mbean is elected to run the singleton service, or in other words when this node is elected for master.

Specified by:
startSingleton in interface HAILServerILServiceMBean

isMasterNode

public boolean isMasterNode()
Specified by:
isMasterNode in interface HAILServerILServiceMBean
Returns:
true if the node that this MBean is registered with is the master node for the singleton service

stopSingleton

public void stopSingleton()
Description copied from interface: HAILServerILServiceMBean
Invoked when this mbean is elected to no longer run the singleton service, or in other words when this node is elected for slave.

Specified by:
stopSingleton in interface HAILServerILServiceMBean

getUILService

public javax.management.ObjectName getUILService()
Description copied from interface: HAILServerILServiceMBean
Get the name of the MBean UILService.

Specified by:
getUILService in interface HAILServerILServiceMBean
Returns:
name of the MBean UILService.

setUILService

public void setUILService(javax.management.ObjectName uilService)
Description copied from interface: HAILServerILServiceMBean
Set the name of the MBean UILService.

Specified by:
setUILService in interface HAILServerILServiceMBean

getSharedStateService

public javax.management.ObjectName getSharedStateService()
Description copied from interface: HAILServerILServiceMBean
Get the name of the MBean HANotificationBroadcaster. Used to keep all participating JMS nodes informed about the current singleton server.

Specified by:
getSharedStateService in interface HAILServerILServiceMBean
Returns:
name of the MBean HANotificationBroadcaster.

setSharedStateService

public void setSharedStateService(javax.management.ObjectName sharedStateService)
Description copied from interface: HAILServerILServiceMBean
Set the name of the HAILSharedState MBean .

Specified by:
setSharedStateService in interface HAILServerILServiceMBean

updateSharedState

public void updateSharedState()
                       throws javax.management.InstanceNotFoundException,
                              javax.management.AttributeNotFoundException,
                              javax.management.InvalidAttributeValueException,
                              javax.management.MBeanException,
                              javax.management.ReflectionException,
                              UnknownHostException
Share the coordinates of the new UIL singleton server and notify world

Throws:
javax.management.InstanceNotFoundException
javax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.ReflectionException
UnknownHostException

getServerAddress

public InetAddress getServerAddress()
                             throws UnknownHostException,
                                    javax.management.AttributeNotFoundException,
                                    javax.management.InstanceNotFoundException,
                                    javax.management.MBeanException,
                                    javax.management.ReflectionException
Specified by:
getServerAddress in interface HAILServerILServiceMBean
Throws:
UnknownHostException
javax.management.AttributeNotFoundException
javax.management.InstanceNotFoundException
javax.management.MBeanException
javax.management.ReflectionException

getServerPort

public Integer getServerPort()
                      throws javax.management.AttributeNotFoundException,
                             javax.management.InstanceNotFoundException,
                             javax.management.MBeanException,
                             javax.management.ReflectionException
Specified by:
getServerPort in interface HAILServerILServiceMBean
Throws:
javax.management.AttributeNotFoundException
javax.management.InstanceNotFoundException
javax.management.MBeanException
javax.management.ReflectionException

getClientSocketFactory

public String getClientSocketFactory()
                              throws javax.management.AttributeNotFoundException,
                                     javax.management.InstanceNotFoundException,
                                     javax.management.MBeanException,
                                     javax.management.ReflectionException
Get the javax.net.SocketFactory implementation class to use on the client.

Specified by:
getClientSocketFactory in interface HAILServerILServiceMBean
Throws:
javax.management.AttributeNotFoundException
javax.management.InstanceNotFoundException
javax.management.MBeanException
javax.management.ReflectionException

getEnableTcpNoDelay

public boolean getEnableTcpNoDelay()
                            throws javax.management.AttributeNotFoundException,
                                   javax.management.InstanceNotFoundException,
                                   javax.management.MBeanException,
                                   javax.management.ReflectionException
Gets the enableTcpNoDelay.

Specified by:
getEnableTcpNoDelay in interface HAILServerILServiceMBean
Returns:
Returns a boolean
Throws:
javax.management.AttributeNotFoundException
javax.management.InstanceNotFoundException
javax.management.MBeanException
javax.management.ReflectionException

getChunkSize

public int getChunkSize()
                 throws javax.management.AttributeNotFoundException,
                        javax.management.InstanceNotFoundException,
                        javax.management.MBeanException,
                        javax.management.ReflectionException
Gets the chunk size.

Specified by:
getChunkSize in interface HAILServerILServiceMBean
Returns:
Returns an int
Throws:
javax.management.AttributeNotFoundException
javax.management.InstanceNotFoundException
javax.management.MBeanException
javax.management.ReflectionException

getBufferSize

public int getBufferSize()
                  throws javax.management.AttributeNotFoundException,
                         javax.management.InstanceNotFoundException,
                         javax.management.MBeanException,
                         javax.management.ReflectionException
Gets the buffer size.

Specified by:
getBufferSize in interface HAILServerILServiceMBean
Returns:
Returns an int
Throws:
javax.management.AttributeNotFoundException
javax.management.InstanceNotFoundException
javax.management.MBeanException
javax.management.ReflectionException

getName

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

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


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