Class JadiceServer

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, org.springframework.jmx.export.naming.SelfNaming

    @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
    This class is the central entry point to the jadice server system. It manages a server instance. Most work, however, is delegated to the JobScheduler.
    • Constructor Detail

      • JadiceServer

        public JadiceServer()
    • Method Detail

      • checkClosed

        protected void checkClosed()
      • checkRunning

        protected void checkRunning()
      • setScheduler

        public void setScheduler​(JobScheduler scheduler)
      • setJMXContext

        public void setJMXContext​(JMXContext ctx)
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception
      • isRunning

        @ManagedAttribute(description="Flag indicating whether the server is running")
        public boolean isRunning()
        Specified by:
        isRunning in interface org.springframework.context.Lifecycle
      • start

        @ManagedOperation(description="Start this jadice server instance")
        public void start()
        Specified by:
        start in interface org.springframework.context.Lifecycle
      • stop

        @ManagedOperation(description="Perform a safe shutdown of this jadice server instance")
        public void stop()
        Specified by:
        stop in interface org.springframework.context.Lifecycle
      • getVersion

        @ManagedAttribute(description="Version of jadice server")
        public String getVersion()
      • getReleaseDate

        @ManagedAttribute(description="Date when this version was built")
        public Date getReleaseDate()
      • setRequestEndpoint

        public void setRequestEndpoint​(RequestEndpoint<?> requestEndpoint)