public class TaskInfo extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
TaskInfo.TriggerInfo
This class represents task trigger information.
|
Modifier and Type | Field and Description |
---|---|
static String |
TENANT_ID_PROP |
Constructor and 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. using the UI, or else, the global tasks configuration
based settings must be used
|
TaskInfo(String name,
String taskClass,
Map<String,String> properties,
TaskInfo.TriggerInfo triggerInfo)
TaskInfo constructor.
|
Modifier and Type | Method and 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) |
public static final String TENANT_ID_PROP
@Deprecated public TaskInfo()
public TaskInfo(String name, String taskClass, Map<String,String> properties, TaskInfo.TriggerInfo triggerInfo)
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@Deprecated public TaskInfo(String name, String taskClass, Map<String,String> properties, String locationResolverClass, TaskInfo.TriggerInfo triggerInfo)
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 informationpublic void setName(String name)
public void setTaskClass(String taskClass)
public void setTriggerInfo(TaskInfo.TriggerInfo triggerInfo)
public TaskInfo.TriggerInfo getTriggerInfo()
public String getName()
public String getTaskClass()
public String getLocationResolverClass()
public void setLocationResolverClass(String locationResolverClass)
public void setLocationResolverProperties(Map<String,String> locationResolverProperties)
Copyright © 2020 WSO2. All rights reserved.