package javax.megaco.pkg.NetworkPkg;
import javax.megaco.pkg.MegacoPkg;
import javax.megaco.pkg.PkgConsts;
import javax.megaco.pkg.PkgStatsItem;
/**
* The MEGACO Duration statistics class extends the PkgStatsItem class. This is
* a final class. This class defines Duration statistics of MEGACO Network
* package. The methods shall define that this statistics item belongs to the
* Network package.
*/
public final class NetworkDurStats extends PkgStatsItem {
/**
* Identifies Duration statistics of the MEGACO Network Package. Its value
* shall be set equal to 0x0001.
*/
public static final int NETWORK_DUR_STATS = 0x0001;
/**
* Constructs a Jain MEGACO Object representing statistics Item of the
* MEGACO Package for statistics Duration and Package as Network.
*/
public NetworkDurStats() {
super();
super.itemId = NETWORK_DUR_STATS;
super.statisticsId = NETWORK_DUR_STATS;
super.packageId = new NetworkPkg();
}
/**
* This method is used to get the item identifier from an Item object. The
* implementations of this method in this class returns the id of the
* Duration statistics of Network Package.
*
* @return It shall return {@link NETWORK_DUR_STATS}.
*/
public int getItemId() {
return super.itemId;
}
/**
* This method is used to get the statistics identifier from an Statistics
* Item object. The implementations of this method in this class returns the
* id of the Duration statistics of Network Package.
*
* @return It shall return {@link NETWORK_DUR_STATS}.
*/
public int getStatisticsId() {
return super.statisticsId;
}
/**
* This method gets the package id to which the item belongs. Since the
* Octet Sent statistics is defined in the Network Package of MEGACO
* protocol, this method returns the value {@link PkgConsts.NETWORK_PACKAGE}
* constant. This constant is defined in the PkgConsts class.
*
* @return The package id {@link PkgConsts.NETWORK_PACKAGE}.
*/
public MegacoPkg getItemsPkgId() {
return super.packageId;
}
@Override
public int getItemValueType() {
return super.itemValueType;
}
@Override
public int[] getItemsDescriptorIds() {
// TODO Auto-generated method stub
return null;
}
}