Interface AgentParametersProvider

    • Method Detail

      • canFetchParameters

        boolean canFetchParameters​(@NotNull
                                   AgentTypeKey agentTypeKey)
        Indicates whether it's possible to fetch parameters for the given agentTypeKey
        Parameters:
        agentTypeKey - AgentTypeKey to fetch parameters for
        Returns:
        true if that extension can fetch parameters, false otherwise
      • disableUpdateFromAgent

        boolean disableUpdateFromAgent​(@NotNull
                                       AgentTypeKey agentTypeKey)
        Indicates whether parameters are always provided by the extension and should never be updated from the agent. In this case plugin should take care of parameters update itself
        Parameters:
        agentTypeKey -
        Returns:
      • getTimeoutMs

        long getTimeoutMs()
        Maximum amount of time (in milliseconds) to wait for response
        Returns:
        see above
      • fetchParametersAsync

        @NotNull
        Future<AgentDescription> fetchParametersAsync​(@NotNull
                                                      AgentTypeKey agentTypeKey)
        this method should asynchronously call parameters fetcher
        Parameters:
        agentTypeKey - key of agent type to fetch parameters for
        Returns:
        a Future containing map of parameters or null if plugin will update AgentType itself