rippled
Loading...
Searching...
No Matches
ClusterNode.h
1//------------------------------------------------------------------------------
2/*
3 This file is part of rippled: https://github.com/ripple/rippled
4 Copyright (c) 2012, 2013 Ripple Labs Inc.
5
6 Permission to use, copy, modify, and/or distribute this software for any
7 purpose with or without fee is hereby granted, provided that the above
8 copyright notice and this permission notice appear in all copies.
9
10 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17*/
18//==============================================================================
19
20#ifndef RIPPLE_APP_PEERS_CLUSTERNODESTATUS_H_INCLUDED
21#define RIPPLE_APP_PEERS_CLUSTERNODESTATUS_H_INCLUDED
22
23#include <xrpl/basics/chrono.h>
24#include <xrpl/protocol/PublicKey.h>
25
26#include <cstdint>
27#include <string>
28
29namespace ripple {
30
32{
33public:
34 ClusterNode() = delete;
35
37 PublicKey const& identity,
38 std::string const& name,
42 {
43 }
44
45 std::string const&
46 name() const
47 {
48 return name_;
49 }
50
52 getLoadFee() const
53 {
54 return mLoadFee;
55 }
56
59 {
60 return mReportTime;
61 }
62
63 PublicKey const&
64 identity() const
65 {
66 return identity_;
67 }
68
69private:
74};
75
76} // namespace ripple
77
78#endif
NetClock::time_point mReportTime
Definition: ClusterNode.h:73
std::string const & name() const
Definition: ClusterNode.h:46
std::uint32_t mLoadFee
Definition: ClusterNode.h:72
std::string name_
Definition: ClusterNode.h:71
PublicKey const identity_
Definition: ClusterNode.h:70
ClusterNode(PublicKey const &identity, std::string const &name, std::uint32_t fee=0, NetClock::time_point rtime=NetClock::time_point{})
Definition: ClusterNode.h:36
std::uint32_t getLoadFee() const
Definition: ClusterNode.h:52
NetClock::time_point getReportTime() const
Definition: ClusterNode.h:58
PublicKey const & identity() const
Definition: ClusterNode.h:64
A public key.
Definition: PublicKey.h:62
Set the fee on a JTx.
Definition: fee.h:37
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition: algorithm.h:26