Package org.wso2.carbon.ntask.core
Class TaskInfo
- java.lang.Object
-
- org.wso2.carbon.ntask.core.TaskInfo
-
- All Implemented Interfaces:
Serializable
public class TaskInfo extends Object implements Serializable
This class represents a task job definition.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TaskInfo.TriggerInfo
This class represents task trigger information.
-
Field Summary
Fields Modifier and Type Field Description static String
TENANT_ID_PROP
-
Constructor Summary
Constructors Constructor Description TaskInfo()
Deprecated.TaskInfo(String name, String taskClass, Map<String,String> properties, String locationResolverClass, TaskInfo.TriggerInfo triggerInfo)
Deprecated.use setters to set location resolver related properties, if set explicitly, users must have a way of changing this, i.e.TaskInfo(String name, String taskClass, Map<String,String> properties, TaskInfo.TriggerInfo triggerInfo)
TaskInfo constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object rhs)
String
getLocationResolverClass()
Map<String,String>
getLocationResolverProperties()
String
getName()
Map<String,String>
getProperties()
String
getTaskClass()
TaskInfo.TriggerInfo
getTriggerInfo()
int
hashCode()
void
setLocationResolverClass(String locationResolverClass)
void
setLocationResolverProperties(Map<String,String> locationResolverProperties)
void
setName(String name)
void
setProperties(Map<String,String> properties)
void
setTaskClass(String taskClass)
void
setTriggerInfo(TaskInfo.TriggerInfo triggerInfo)
-
-
-
Field Detail
-
TENANT_ID_PROP
public static final String TENANT_ID_PROP
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TaskInfo
@Deprecated public TaskInfo()
Deprecated.
-
TaskInfo
public TaskInfo(String name, String taskClass, Map<String,String> properties, TaskInfo.TriggerInfo triggerInfo)
TaskInfo constructor.- Parameters:
name
- The name of the tasktaskClass
- The task implementation classproperties
- The properties that will be passed into the task implementation at runtimetriggerInfo
- Task trigger information
-
TaskInfo
@Deprecated public TaskInfo(String name, String taskClass, Map<String,String> properties, String locationResolverClass, TaskInfo.TriggerInfo triggerInfo)
Deprecated.use setters to set location resolver related properties, if set explicitly, users must have a way of changing this, i.e. using the UI, or else, the global tasks configuration based settings must be usedTaskInfo constructor with custom TaskLocationResolver.- Parameters:
name
- The name of the tasktaskClass
- The task implementation classproperties
- The properties that will be passed into the task implementation at runtimelocationResolverClass
- The TaskLocationResolver implementation, which is used to resolve the server location of the task at schedule time.triggerInfo
- Task trigger information
-
-
Method Detail
-
setName
public void setName(String name)
-
setTaskClass
public void setTaskClass(String taskClass)
-
setTriggerInfo
public void setTriggerInfo(TaskInfo.TriggerInfo triggerInfo)
-
getTriggerInfo
public TaskInfo.TriggerInfo getTriggerInfo()
-
getName
public String getName()
-
getTaskClass
public String getTaskClass()
-
getLocationResolverClass
public String getLocationResolverClass()
-
setLocationResolverClass
public void setLocationResolverClass(String locationResolverClass)
-
setLocationResolverProperties
public void setLocationResolverProperties(Map<String,String> locationResolverProperties)
-
-