|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.mq.il.ServerILJMXService
public abstract class ServerILJMXService
This abstract class handles life cycle managment of the ServeIL. Should be extended to provide a full implementation.
| Field Summary | |
|---|---|
protected String |
clientID
The client id |
protected String |
connectionFactoryJNDIRef
|
protected Invoker |
jmsServer
|
protected long |
pingPeriod
|
protected String |
xaConnectionFactoryJNDIRef
|
| Fields inherited from class org.jboss.system.ServiceMBeanSupport |
|---|
log, 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 | |
|---|---|
ServerILJMXService()
|
|
| Method Summary | |
|---|---|
void |
bindJNDIReferences()
Binds the connection factories for this IL |
Properties |
getClientConnectionProperties()
|
String |
getClientID()
Get the client id for this connection factory |
String |
getConnectionFactoryJNDIRef()
|
protected InitialContext |
getInitialContext()
|
javax.management.ObjectName |
getJBossMQService()
Get the value of JBossMQService. |
Invoker |
getJMSServer()
|
long |
getPingPeriod()
|
abstract ServerIL |
getServerIL()
|
String |
getXAConnectionFactoryJNDIRef()
|
Invoker |
lookupJMSServer()
|
protected void |
rebind(Context ctx,
String name,
Object val)
|
void |
setClientID(String clientID)
Set the client id for this connection factory |
void |
setConnectionFactoryJNDIRef(String newConnectionFactoryJNDIRef)
|
void |
setInvoker(javax.management.ObjectName jbossMQService)
Set the value of JBossMQService. |
void |
setPingPeriod(long period)
|
void |
setXAConnectionFactoryJNDIRef(String newXaConnectionFactoryJNDIRef)
|
void |
startService()
|
void |
stopService()
|
void |
unbindJNDIReferences()
Unbinds the connection factories for this IL |
| Methods inherited from class org.jboss.system.ServiceMBeanSupport |
|---|
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getName, 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, nextNotificationSequenceNumber, 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.system.ServiceMBean |
|---|
getName, getState, getStateString, jbossInternalLifecycle |
| Methods inherited from interface org.jboss.system.Service |
|---|
create, destroy, start, stop |
| Field Detail |
|---|
protected Invoker jmsServer
protected String connectionFactoryJNDIRef
protected String xaConnectionFactoryJNDIRef
protected long pingPeriod
protected String clientID
| Constructor Detail |
|---|
public ServerILJMXService()
| Method Detail |
|---|
public javax.management.ObjectName getJBossMQService()
getJBossMQService in interface ServerILJMXServiceMBeanpublic void setInvoker(javax.management.ObjectName jbossMQService)
setInvoker in interface ServerILJMXServiceMBeanv - Value to assign to JBossMQService.
public void startService()
throws Exception
startService in class org.jboss.system.ServiceMBeanSupportException
public void stopService()
throws Exception
stopService in class org.jboss.system.ServiceMBeanSupportExceptionpublic void setConnectionFactoryJNDIRef(String newConnectionFactoryJNDIRef)
setConnectionFactoryJNDIRef in interface ServerILJMXServiceMBeannewConnectionFactoryJNDIRef - the JNDI reference where the
connection factory should be bound topublic void setXAConnectionFactoryJNDIRef(String newXaConnectionFactoryJNDIRef)
setXAConnectionFactoryJNDIRef in interface ServerILJMXServiceMBeannewXaConnectionFactoryJNDIRef - java.lang.String the JNDI reference
where the xa connection factory should be bound topublic Properties getClientConnectionProperties()
public abstract ServerIL getServerIL()
public String getConnectionFactoryJNDIRef()
getConnectionFactoryJNDIRef in interface ServerILJMXServiceMBeanpublic String getXAConnectionFactoryJNDIRef()
getXAConnectionFactoryJNDIRef in interface ServerILJMXServiceMBean
public void bindJNDIReferences()
throws NamingException
NamingException - it cannot be unbound
protected InitialContext getInitialContext()
throws NamingException
NamingException
protected void rebind(Context ctx,
String name,
Object val)
throws NamingException
NamingException
public void unbindJNDIReferences()
throws NamingException
NamingException - it cannot be unboundpublic Invoker getJMSServer()
Exception - Description of Exception
NamingException - if the server is not foundpublic Invoker lookupJMSServer()
Exception - Description of Exception
NamingException - if the server is not foundpublic long getPingPeriod()
getPingPeriod in interface ServerILJMXServiceMBeanpublic void setPingPeriod(long period)
setPingPeriod in interface ServerILJMXServiceMBeanperiod - long the period of time in ms to wait between connection
pingspublic String getClientID()
getClientID in interface ServerILJMXServiceMBeanpublic void setClientID(String clientID)
setClientID in interface ServerILJMXServiceMBeanclientID - the client id
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||