|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pcube.apps.engage.foundations.NamedObjectBase
com.pcube.apps.engage.common.BWController
public class BWController
A bandwidth controller has two values - the minimum bandwidth which the
bandwidth controller is obligated to supply (CIR) and the bandwidth
limitation (PIR). A service's transactions can be associated to a
BWController. The platform makes sure that the total BW consumed by all the
flows linked to a specific BWController does not exceed its PIR, and attempts
to balance traffic consumption, such that all subscribers will at least
receive their CIR value. The probability of bandwidth being less that the PIR
depends on the assigned Class-Of-Service & Assurance-Level assigned to a
transaction.
A BWController is a part of a BWControllerArray, and is in its context. The
total BWController is the first BWController in the BWControllerArray. All
flows which are not controlled by any specific BWController, have their
bandwidth accumulated into the total BWController.
| Field Summary | |
|---|---|
static long |
BWCONTROLLER_BW_STEP
|
static long |
DEFAULT_CIR
|
static int |
DOWNSTREAM_DIRECTION
|
static long |
MAX_BWCONTROLLER_BW
|
static long |
MAX_BWCONTROLLER_BW_8K
|
static long |
MIN_BWCONTROLLER_BW
|
static long |
REAL_MAX_BWCONTROLLER_BW_8K_IN_SE
|
static long |
REAL_MAX_BWCONTROLLER_BW_IN_SE
|
static int |
TOTAL_BW_LIMIT_INDEX
|
static int |
UPSTREAM_DIRECTION
|
| Constructor Summary | |
|---|---|
BWController()
|
|
BWController(java.lang.String name)
|
|
BWController(java.lang.String newName,
boolean isSubBWController,
long cir,
long pir,
int dir)
|
|
BWController(java.lang.String newName,
java.lang.String newDescription)
Deprecated. use BWController(String)instead. |
|
BWController(java.lang.String newName,
java.lang.String newDescription,
boolean isSubBWController,
long cir,
long pir,
int dir)
Deprecated. use BWController(String, boolean, long, long, int)
instead. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Producing an identical object to this object. |
void |
fromStream(java.io.BufferedReader in,
Formatter f)
Method fromStream |
AssuranceLevel |
getAssuranceLevel()
Gets this bandwidth controller assurance level. |
long |
getCIR()
Gets the bandwidth in Kbps which this BWController is obligated to supply. |
int |
getDirection()
Gets this bandwidth controller's direction. |
int |
getGlobalControllerIndex()
Gets this bandwidth controller quality params' global controller index |
long |
getPIR()
Gets this bandwidth controller's bandwidth limitation in Kbps. |
boolean |
isAddOnPackage()
|
boolean |
isDefaultBWC()
This will return true if the bwc is a default bwc |
boolean |
isIsSubBWController()
Deprecated. use isSubBWController |
boolean |
isSubBWController()
Checks if the bandwidth which is controlled by this BWController will be accumulated by the total BWController as well. |
void |
setAssuranceLevel(AssuranceLevel assuranceLevel)
Sets this bandwidth controller assurance level. |
void |
setAssuranceLevel(int newAssuranceLevel)
Sets this bandwidth controller assurance level. |
void |
setCIR(long newCIR)
Sets this BWController's CIR |
void |
setDirection(int newDirection)
Sets this bandwidth controller's direction. |
void |
setGlobalControllerIndex(int newGlobalControllerIndex)
Sets the bw Limiter index. |
void |
setIsAddOnPackage(boolean isAddOnPackage)
|
void |
setIsDefaultBWC(boolean isDefaultBWC)
This method will set true for default bwc, which will be used for package combo |
void |
setIsSubBWController(boolean newIsSubBWController)
Sets the flag which decides if the bandwidth which is controlled by this BWController will be accumulated by the total BWController as well. |
void |
setPIR(long newPIR)
Sets this bandwidth controller's bandwidth limitation |
void |
setValueFrom(BWController other)
Sets the value of this BWController to resemble another BWController |
void |
toStream(java.io.PrintStream out,
Formatter f)
Method toStream |
| Methods inherited from class com.pcube.apps.engage.foundations.NamedObjectBase |
|---|
addPropertyChangedListener, addVetoableChangeListener, getName, removePropertyChangedListener, removeVetoableChangeListener, setName |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long BWCONTROLLER_BW_STEP
public static final long DEFAULT_CIR
public static final int DOWNSTREAM_DIRECTION
public static final long MAX_BWCONTROLLER_BW_8K
public static final long MAX_BWCONTROLLER_BW
public static final long MIN_BWCONTROLLER_BW
public static final long REAL_MAX_BWCONTROLLER_BW_8K_IN_SE
public static final long REAL_MAX_BWCONTROLLER_BW_IN_SE
public static final int TOTAL_BW_LIMIT_INDEX
public static final int UPSTREAM_DIRECTION
| Constructor Detail |
|---|
public BWController()
public BWController(java.lang.String name)
name -
public BWController(java.lang.String newName,
boolean isSubBWController,
long cir,
long pir,
int dir)
public BWController(java.lang.String newName,
java.lang.String newDescription)
BWController(String)instead.
newName - this BWController's namenewDescription - this BWController's description
public BWController(java.lang.String newName,
java.lang.String newDescription,
boolean isSubBWController,
long cir,
long pir,
int dir)
BWController(String, boolean, long, long, int)
instead.
newName - this BWController's namenewDescription - this BWController's descriptionisSubBWController - this BWController's flag stating if the bandwidth controlled
by it will be accumulated in the total BWController as wellcir - this BWController's CIR valuepir - this BWController's PIR valuedir - this BWController's direction| Method Detail |
|---|
public java.lang.Object clone()
clone in class java.lang.Object
public void fromStream(java.io.BufferedReader in,
Formatter f)
throws ImportExportException
Formattable
fromStream in interface FormattableImportExportExceptionFormattable.fromStream(java.io.BufferedReader,
com.pcube.apps.engage.common.Formatter)public AssuranceLevel getAssuranceLevel()
#ASSURANCE_LEVEL_HIGH,
#ASSURANCE_LEVEL_MEDIUM,
#ASSURANCE_LEVEL_LOWpublic long getCIR()
public int getDirection()
UPSTREAM_DIRECTION,
DOWNSTREAM_DIRECTIONpublic int getGlobalControllerIndex()
public long getPIR()
public boolean isIsSubBWController()
public void setIsDefaultBWC(boolean isDefaultBWC)
isDefaultBWC - public boolean isDefaultBWC()
public boolean isSubBWController()
public void setAssuranceLevel(AssuranceLevel assuranceLevel)
newAssuranceLevel - the new assurance level#ASSURANCE_LEVEL_HIGH,
#ASSURANCE_LEVEL_MEDIUM,
#ASSURANCE_LEVEL_LOWpublic void setAssuranceLevel(int newAssuranceLevel)
newAssuranceLevel - the new assurance level#ASSURANCE_LEVEL_HIGH,
#ASSURANCE_LEVEL_MEDIUM,
#ASSURANCE_LEVEL_LOWpublic void setCIR(long newCIR)
newCIR - public void setDirection(int newDirection)
newDirection - the directionUPSTREAM_DIRECTION,
DOWNSTREAM_DIRECTIONpublic void setGlobalControllerIndex(int newGlobalControllerIndex)
newGlobalControllerIndex - the new BW limiter indexpublic void setIsSubBWController(boolean newIsSubBWController)
newIsSubBWController - public void setPIR(long newPIR)
newPIR - the PIR value in Kbps
public void setValueFrom(BWController other)
throws java.beans.PropertyVetoException
other -
java.beans.PropertyVetoExceptionpublic void setIsAddOnPackage(boolean isAddOnPackage)
public boolean isAddOnPackage()
public void toStream(java.io.PrintStream out,
Formatter f)
Formattable
toStream in interface FormattableFormattable.toStream(java.io.PrintStream,
com.pcube.apps.engage.common.Formatter)
|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||