Class ReadonlyQueryIndex

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

    class ReadonlyQueryIndex
    extends QueryIndex
    • Field Detail

      • refreshExecutor

        private final java.util.concurrent.ScheduledExecutorService refreshExecutor
    • Constructor Detail

      • ReadonlyQueryIndex

        public ReadonlyQueryIndex​(MonitorConfiguration configuration)
                           throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • commit

        public void commit​(java.util.List<MonitorQuery> updates)
                    throws java.io.IOException
        Specified by:
        commit in class QueryIndex
        Throws:
        java.io.IOException
      • purgeCache

        public void purgeCache()
                        throws java.io.IOException
        Specified by:
        purgeCache in class QueryIndex
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • numDocs

        public int numDocs()
                    throws java.io.IOException
        Specified by:
        numDocs in class QueryIndex
        Throws:
        java.io.IOException
      • deleteQueries

        public void deleteQueries​(java.util.List<java.lang.String> ids)
                           throws java.io.IOException
        Specified by:
        deleteQueries in class QueryIndex
        Throws:
        java.io.IOException
      • clear

        public void clear()
                   throws java.io.IOException
        Specified by:
        clear in class QueryIndex
        Throws:
        java.io.IOException