@ManagedResource(objectName="com.levigo.jadice.server:name=serverInstance", description="the jadice server management interface") public class JadiceServer extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.jmx.export.naming.SelfNaming, org.springframework.context.Lifecycle
Constructor and Description |
---|
JadiceServer() |
public static ScheduledExecutorService getSchedulerService()
protected void checkClosed()
protected void checkRunning()
public void ensureCorrectConfiguration() throws ConfigurationException
ConfigurationException
public javax.jms.QueueConnectionFactory getConnectionFactory()
public javax.jms.QueueConnectionFactory getWrappedConnectionFactory()
setConnectionFactory(QueueConnectionFactory)
, but uses the credentials set via
setJmsUsername(String)
/ setJmsPassword(String)
.QueueConnectionFactory
that uses credentials as described above.setJmsUsername(String)
,
setJmsPassword(String)
public StreamTransportFactory getFileProvider()
public String getJmsPassword()
public String getJmsUsername()
@ManagedAttribute(description="The queue name this jadice server instance is listening on") public String getRequestQueueName()
public void setConnectionFactory(javax.jms.QueueConnectionFactory connectionFactory)
public void setFileProvider(StreamTransportFactory fileProvider)
public void setJmsPassword(String jmsPassword)
public void setJmsUsername(String jmsUsername)
public void setRequestQueueName(String requestQueueName)
public JobScheduler getScheduler()
public void setScheduler(JobScheduler scheduler)
public void setJMXContext(JMXContext ctx)
public ObjectName getObjectName() throws MalformedObjectNameException
getObjectName
in interface org.springframework.jmx.export.naming.SelfNaming
MalformedObjectNameException
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
@ManagedAttribute(description="Flag indicating whether the server is running") public boolean isRunning()
isRunning
in interface org.springframework.context.Lifecycle
@ManagedOperation(description="Start this jadice server instance") public void start()
start
in interface org.springframework.context.Lifecycle
@ManagedOperation(description="Perform a safe shutdown of this jadice server instance") public void stop()
stop
in interface org.springframework.context.Lifecycle
@ManagedAttribute(description="Version of jadice server") public String getVersion()
@ManagedAttribute(description="Date when this version was built") public Date getReleaseDate()
Copyright © 2016 levigo holding gmbh. All rights reserved.