Class ElasticsearchStorage

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

    public abstract class ElasticsearchStorage
    extends StorageComponent
    • Method Detail

      • pipeline

        @Nullable
        public abstract java.lang.String pipeline()
      • flushOnWrites

        public abstract boolean flushOnWrites()
      • strictTraceId

        public abstract boolean strictTraceId()
      • namesLookback

        public abstract int namesLookback()
      • version

        public float version()
        Returns the Elasticsearch version of the connected cluster. Internal use only
      • clear

        public void clear()
                   throws java.io.IOException
        This is an internal blocking call, only used in tests.
        Throws:
        java.io.IOException
      • isOverCapacity

        public boolean isOverCapacity​(java.lang.Throwable e)
        Internal code and api responses coerce to RejectedExecutionException when work is rejected. We also classify ResponseTimeoutException as a capacity related exception eventhough capacity is not the only reason (timeout could also result from a misconfiguration or a network problem).
        Overrides:
        isOverCapacity in class StorageComponent
      • check

        public CheckResult check()
        This is blocking so that we can determine if the cluster is healthy or not
        Overrides:
        check in class Component
      • toString

        public final java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class Component