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 voidaddTask(TaskProperties task)Convenience method to add properties for a single task.StringgetDefaultExecutor()Getter for the default executor.IntegergetDefaultTimeout()Getter for the default timeout.StringgetName()Getter for name.TaskPropertiesgetTaskPropertiesForName(String taskName)Retrieve the properties for a named task.List<TaskProperties>getTasks()Getter for the tasks.booleannameMatches(String systemName)Check if thisSystemPropertiesname matches the given name.voidsetDefaultExecutor(String defaultExecutor)Setter for the default executor.voidsetDefaultTimeout(Integer defaultTimeout)Setter for the default timeout.voidsetName(String name)Setter for the name.voidsetTasks(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 thisSystemPropertiesname matches the given name.- Parameters:
systemName- the name to check- Returns:
- true if the names match
-
-