/protocols/jain-megaco/megaco-api/src/main/java/javax/megaco/pkg/NetworkPkg/NetworkDurStats.java

http://mobicents.googlecode.com/ · Java · 77 lines · 30 code · 10 blank · 37 comment · 0 complexity · 04db45f7f93fbc7b09c3117f5e8093c9 MD5 · raw file

  1. package javax.megaco.pkg.NetworkPkg;
  2. import javax.megaco.pkg.MegacoPkg;
  3. import javax.megaco.pkg.PkgConsts;
  4. import javax.megaco.pkg.PkgStatsItem;
  5. /**
  6. * The MEGACO Duration statistics class extends the PkgStatsItem class. This is
  7. * a final class. This class defines Duration statistics of MEGACO Network
  8. * package. The methods shall define that this statistics item belongs to the
  9. * Network package.
  10. */
  11. public final class NetworkDurStats extends PkgStatsItem {
  12. /**
  13. * Identifies Duration statistics of the MEGACO Network Package. Its value
  14. * shall be set equal to 0x0001.
  15. */
  16. public static final int NETWORK_DUR_STATS = 0x0001;
  17. /**
  18. * Constructs a Jain MEGACO Object representing statistics Item of the
  19. * MEGACO Package for statistics Duration and Package as Network.
  20. */
  21. public NetworkDurStats() {
  22. super();
  23. super.itemId = NETWORK_DUR_STATS;
  24. super.statisticsId = NETWORK_DUR_STATS;
  25. super.packageId = new NetworkPkg();
  26. }
  27. /**
  28. * This method is used to get the item identifier from an Item object. The
  29. * implementations of this method in this class returns the id of the
  30. * Duration statistics of Network Package.
  31. *
  32. * @return It shall return {@link NETWORK_DUR_STATS}.
  33. */
  34. public int getItemId() {
  35. return super.itemId;
  36. }
  37. /**
  38. * This method is used to get the statistics identifier from an Statistics
  39. * Item object. The implementations of this method in this class returns the
  40. * id of the Duration statistics of Network Package.
  41. *
  42. * @return It shall return {@link NETWORK_DUR_STATS}.
  43. */
  44. public int getStatisticsId() {
  45. return super.statisticsId;
  46. }
  47. /**
  48. * This method gets the package id to which the item belongs. Since the
  49. * Octet Sent statistics is defined in the Network Package of MEGACO
  50. * protocol, this method returns the value {@link PkgConsts.NETWORK_PACKAGE}
  51. * constant. This constant is defined in the PkgConsts class.
  52. *
  53. * @return The package id {@link PkgConsts.NETWORK_PACKAGE}.
  54. */
  55. public MegacoPkg getItemsPkgId() {
  56. return super.packageId;
  57. }
  58. @Override
  59. public int getItemValueType() {
  60. return super.itemValueType;
  61. }
  62. @Override
  63. public int[] getItemsDescriptorIds() {
  64. // TODO Auto-generated method stub
  65. return null;
  66. }
  67. }