Class ElasticsearchAccessor

    • Constructor Detail

      • ElasticsearchAccessor

        public ElasticsearchAccessor​(EntityDescriptor entityDesc,
                                     java.net.URI uri,
                                     java.util.Map<java.lang.String,​java.lang.Object> cfg)
    • Method Detail

      • parseIndexName

        public static java.lang.String parseIndexName​(java.net.URI uri)
      • getCommitLogReader

        public java.util.Optional<CommitLogReader> getCommitLogReader​(Context context)
        Description copied from interface: DataAccessor
        Retrieve commit log reader (if applicable).
        Specified by:
        getCommitLogReader in interface DataAccessor
        Parameters:
        context - serializable context provided by repository
        Returns:
        optional @{link CommitLogReader} of this accessor
      • getRestHighLevelClient

        public cz.o2.proxima.elasticsearch.shaded.org.elasticsearch.client.RestHighLevelClient getRestHighLevelClient()
      • getFlushInterval

        @Nullable
        public cz.o2.proxima.elasticsearch.shaded.org.elasticsearch.core.TimeValue getFlushInterval()
      • getCfg

        public java.util.Map<java.lang.String,​java.lang.Object> getCfg()
      • getScheme

        public java.lang.String getScheme()
      • getIndexName

        public java.lang.String getIndexName()
      • getConnectTimeoutMs

        public int getConnectTimeoutMs()
      • getConnectionRequestTimeoutMs

        public int getConnectionRequestTimeoutMs()
      • getSocketTimeoutMs

        public int getSocketTimeoutMs()
      • getConcurrentRequests

        public int getConcurrentRequests()
      • getBatchSize

        public int getBatchSize()
      • getKeystoreType

        public java.lang.String getKeystoreType()
      • getKeystorePath

        public java.lang.String getKeystorePath()
      • getKeystorePassword

        public java.lang.String getKeystorePassword()
      • getTruststorePath

        public java.lang.String getTruststorePath()
      • getTruststorePassword

        public java.lang.String getTruststorePassword()
      • getBulkSizeMb

        public int getBulkSizeMb()