Package org.opennms.smoketest.stacks
Class OpenNMSProfile.Builder
- java.lang.Object
-
- org.opennms.smoketest.stacks.OpenNMSProfile.Builder
-
- Enclosing class:
- OpenNMSProfile
public static final class OpenNMSProfile.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpenNMSProfile
build()
Build the profile.OpenNMSProfile.Builder
withFile(String resourceName, String target)
Add files to the container overOpenNMSProfile.Builder
withFile(String resourceName, String target, Set<PosixFilePermission> permissions)
Add files to the container overOpenNMSProfile.Builder
withFile(URL source, String target)
Add files to the container overOpenNMSProfile.Builder
withFile(URL source, String target, Set<PosixFilePermission> permissions)
Add files to the container overOpenNMSProfile.Builder
withFile(Path source, String target)
Add files to the container overOpenNMSProfile.Builder
withJvmDebuggingEnabled(boolean enabled)
Enable/disable JVM debugging.OpenNMSProfile.Builder
withKafkaProducerEnabled(boolean enabled)
Enable/disable the Kafka producer feature.
-
-
-
Method Detail
-
withJvmDebuggingEnabled
public OpenNMSProfile.Builder withJvmDebuggingEnabled(boolean enabled)
Enable/disable JVM debugging.- Parameters:
enabled
- true if enabled, false otherwise- Returns:
- this builder
-
withKafkaProducerEnabled
public OpenNMSProfile.Builder withKafkaProducerEnabled(boolean enabled)
Enable/disable the Kafka producer feature. This will automatically enable Kafka on the stack if it is not already enabled.- Parameters:
enabled
- true if enabled, false otherwise- Returns:
- this builder
-
withFile
public OpenNMSProfile.Builder withFile(Path source, String target)
Add files to the container over- Parameters:
source
- path to the source file on disktarget
- path the target file relative to $OPENNMS_HOME/- Returns:
- this builder
-
withFile
public OpenNMSProfile.Builder withFile(URL source, String target)
Add files to the container over- Parameters:
source
- source URLtarget
- path the target file related to $OPENNMS_HOME/- Returns:
- this builder
-
withFile
public OpenNMSProfile.Builder withFile(String resourceName, String target)
Add files to the container over- Parameters:
resourceName
- resource pathtarget
- path the target file related to $OPENNMS_HOME/- Returns:
- this builder
-
withFile
public OpenNMSProfile.Builder withFile(URL source, String target, Set<PosixFilePermission> permissions)
Add files to the container over- Parameters:
source
- source URLtarget
- path the target file related to $OPENNMS_HOME/permissions
- file permissions to set- Returns:
- this builder
-
withFile
public OpenNMSProfile.Builder withFile(String resourceName, String target, Set<PosixFilePermission> permissions)
Add files to the container over- Parameters:
resourceName
- resource pathtarget
- path the target file related to $OPENNMS_HOME/permissions
- file permissions to set- Returns:
- this builder
-
build
public OpenNMSProfile build()
Build the profile.- Returns:
- an immutable profile
-
-