Commit 7fdcecdb authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[5074] Files in libkea-process moved to isc::process namespace.

parent 070672ba
......@@ -9,7 +9,7 @@
#include <process/io_service_signal.h>
namespace isc {
namespace d2 {
namespace process {
IOSignal::IOSignal (asiolink::IOService& io_service, int signum,
IOSignalHandler handler)
......@@ -112,5 +112,5 @@ IOSignalQueue::clear() {
signals_.clear();
}
}; // end of isc::d2 namespace
}; // end of isc::process namespace
}; // end of isc namespace
// Copyright (C) 2014-2015 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2014-2016 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
......@@ -15,7 +15,7 @@
#include <stdint.h>
namespace isc {
namespace d2 {
namespace process {
/// @brief Exception thrown if IOSignal encounters an error.
class IOSignalError : public isc::Exception {
......@@ -54,7 +54,7 @@ typedef boost::function<void(IOSignalId sequence_id)> IOSignalHandler;
/// create the signals, house them until they are delivered, and dequeue them
/// so they can be been handled. To generate an IOSignal when an OS signal
/// arrives, the process's OS signal handler simply calls @ref
/// isc::d2::IOSignalQueue::pushSignal() with the appropriate values.
/// isc::process::IOSignalQueue::pushSignal() with the appropriate values.
///
/// @note that an IOSignalQueue requires a non-null IOServicePtr to construct.
/// This ensures that the IOService cannot be destroyed before any pending
......@@ -63,12 +63,13 @@ typedef boost::function<void(IOSignalId sequence_id)> IOSignalHandler;
/// one service, each service must have its own queue.
///
/// To dequeue the IOSignal inside the caller's IOSignalHandler, one simply
/// invokes @ref isc::d2::IOSignalQueue::popSignal() passing it the sequence_id
/// parameter passed to the handler. This method returns a pointer to
/// instigating IOSignal from which the value of OS signal (i.e. SIGINT,
/// SIGUSR1...) can be obtained. Note that calling popSignal() removes the
/// IOSignalPtr from the queue, which should reduce its reference count to
/// zero upon exiting the handler (unless a delibrate copy of it is made).
/// invokes @ref isc::process::IOSignalQueue::popSignal() passing it the
/// sequence_id parameter passed to the handler. This method returns a
/// pointer to instigating IOSignal from which the value of OS signal (i.e.
/// SIGINT, SIGUSR1...) can be obtained. Note that calling popSignal()
/// removes the IOSignalPtr from the queue, which should reduce its
/// reference count to zero upon exiting the handler (unless a delibrate
/// copy of it is made).
///
/// A typical IOSignalHandler might be structured as follows:
/// @code
......@@ -252,7 +253,7 @@ private:
typedef boost::shared_ptr<IOSignalQueue> IOSignalQueuePtr;
}; // end of isc::d2 namespace
}; // end of isc::process namespace
}; // end of isc namespace
#endif // IO_SERVICE_SIGNAL_H
......@@ -4,7 +4,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
$NAMESPACE isc::d2
$NAMESPACE isc::process
% DCTL_ALREADY_RUNNING %1 already running? %2
This is an error message that occurs when a module encounters a pre-existing
......
......@@ -21,7 +21,7 @@
using namespace std;
using namespace isc;
using namespace isc::config;
using namespace isc::d2;
using namespace isc::process;
using namespace boost::posix_time;
namespace {
......
......@@ -18,7 +18,7 @@
using namespace boost::posix_time;
namespace isc {
namespace d2 {
namespace process {
/// @brief Test fixture class for testing DControllerBase class. This class
/// derives from DControllerTest and wraps a DStubController. DStubController
......
......@@ -15,7 +15,7 @@
#include <queue>
namespace isc {
namespace d2 {
namespace process {
/// @brief Test fixture for testing the use of IOSignals.
///
......@@ -387,5 +387,5 @@ TEST_F(IOSignalTest, mixedSignals) {
EXPECT_EQ(sigusr2_cnt, (stop_at_count_/3));
}
}; // end of isc::d2 namespace
}; // end of isc::process namespace
}; // end of isc namespace
......@@ -13,7 +13,7 @@
using namespace boost::asio;
namespace isc {
namespace d2 {
namespace process {
const char* valid_d2_config = "{ "
"\"ip-address\" : \"127.0.0.1\" , "
......@@ -423,5 +423,5 @@ DStubCfgMgr::createConfigParser(const std::string& element_id,
return (parser);
}
}; // namespace isc::d2
}; // namespace isc::process
}; // namespace isc
......@@ -28,7 +28,7 @@ using namespace boost::posix_time;
#include <sstream>
namespace isc {
namespace d2 {
namespace process {
/// @brief Provides a valid DHCP-DDNS configuration for testing basic
/// parsing fundamentals.
......@@ -862,7 +862,7 @@ private:
/// testing configuration parsing fundamentals.
extern const char* valid_d2_config;
}; // namespace isc::d2
}; // namespace isc::process
}; // namespace isc
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment