Public Member Functions | |
| UserPreferences (int time, int maxLogs, int inRate, int outRate) | |
| void | setTimeFrame (int time) |
| void | setMaxLogs (int maxLogs) throws IllegalArgumentException |
| int | getMaxNumOfLogs () |
| int | getMinuteTimeFrame () |
| long | getMillisecondsTimeFrame () |
| int | getMaxInputRate () |
| void | setMaxInputRate (int maxInputRate) |
| int | getMaxOutputRate () |
| void | setMaxOutputRate (int maxOutputRate) |
| UserPreferences | clone () throws CloneNotSupportedException |
| int | getDynThreshold () |
| void | setDynThreshold (int dynThreshold) |
| int | getDynDamping () |
| void | setDynDamping (int dynDamping) |
| int | getDynTime () |
| void | setDynTime (int dynTime) |
| int | getTimeFrame () |
| void | setMaxNumOfLogs (int maxNumOfLogs) |
Private Attributes | |
| int | timeFrame = 0 |
| int | maxNumOfLogs = 0 |
| int | maxInputRate = Integer.MAX_VALUE |
| int | maxOutputRate = Integer.MAX_VALUE |
| int | dynThreshold = Integer.MAX_VALUE |
| int | dynDamping = 0 |
| int | dynTime = 1 |
The preferences
| alma::acs::logging::preferences::UserPreferences::UserPreferences | ( | int | time, | |
| int | maxLogs, | |||
| int | inRate, | |||
| int | outRate | |||
| ) | [inline] |
Builds an object with the given values
| time | The time frame (in minutes) | |
| maxLogs | The max number of logs |
References setMaxInputRate(), setMaxLogs(), setMaxOutputRate(), and setTimeFrame().
| UserPreferences alma::acs::logging::preferences::UserPreferences::clone | ( | ) | throws CloneNotSupportedException [inline] |
Return a copy of this object
References clone().
Referenced by alma::acs::logging::preferences::ExpertPrefsDlg::actionPerformed(), clone(), and alma::acs::logging::preferences::ExpertPrefsDlg::ExpertPrefsDlg().
| int alma::acs::logging::preferences::UserPreferences::getDynDamping | ( | ) | [inline] |
References dynDamping.
Referenced by com::cosylab::logging::LoggingClient::EventHandler::actionPerformed().
| int alma::acs::logging::preferences::UserPreferences::getDynThreshold | ( | ) | [inline] |
| int alma::acs::logging::preferences::UserPreferences::getDynTime | ( | ) | [inline] |
References dynTime.
Referenced by com::cosylab::logging::LoggingClient::EventHandler::actionPerformed().
| int alma::acs::logging::preferences::UserPreferences::getMaxInputRate | ( | ) | [inline] |
| int alma::acs::logging::preferences::UserPreferences::getMaxNumOfLogs | ( | ) | [inline] |
References maxNumOfLogs.
Referenced by com::cosylab::logging::LoggingClient::EventHandler::actionPerformed(), alma::acs::logging::preferences::ExpertPrefsDlg::ExpertPrefsDlg(), com::cosylab::logging::LoggingClient::initialize(), alma::acs::logging::preferences::ExpertPrefsDlg::ratioWidgets(), and com::cosylab::logging::LoggingClient::setNumberOfLogsLbl().
| int alma::acs::logging::preferences::UserPreferences::getMaxOutputRate | ( | ) | [inline] |
| long alma::acs::logging::preferences::UserPreferences::getMillisecondsTimeFrame | ( | ) | [inline] |
References timeFrame.
Referenced by com::cosylab::logging::LoggingClient::EventHandler::actionPerformed(), and com::cosylab::logging::LoggingClient::initialize().
| int alma::acs::logging::preferences::UserPreferences::getMinuteTimeFrame | ( | ) | [inline] |
References timeFrame.
Referenced by com::cosylab::logging::LoggingClient::EventHandler::actionPerformed(), alma::acs::logging::preferences::ExpertPrefsDlg::ExpertPrefsDlg(), and alma::acs::logging::preferences::ExpertPrefsDlg::ratioWidgets().
| int alma::acs::logging::preferences::UserPreferences::getTimeFrame | ( | ) | [inline] |
References timeFrame.
| void alma::acs::logging::preferences::UserPreferences::setDynDamping | ( | int | dynDamping | ) | [inline] |
| void alma::acs::logging::preferences::UserPreferences::setDynThreshold | ( | int | dynThreshold | ) | [inline] |
| void alma::acs::logging::preferences::UserPreferences::setDynTime | ( | int | dynTime | ) | [inline] |
| void alma::acs::logging::preferences::UserPreferences::setMaxInputRate | ( | int | maxInputRate | ) | [inline] |
| void alma::acs::logging::preferences::UserPreferences::setMaxLogs | ( | int | maxLogs | ) | throws IllegalArgumentException [inline] |
Set the max number of logs
| maxLogs | The max number of logs |
References maxNumOfLogs.
Referenced by com::cosylab::logging::LoggingClient::EventHandler::actionPerformed(), alma::acs::logging::preferences::ExpertPrefsDlg::getPreferences(), com::cosylab::logging::LoggingClient::initialize(), and UserPreferences().
| void alma::acs::logging::preferences::UserPreferences::setMaxNumOfLogs | ( | int | maxNumOfLogs | ) | [inline] |
| void alma::acs::logging::preferences::UserPreferences::setMaxOutputRate | ( | int | maxOutputRate | ) | [inline] |
| void alma::acs::logging::preferences::UserPreferences::setTimeFrame | ( | int | time | ) | [inline] |
Set the time frame to the given value
| time | The new time frame (in minutes) |
References timeFrame.
Referenced by com::cosylab::logging::LoggingClient::EventHandler::actionPerformed(), alma::acs::logging::preferences::ExpertPrefsDlg::getPreferences(), and UserPreferences().
int alma::acs::logging::preferences::UserPreferences::dynDamping = 0 [private] |
The damping factor for dynamic discard level
Referenced by getDynDamping().
int alma::acs::logging::preferences::UserPreferences::dynThreshold = Integer.MAX_VALUE [private] |
The threshold to activate dynamic discard level
Referenced by getDynThreshold().
int alma::acs::logging::preferences::UserPreferences::dynTime = 1 [private] |
The time (seconds) for dynamic discard level
Referenced by getDynTime().
int alma::acs::logging::preferences::UserPreferences::maxInputRate = Integer.MAX_VALUE [private] |
Max number of logs per second read from the NC.
Referenced by getMaxInputRate().
int alma::acs::logging::preferences::UserPreferences::maxNumOfLogs = 0 [private] |
The max number of logs
Referenced by getMaxNumOfLogs(), and setMaxLogs().
int alma::acs::logging::preferences::UserPreferences::maxOutputRate = Integer.MAX_VALUE [private] |
Max number of logs per second that the engine sends to the table.
Referenced by getMaxOutputRate().
int alma::acs::logging::preferences::UserPreferences::timeFrame = 0 [private] |
The time frame (in minutes)
Referenced by getMillisecondsTimeFrame(), getMinuteTimeFrame(), getTimeFrame(), and setTimeFrame().
1.6.2