Re: Query on ConnectionAdapterImpl
Michal Polkorab
Hello Giuseppe,
there is a reason behind this implementation. MultipartReply messages are RPCs, but there can be multiple of them delivered from switch to controller (eg. OFPMPF_REPLY_* flags). If those were strictly paired with MultipartRequest message, then the first MultipartReply message would consume the relevant / corresponding MultipartRequest future and the next one (with the same XID) could be paired with no future. Openflowplugin project implements a mechanism for multipart request <-> reply mapping.
Regards, Michal From: Petralia, GiuseppeX <giuseppex.petralia@...>
Sent: 19 November 2015 18:36 To: 'openflowjava-dev@...' Subject: [openflowjava-dev] Query on ConnectionAdapterImpl Hi all,
I am working with the ConnectionAdapterImpl
I can’t understand why the multipartRequest method return an object of type Future<RpcResult<Void>> instead of Future<RpcResult<MultiparReplyMessage>> as happens for all the methods related to messages that have a reply.
public Future<RpcResult<Void>> multipartRequest(final MultipartRequestInput input)
Is that any reason for that or is it a bug?
Thank you for your help.
Best, Giuseppe Petralia
-------------------------------------------------------------- This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. MichalPolkoráb Software Engineer
|