|
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.common.ArrayElement
com.pcube.apps.engage.common.GlobalController
public class GlobalController
Global Controllers let the user limit the total upstream/downstream BW consumed by transactions belonging to certain services/packages. This is done by creating a Global Controller, defining its BW limit, and then linking it to a subscriber’s BW controller. Any transaction that is mapped by some rule to this subscriber’s BW controller will also be mapped to this Global Controller. When necessary, the Global Controller reduces the BW of transaction flowing through it so that its BW limit is not exceeded. The Global Controllers are directional i.e. they apply to upstream transactions or downstream transaction but not to both.
| Field Summary | |
|---|---|
static int |
DEFAULT_GC_TYPE
|
static long |
MAXIMUM_BW
|
static long |
MAXIMUM_BW_8K
|
static long |
MINIMUM_BW
|
static int |
TEMPLATE_VIRTUAL_LINK_GC_TYPE
|
static long |
UNLIMITED_BW
|
static long |
UNLIMITED_BW_PERCENTAGE
|
static java.lang.String |
UNLIMITED_BW_STR
|
static int |
VIRTUAL_LINK_GC_INSIDE_TEMPLATE_TYPE
|
| Constructor Summary | |
|---|---|
GlobalController(java.lang.String name,
java.lang.String description)
Constructor. |
|
GlobalController(java.lang.String name,
java.lang.String description,
int gcType)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Producing an identical object to this object. |
void |
fromStream(java.io.BufferedReader in,
Formatter f)
Method fromStream |
static long |
getActualBwOfGlobalController(long seTotalLinkBwKbps,
float totalLinkBwPercentage,
float gcBwPercentage)
|
long |
getBw()
|
float |
getBwPercentage()
Deprecated. |
float |
getBWPercentage()
Deprecated. |
java.lang.String |
getDescription()
Get the Global Controller's description |
float |
getMaxBWPercentAcrossTimeFrames()
|
float |
getMinBWPercentAcrossTimeFrames()
|
java.lang.String |
getName()
Get the Global Controller's name |
TimeBasedValue |
getTimeBasedBW()
|
TimeBasedValue |
getTimeBasedBWPercentage()
Deprecated. |
int |
getType()
|
float |
getValue(int timeFrame)
Deprecated. |
boolean |
isAggregatedGc()
|
boolean |
isGcEqual(GlobalController other)
|
boolean |
isGcUniformAcrossTimeframes()
|
void |
setAggregatedGc(boolean isAggregatedGc)
|
void |
setBW(long bw)
MAXIMUM_BW associate with SCE8000 10Gig, therefore MAX valid value per link is 10Gig and 10Gig * 2 for aggregate GCs |
void |
setBWPercentage(float percentage)
Deprecated. |
void |
setDescription(java.lang.String description)
Set the Global Controller's description |
void |
setName(java.lang.String name)
|
void |
setTimeBasedBw(TimeBasedValue timebaseBw)
|
void |
setTimeBasedBWPercentage(TimeBasedValue percentage)
Deprecated. |
void |
setType(int type)
|
void |
setValueFrom(GlobalController other)
Sets the value of this Global Controller to resemble another Global Controller. |
void |
toStream(java.io.PrintStream out,
Formatter f)
Method toStream |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final long UNLIMITED_BW
public static final java.lang.String UNLIMITED_BW_STR
public static final long UNLIMITED_BW_PERCENTAGE
public static final long MAXIMUM_BW_8K
public static final long MAXIMUM_BW
public static final long MINIMUM_BW
public static final int DEFAULT_GC_TYPE
public static final int TEMPLATE_VIRTUAL_LINK_GC_TYPE
public static final int VIRTUAL_LINK_GC_INSIDE_TEMPLATE_TYPE
| Constructor Detail |
|---|
public GlobalController(java.lang.String name,
java.lang.String description)
name - the Global Controller's namedescription - the Global Controller's description
public GlobalController(java.lang.String name,
java.lang.String description,
int gcType)
| Method Detail |
|---|
public static long getActualBwOfGlobalController(long seTotalLinkBwKbps,
float totalLinkBwPercentage,
float gcBwPercentage)
seTotalLinkBwKbps - totalLinkBwPercentage - gcBwPercentage -
public java.lang.Object clone()
clone in class ArrayElementObject.clone()
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 float getBWPercentage()
public float getValue(int timeFrame)
timeFrame -
public TimeBasedValue getTimeBasedBWPercentage()
public TimeBasedValue getTimeBasedBW()
public java.lang.String getDescription()
public java.lang.String getName()
getName in interface com.pcube.apps.framework.commons.NamedObjectpublic void setBWPercentage(float percentage)
percentage - public void setBW(long bw)
bw - public void setDescription(java.lang.String description)
description - public void setValueFrom(GlobalController other)
other -
public void toStream(java.io.PrintStream out,
Formatter f)
Formattable
toStream in interface FormattableFormattable.toStream(java.io.PrintStream,
com.pcube.apps.engage.common.Formatter)public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public void setName(java.lang.String name)
setName in interface com.pcube.apps.framework.commons.NamedObjectpublic float getBwPercentage()
public long getBw()
public void setTimeBasedBWPercentage(TimeBasedValue percentage)
percentage - public void setTimeBasedBw(TimeBasedValue timebaseBw)
public float getMaxBWPercentAcrossTimeFrames()
public float getMinBWPercentAcrossTimeFrames()
public boolean isGcUniformAcrossTimeframes()
public boolean isGcEqual(GlobalController other)
public void setAggregatedGc(boolean isAggregatedGc)
public boolean isAggregatedGc()
public int getType()
public void setType(int type)
|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||