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