diff options
author | Adam Midvidy <amidvidy@gmail.com> | 2015-06-24 13:54:45 -0400 |
---|---|---|
committer | Adam Midvidy <amidvidy@gmail.com> | 2015-06-24 15:50:30 -0400 |
commit | 1fc9cba6988ab1b600be1a0549caf6146619e4df (patch) | |
tree | a5fcf53a04666b1bfc2ca43332cd824894154985 /src/mongo/rpc/factory.h | |
parent | 313c3bdc2547f2746639e84f8668a756ad95d8f3 (diff) | |
download | mongo-1fc9cba6988ab1b600be1a0549caf6146619e4df.tar.gz |
SERVER-19035 autodetect support for OP_COMMAND in remote servers
Diffstat (limited to 'src/mongo/rpc/factory.h')
-rw-r--r-- | src/mongo/rpc/factory.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mongo/rpc/factory.h b/src/mongo/rpc/factory.h index 7de92664b69..2776ffacc47 100644 --- a/src/mongo/rpc/factory.h +++ b/src/mongo/rpc/factory.h @@ -41,8 +41,10 @@ namespace mongo { class Message; namespace rpc { +class ReplyBuilderInterface; class ReplyInterface; class RequestBuilderInterface; +class RequestInterface; /** * Returns the appropriate concrete RequestBuilder. Throws if one cannot be chosen. @@ -56,5 +58,16 @@ std::unique_ptr<RequestBuilderInterface> makeRequestBuilder(ProtocolSet clientPr */ std::unique_ptr<ReplyInterface> makeReply(const Message* unownedMessage); +/** + * Returns the appropriate concrete Request according to the contents of the message. + * Throws if one cannot be chosen. + */ +std::unique_ptr<RequestInterface> makeRequest(const Message* unownedMessage); + +/** + * Returns the appropriate concrete ReplyBuilder. + */ +std::unique_ptr<ReplyBuilderInterface> makeReplyBuilder(Protocol protocol); + } // namespace rpc } // namespace mongo |