Package org.hawaiiframework.async.model
Class SystemProperties
- java.lang.Object
-
- org.hawaiiframework.async.model.SystemProperties
-
public class SystemProperties extends Object
Configuration properties for a system.- Since:
- 2.0.0
- Author:
- Rutger Lubbers, Paul Klos
-
-
Constructor Summary
Constructors Constructor Description SystemProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTask(TaskProperties task)
Convenience method to add properties for a single task.String
getDefaultExecutor()
Getter for the default executor.Integer
getDefaultTimeout()
Getter for the default timeout.String
getName()
Getter for name.TaskProperties
getTaskPropertiesForName(String taskName)
Retrieve the properties for a named task.List<TaskProperties>
getTasks()
Getter for the tasks.boolean
nameMatches(String systemName)
Check if thisSystemProperties
name matches the given name.void
setDefaultExecutor(String defaultExecutor)
Setter for the default executor.void
setDefaultTimeout(Integer defaultTimeout)
Setter for the default timeout.void
setName(String name)
Setter for the name.void
setTasks(List<TaskProperties> tasks)
Setter for the tasks.
-
-
-
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 thisSystemProperties
name matches the given name.- Parameters:
systemName
- the name to check- Returns:
- true if the names match
-
-