Class SignalsTenant

    • Constructor Detail

      • SignalsTenant

        public SignalsTenant​(String name,
                             org.elasticsearch.client.Client client,
                             org.elasticsearch.cluster.service.ClusterService clusterService,
                             org.elasticsearch.env.NodeEnvironment nodeEnvironment,
                             org.elasticsearch.script.ScriptService scriptService,
                             org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry,
                             com.floragunn.searchguard.internalauthtoken.InternalAuthTokenProvider internalAuthTokenProvider,
                             SignalsSettings settings,
                             AccountRegistry accountRegistry,
                             com.floragunn.searchguard.modules.state.ComponentState tenantState,
                             com.floragunn.searchsupport.diag.DiagnosticContext diagnosticContext)
      • SignalsTenant

        public SignalsTenant​(String name,
                             org.elasticsearch.client.Client client,
                             org.elasticsearch.cluster.service.ClusterService clusterService,
                             org.elasticsearch.env.NodeEnvironment nodeEnvironment,
                             org.elasticsearch.script.ScriptService scriptService,
                             org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry,
                             com.floragunn.searchguard.internalauthtoken.InternalAuthTokenProvider internalAuthTokenProvider,
                             SignalsSettings settings,
                             AccountRegistry accountRegistry,
                             com.floragunn.searchsupport.diag.DiagnosticContext diagnosticContext)
    • Method Detail

      • create

        public static SignalsTenant create​(String name,
                                           org.elasticsearch.client.Client client,
                                           org.elasticsearch.cluster.service.ClusterService clusterService,
                                           org.elasticsearch.env.NodeEnvironment nodeEnvironment,
                                           org.elasticsearch.script.ScriptService scriptService,
                                           org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry,
                                           com.floragunn.searchguard.internalauthtoken.InternalAuthTokenProvider internalAuthTokenProvider,
                                           SignalsSettings settings,
                                           AccountRegistry accountRegistry,
                                           com.floragunn.searchguard.modules.state.ComponentState tenantState,
                                           com.floragunn.searchsupport.diag.DiagnosticContext diagnosticContext)
                                    throws org.quartz.SchedulerException
        Throws:
        org.quartz.SchedulerException
      • init

        public void init()
                  throws org.quartz.SchedulerException
        Throws:
        org.quartz.SchedulerException
      • pause

        public void pause()
                   throws org.quartz.SchedulerException
        Throws:
        org.quartz.SchedulerException
      • resume

        public void resume()
                    throws org.quartz.SchedulerException
        Throws:
        org.quartz.SchedulerException
      • isActive

        public boolean isActive()
                         throws org.quartz.SchedulerException
        Throws:
        org.quartz.SchedulerException
      • shutdown

        public void shutdown()
      • shutdownHard

        public void shutdownHard()
      • restart

        public void restart()
                     throws org.quartz.SchedulerException
        Throws:
        org.quartz.SchedulerException
      • restartAsync

        public void restartAsync()
      • runsWatchLocally

        public boolean runsWatchLocally​(String watchId)
      • getLocalWatchCount

        public int getLocalWatchCount()
      • getWatchIdForConfigIndex

        public String getWatchIdForConfigIndex​(String watchId)
      • getWatchIdForConfigIndex

        public String getWatchIdForConfigIndex​(Watch watch)
      • addWatch

        public org.elasticsearch.action.index.IndexResponse addWatch​(Watch watch,
                                                                     com.floragunn.searchguard.user.User user)
                                                              throws IOException
        Throws:
        IOException
      • addWatch

        public org.elasticsearch.action.index.IndexResponse addWatch​(String watchId,
                                                                     String watchJsonString,
                                                                     com.floragunn.searchguard.user.User user)
                                                              throws com.floragunn.searchsupport.config.validation.ConfigValidationException,
                                                                     IOException
        Throws:
        com.floragunn.searchsupport.config.validation.ConfigValidationException
        IOException
      • ack

        public List<String> ack​(String watchId,
                                com.floragunn.searchguard.user.User user)
      • ack

        public void ack​(String watchId,
                        String actionId,
                        com.floragunn.searchguard.user.User user)
      • deleteTenantFromIndexes

        public void deleteTenantFromIndexes()
      • delete

        public void delete()
      • getName

        public String getName()
      • getConfigIndexName

        public String getConfigIndexName()
      • getScopedName

        public String getScopedName()