Package net.timewalker.ffmq4
Class FFMQServer
- java.lang.Object
-
- net.timewalker.ffmq4.FFMQServer
-
- All Implemented Interfaces:
Runnable,FFMQServerMBean,net.timewalker.ffmq4.local.FFMQEngineListener
public final class FFMQServer extends Object implements FFMQServerMBean, net.timewalker.ffmq4.local.FFMQEngineListener, Runnable
Implementation of an FFMQ Server instance.
-
-
Constructor Summary
Constructors Constructor Description FFMQServer(String engineName, net.timewalker.ffmq4.utils.Settings settings)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidengineDeployed()voidengineUndeployed()longgetUptime()Get the server uptime in millisecondsStringgetVersion()Get the server version stringbooleanisInRunnableMode()booleanisRemoteAdministrationEnabled()Test if remote admin is enabledbooleanisStarted()Test if the server is startedvoidpleaseStop()voidqueueDeployed(net.timewalker.ffmq4.local.destination.LocalQueue queue)voidqueueUndeployed(net.timewalker.ffmq4.local.destination.LocalQueue queue)voidrun()booleanshutdown()Ask the server to shutdownbooleanstart()Ask the server to startvoidtopicDeployed(net.timewalker.ffmq4.local.destination.LocalTopic topic)voidtopicUndeployed(net.timewalker.ffmq4.local.destination.LocalTopic topic)
-
-
-
Constructor Detail
-
FFMQServer
public FFMQServer(String engineName, net.timewalker.ffmq4.utils.Settings settings) throws javax.jms.JMSException
Constructor- Throws:
javax.jms.JMSException
-
-
Method Detail
-
getVersion
public String getVersion()
Description copied from interface:FFMQServerMBeanGet the server version string- Specified by:
getVersionin interfaceFFMQServerMBean
-
start
public boolean start()
Description copied from interface:FFMQServerMBeanAsk the server to start- Specified by:
startin interfaceFFMQServerMBean
-
shutdown
public boolean shutdown()
Description copied from interface:FFMQServerMBeanAsk the server to shutdown- Specified by:
shutdownin interfaceFFMQServerMBean
-
isStarted
public boolean isStarted()
Description copied from interface:FFMQServerMBeanTest if the server is started- Specified by:
isStartedin interfaceFFMQServerMBean- Returns:
- the started
-
engineDeployed
public void engineDeployed()
- Specified by:
engineDeployedin interfacenet.timewalker.ffmq4.local.FFMQEngineListener
-
engineUndeployed
public void engineUndeployed()
- Specified by:
engineUndeployedin interfacenet.timewalker.ffmq4.local.FFMQEngineListener
-
queueDeployed
public void queueDeployed(net.timewalker.ffmq4.local.destination.LocalQueue queue)
- Specified by:
queueDeployedin interfacenet.timewalker.ffmq4.local.FFMQEngineListener
-
queueUndeployed
public void queueUndeployed(net.timewalker.ffmq4.local.destination.LocalQueue queue)
- Specified by:
queueUndeployedin interfacenet.timewalker.ffmq4.local.FFMQEngineListener
-
topicDeployed
public void topicDeployed(net.timewalker.ffmq4.local.destination.LocalTopic topic)
- Specified by:
topicDeployedin interfacenet.timewalker.ffmq4.local.FFMQEngineListener
-
topicUndeployed
public void topicUndeployed(net.timewalker.ffmq4.local.destination.LocalTopic topic)
- Specified by:
topicUndeployedin interfacenet.timewalker.ffmq4.local.FFMQEngineListener
-
isRemoteAdministrationEnabled
public boolean isRemoteAdministrationEnabled()
Description copied from interface:FFMQServerMBeanTest if remote admin is enabled- Specified by:
isRemoteAdministrationEnabledin interfaceFFMQServerMBean
-
getUptime
public long getUptime()
Description copied from interface:FFMQServerMBeanGet the server uptime in milliseconds- Specified by:
getUptimein interfaceFFMQServerMBean
-
pleaseStop
public void pleaseStop()
-
isInRunnableMode
public boolean isInRunnableMode()
- Returns:
- the inRunnableMode
-
-