com.pcube.apps.engage.apply
Class PirCalculator
java.lang.Object
com.pcube.apps.engage.apply.PirCalculator
public class PirCalculator
- extends Object
handles the delicate issue of calculating the actual PIR that need to be
applied to the SE, based on configured PIR, CIR and global BW settings.
getInstance
public static final PirCalculator getInstance()
- Returns:
calculatePir
public long calculatePir(Policy policy,
SePlatformData sePlatformData,
long configuredPirKbps,
long configuredCirKbps,
int bwcDir,
int gcIdx)
throws ItemNotFoundException
- calculates the actual PIR that should be applied to the SE according to
the specified PIR, SE max line rate, BWC direction and GC.
- Parameters:
policy - sePlatformData - configuredPirKbps - configuredCirKbps - bwcDir - gcIdx -
- Returns:
- actual PIR to be applied
- Throws:
ItemNotFoundException - if specified gcIdx is out of bounds
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2011 Cisco Systems, Inc. Confidential.