3 #define STUB_API "lmgr/libmgr.la"
4 #include "tests/STUB.h"
6 // NP: used by Command.h instantiations
7 #include "mgr/ActionProfile.h"
9 // NP: used by Action.h instantiations
10 #include "mgr/Command.h"
11 std::ostream
&operator <<(std::ostream
&os
, const Mgr::Command
&cmd
) STUB_RETVAL(os
)
13 #include "mgr/Action.h"
14 Mgr::Action::Action(const CommandPointer
&aCmd
) STUB
15 Mgr::Action::~Action() STUB
16 void Mgr::Action::run(StoreEntry
*entry
, bool writeHttpHeader
) STUB
17 void Mgr::Action::fillEntry(StoreEntry
*entry
, bool writeHttpHeader
) STUB
18 void Mgr::Action::add(const Action
&action
) STUB
19 void Mgr::Action::respond(const Request
&request
) STUB
20 void Mgr::Action::sendResponse(unsigned int requestId
) STUB
21 bool Mgr::Action::atomic() const STUB_RETVAL(false)
22 const char * Mgr::Action::name() const STUB_RETVAL(NULL
)
23 static Mgr::Command static_Command
;
24 const Mgr::Command
& Mgr::Action::command() const STUB_RETVAL(static_Command
)
25 StoreEntry
* Mgr::Action::createStoreEntry() const STUB_RETVAL(NULL
)
26 static Mgr::Action::Pointer dummyAction
;
28 #include "mgr/ActionParams.h"
29 Mgr::ActionParams::ActionParams() STUB
30 Mgr::ActionParams::ActionParams(const Ipc::TypedMsgHdr
&msg
) STUB
31 void Mgr::ActionParams::pack(Ipc::TypedMsgHdr
&msg
) const STUB
32 std::ostream
&operator <<(std::ostream
&os
, const Mgr::ActionParams
¶ms
) STUB_RETVAL(os
)
34 #include "mgr/ActionWriter.h"
35 //Mgr::ActionWriter::ActionWriter(const Action::Pointer &anAction, int aFd) STUB
37 void Mgr::ActionWriter::start() STUB
39 #include "mgr/BasicActions.h"
40 Mgr::Action::Pointer
Mgr::MenuAction::Create(const Mgr::CommandPointer
&cmd
) STUB_RETVAL(dummyAction
)
41 void Mgr::MenuAction::dump(StoreEntry
*entry
) STUB
43 //Mgr::MenuAction::MenuAction(const CommandPointer &cmd) STUB
45 Mgr::Action::Pointer
Mgr::ShutdownAction::Create(const Mgr::CommandPointer
&cmd
) STUB_RETVAL(dummyAction
)
46 void Mgr::ShutdownAction::dump(StoreEntry
*entry
) STUB
48 //Mgr::ShutdownAction::ShutdownAction(const CommandPointer &cmd) STUB
50 Mgr::Action::Pointer
Mgr::ReconfigureAction::Create(const Mgr::CommandPointer
&cmd
) STUB_RETVAL(dummyAction
)
51 void Mgr::ReconfigureAction::dump(StoreEntry
*entry
) STUB
53 //Mgr::ReconfigureAction::ReconfigureAction(const CommandPointer &cmd) STUB
55 Mgr::Action::Pointer
Mgr::RotateAction::Create(const Mgr::CommandPointer
&cmd
) STUB_RETVAL(dummyAction
)
56 void Mgr::RotateAction::dump(StoreEntry
*entry
) STUB
58 //Mgr::RotateAction::RotateAction(const CommandPointer &cmd) STUB
60 Mgr::Action::Pointer
Mgr::OfflineToggleAction::Create(const CommandPointer
&cmd
) STUB_RETVAL(dummyAction
)
61 void Mgr::OfflineToggleAction::dump(StoreEntry
*entry
) STUB
63 //Mgr::OfflineToggleAction::OfflineToggleAction(const CommandPointer &cmd) STUB
65 void Mgr::RegisterBasics() STUB
67 #include "CountersAction.h"
68 //Mgr::CountersActionData::CountersActionData() STUB
69 Mgr::CountersActionData
& Mgr::CountersActionData::operator +=(const Mgr::CountersActionData
& stats
) STUB_RETVAL(*this)
71 Mgr::Action::Pointer
Mgr::CountersAction::Create(const CommandPointer
&cmd
) STUB_RETVAL(dummyAction
)
72 void Mgr::CountersAction::add(const Action
& action
) STUB
73 void Mgr::CountersAction::pack(Ipc::TypedMsgHdr
& msg
) const STUB
74 void Mgr::CountersAction::unpack(const Ipc::TypedMsgHdr
& msg
) STUB
76 //Mgr::CountersAction::CountersAction(const CommandPointer &cmd) STUB
77 void Mgr::CountersAction::collect() STUB
78 void Mgr::CountersAction::dump(StoreEntry
* entry
) STUB
80 #include "mgr/Filler.h"
81 //Mgr::Filler::Filler(const Action::Pointer &anAction, int aFd, unsigned int aRequestId) STUB
83 //void Mgr::Filler::start() STUB
84 //void Mgr::Filler::swanSong() STUB
86 #include "mgr/Forwarder.h"
87 //Mgr::Forwarder::Forwarder(int aFd, const ActionParams &aParams, HttpRequest* aRequest, StoreEntry* anEntry) STUB
88 //Mgr::Forwarder::~Forwarder() STUB
90 void Mgr::Forwarder::cleanup() STUB
91 void Mgr::Forwarder::handleError() STUB
92 void Mgr::Forwarder::handleTimeout() STUB
93 void Mgr::Forwarder::handleException(const std::exception
& e
) STUB
94 void Mgr::Forwarder::handleRemoteAck() STUB
96 #include "mgr/FunAction.h"
97 Mgr::Action::Pointer
Mgr::FunAction::Create(const CommandPointer
&cmd
, OBJH
*aHandler
) STUB_RETVAL(dummyAction
)
98 void Mgr::FunAction::respond(const Request
& request
) STUB
100 //Mgr::FunAction::FunAction(const CommandPointer &cmd, OBJH *aHandler) STUB
101 void Mgr::FunAction::dump(StoreEntry
*entry
) STUB
103 #include "mgr/InfoAction.h"
104 //Mgr::InfoActionData::InfoActionData() STUB
105 Mgr::InfoActionData
& Mgr::InfoActionData::operator += (const Mgr::InfoActionData
& stats
) STUB_RETVAL(*this)
107 Mgr::Action::Pointer
Mgr::InfoAction::Create(const CommandPointer
&cmd
) STUB_RETVAL(dummyAction
)
108 void Mgr::InfoAction::add(const Action
& action
) STUB
109 void Mgr::InfoAction::respond(const Request
& request
) STUB
110 void Mgr::InfoAction::pack(Ipc::TypedMsgHdr
& msg
) const STUB
111 void Mgr::InfoAction::unpack(const Ipc::TypedMsgHdr
& msg
) STUB
113 //Mgr::InfoAction::InfoAction(const Mgr::CommandPointer &cmd) STUB
114 void Mgr::InfoAction::collect() STUB
115 void Mgr::InfoAction::dump(StoreEntry
* entry
) STUB
117 #include "mgr/Inquirer.h"
118 //Mgr::Inquirer::Inquirer(Action::Pointer anAction, const Request &aCause, const Ipc::StrandCoords &coords) STUB
120 void Mgr::Inquirer::start() STUB
121 bool Mgr::Inquirer::doneAll() const STUB_RETVAL(false)
122 void Mgr::Inquirer::cleanup() STUB
123 void Mgr::Inquirer::sendResponse() STUB
124 bool Mgr::Inquirer::aggregate(Ipc::Response::Pointer aResponse
) STUB_RETVAL(false)
126 #include "mgr/IntervalAction.h"
127 //Mgr::IntervalActionData::IntervalActionData() STUB
128 Mgr::IntervalActionData
& Mgr::IntervalActionData::operator +=(const Mgr::IntervalActionData
& stats
) STUB_RETVAL(*this)
130 //Mgr::Action::Pointer Mgr::IntervalAction::Create5min(const CommandPointer &cmd) STUB_RETVAL(new Mgr::IntervalAction(*cmd))
131 //Mgr::Action::Pointer Mgr::IntervalAction::Create60min(const CommandPointer &cmd) STUB_RETVAL(new Mgr::IntervalAction(*cmd))
132 void Mgr::IntervalAction::add(const Action
& action
) STUB
133 void Mgr::IntervalAction::pack(Ipc::TypedMsgHdr
& msg
) const STUB
134 void Mgr::IntervalAction::unpack(const Ipc::TypedMsgHdr
& msg
) STUB
136 //Mgr::IntervalAction::IntervalAction(const CommandPointer &cmd, int aMinutes, int aHours) STUB
137 void Mgr::IntervalAction::collect() STUB
138 void Mgr::IntervalAction::dump(StoreEntry
* entry
) STUB
140 #include "mgr/IntParam.h"
141 //Mgr::IntParam::IntParam() STUB
142 //Mgr::IntParam::IntParam(const std::vector<int>& anArray) STUB
143 void Mgr::IntParam::pack(Ipc::TypedMsgHdr
& msg
) const STUB
144 void Mgr::IntParam::unpackValue(const Ipc::TypedMsgHdr
& msg
) STUB
145 static std::vector
<int> static_vector
;
146 const std::vector
<int>& Mgr::IntParam::value() const STUB_RETVAL(static_vector
)
148 #include "mgr/IoAction.h"
149 //Mgr::IoActionData::IoActionData() STUB
150 Mgr::IoActionData
& Mgr::IoActionData::operator += (const IoActionData
& stats
) STUB_RETVAL(*this)
152 Mgr::Action::Pointer
Mgr::IoAction::Create(const CommandPointer
&cmd
) STUB_RETVAL(dummyAction
)
153 void Mgr::IoAction::add(const Action
& action
) STUB
154 void Mgr::IoAction::pack(Ipc::TypedMsgHdr
& msg
) const STUB
155 void Mgr::IoAction::unpack(const Ipc::TypedMsgHdr
& msg
) STUB
157 //Mgr::IoAction::IoAction(const CommandPointer &cmd) STUB
158 void Mgr::IoAction::collect() STUB
159 void Mgr::IoAction::dump(StoreEntry
* entry
) STUB
161 //#include "mgr/QueryParam.h"
162 //void Mgr::QueryParam::pack(Ipc::TypedMsgHdr& msg) const = 0;
163 //void Mgr::QueryParam::unpackValue(const Ipc::TypedMsgHdr& msg) = 0;
165 #include "mgr/QueryParams.h"
166 Mgr::QueryParam::Pointer
Mgr::QueryParams::get(const String
& name
) const STUB_RETVAL(Mgr::QueryParam::Pointer(NULL
))
167 void Mgr::QueryParams::pack(Ipc::TypedMsgHdr
& msg
) const STUB
168 void Mgr::QueryParams::unpack(const Ipc::TypedMsgHdr
& msg
) STUB
169 bool Mgr::QueryParams::Parse(const String
& aParamsStr
, QueryParams
& aParams
) STUB_RETVAL(false)
171 //Params::const_iterator Mgr::QueryParams::find(const String& name) const STUB_RETVAL(new Mgr::Params::const_iterator(*this))
172 Mgr::QueryParam::Pointer
Mgr::QueryParams::CreateParam(QueryParam::Type aType
) STUB_RETVAL(Mgr::QueryParam::Pointer(NULL
))
173 bool Mgr::QueryParams::ParseParam(const String
& paramStr
, Param
& param
) STUB_RETVAL(false)
175 #include "mgr/Registration.h"
176 void Mgr::RegisterAction(char const * action
, char const * desc
, OBJH
* handler
, int pw_req_flag
, int atomic
);
177 void Mgr::RegisterAction(char const * action
, char const * desc
, ClassActionCreationHandler
*handler
, int pw_req_flag
, int atomic
);
179 #include "mgr/Request.h"
180 //Mgr::Request::Request(int aRequestorId, unsigned int aRequestId, int aFd, const Mgr::ActionParams &aParams) STUB
181 //Mgr::Request::Request(const Ipc::TypedMsgHdr& msg) STUB
182 void Mgr::Request::pack(Ipc::TypedMsgHdr
& msg
) const STUB
183 Ipc::Request::Pointer
Mgr::Request::clone() const STUB_RETVAL(const_cast<Mgr::Request
*>(this))
185 #include "mgr/Response.h"
186 //Mgr::Response::Response(unsigned int aRequestId, Action::Pointer anAction = NULL) STUB
187 //Mgr::Response::Response(const Ipc::TypedMsgHdr& msg) STUB
188 void Mgr::Response::pack(Ipc::TypedMsgHdr
& msg
) const STUB
189 static Ipc::Response::Pointer ipr_static
;
190 Ipc::Response::Pointer
Mgr::Response::clone() const STUB_RETVAL(Ipc::Response::Pointer(NULL
))
191 bool Mgr::Response::hasAction() const STUB_RETVAL(false)
192 //static Mgr::Action mgraction_static;
193 //const Mgr::Action& Mgr::Response::getAction() const STUB_RETVAL(mgraction_static)
195 #include "mgr/ServiceTimesAction.h"
196 //Mgr::ServiceTimesActionData::ServiceTimesActionData() STUB
197 Mgr::ServiceTimesActionData
& Mgr::ServiceTimesActionData::operator +=(const Mgr::ServiceTimesActionData
& stats
) STUB_RETVAL(*this)
199 Mgr::Action::Pointer
Mgr::ServiceTimesAction::Create(const Mgr::CommandPointer
&cmd
) STUB_RETVAL(Mgr::Action::Pointer(NULL
))
200 void Mgr::ServiceTimesAction::add(const Action
& action
) STUB
201 void Mgr::ServiceTimesAction::pack(Ipc::TypedMsgHdr
& msg
) const STUB
202 void Mgr::ServiceTimesAction::unpack(const Ipc::TypedMsgHdr
& msg
) STUB
204 //Mgr::ServiceTimesAction::ServiceTimesAction(const CommandPointer &cmd) STUB
205 void Mgr::ServiceTimesAction::collect() STUB
206 void Mgr::ServiceTimesAction::dump(StoreEntry
* entry
) STUB
208 #include "mgr/StoreIoAction.h"
209 //Mgr::StoreIoActionData::StoreIoActionData() STUB
210 Mgr::StoreIoActionData
& Mgr::StoreIoActionData::operator +=(const StoreIoActionData
& stats
) STUB_RETVAL(*this)
211 //Mgr::StoreIoAction::StoreIoAction(const CommandPointer &cmd) STUB
212 Mgr::Action::Pointer
Mgr::StoreIoAction::Create(const CommandPointer
&cmd
) STUB_RETVAL(Mgr::Action::Pointer(NULL
))
213 void Mgr::StoreIoAction::add(const Action
& action
) STUB
214 void Mgr::StoreIoAction::pack(Ipc::TypedMsgHdr
& msg
) const STUB
215 void Mgr::StoreIoAction::unpack(const Ipc::TypedMsgHdr
& msg
) STUB
216 void Mgr::StoreIoAction::collect() STUB
217 void Mgr::StoreIoAction::dump(StoreEntry
* entry
) STUB
219 #include "mgr/StoreToCommWriter.h"
220 //Mgr::StoreToCommWriter::StoreToCommWriter(int aFd, StoreEntry *anEntry) STUB
221 Mgr::StoreToCommWriter::~StoreToCommWriter() STUB
222 void Mgr::StoreToCommWriter::start() STUB
223 void Mgr::StoreToCommWriter::swanSong() STUB
224 bool Mgr::StoreToCommWriter::doneAll() const STUB_RETVAL(false)
225 void Mgr::StoreToCommWriter::scheduleStoreCopy() STUB
226 void Mgr::StoreToCommWriter::noteStoreCopied(StoreIOBuffer ioBuf
) STUB
227 void Mgr::StoreToCommWriter::NoteStoreCopied(void* data
, StoreIOBuffer ioBuf
) STUB
228 void Mgr::StoreToCommWriter::Abort(void* param
) STUB
229 void Mgr::StoreToCommWriter::scheduleCommWrite(const StoreIOBuffer
& ioBuf
) STUB
230 void Mgr::StoreToCommWriter::noteCommWrote(const CommIoCbParams
& params
) STUB
231 void Mgr::StoreToCommWriter::noteCommClosed(const CommCloseCbParams
& params
) STUB
232 void Mgr::StoreToCommWriter::close() STUB
234 #include "mgr/StringParam.h"
235 //Mgr::StringParam::StringParam() STUB
236 //Mgr::StringParam::StringParam(const String& aString) STUB
237 void Mgr::StringParam::pack(Ipc::TypedMsgHdr
& msg
) const STUB
238 void Mgr::StringParam::unpackValue(const Ipc::TypedMsgHdr
& msg
) STUB
240 const String
& Mgr::StringParam::value() const STUB_RETVAL(t
)