Integrate DelegateActionManager for request handling and refactor IPC:

- Replaced `SimpleProtocol` with `TransportProtocol` in `IPCManager`.
- Added `DelegateActionManager` to route requests to handlers, starting with `EchoHandler`.
- Updated `MediaManagerApplication` to initialize and manage `DelegateActionManager`.
- Extended Protocol Buffers schema with `Request` and `Response` definitions.
- Enhanced logging for request processing and redesigned response flow.
This commit is contained in:
Gustavo Henrique Santos Souza de Miranda
2025-11-17 07:21:52 -03:00
parent 23b6d54674
commit a0ad10b1bc
6 changed files with 133 additions and 35 deletions
+13 -3
View File
@@ -1,9 +1,19 @@
syntax = "proto3";
option java_package = "com.mediamanager.protocol";
option java_outer_classname = "SimpleProtocol";
option java_outer_classname = "TransportProtocol";
package mediamanager;
message TextMessage {
string content = 1; // O texto da mensagem
message Request {
string request_id = 1;
bytes payload = 2;
map<string, string> headers = 3;
}
message Response {
string request_id = 1;
int32 status_code = 2;
bytes payload = 3;
map<string, string> headers = 4;
}