| 1 | //------------------------------------------------------------------------------ |
| 2 | // Author: Andrey Kuznetsov |
| 3 | // Description: Representer of NFSv4 statistics |
| 4 | // Copyright (c) 2015 EPAM Systems |
| 5 | //------------------------------------------------------------------------------ |
| 6 | /* |
| 7 | This file is part of Nfstrace. |
| 8 | |
| 9 | Nfstrace is free software: you can redistribute it and/or modify |
| 10 | it under the terms of the GNU General Public License as published by |
| 11 | the Free Software Foundation, version 2 of the License. |
| 12 | |
| 13 | Nfstrace is distributed in the hope that it will be useful, |
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | GNU General Public License for more details. |
| 17 | |
| 18 | You should have received a copy of the GNU General Public License |
| 19 | along with Nfstrace. If not, see <http://www.gnu.org/licenses/>. |
| 20 | */ |
| 21 | //------------------------------------------------------------------------------ |
| 22 | #ifndef NFSV4REPRESENTER_H |
| 23 | #define NFSV4REPRESENTER_H |
| 24 | //------------------------------------------------------------------------------ |
| 25 | #include "representer.h" |
| 26 | //------------------------------------------------------------------------------ |
| 27 | namespace NST |
| 28 | { |
| 29 | namespace breakdown |
| 30 | { |
| 31 | /** |
| 32 | * @brief The NFSv4Representer class |
| 33 | * Splits output into commands/operations lists for NFS v4.* protocols |
| 34 | */ |
| 35 | class NFSv4Representer : public Representer |
| 36 | { |
| 37 | const size_t count_of_compounds; |
| 38 | |
| 39 | public: |
| 40 | NFSv4Representer(std::ostream& o, CommandRepresenter* cmdRep, size_t space_for_cmd_name, size_t count_of_compounds); |
| 41 | void onProcedureInfoPrinted(std::ostream& o, const BreakdownCounter& breakdown, unsigned procedure) const override final; |
| 42 | }; |
| 43 | |
| 44 | } // namespace breakdown |
| 45 | } // namespace NST |
| 46 | //------------------------------------------------------------------------------ |
| 47 | #endif //NFSV4REPRESENTER_H |
| 48 | //------------------------------------------------------------------------------ |