@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() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected void |
checkClosed() |
protected void |
checkRunning() |
void |
ensureCorrectConfiguration() |
ObjectName |
getObjectName() |
Date |
getReleaseDate() |
RequestEndpoint<?> |
getRequestEndpoint() |
JobScheduler |
getScheduler() |
static ScheduledExecutorService |
getSchedulerService() |
String |
getVersion() |
boolean |
isRunning() |
void |
setJMXContext(JMXContext ctx) |
void |
setRequestEndpoint(RequestEndpoint<?> requestEndpoint) |
void |
setScheduler(JobScheduler scheduler) |
void |
start() |
void |
stop() |
public static ScheduledExecutorService getSchedulerService()
protected void checkClosed()
protected void checkRunning()
public void ensureCorrectConfiguration() throws ConfigurationException
ConfigurationException
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()
public RequestEndpoint<?> getRequestEndpoint()
public void setRequestEndpoint(RequestEndpoint<?> requestEndpoint)
Copyright © 2017 levigo holding gmbh. All rights reserved.