Class LogtoolContext

  • Direct Known Subclasses:
    Logtool, NoopAnalyzer

    public abstract class LogtoolContext
    extends Object
    Abstract class to hook an Analyzer into the Spring Context. For this to work, the Analyzer must first call getCore() to retrieve the LogtoolCore reference, then call the readStateLog() method on the LogtoolCore to do the analysis.
    Author:
    John Collins
    • Constructor Detail

      • LogtoolContext

        public LogtoolContext()
    • Method Detail

      • initialize

        protected void initialize()
        Set up the Spring context, initialize common number formatting setup
      • setContext

        protected void setContext​(org.springframework.context.ApplicationContext context)
      • getContext

        protected org.springframework.context.ApplicationContext getContext()
        Return the ApplicationContext
      • getCore

        protected LogtoolCore getCore()
        Returns LogtoolCore instance
      • getDomainObjectReader

        protected DomainObjectReader getDomainObjectReader()
        Returns DomainObjectReader instance
      • getBean

        protected Object getBean​(String beanName)
        Retrieves a Spring component instance by name
      • cli

        protected void cli​(String inputFile,
                           Analyzer analyzer)
        default command-line processor. We assume a single arg, a filename
      • registerNewObjectListener

        protected void registerNewObjectListener​(NewObjectListener listener,
                                                 Class<?> type)
        Passthrough for event registration
      • registerMessageListener

        protected void registerMessageListener​(Class<?> type)