blob: e7da9f53e977eb5353f74c20b74b28145d16d81f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "frtconfigrequest.h"
#include "frtconfigresponse.h"
#include "connection.h"
#include <vespa/fnet/frt/rpcrequest.h>
namespace config {
FRTConfigRequest::FRTConfigRequest(Connection * connection, const ConfigKey & key)
: ConfigRequest(),
_request(connection->allocRPCRequest()),
_parameters(*_request->GetParams()),
_connection(connection),
_key(key)
{
}
FRTConfigRequest::~FRTConfigRequest()
{
_request->internal_subref();
}
bool
FRTConfigRequest::abort()
{
return _request->Abort();
}
void
FRTConfigRequest::setError(int errorCode)
{
_connection->setError(errorCode);
}
const ConfigKey &
FRTConfigRequest::getKey() const
{
return _key;
}
} // namespace config
|