Record Class InboundAgentRule.AgentArguments

java.lang.Object
java.lang.Record
org.jvnet.hudson.test.InboundAgentRule.AgentArguments
Record Components:
agentJar - A reference to the agent jar
url - the controller root URL
name - the agent name
secret - The secret the agent should use to connect.
numberOfNodes - The number of nodes in the Jenkins instance where the agent is running.
commandLineArgs - Additional command line arguments to pass to the agent.
All Implemented Interfaces:
Serializable
Enclosing class:
InboundAgentRule

public static record InboundAgentRule.AgentArguments(File agentJar, String url, String name, String secret, int numberOfNodes, List<String> commandLineArgs) extends Record implements Serializable
See Also:
  • Constructor Details

    • AgentArguments

      @Deprecated public AgentArguments(@NonNull String agentJnlpUrl, @NonNull File agentJar, @NonNull String secret, int numberOfNodes, @NonNull List<String> commandLineArgs)
      Deprecated.
    • AgentArguments

      public AgentArguments(@NonNull File agentJar, @NonNull String url, @NonNull String name, @NonNull String secret, int numberOfNodes, @NonNull List<String> commandLineArgs)
      Creates an instance of a AgentArguments record class.
      Parameters:
      agentJar - the value for the agentJar record component
      url - the value for the url record component
      name - the value for the name record component
      secret - the value for the secret record component
      numberOfNodes - the value for the numberOfNodes record component
      commandLineArgs - the value for the commandLineArgs record component
  • Method Details

    • agentJnlpUrl

      @Deprecated public String agentJnlpUrl()
      Deprecated.
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • agentJar

      @NonNull public File agentJar()
      Returns the value of the agentJar record component.
      Returns:
      the value of the agentJar record component
    • url

      @NonNull public String url()
      Returns the value of the url record component.
      Returns:
      the value of the url record component
    • name

      @NonNull public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • secret

      @NonNull public String secret()
      Returns the value of the secret record component.
      Returns:
      the value of the secret record component
    • numberOfNodes

      public int numberOfNodes()
      Returns the value of the numberOfNodes record component.
      Returns:
      the value of the numberOfNodes record component
    • commandLineArgs

      @NonNull public List<String> commandLineArgs()
      Returns the value of the commandLineArgs record component.
      Returns:
      the value of the commandLineArgs record component