Class TaskInfo

    • Constructor Detail

      • TaskInfo

        public TaskInfo​(String name,
                        String taskClass,
                        Map<String,​String> properties,
                        TaskInfo.TriggerInfo triggerInfo)
        TaskInfo constructor.
        Parameters:
        name - The name of the task
        taskClass - The task implementation class
        properties - The properties that will be passed into the task implementation at runtime
        triggerInfo - 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 used
        TaskInfo constructor with custom TaskLocationResolver.
        Parameters:
        name - The name of the task
        taskClass - The task implementation class
        properties - The properties that will be passed into the task implementation at runtime
        locationResolverClass - 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)
      • setProperties

        public void setProperties​(Map<String,​String> properties)
      • getName

        public String getName()
      • getTaskClass

        public String getTaskClass()
      • getLocationResolverClass

        public String getLocationResolverClass()
      • setLocationResolverClass

        public void setLocationResolverClass​(String locationResolverClass)
      • getLocationResolverProperties

        public Map<String,​String> getLocationResolverProperties()
      • setLocationResolverProperties

        public void setLocationResolverProperties​(Map<String,​String> locationResolverProperties)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object