Class ContentCleanerService

  • All Implemented Interfaces:
    org.jboss.msc.Service

    public class ContentCleanerService
    extends Object
    implements org.jboss.msc.Service
    Service in charge with cleaning left over contents from the content repository.
    Author:
    Emmanuel Hugonnet (c) 2014 Red Hat, inc., Richard Opalka
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long DEFAULT_INTERVAL
      The conten repository cleaner will test content for clean-up every 5 minutes.
      • Fields inherited from interface org.jboss.msc.Service

        NULL
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void addService​(org.jboss.msc.service.ServiceTarget serviceTarget, org.jboss.msc.service.ServiceName clientFactoryService, org.jboss.msc.service.ServiceName scheduledExecutorServiceName)  
      static void addServiceOnHostController​(org.jboss.msc.service.ServiceTarget serviceTarget, org.jboss.msc.service.ServiceName hostControllerServiceName, org.jboss.msc.service.ServiceName clientFactoryServiceName, org.jboss.msc.service.ServiceName hostControllerExecutorServiceName, org.jboss.msc.service.ServiceName scheduledExecutorServiceName)  
      void start​(org.jboss.msc.service.StartContext context)  
      void stop​(org.jboss.msc.service.StopContext context)  
    • Field Detail

      • DEFAULT_INTERVAL

        public static final long DEFAULT_INTERVAL
        The conten repository cleaner will test content for clean-up every 5 minutes.
    • Method Detail

      • addService

        public static void addService​(org.jboss.msc.service.ServiceTarget serviceTarget,
                                      org.jboss.msc.service.ServiceName clientFactoryService,
                                      org.jboss.msc.service.ServiceName scheduledExecutorServiceName)
      • addServiceOnHostController

        public static void addServiceOnHostController​(org.jboss.msc.service.ServiceTarget serviceTarget,
                                                      org.jboss.msc.service.ServiceName hostControllerServiceName,
                                                      org.jboss.msc.service.ServiceName clientFactoryServiceName,
                                                      org.jboss.msc.service.ServiceName hostControllerExecutorServiceName,
                                                      org.jboss.msc.service.ServiceName scheduledExecutorServiceName)
      • start

        public void start​(org.jboss.msc.service.StartContext context)
                   throws org.jboss.msc.service.StartException
        Specified by:
        start in interface org.jboss.msc.Service
        Throws:
        org.jboss.msc.service.StartException
      • stop

        public void stop​(org.jboss.msc.service.StopContext context)
        Specified by:
        stop in interface org.jboss.msc.Service