|
rippled
|
Holds all the 'static' information about a job, which does not change. More...
#include <JobTypeInfo.h>

Public Member Functions | |
| JobTypeInfo ()=delete | |
| JobTypeInfo (JobType type, std::string name, int limit, std::chrono::milliseconds avgLatency, std::chrono::milliseconds peakLatency) | |
| JobType | type () const |
| std::string const & | name () const |
| int | limit () const |
| bool | special () const |
| std::chrono::milliseconds | getAverageLatency () const |
| std::chrono::milliseconds | getPeakLatency () const |
Private Attributes | |
| JobType const | m_type |
| std::string const | m_name |
| int const | m_limit |
| The limit on the number of running jobs for this job type. | |
| std::chrono::milliseconds const | m_avgLatency |
| Average and peak latencies for this job type. | |
| std::chrono::milliseconds const | m_peakLatency |
Holds all the 'static' information about a job, which does not change.
Definition at line 9 of file JobTypeInfo.h.
|
delete |
| ripple::JobTypeInfo::JobTypeInfo | ( | JobType | type, |
| std::string | name, | ||
| int | limit, | ||
| std::chrono::milliseconds | avgLatency, | ||
| std::chrono::milliseconds | peakLatency | ||
| ) |
Definition at line 30 of file JobTypeInfo.h.
| JobType ripple::JobTypeInfo::type | ( | ) | const |
Definition at line 45 of file JobTypeInfo.h.
| std::string const & ripple::JobTypeInfo::name | ( | ) | const |
Definition at line 51 of file JobTypeInfo.h.
| int ripple::JobTypeInfo::limit | ( | ) | const |
Definition at line 57 of file JobTypeInfo.h.
| bool ripple::JobTypeInfo::special | ( | ) | const |
Definition at line 63 of file JobTypeInfo.h.
| std::chrono::milliseconds ripple::JobTypeInfo::getAverageLatency | ( | ) | const |
Definition at line 69 of file JobTypeInfo.h.
| std::chrono::milliseconds ripple::JobTypeInfo::getPeakLatency | ( | ) | const |
Definition at line 75 of file JobTypeInfo.h.
|
private |
Definition at line 12 of file JobTypeInfo.h.
|
private |
Definition at line 13 of file JobTypeInfo.h.
|
private |
The limit on the number of running jobs for this job type.
A limit of 0 marks this as a "special job" which is not dispatched via the job queue.
Definition at line 20 of file JobTypeInfo.h.
|
private |
Average and peak latencies for this job type.
0 is none specified
Definition at line 23 of file JobTypeInfo.h.
|
private |
Definition at line 24 of file JobTypeInfo.h.