Task manager in java

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

EvgeniyaKuzmina/java-task-manager

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Task tracker for organizing collaboration on tasks.

Application has three types of task:

It is part of epic, can not be an independent task.

Common big task which can be separate to different small subtask.

Tasks can have next status:

  • NEW — the task has just been created, but it has not yet been started
  • IN_PROGRESS — the task is being worked on
  • DONE — the task is completed

If all subtasks have status DONE — so common epic has status DONE

If all subtasks have status NEW — so common epic has status NEW

If some epic`s subtasks have status NEW, some have DONE, or IN_PROGRESS — common epic has status IN_PROGRESS

Class for the manager object. It launched at the start of the program and manage all tasks. The following functions implemented in it:

  1. Ability to store tasks of all types
  2. Methods for each of the task types(Task/Epic/Subtask):
    • Getting a list of all tasks.
    • Deleting all tasks.
    • Getting Task/Epic/Subtask by ID.
    • Creation. The object itself must be passed as a parameter.
    • Update. The new version of the object with the correct id is passed as a parameter.
    • Deletion by ID.
  3. Additional methods:
    • Getting a list of all subtasks of a certain epic.

Источник

Task manager in java

For asynchronous tasks running, use the RequestProcessor executor service. For task tracking purposes, use the Progress API. See usage examples to start working with the new APIs.

@Deprecated public class TaskManager extends java.lang.Object

The TaskManager is a singleton that controls and monitors the execution of all tasks The basic pattern is to create a Task or TaskGroup and hand it over to the TaskManager for execution. Here is a simple example

Task t=new Task() < public TaskExitCode performTask(TaskRuntimeServices tc)< // this is where the client code is . // tc.fireProgress(new TaskProgress(20,100,10); return TaskExitCode.COMPLETED; >> TaskListener tl=new TaskListener() < public void taskCompleted(TaskEvent e)< // do something with this knowledge of task completion >public void taskException(TaskEvent e, Exception e) < // >.. > t.addTaskListener(tl); TaskManager.start(t);

* The tasks fire state change events, -for example ‘taskCompleted(. ) etc which are part of the TaskListener interface. A client must implement some class as TaskListener and then add it to the Task for which the callbacks are required. TaskGroups can be used in a similar manner.

TaskGroup taskGroup = new TaskGroup("StartupTaskGroup", TaskGroupExecutionPolicy.CONTINUE_ON_FAILURE); MyTask t1 = new MyTask("Task01"); taskGroup.addTask(t1); MyTask t2 = new MyTask("Task02"); taskGroup.addTask(t2); MyTask t3 = new MyTask("Task03"); taskGroup.addTask(t3); MyTask t4 = new MyTask("Task04"); taskGroup.addTask(t4); // taskGroup.addTaskListener(new SomeTaskGroupListener()); taskManager.startTask(taskGroup);

Note that the TaskListener that is attached to a TaskGroup will received cumulative updates from the TaskGroup, and this may not be discernible for indiviual task progress. If the progress of an individual task is required, a task listener should be attached to that specific task. Also note that TaskGroups require a TaskGroupExecutionPolicy to be specified. TaskGroups are Tasks, and thus can be schedueled or started in the same manner as Tasks.

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

«Менеджер задач» — REST приложение на основе Java Core для организации работы над задачами

devShurakov/java-Task-Manager

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Task Manager. Трекер задач.

Пэт проект в рамках учебной программы.

REST приложение на основе Java Core для организации работы над задачами. Не скромно говоря — аналог Jira

Alt text

Приложение имеет следующую модель:

Задачи могут быть трёх типов:

  • NEW — задача только создана, но к её выполнению ещё не приступили.
  • IN_PROGRESS — над задачей ведётся работа.
  • DONE — задача выполнена.

Alt text

  • добавление и хранение данных в памяти;
  • добавление и хранение данных в файле;
  • доступ к данным через локальный сервер, проверяющий ключ доступа;
  • доступ к методам менеджера через HTTP-запросы.

В приложении применяется один из шаблонов проектирования — Фабрика(Factory Design Pattern).

  • клонируем проект на свой пк и открываем его в IntelliJ IDEA
  • запускаем выполнение метода Main
  • после компиляции и запуска приложением можно пользоваться
  • для проверки работоспособности можно использовать браузер, Postman, или заготовленные в консоли шаблоны действий

About

«Менеджер задач» — REST приложение на основе Java Core для организации работы над задачами

Источник

Читайте также:  Pip install random python
Оцените статью