Package org.jvnet.hudson.test
Class InboundAgentRule.Options.Builder
- java.lang.Object
-
- org.jvnet.hudson.test.InboundAgentRule.Options.Builder
-
- Enclosing class:
- InboundAgentRule.Options
public static final class InboundAgentRule.Options.Builder extends Object
A builder ofInboundAgentRule.Options
.Instances of
InboundAgentRule.Options.Builder
are created by callingInboundAgentRule.Options.newBuilder()
.
-
-
Method Summary
-
-
-
Method Detail
-
name
public InboundAgentRule.Options.Builder name(String name)
Set the name of the agent.- Parameters:
name
- the name- Returns:
- this builder
-
color
public InboundAgentRule.Options.Builder color(PrefixedOutputStream.AnsiColor color)
Set a color for agent logs.- Parameters:
color
- the color- Returns:
- this builder
-
secret
@Deprecated public InboundAgentRule.Options.Builder secret()
Deprecated.secret is used by default when using newer versions of RemotingUse secret when connecting.- Returns:
- this builder
-
webSocket
public InboundAgentRule.Options.Builder webSocket()
Use WebSocket when connecting.- Returns:
- this builder
-
webSocket
public InboundAgentRule.Options.Builder webSocket(boolean websocket)
Configure usage of WebSocket when connecting.- Parameters:
websocket
- use websocket if true, otherwise use inbound TCP- Returns:
- this builder
-
tunnel
public InboundAgentRule.Options.Builder tunnel(String tunnel)
Set a tunnel for the agent- Returns:
- this builder
-
skipStart
public InboundAgentRule.Options.Builder skipStart()
Skip starting the agent.- Returns:
- this builder
-
label
public InboundAgentRule.Options.Builder label(String label)
Set a label for the agent.- Returns:
- this builder.
-
withLogger
public InboundAgentRule.Options.Builder withLogger(Class<?> clazz, Level level)
-
withPackageLogger
public InboundAgentRule.Options.Builder withPackageLogger(Class<?> clazz, Level level)
-
withLogger
public InboundAgentRule.Options.Builder withLogger(String logger, Level level)
-
build
public InboundAgentRule.Options build()
Build and return anInboundAgentRule.Options
.- Returns:
- a new
InboundAgentRule.Options
-
-