create multiple threads named QuorumGetTask
In these threads:
the full request is sent to the First EP named master, whereas digest request is sent to the replica eps. (the difference is labeled by dpi.setReplicationStatus(true/false));
Whose responses are handled ch.ethz.systems.cloudy2.server.components.protocol.quorum.QuorumResponseHandler<Set<DPI>>(int, int, IResponseResolver<T>), which is quite complicated
//CloudyFactory.getMessaging().sendRR(m, replica, quorumResponseHandler);
In the EPS, the requests sent handled by .ch.ethz.systems.cloudy2.server.components.protocol.quorum.QuorumProtocol.GetQuorumVerbHandler
------------------------------------------------------------------------
First, if local EP is not the first EP in the preferencelist, redirect request.
QuorumGetTask线程机制
本文介绍了一种名为QuorumGetTask的线程机制,该机制创建了多个线程来处理请求。其中,完整的请求被发送到主节点,而摘要请求则被发送到副本节点。请求处理涉及到复杂的QuorumResponseHandler组件,并且在节点上由QuorumProtocol.GetQuorumVerbHandler处理。

719

被折叠的 条评论
为什么被折叠?



