Class OpenNMSProfile.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • 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 disk
        target - 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 URL
        target - 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 path
        target - 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 URL
        target - 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 path
        target - 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