Package org.hawaiiframework.async.model
Class SystemProperties
java.lang.Object
org.hawaiiframework.async.model.SystemProperties
Configuration properties for a system.
- Since:
- 2.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTask(TaskProperties task) Convenience method to add properties for a single task.Getter for the default executor.Getter for the default timeout.getName()Getter for name.getTaskPropertiesForName(String taskName) Retrieve the properties for a named task.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.voidSetter for the name.voidsetTasks(List<TaskProperties> tasks) Setter for the tasks.
-
Constructor Details
-
SystemProperties
public SystemProperties()
-
-
Method Details
-
getName
Getter for name.- Returns:
- the name
-
setName
Setter for the name.- Parameters:
name- the name
-
getDefaultExecutor
Getter for the default executor.- Returns:
- the default executor
-
setDefaultExecutor
Setter for the default executor.- Parameters:
defaultExecutor- the default executor
-
getDefaultTimeout
Getter for the default timeout.- Returns:
- the default timeout
-
setDefaultTimeout
Setter for the default timeout.- Parameters:
defaultTimeout- the default timeout
-
getTasks
Getter for the tasks.- Returns:
- the tasks
-
setTasks
Setter for the tasks.- Parameters:
tasks- the tasks
-
addTask
Convenience method to add properties for a single task.- Parameters:
task- the task
-
getTaskPropertiesForName
Retrieve the properties for a named task.- Parameters:
taskName- the task name- Returns:
- the properties
-
nameMatches
Check if thisSystemPropertiesname matches the given name.- Parameters:
systemName- the name to check- Returns:
- true if the names match
-