Class IMAPAgent

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

    @ManagedResource(description="IMAP Agent")
    public class IMAPAgent
    extends Object
    implements org.springframework.jmx.export.naming.SelfNaming, org.springframework.context.Lifecycle, org.springframework.beans.factory.InitializingBean
    • Constructor Detail

      • IMAPAgent

        public IMAPAgent()
    • Method Detail

      • start

        public void start()
        Specified by:
        start in interface org.springframework.context.Lifecycle
      • jmxStart

        @ManagedOperation(description="Start the IMAP Agent")
        public void jmxStart()
      • stop

        public void stop()
        Specified by:
        stop in interface org.springframework.context.Lifecycle
      • jmxStop

        @ManagedOperation(description="Stop the IMAP Agent")
        public void jmxStop()
      • afterPropertiesSet

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

        @ManagedAttribute(description="Check if the IMAP Agent is up and running")
        public boolean isRunning()
        Specified by:
        isRunning in interface org.springframework.context.Lifecycle
      • getNumberOfWaitingThreads

        @ManagedAttribute(description="Number of waiting threads. Should usually be zero")
        public int getNumberOfWaitingThreads()
        Number of threads waiting for a lock to acquire. This number should usually be zero; else the performance of jadice server too low to handle the amount of incoming mails.
        Returns:
        an estimate number of waiting threads.
        See Also:
        getNumberOfWaitingThreads()
      • getMaxConcurrentJobCount

        public int getMaxConcurrentJobCount()
      • setMaxConcurrentJobCount

        public void setMaxConcurrentJobCount​(int maxConcurrentJobCount)
      • releaseLock

        public void releaseLock()
        Must be called the an email conversion has finished (whether successful or not)