vkuznet / transfer2go

Distributed, loosely couple agent-based transferring system
MIT License
8 stars 2 forks source link

Add delegation of main-agent responsibility to another agent #53

Closed vkuznet closed 6 years ago

vkuznet commented 7 years ago

In pull model, where we have central main-agent, we need ability to delegate its responsibility to another agent or process. I think we have everything in place and only need to perform test

vkuznet commented 6 years ago

I modified code accordingly. Now, TransferRequest contains regUrl parameter (main/registration agent). When client send request this parameter is filled and then system use it to know which agent was used for registration. This eliminates necessity of main agent registration since ANY agent can do this job. Therefore we can shutdown main agent at any time and tell client to use another agent for registration.