|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.NotificationBroadcasterSupport org.objectweb.jonas.management.ReconfigDispatcher org.objectweb.jonas.service.AbsServiceImpl org.objectweb.jonas.jms.JmsServiceImpl
public class JmsServiceImpl
JMS Service implementation.
Field Summary | |
---|---|
static java.lang.String |
CLASS
|
static java.lang.String |
COLLOCATED
|
static java.lang.String |
DESTINATIONS
|
static java.lang.String |
MOM
|
static java.lang.String |
QUEUES
|
static java.lang.String |
SERVICE_NAME
|
static java.lang.String |
TOPICS
|
static java.lang.String |
URL
|
Fields inherited from class org.objectweb.jonas.management.ReconfigDispatcher |
---|
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
Constructor Summary | |
---|---|
JmsServiceImpl()
|
Method Summary | |
---|---|
void |
createJmsQueueDestination(java.lang.String jndiName)
MBean method Create a new Jms queue destination |
void |
createJmsTopicDestination(java.lang.String jndiName)
MBean method Create a new Jms topic destination |
void |
doInit(javax.naming.Context ctx)
Init the Service. |
void |
doStart()
Start the Service Initialization of the service is already done. |
void |
doStop()
Stop the JMS Service |
java.util.Set |
getAllJmsConnectionFactoryNames()
MBean method return Set of Connection Factory Names |
java.util.Set |
getAllJmsQueueConnectionFactoryNames()
MBean method return Set of Queue Connection Factory Names |
java.util.Set |
getAllJmsQueueDestinationNames()
MBean method return Set of Queue Destinations Names |
java.util.Set |
getAllJmsTopicConnectionFactoryNames()
MBean method return Set of Topic Connection Factory Names |
java.util.Set |
getAllJmsTopicDestinationNames()
MBean method return Set of Topic Destination Names |
java.lang.String |
getConnectionFactoryMode(java.lang.String jndiName)
Get the messaging mode a connection factory belongs to |
java.lang.Integer |
getCurrentNumberOfJmsConnectionFactory()
MBean method |
java.lang.Integer |
getCurrentNumberOfJmsQueueConnectionFactory()
MBean method |
java.lang.Integer |
getCurrentNumberOfJmsQueueDestination()
MBean method |
java.lang.Integer |
getCurrentNumberOfJmsTopicConnectionFactory()
MBean method |
java.lang.Integer |
getCurrentNumberOfJmsTopicDestination()
MBean method |
java.lang.String |
getDefaultConnectionFactoryName()
|
java.lang.String |
getDefaultQueueConnectionFactoryName()
MBean method |
java.lang.String |
getDefaultTopicConnectionFactoryName()
MBean method |
JmsManager |
getJmsManager()
|
java.lang.String |
getMom()
|
java.lang.Integer |
getPendingMessages(java.lang.String jndiName)
Get number of pending messages on a queue |
java.lang.Integer |
getPendingRequests(java.lang.String jndiName)
Get number of pending requests on a queue |
java.lang.Integer |
getSubscriptions(java.lang.String jndiName)
Get number of subscriptions on a topic |
java.lang.String |
getUrl()
|
java.lang.Boolean |
isMomLocal()
|
void |
removeJmsDestination(java.lang.String jndiName)
Remove a Jms destination |
void |
removeJmsQueueDestination(java.lang.String jndiName)
MBean method Remove a Jms destination |
void |
removeJmsTopicDestination(java.lang.String jndiName)
MBean method Remove a Jms destination |
void |
saveConfig()
MBean method: save updated configuration |
Methods inherited from class org.objectweb.jonas.service.AbsServiceImpl |
---|
getDomainName, getJonasServerName, getName, init, isStarted, setName, start, stop |
Methods inherited from class org.objectweb.jonas.management.ReconfigDispatcher |
---|
addNotificationListener, getFilter, getHandback, getListener, getNotificationInfo, initLogger, removeNotificationListener, sendReconfigNotification, sendSaveNotification |
Methods inherited from class javax.management.NotificationBroadcasterSupport |
---|
handleNotification, 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.objectweb.jonas.service.Service |
---|
getName, init, isStarted, setName, start, stop |
Field Detail |
---|
public static final java.lang.String SERVICE_NAME
public static final java.lang.String COLLOCATED
public static final java.lang.String MOM
public static final java.lang.String TOPICS
public static final java.lang.String QUEUES
public static final java.lang.String DESTINATIONS
public static final java.lang.String URL
public static final java.lang.String CLASS
Constructor Detail |
---|
public JmsServiceImpl()
Method Detail |
---|
public void doInit(javax.naming.Context ctx) throws ServiceException
doInit
in class AbsServiceImpl
ctx
- configuration of the service
ServiceException
- service initialization failedpublic void doStart() throws ServiceException
doStart
in class AbsServiceImpl
ServiceException
- service start-up failedpublic void doStop() throws ServiceException
doStop
in class AbsServiceImpl
ServiceException
- service stopping failedpublic JmsManager getJmsManager()
getJmsManager
in interface JmsService
public java.lang.Integer getCurrentNumberOfJmsConnectionFactory()
getCurrentNumberOfJmsConnectionFactory
in interface JmsServiceImplMBean
public java.lang.Integer getCurrentNumberOfJmsTopicConnectionFactory()
getCurrentNumberOfJmsTopicConnectionFactory
in interface JmsServiceImplMBean
public java.lang.Integer getCurrentNumberOfJmsQueueConnectionFactory()
getCurrentNumberOfJmsQueueConnectionFactory
in interface JmsServiceImplMBean
public java.lang.Integer getCurrentNumberOfJmsTopicDestination()
getCurrentNumberOfJmsTopicDestination
in interface JmsServiceImplMBean
public java.lang.Integer getCurrentNumberOfJmsQueueDestination()
getCurrentNumberOfJmsQueueDestination
in interface JmsServiceImplMBean
public void createJmsQueueDestination(java.lang.String jndiName)
createJmsQueueDestination
in interface JmsServiceImplMBean
String
- jndi Name
not yet implement with a remote hostpublic void createJmsTopicDestination(java.lang.String jndiName)
createJmsTopicDestination
in interface JmsServiceImplMBean
String
- jndi Name
not yet implement with a remote hostpublic void removeJmsTopicDestination(java.lang.String jndiName)
removeJmsTopicDestination
in interface JmsServiceImplMBean
String
- jndi namepublic void removeJmsQueueDestination(java.lang.String jndiName)
removeJmsQueueDestination
in interface JmsServiceImplMBean
String
- jndi namepublic void removeJmsDestination(java.lang.String jndiName)
removeJmsDestination
in interface JmsServiceImplMBean
String
- jndi namepublic java.util.Set getAllJmsQueueDestinationNames()
getAllJmsQueueDestinationNames
in interface JmsServiceImplMBean
public java.util.Set getAllJmsTopicDestinationNames()
getAllJmsTopicDestinationNames
in interface JmsServiceImplMBean
public java.util.Set getAllJmsConnectionFactoryNames()
getAllJmsConnectionFactoryNames
in interface JmsServiceImplMBean
public java.util.Set getAllJmsQueueConnectionFactoryNames()
getAllJmsQueueConnectionFactoryNames
in interface JmsServiceImplMBean
public java.util.Set getAllJmsTopicConnectionFactoryNames()
getAllJmsTopicConnectionFactoryNames
in interface JmsServiceImplMBean
public java.lang.String getDefaultQueueConnectionFactoryName()
getDefaultQueueConnectionFactoryName
in interface JmsServiceImplMBean
public java.lang.String getDefaultTopicConnectionFactoryName()
getDefaultTopicConnectionFactoryName
in interface JmsServiceImplMBean
public java.lang.String getDefaultConnectionFactoryName()
getDefaultConnectionFactoryName
in interface JmsServiceImplMBean
public void saveConfig()
saveConfig
in interface JmsServiceImplMBean
public java.lang.String getConnectionFactoryMode(java.lang.String jndiName)
getConnectionFactoryMode
in interface JmsServiceImplMBean
jndiName
- connection factory name
public java.lang.Integer getPendingMessages(java.lang.String jndiName)
getPendingMessages
in interface JmsServiceImplMBean
jndiName
- queue name
public java.lang.Integer getPendingRequests(java.lang.String jndiName)
getPendingRequests
in interface JmsServiceImplMBean
jndiName
- queue name
public java.lang.Integer getSubscriptions(java.lang.String jndiName)
getSubscriptions
in interface JmsServiceImplMBean
jndiName
- topic name
public java.lang.String getUrl()
getUrl
in interface JmsServiceImplMBean
public java.lang.String getMom()
getMom
in interface JmsServiceImplMBean
public java.lang.Boolean isMomLocal()
isMomLocal
in interface JmsServiceImplMBean
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |