Record Class LaunchContext
java.lang.Object
java.lang.Record
io.jenkins.plugins.namespacecloud.launcher.LaunchContext
- Record Components:
agentName- the Jenkins node name, also used as the instance label valueagentSecret- the inbound-agent HMAC foragentName; empty for SSHjenkinsUrl- the externally reachable controller URLremoteFs- the agent working directory inside the instance
public record LaunchContext(String agentName, String agentSecret, String jenkinsUrl, String remoteFs, AgentTemplate template)
extends Record
Everything a launch strategy needs to know about the agent being provisioned,
assembled before the Namespace instance is created.
-
Constructor Summary
ConstructorsConstructorDescriptionLaunchContext(String agentName, String agentSecret, String jenkinsUrl, String remoteFs, AgentTemplate template) Creates an instance of aLaunchContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagentNamerecord component.Returns the value of theagentSecretrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thejenkinsUrlrecord component.remoteFs()Returns the value of theremoteFsrecord component.template()Returns the value of thetemplaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LaunchContext
public LaunchContext(@NonNull String agentName, @NonNull String agentSecret, @NonNull String jenkinsUrl, @NonNull String remoteFs, @NonNull AgentTemplate template) Creates an instance of aLaunchContextrecord class.- Parameters:
agentName- the value for theagentNamerecord componentagentSecret- the value for theagentSecretrecord componentjenkinsUrl- the value for thejenkinsUrlrecord componentremoteFs- the value for theremoteFsrecord componenttemplate- the value for thetemplaterecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
agentName
Returns the value of theagentNamerecord component.- Returns:
- the value of the
agentNamerecord component
-
agentSecret
Returns the value of theagentSecretrecord component.- Returns:
- the value of the
agentSecretrecord component
-
jenkinsUrl
Returns the value of thejenkinsUrlrecord component.- Returns:
- the value of the
jenkinsUrlrecord component
-
remoteFs
Returns the value of theremoteFsrecord component.- Returns:
- the value of the
remoteFsrecord component
-
template
Returns the value of thetemplaterecord component.- Returns:
- the value of the
templaterecord component
-