PageRenderTime 31ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/protocols/jain-megaco/megaco-api/src/main/java/javax/megaco/pkg/RTPPkg/RTPPsStats.java

http://mobicents.googlecode.com/
Java | 82 lines | 30 code | 10 blank | 42 comment | 0 complexity | ee805e526edd94ff20afaba10796aa39 MD5 | raw file
Possible License(s): LGPL-3.0, GPL-3.0, LGPL-2.1, GPL-2.0, CC-BY-SA-3.0, CC0-1.0, Apache-2.0, BSD-3-Clause
  1. package javax.megaco.pkg.RTPPkg;
  2. import javax.megaco.pkg.MegacoPkg;
  3. import javax.megaco.pkg.PkgConsts;
  4. import javax.megaco.pkg.PkgStatsItem;
  5. /**
  6. *
  7. * The MEGACO Packet Sent statistics class extends the PkgStatsItem class. This
  8. * is a final class. This class defines Packet Sent statistics of MEGACO RTP
  9. * package. The methods shall define that this statistics item belongs to the
  10. * RTP package.
  11. */
  12. public final class RTPPsStats extends PkgStatsItem {
  13. /**
  14. * Identifies Packets sent statistics of the MEGACO RTP Package. Its value
  15. * shall be set equal to 0x0004.
  16. */
  17. public static final int RTP_PS_STATS = 0x0004;
  18. /**
  19. * Constructs a Jain MEGACO Object representing statistics item of the
  20. * MEGACO Package for statistics Packet Sent and Package as RTP.
  21. */
  22. public RTPPsStats() {
  23. super();
  24. super.statisticsId = RTP_PS_STATS;
  25. super.itemId = RTP_PS_STATS;
  26. super.packageId = new RTPPkg();
  27. }
  28. /**
  29. * This method is used to get the item identifier from an Item object. The
  30. * implementations of this method in this class returns the id of the
  31. * Packets Sent statistics of RTP Package.
  32. *
  33. * @return It shall return {@link RTP_PS_STATS}.
  34. */
  35. public int getItemId() {
  36. return super.itemId;
  37. }
  38. /**
  39. * This method gets the package id to which the item belongs. Since the
  40. * Packet sent statistics is defined in the RTP Package of MEGACO protocol,
  41. * this method returns the value {@link PkgConsts.RTP_PACKAGE} constant.
  42. * This constant is defined in the PkgConsts class.
  43. *
  44. *
  45. *
  46. * @return The package id RTP_PACKAGE.
  47. */
  48. public MegacoPkg getItemsPkgId() {
  49. return super.packageId;
  50. }
  51. /**
  52. * This method is used to get the statistics identifier from an Statistics
  53. * Item object. The implementations of this method in this class returns the
  54. * id of the Packets Sent statistics of RTP Package.
  55. *
  56. * @return It shall return {@link RTP_PS_STATS}.
  57. */
  58. public int getStatisticsId() {
  59. return super.statisticsId;
  60. }
  61. // FIXME; ??
  62. @Override
  63. public int getItemValueType() {
  64. // TODO Auto-generated method stub
  65. return 0;
  66. }
  67. @Override
  68. public int[] getItemsDescriptorIds() {
  69. // TODO Auto-generated method stub
  70. return null;
  71. }
  72. }