PageRenderTime 38ms CodeModel.GetById 29ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

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