Record Class InboundAgentRule.AgentArguments

java.lang.Object
java.lang.Record
org.jvnet.hudson.test.InboundAgentRule.AgentArguments
Record Components:
agentJnlpUrl - URL to the agent JNLP file.
agentJar - A reference to the agent jar
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(String agentJnlpUrl, File agentJar, String secret, int numberOfNodes, List<String> commandLineArgs) extends Record implements Serializable
See Also:
  • Constructor Details

    • AgentArguments

      public AgentArguments(@NonNull String agentJnlpUrl, @NonNull File agentJar, @NonNull String secret, int numberOfNodes, @NonNull List<String> commandLineArgs)
      Creates an instance of a AgentArguments record class.
      Parameters:
      agentJnlpUrl - the value for the agentJnlpUrl record component
      agentJar - the value for the agentJar 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

    • 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.
    • agentJnlpUrl

      @NonNull public String agentJnlpUrl()
      Returns the value of the agentJnlpUrl record component.
      Returns:
      the value of the agentJnlpUrl record component
    • agentJar

      @NonNull public File agentJar()
      Returns the value of the agentJar record component.
      Returns:
      the value of the agentJar 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