|
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.GlobalControllersArray
public class GlobalControllersArray
The array of bandwidth limiters. Bandwidth limiters in the array can be
modified so that the bandwidth accumulated by them will also be accumulated in
the total bandwidth limiter.
GlobalController,
Serialized Form| Field Summary | |
|---|---|
static int |
AGGREGATED_GC_LINK_ID
|
static int |
DEFAULT_GLOBAL_CONTROLLER_INDEX
|
static java.lang.String |
DEFAULT_GLOBAL_CONTROLLER_NAME
|
static java.lang.String |
DEFAULT_GLOBAL_CONTROLLER_NAME_IN_VL_MODE
|
static GlobalController |
DUMMY_GC_IN_VL_MODE
|
static java.lang.String |
DUMMY_GC_IN_VL_MODE_NAME
|
| Constructor Summary | |
|---|---|
GlobalControllersArray(Policy policy,
int linkId,
int arrayDirection)
GlobalControllersArray Constructor. |
|
| Method Summary | |
|---|---|
boolean |
add(GlobalController item)
Adds a new GlobalController to this list. |
java.lang.Object |
clone()
Producing an identical object to this object. |
boolean |
contains(GlobalController item)
Checks if a certain GlobalController exists in this list. |
boolean |
contains(java.lang.String item)
Checks if an GlobalController with bears the specific name exists in this list. |
void |
fromStream(java.io.BufferedReader in,
Formatter f)
Method fromStream |
GlobalController |
getAt(int index)
Gets the GlobalController this list has in a specific index. |
long |
getBw(int GlobalControllerIndex)
|
float |
getBWPercentage(int GlobalControllerIndex)
Deprecated. |
java.lang.String[] |
getGlobalControllersNames()
|
int |
getIndexOfItem(java.lang.String item)
Gets the index of the GlobalController in this list which has the specific name. |
int |
getNumberOfGlobalControllerByType(int type)
in virtual link mode the template GCs is being stored at the beginning and the global at the end If this method is being called not in virtual link mode return the GC array size |
java.lang.String |
getPackageBwControllerUsingGcAsString(java.lang.String gcName)
return string of package name and bandwidth controller associate with GC name |
int |
getSize()
Gets the size of this list. |
int |
indexOf(GlobalController controller)
|
void |
internalSetGlobalControllerName(int GlobalControllerIndex,
java.lang.String newName)
|
boolean |
isGlobalControllerUsed(int index)
|
boolean |
remove(int index)
Removes the GlobalController from a specific index in this list. |
boolean |
remove(java.lang.String item)
Removes the GlobalController which has specific name from this list. |
void |
setBW(int gcIdx,
long bw)
|
void |
setBWPercentage(int gcIdx,
float percentage)
Deprecated. |
void |
setBWPercentage(int gcIdx,
TimeBasedValue percentage)
|
void |
setGlobalControllerName(int globalControllerIndex,
java.lang.String newName)
Sets the name of the GlobalController in the specific index in this list. |
void |
setLinkId(int id)
|
void |
setValueFrom(GlobalControllersArray other)
Method setValueFrom |
void |
toStream(java.io.PrintStream out,
Formatter f)
Method toStream |
java.lang.String |
toString()
|
void |
updateDefaultGloablContoller(boolean isVirtualLinkMode)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_GLOBAL_CONTROLLER_INDEX
public static final java.lang.String DEFAULT_GLOBAL_CONTROLLER_NAME
public static final java.lang.String DEFAULT_GLOBAL_CONTROLLER_NAME_IN_VL_MODE
public static final java.lang.String DUMMY_GC_IN_VL_MODE_NAME
public static final GlobalController DUMMY_GC_IN_VL_MODE
public static final int AGGREGATED_GC_LINK_ID
| Constructor Detail |
|---|
public GlobalControllersArray(Policy policy,
int linkId,
int arrayDirection)
policy - linkId - arrayDirection - | Method Detail |
|---|
public boolean add(GlobalController item)
throws DuplicateItemException
item - the added GlobalController
DuplicateItemException - if such an GlobalController already exists in this listpublic java.lang.Object clone()
clone in class java.lang.Objectpublic boolean contains(GlobalController item)
item - the queried GlobalController
public boolean contains(java.lang.String item)
item - the desired GlobalController's name
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 GlobalController getAt(int index)
throws ItemNotFoundException
index - the index of the desired GlobalController
ItemNotFoundException - if no GlobalController exists in the desired index
public float getBWPercentage(int GlobalControllerIndex)
throws ItemNotFoundException
GlobalControllerIndex - the GlobalController's index in this list
ItemNotFoundException - if no such GlobalController exists in the desired index
public long getBw(int GlobalControllerIndex)
throws ItemNotFoundException
ItemNotFoundExceptionpublic int getIndexOfItem(java.lang.String item)
item - the desired GlobalController's name
public int getSize()
public int indexOf(GlobalController controller)
controller -
public void internalSetGlobalControllerName(int GlobalControllerIndex,
java.lang.String newName)
throws DuplicateItemException,
ItemNotFoundException
GlobalControllerIndex - newName -
DuplicateItemException
ItemNotFoundException
public boolean isGlobalControllerUsed(int index)
throws ItemNotFoundException
index -
ItemNotFoundException
public java.lang.String getPackageBwControllerUsingGcAsString(java.lang.String gcName)
throws ItemNotFoundException
gcName -
ItemNotFoundException
public boolean remove(int index)
throws ItemNotFoundException
index - the removed GlobalController's index in this list
ItemNotFoundException - if this list has no GlobalController with the desired values
public boolean remove(java.lang.String item)
throws ItemNotFoundException
item - the removed GlobalController's name
ItemNotFoundException - if this list has no GlobalController with the desired values
public void setBWPercentage(int gcIdx,
float percentage)
throws ItemNotFoundException
gcIdx - the GlobalController's index in this listpercentage - the new percentage value
ItemNotFoundException - if no such GlobalController exists in the desired index
public void setBW(int gcIdx,
long bw)
throws ItemNotFoundException
ItemNotFoundException
public void setGlobalControllerName(int globalControllerIndex,
java.lang.String newName)
throws DuplicateItemException,
ItemNotFoundException
globalControllerIndex - the index of the GlobalController who is to be renamednewName - the GlobalController's new name
DuplicateItemException
ItemNotFoundExceptionpublic void setValueFrom(GlobalControllersArray 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 setBWPercentage(int gcIdx,
TimeBasedValue percentage)
throws ItemNotFoundException
ItemNotFoundExceptionpublic java.lang.String[] getGlobalControllersNames()
public void setLinkId(int id)
public void updateDefaultGloablContoller(boolean isVirtualLinkMode)
public int getNumberOfGlobalControllerByType(int type)
throws ItemNotFoundException
vlGcArray -
ItemNotFoundException
|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||