|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mx.util.JBossNotificationBroadcasterSupport org.jboss.system.ServiceMBeanSupport org.jboss.mq.il.ServerILJMXService org.jboss.mq.il.ha.HAILServerILService
This is the server side MBean for the HAIL transport layer. It builts upon UIL2.
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 |
public static final String NOTIFICATION_SINGLETON_MOVED
Constructor Detail |
public HAILServerILService()
Method Detail |
public Properties getClientConnectionProperties()
public org.jboss.mq.il.ServerIL getServerIL()
public void startService() throws Exception
Exception
- Description of Exceptionpublic void stopService()
public javax.management.ObjectName getUILServerILService()
public void setUILServerILService(javax.management.ObjectName uilService)
public void broadcastSingletonChangeNotification() throws javax.management.InstanceNotFoundException, javax.management.MBeanException, javax.management.ReflectionException
javax.management.InstanceNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
public void startSingleton()
HAILServerILServiceMBean
startSingleton
in interface HAILServerILServiceMBean
public boolean isMasterNode()
isMasterNode
in interface HAILServerILServiceMBean
public void stopSingleton()
HAILServerILServiceMBean
stopSingleton
in interface HAILServerILServiceMBean
public javax.management.ObjectName getUILService()
HAILServerILServiceMBean
getUILService
in interface HAILServerILServiceMBean
public void setUILService(javax.management.ObjectName uilService)
HAILServerILServiceMBean
setUILService
in interface HAILServerILServiceMBean
public javax.management.ObjectName getSharedStateService()
HAILServerILServiceMBean
getSharedStateService
in interface HAILServerILServiceMBean
public void setSharedStateService(javax.management.ObjectName sharedStateService)
HAILServerILServiceMBean
setSharedStateService
in interface HAILServerILServiceMBean
public void updateSharedState() throws javax.management.InstanceNotFoundException, javax.management.AttributeNotFoundException, javax.management.InvalidAttributeValueException, javax.management.MBeanException, javax.management.ReflectionException, UnknownHostException
javax.management.InstanceNotFoundException
javax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.ReflectionException
UnknownHostException
public InetAddress getServerAddress() throws UnknownHostException, javax.management.AttributeNotFoundException, javax.management.InstanceNotFoundException, javax.management.MBeanException, javax.management.ReflectionException
getServerAddress
in interface HAILServerILServiceMBean
UnknownHostException
javax.management.AttributeNotFoundException
javax.management.InstanceNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
public Integer getServerPort() throws javax.management.AttributeNotFoundException, javax.management.InstanceNotFoundException, javax.management.MBeanException, javax.management.ReflectionException
getServerPort
in interface HAILServerILServiceMBean
javax.management.AttributeNotFoundException
javax.management.InstanceNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
public String getClientSocketFactory() throws javax.management.AttributeNotFoundException, javax.management.InstanceNotFoundException, javax.management.MBeanException, javax.management.ReflectionException
getClientSocketFactory
in interface HAILServerILServiceMBean
javax.management.AttributeNotFoundException
javax.management.InstanceNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
public boolean getEnableTcpNoDelay() throws javax.management.AttributeNotFoundException, javax.management.InstanceNotFoundException, javax.management.MBeanException, javax.management.ReflectionException
getEnableTcpNoDelay
in interface HAILServerILServiceMBean
javax.management.AttributeNotFoundException
javax.management.InstanceNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
public int getChunkSize() throws javax.management.AttributeNotFoundException, javax.management.InstanceNotFoundException, javax.management.MBeanException, javax.management.ReflectionException
getChunkSize
in interface HAILServerILServiceMBean
javax.management.AttributeNotFoundException
javax.management.InstanceNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
public int getBufferSize() throws javax.management.AttributeNotFoundException, javax.management.InstanceNotFoundException, javax.management.MBeanException, javax.management.ReflectionException
getBufferSize
in interface HAILServerILServiceMBean
javax.management.AttributeNotFoundException
javax.management.InstanceNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
public String getName()
getName
in interface org.jboss.system.ServiceMBean
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |