public final class FFMQEngine extends Object implements FFMQEngineMBean
Implementation of the core FFMQ engine.
Typically created by an FFMQServer instance, but can also be created manually to be embedded directly in the using application JVM.
| Constructor and Description |
|---|
FFMQEngine(String name,
Settings engineSettings)
Constructor
|
FFMQEngine(String name,
Settings engineSettings,
FFMQEngineListener listener)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkDeployed()
Check that the engine is running
|
LocalQueue |
createQueue(QueueDefinition queueDef)
Deploy a new queue on this engine
|
LocalQueue |
createTemporaryQueue(String queueName)
Deploy a new temporary queue on this engine
|
LocalTopic |
createTemporaryTopic(String topicName)
Deploy a new temporary topic on this engine
|
LocalTopic |
createTopic(TopicDefinition topicDef)
Create a new topic
|
void |
deleteQueue(String queueName)
Undeploy a queue
|
void |
deleteQueue(String queueName,
boolean force)
Undeploy a queue
|
void |
deleteTopic(String topicName)
Undeploy a topic
|
void |
deploy() |
AsyncTaskManager |
getDeliveryAsyncTaskManager()
Get the engine async.
|
static FFMQEngine |
getDeployedInstance(String name)
Get a deployed engine instance by name
|
DestinationDefinitionProvider |
getDestinationDefinitionProvider() |
DestinationTemplateProvider |
getDestinationTemplateProvider()
Get the destination template provider associated to this engine
|
AsyncTaskManager |
getDiskIOAsyncTaskManager()
Get the engine async.
|
LocalQueue |
getLocalQueue(String queueName)
Get a local queue by name
|
LocalTopic |
getLocalTopic(String topicName)
Get a local topic by name
|
String |
getName()
Get the engine name
|
AsyncTaskManager |
getNotificationAsyncTaskManager()
Get the engine async.
|
FFMQEngineSetup |
getSetup()
Get the engine setup
|
TemplateMappingProvider |
getTemplateMappingProvider()
Get the template mapping provider associated to this engine
|
boolean |
isDeployed()
Test if the engine is deployed
|
boolean |
isSecurityEnabled()
Test if security checks are enabled on that engine
|
boolean |
localQueueExists(String queueName)
Test if a local queue exists by name
|
boolean |
localTopicExists(String topicName)
Test if a local topic exists by name
|
javax.jms.Connection |
openConnection(String userName,
String password,
String clientID)
Open a new connection
|
javax.jms.QueueConnection |
openQueueConnection(String userName,
String password,
String clientID)
Open a new queue connection
|
javax.jms.TopicConnection |
openTopicConnection(String userName,
String password,
String clientID)
Open a new topic connection
|
void |
resetAllStatistics()
Reset all engine statistics (queues and topics stats)
|
void |
subscribe(String clientID,
String subscriptionName) |
void |
undeploy() |
void |
unsubscribe(String clientID,
String subscriptionName)
Unsubscribe a durable subscriber from all related topics
|
public FFMQEngine(String name, Settings engineSettings) throws FFMQException
FFMQException - on configuration errorpublic FFMQEngine(String name, Settings engineSettings, FFMQEngineListener listener) throws FFMQException
FFMQException - on configuration errorpublic static FFMQEngine getDeployedInstance(String name) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic String getName()
FFMQEngineMBeangetName in interface FFMQEngineMBeanprotected void checkDeployed()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic boolean isDeployed()
FFMQEngineMBeanisDeployed in interface FFMQEngineMBeanpublic boolean isSecurityEnabled()
FFMQEngineMBeanisSecurityEnabled in interface FFMQEngineMBeanpublic void deploy()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic DestinationTemplateProvider getDestinationTemplateProvider()
public TemplateMappingProvider getTemplateMappingProvider()
public FFMQEngineSetup getSetup()
public void undeploy()
public javax.jms.Connection openConnection(String userName, String password, String clientID) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.QueueConnection openQueueConnection(String userName, String password, String clientID) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.TopicConnection openTopicConnection(String userName, String password, String clientID) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic LocalQueue createTemporaryQueue(String queueName) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic LocalQueue createQueue(QueueDefinition queueDef) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic LocalTopic createTemporaryTopic(String topicName) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic LocalTopic createTopic(TopicDefinition topicDef) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void deleteQueue(String queueName) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void deleteQueue(String queueName, boolean force) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void deleteTopic(String topicName) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic LocalQueue getLocalQueue(String queueName) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic boolean localQueueExists(String queueName) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic LocalTopic getLocalTopic(String topicName) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic boolean localTopicExists(String topicName) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void subscribe(String clientID, String subscriptionName) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void unsubscribe(String clientID, String subscriptionName) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic AsyncTaskManager getNotificationAsyncTaskManager() throws javax.jms.JMSException
javax.jms.JMSExceptionpublic AsyncTaskManager getDeliveryAsyncTaskManager() throws javax.jms.JMSException
javax.jms.JMSExceptionpublic AsyncTaskManager getDiskIOAsyncTaskManager() throws javax.jms.JMSException
javax.jms.JMSExceptionpublic DestinationDefinitionProvider getDestinationDefinitionProvider()
public void resetAllStatistics()
FFMQEngineMBeanresetAllStatistics in interface FFMQEngineMBeanCopyright © 2021. All rights reserved.