Class AgentConfig


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20210201")
    public final class AgentConfig
    extends Config
    Agent configuration for any Agent complying with the OpAMP specification.
    Note: Objects should always be created or deserialized using the AgentConfig.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the AgentConfig.Builder, which maintain a set of all explicitly set fields called AgentConfig.Builder.__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
    • Method Detail

      • getMatchAgentsWithAttributeKey

        public List<String> getMatchAgentsWithAttributeKey()
        The agent attribute KEY by which an Agent configuration is matched to an agent.

        All agent configuration objects share the same key. It is [ServiceName, service.name] by default. The attribute VALUE corresponding to this KEY is in the matchAgentsWithAttributeValue field.

        Returns:
        the value
      • getMatchAgentsWithAttributeValue

        public String getMatchAgentsWithAttributeValue()
        The agent attribute VALUE by which an agent configuration is matched to an agent.

        Each agent configuration object must specify a different value. The attribute KEY corresponding to this VALUE is in the matchAgentsWithAttributeKey field.

        Returns:
        the value
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Overrides:
        toString in class Config
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Config