|
|||||||||||
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
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 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()
|
javax.management.ObjectName |
getJBossMQService()
Get the value of JBossMQService. |
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, 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, 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 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 ServerILJMXServiceMBean
public void setInvoker(javax.management.ObjectName jbossMQService)
setInvoker
in interface ServerILJMXServiceMBean
public void startService() throws Exception
Exception
public void stopService() throws Exception
Exception
public void setConnectionFactoryJNDIRef(String newConnectionFactoryJNDIRef)
setConnectionFactoryJNDIRef
in interface ServerILJMXServiceMBean
newConnectionFactoryJNDIRef
- the JNDI reference where the
connection factory should be bound topublic void setXAConnectionFactoryJNDIRef(String newXaConnectionFactoryJNDIRef)
setXAConnectionFactoryJNDIRef
in interface ServerILJMXServiceMBean
newXaConnectionFactoryJNDIRef
- 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 ServerILJMXServiceMBean
public String getXAConnectionFactoryJNDIRef()
getXAConnectionFactoryJNDIRef
in interface ServerILJMXServiceMBean
public void bindJNDIReferences() throws NamingException
NamingException
- it cannot be unboundprotected void rebind(Context ctx, String name, Object val) throws NamingException
NamingException
public void unbindJNDIReferences() throws NamingException
NamingException
- it cannot be unboundpublic Invoker lookupJMSServer()
Exception
- Description of Exception
NamingException
- if the server is not foundpublic long getPingPeriod()
getPingPeriod
in interface ServerILJMXServiceMBean
public void setPingPeriod(long period)
setPingPeriod
in interface ServerILJMXServiceMBean
period
- long the period of time in ms to wait between connection
pingspublic String getClientID()
getClientID
in interface ServerILJMXServiceMBean
public void setClientID(String clientID)
setClientID
in interface ServerILJMXServiceMBean
clientID
- the client id
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |