Class SystemProperties


  • public class SystemProperties
    extends Object
    Configuration properties for a system.
    Since:
    2.0.0
    Author:
    Rutger Lubbers, Paul Klos
    • Constructor Detail

      • SystemProperties

        public SystemProperties()
    • Method Detail

      • getName

        public String getName()
        Getter for name.
        Returns:
        the name
      • setName

        public void setName​(String name)
        Setter for the name.
        Parameters:
        name - the name
      • getDefaultExecutor

        public String getDefaultExecutor()
        Getter for the default executor.
        Returns:
        the default executor
      • setDefaultExecutor

        public void setDefaultExecutor​(String defaultExecutor)
        Setter for the default executor.
        Parameters:
        defaultExecutor - the default executor
      • getDefaultTimeout

        public Integer getDefaultTimeout()
        Getter for the default timeout.
        Returns:
        the default timeout
      • setDefaultTimeout

        public void setDefaultTimeout​(Integer defaultTimeout)
        Setter for the default timeout.
        Parameters:
        defaultTimeout - the default timeout
      • getTasks

        public List<TaskProperties> getTasks()
        Getter for the tasks.
        Returns:
        the tasks
      • setTasks

        public void setTasks​(List<TaskProperties> tasks)
        Setter for the tasks.
        Parameters:
        tasks - the tasks
      • addTask

        public void addTask​(TaskProperties task)
        Convenience method to add properties for a single task.
        Parameters:
        task - the task
      • getTaskPropertiesForName

        public TaskProperties getTaskPropertiesForName​(String taskName)
        Retrieve the properties for a named task.
        Parameters:
        taskName - the task name
        Returns:
        the properties
      • nameMatches

        public boolean nameMatches​(String systemName)
        Check if this SystemProperties name matches the given name.
        Parameters:
        systemName - the name to check
        Returns:
        true if the names match