Package org.jvnet.hudson.test
Record Class InboundAgentRule.AgentArguments
java.lang.Object
java.lang.Record
org.jvnet.hudson.test.InboundAgentRule.AgentArguments
- Record Components:
agentJar- A reference to the agent jarurl- the controller root URLname- the agent namesecret- 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 Summary
ConstructorsConstructorDescriptionAgentArguments(File agentJar, String url, String name, String secret, int numberOfNodes, List<String> commandLineArgs) Creates an instance of aAgentArgumentsrecord class.AgentArguments(String agentJnlpUrl, File agentJar, String secret, int numberOfNodes, List<String> commandLineArgs) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionagentJar()Returns the value of theagentJarrecord component.Deprecated.Returns the value of thecommandLineArgsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.intReturns the value of thenumberOfNodesrecord component.secret()Returns the value of thesecretrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
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 aAgentArgumentsrecord class.- Parameters:
agentJar- the value for theagentJarrecord componenturl- the value for theurlrecord componentname- the value for thenamerecord componentsecret- the value for thesecretrecord componentnumberOfNodes- the value for thenumberOfNodesrecord componentcommandLineArgs- the value for thecommandLineArgsrecord component
-
-
Method Details
-
agentJnlpUrl
Deprecated. -
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 '=='. -
agentJar
Returns the value of theagentJarrecord component.- Returns:
- the value of the
agentJarrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
secret
Returns the value of thesecretrecord component.- Returns:
- the value of the
secretrecord component
-
numberOfNodes
public int numberOfNodes()Returns the value of thenumberOfNodesrecord component.- Returns:
- the value of the
numberOfNodesrecord component
-
commandLineArgs
Returns the value of thecommandLineArgsrecord component.- Returns:
- the value of the
commandLineArgsrecord component
-