Package org.jvnet.hudson.test
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 jarsecret
- 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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionagentJar()
Returns the value of theagentJar
record component.Returns the value of theagentJnlpUrl
record component.Returns the value of thecommandLineArgs
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of thenumberOfNodes
record component.secret()
Returns the value of thesecret
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
AgentArguments
public AgentArguments(@NonNull String agentJnlpUrl, @NonNull File agentJar, @NonNull String secret, int numberOfNodes, @NonNull List<String> commandLineArgs) Creates an instance of aAgentArguments
record class.- Parameters:
agentJnlpUrl
- the value for theagentJnlpUrl
record componentagentJar
- the value for theagentJar
record componentsecret
- the value for thesecret
record componentnumberOfNodes
- the value for thenumberOfNodes
record componentcommandLineArgs
- the value for thecommandLineArgs
record component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
agentJnlpUrl
Returns the value of theagentJnlpUrl
record component.- Returns:
- the value of the
agentJnlpUrl
record component
-
agentJar
Returns the value of theagentJar
record component.- Returns:
- the value of the
agentJar
record component
-
secret
Returns the value of thesecret
record component.- Returns:
- the value of the
secret
record component
-
numberOfNodes
public int numberOfNodes()Returns the value of thenumberOfNodes
record component.- Returns:
- the value of the
numberOfNodes
record component
-
commandLineArgs
Returns the value of thecommandLineArgs
record component.- Returns:
- the value of the
commandLineArgs
record component
-