Interface ServiceTaskProvider

    • Method Detail

      • getPermanentServiceTasks

        java.util.Collection<ServiceTask> getPermanentServiceTasks()
        Gets all tasks that are registered in the cloud
        Returns:
        a list containing the task configurations of all tasks
      • getServiceTask

        ServiceTask getServiceTask​(java.lang.String name)
        Gets a specific task by its name
        Parameters:
        name - the name of the task
        Returns:
        the task or null if no task with that name exists
      • isServiceTaskPresent

        boolean isServiceTaskPresent​(java.lang.String name)
        Checks whether the task with a specific name exists
        Parameters:
        name - the name of the task
        Returns:
        true if the task exists or false otherwise
      • addPermanentServiceTask

        void addPermanentServiceTask​(ServiceTask serviceTask)
        Adds a new task to the cloud
        Parameters:
        serviceTask - the task to be added
      • removePermanentServiceTask

        void removePermanentServiceTask​(java.lang.String name)
        Removes a task from the cloud
        Parameters:
        name - the name of the task to be removed
      • removePermanentServiceTask

        void removePermanentServiceTask​(ServiceTask serviceTask)
        Removes a task from the cloud
        Parameters:
        serviceTask - the task to be removed (the only thing that matters in this object is the name, the rest is ignored)
      • getPermanentServiceTasksAsync

        ITask<java.util.Collection<ServiceTask>> getPermanentServiceTasksAsync()
        Gets all tasks that are registered in the cloud
        Returns:
        a list containing the task configurations of all tasks
      • getServiceTaskAsync

        ITask<ServiceTask> getServiceTaskAsync​(java.lang.String name)
        Gets a specific task by its name
        Parameters:
        name - the name of the task
        Returns:
        the task or null if no task with that name exists
      • isServiceTaskPresentAsync

        ITask<java.lang.Boolean> isServiceTaskPresentAsync​(java.lang.String name)
        Checks whether the task with a specific name exists
        Parameters:
        name - the name of the task
        Returns:
        true if the task exists or false otherwise
      • addPermanentServiceTaskAsync

        ITask<java.lang.Void> addPermanentServiceTaskAsync​(ServiceTask serviceTask)
        Adds a new task to the cloud
        Parameters:
        serviceTask - the task to be added
      • removePermanentServiceTaskAsync

        ITask<java.lang.Void> removePermanentServiceTaskAsync​(java.lang.String name)
        Removes a task from the cloud
        Parameters:
        name - the name of the task to be removed
      • removePermanentServiceTaskAsync

        ITask<java.lang.Void> removePermanentServiceTaskAsync​(ServiceTask serviceTask)
        Removes a task from the cloud
        Parameters:
        serviceTask - the task to be removed (the only thing that matters in this object is the name, the rest is ignored)