libfoedus-core
FOEDUS Core Library
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Jenkins (x86_64 Fedora)
Jenkins (x86_64 Ubuntu)
Jenkins (aarch64 Ubuntu)
Github
Wiki
File List
File Members
epoch_history.hpp
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2014-2015, Hewlett-Packard Development Company, LP.
3
* This program is free software; you can redistribute it and/or modify it
4
* under the terms of the GNU General Public License as published by the Free
5
* Software Foundation; either version 2 of the License, or (at your option)
6
* any later version.
7
*
8
* This program is distributed in the hope that it will be useful, but WITHOUT
9
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11
* more details. You should have received a copy of the GNU General Public
12
* License along with this program; if not, write to the Free Software
13
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14
*
15
* HP designates this particular file as subject to the "Classpath" exception
16
* as provided by HP in the LICENSE.txt file that accompanied this code.
17
*/
18
#ifndef FOEDUS_LOG_EPOCH_HISTORY_HPP_
19
#define FOEDUS_LOG_EPOCH_HISTORY_HPP_
20
#include <stdint.h>
21
22
#include <iosfwd>
23
24
#include "
foedus/epoch.hpp
"
25
#include "
foedus/log/common_log_types.hpp
"
26
#include "
foedus/log/log_id.hpp
"
27
28
namespace
foedus
{
29
namespace
log {
36
struct
EpochHistory
{
37
explicit
EpochHistory
(
const
EpochMarkerLogType
& marker)
38
:
old_epoch_
(marker.
old_epoch_
),
new_epoch_
(marker.
new_epoch_
),
39
log_file_ordinal_
(marker.
log_file_ordinal_
),
log_file_offset_
(marker.
log_file_offset_
) {
40
}
41
42
Epoch
old_epoch_
;
43
Epoch
new_epoch_
;
44
LogFileOrdinal
log_file_ordinal_
;
45
uint64_t
log_file_offset_
;
46
47
friend
std::ostream&
operator<<
(std::ostream& o,
const
EpochHistory
& v);
48
};
49
50
}
// namespace log
51
}
// namespace foedus
52
#endif // FOEDUS_LOG_EPOCH_HISTORY_HPP_
epoch.hpp
foedus
Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services).
Definition:
assert_nd.hpp:44
foedus::Epoch
Represents a time epoch.
Definition:
epoch.hpp:61
common_log_types.hpp
Declares common log types used in all packages.
log_id.hpp
Typedefs of ID types used in log package.
foedus::log::EpochHistory::log_file_offset_
uint64_t log_file_offset_
Definition:
epoch_history.hpp:45
foedus::log::EpochHistory::log_file_ordinal_
LogFileOrdinal log_file_ordinal_
Definition:
epoch_history.hpp:44
foedus::log::LogFileOrdinal
uint32_t LogFileOrdinal
Ordinal of log files (eg "log.0", "log.1").
Definition:
log_id.hpp:46
foedus::log::EpochHistory::old_epoch_
Epoch old_epoch_
Definition:
epoch_history.hpp:42
foedus::log::EpochHistory::EpochHistory
EpochHistory(const EpochMarkerLogType &marker)
Definition:
epoch_history.hpp:37
foedus::log::EpochMarkerLogType
A log type to declare a switch of epoch in a logger or the engine.
Definition:
common_log_types.hpp:271
foedus::log::EpochHistory::new_epoch_
Epoch new_epoch_
Definition:
epoch_history.hpp:43
foedus::log::EpochHistory::operator<<
friend std::ostream & operator<<(std::ostream &o, const EpochHistory &v)
Definition:
epoch_history.cpp:26
foedus::log::EpochHistory
Represents an event where a logger switched its epoch.
Definition:
epoch_history.hpp:36
foedus-core
include
foedus
log
epoch_history.hpp
Generated by
1.8.10