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

WIP: support local transactipons #102

Open
wants to merge 37 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
1888d19
wip: initial version
Nov 15, 2024
9ae90d6
wip: initial version refactoring to new class
Nov 22, 2024
873b526
wip: initial version refactoring, forgotten classes
Nov 22, 2024
0868f92
wip: initial version refactoring #2
Nov 29, 2024
f158e6f
wip: initial version refactoring #3
Dec 2, 2024
e8de055
wip: initial version refactoring #4
Dec 2, 2024
f942c96
wip: initial version refactoring #5
Dec 2, 2024
7233c5c
wip: initial version refactoring #6
Dec 2, 2024
e0651a0
wip: initial version refactoring #7
Dec 2, 2024
ad9eae9
wip: initial version refactoring n8
Dec 2, 2024
6e58ecb
wip: initial version refactoring n9
Dec 2, 2024
bdc9c29
missing kpvdr repos
Dec 6, 2024
c8c0059
missing kpvdr repos
Dec 6, 2024
6f6a6c0
missing kpvdr repos
Dec 6, 2024
b4b8e8b
missing kpvdr repos rollback
Dec 6, 2024
42a5d87
copr repositories fix
Dec 13, 2024
647d862
transactions now declared within session, connection is accessible fr…
Jan 9, 2025
8d4974e
transactional receiver first version
Jan 9, 2025
260d099
transactional receiver first version fixup
Jan 9, 2025
a815927
tx mode recognition fix
Jan 10, 2025
ab42ae3
sender tx fixup
Jan 10, 2025
6a14ed2
recv tx
Jan 12, 2025
f47e0bf
recv tx
Jan 12, 2025
94636b7
logging
Jan 12, 2025
31e1fe0
fixups and loging
Jan 16, 2025
9b5a967
logging update
Jan 17, 2025
5b6f2b4
fixup
Jan 17, 2025
fdac9a5
fixup
Jan 21, 2025
1118010
fixup
Jan 21, 2025
4ba513f
refactoring
Jan 24, 2025
2d887f6
fixup
Jan 24, 2025
9c5bb5b
refactoring
Jan 27, 2025
a7795bf
refactoring
Jan 27, 2025
010d143
refactoring
Jan 27, 2025
3c34c00
refactoring
Jan 27, 2025
233a3ff
refactoring
Jan 27, 2025
ce7f96a
refactoring
Jan 27, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/api/qpid-proton/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,14 @@ add_library(
reactor/handler/CommonHandler.cpp
reactor/handler/ConnectorHandler.cpp
reactor/handler/SenderHandler.cpp
reactor/handler/TxSenderHandler.cpp
reactor/handler/ReceiverHandler.cpp
reactor/handler/TxReceiverHandler.cpp
reactor/ConnectingClient.cpp
reactor/SendingClient.cpp
reactor/TxSendingClient.cpp
reactor/ReceivingClient.cpp
reactor/TxReceivingClient.cpp
)

target_link_libraries(
Expand Down
24 changes: 20 additions & 4 deletions src/api/qpid-proton/clients/aac3_receiver.cpp
Original file line number Diff line number Diff line change
@@ -1,17 +1,33 @@
/*
* aac1_sender.cpp
* aac3_sender.cpp
*
* Created on: Apr 14, 2015
* Author: opiske
*/

#include <reactor/ReceivingClient.h>
#include <reactor/TxReceivingClient.h>

using dtests::proton::reactor::ReceivingClient;
using dtests::proton::reactor::TxReceivingClient;

int main(int argc, char** argv)
{
ReceivingClient client = ReceivingClient();
int i = 0;
bool tx_mode = false;
std::string tx_opt = "--tx-";
while (i < argc) {
if (std::string(argv[i]).rfind("--tx-", 0) == 0) { // pos=0 limits the search to the prefix
tx_mode = true;
break;
}
i++;
}

return client.run(argc, argv);
if (tx_mode) {
TxReceivingClient client = TxReceivingClient();
return client.run(argc, argv);
} else {
ReceivingClient client = ReceivingClient();
return client.run(argc, argv);
}
}
32 changes: 21 additions & 11 deletions src/api/qpid-proton/clients/aac3_sender.cpp
Original file line number Diff line number Diff line change
@@ -1,23 +1,33 @@
/*
* aac1_sender.cpp
* aac3_sender.cpp
*
* Created on: Apr 14, 2015
* Author: opiske
*/
#include <cstdlib>

#include <reactor/SendingClient.h>
#include <reactor/TxSendingClient.h>

using dtests::proton::reactor::SendingClient;
using dtests::proton::reactor::TxSendingClient;

int main(int argc, char** argv)
{
SendingClient client = SendingClient();

return client.run(argc, argv);

int i = 0;
bool tx_mode = false;
std::string tx_opt = "--tx-";
while (i < argc) {
if (std::string(argv[i]).rfind("--tx-", 0) == 0) { // pos=0 limits the search to the prefix
tx_mode = true;
break;
}
i++;
}

if (tx_mode) {
TxSendingClient client = TxSendingClient();
return client.run(argc, argv);
} else {
SendingClient client = SendingClient();
return client.run(argc, argv);
}
}




Loading
Loading