Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: agent sse & scheduler management #28

Merged
merged 23 commits into from
Mar 15, 2024
Merged

Conversation

ghkdqhrbals
Copy link
Member

@ghkdqhrbals ghkdqhrbals commented Mar 14, 2024

Implements

  • Common dto module
  • Scheduler manage interface and abstract class, impl class
  • Separate SSE Handler with multiple clients
  • restAPI of agent controller
    • /api/templates/{template_id}?action=start sse endpoint will return TestResult in every seconds

    for now, it will return TestResult's stub

    • /api/templates/{template_id}?action=stop will complete sseEmitter and shutdown related scheduler that has id of {template_id}
  • agent server port on 8081, controller server port on 8080

@ghkdqhrbals ghkdqhrbals requested a review from LeeJeongGi March 14, 2024 22:45
@ghkdqhrbals ghkdqhrbals self-assigned this Mar 14, 2024
@LeeJeongGi
Copy link
Member

이제 그만하고 주무세요,,,,ㅋㅋㅋㅋ

@ghkdqhrbals
Copy link
Member Author

ghkdqhrbals commented Mar 14, 2024

ㅋㅋㅋㅋㅋ 넵!

Copy link

📝 Test code-coverage reports

File Coverage [100%] 🍏
JsonMapper.java 100% 🍏
Total Project Coverage 88.74% 🍏

@ghkdqhrbals ghkdqhrbals linked an issue Mar 14, 2024 that may be closed by this pull request
Copy link
Member

@LeeJeongGi LeeJeongGi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agent controller 시작부분 작업하시느라 수고하셨습니다!! :)

특별히 수정할 만한곳은 보이지 않습니다@@

@ghkdqhrbals ghkdqhrbals merged commit 6fd56bf into develop Mar 15, 2024
1 check passed
@ghkdqhrbals ghkdqhrbals deleted the feature/agent-sse branch March 15, 2024 14:35
ghkdqhrbals added a commit that referenced this pull request Mar 17, 2024
* dev: common dto module

* dev: import common dto module

* dev: import common dto module

* dev: scheduler interface setup

* dev: sse management interface setup

* dev: declare common getStatus method in abstract class

* dev: sse timeout consts implement to abstract class & set concurrentHashMap

* dev: IOException global handler

* dev: json string mapper utils

* dev: scheduler status enum setup

* dev: sse manage impl. class

* dev: manage scheduling with given id

* dev: restApis for agent, sse mapping

* test: jsonMapper string to json test

* test: test result dto setup

* dev: add json library

* chore: add /api for restApi prefix url

* test: generate default testResults

* dev: change String to Object in sse

* chore: add toString

* chore: sse return TestResult stubs in every seconds

* chore: change server port to 8081

* chore: add main class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

feat: agent server sent event
2 participants