Class AsyncIndexUpdate

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.lang.Runnable

    public class AsyncIndexUpdate
    extends java.lang.Object
    implements java.lang.Runnable, java.io.Closeable
    • Field Detail

      • PROP_ASYNC_NAME

        public static final java.lang.String PROP_ASYNC_NAME
        Name of service property which determines the name of Async task
        See Also:
        Constant Field Values
    • Constructor Detail

      • AsyncIndexUpdate

        public AsyncIndexUpdate​(@NotNull
                                @NotNull java.lang.String name,
                                @NotNull
                                @NotNull NodeStore store,
                                @NotNull
                                @NotNull IndexEditorProvider provider,
                                boolean switchOnSync)
      • AsyncIndexUpdate

        public AsyncIndexUpdate​(@NotNull
                                @NotNull java.lang.String name,
                                @NotNull
                                @NotNull NodeStore store,
                                @NotNull
                                @NotNull IndexEditorProvider provider,
                                StatisticsProvider statsProvider,
                                boolean switchOnSync)
      • AsyncIndexUpdate

        public AsyncIndexUpdate​(@NotNull
                                @NotNull java.lang.String name,
                                @NotNull
                                @NotNull NodeStore store,
                                @NotNull
                                @NotNull IndexEditorProvider provider)
    • Method Detail

      • checkValidName

        public static java.lang.String checkValidName​(java.lang.String asyncName)
      • isAsyncLaneName

        public static boolean isAsyncLaneName​(java.lang.String asyncName)
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
      • leasify

        public static java.lang.String leasify​(java.lang.String name)
      • setValidatorProviders

        public void setValidatorProviders​(java.util.List<ValidatorProvider> validatorProviders)
      • isClosed

        public boolean isClosed()
      • getIndexStats

        public org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate.AsyncIndexStats getIndexStats()
      • isFinished

        public boolean isFinished()
      • isFailing

        public boolean isFailing()
      • setIndexMBeanRegistration

        public void setIndexMBeanRegistration​(IndexMBeanRegistration mbeanRegistration)
      • getName

        public java.lang.String getName()