com.pcube.apps.engage.apply
Class PirCalculator
java.lang.Object
com.pcube.apps.engage.apply.PirCalculator
public class PirCalculator
- extends java.lang.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.
|
Method Summary |
long |
calculatePir(Policy policy,
SePlatformData sePlatformData,
long configuredPirKbps,
long configuredCirKbps,
int bwcDir,
int gcIdx)
calculates the actual PIR that should be applied to the SE according to
the specified PIR, SE max line rate, BWC direction and GC. |
static PirCalculator |
getInstance()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2013 Cisco Systems, Inc. Confidential.