Cisco Systems, Inc.

com.pcube.apps.engage.policy
Class SePlatformData

java.lang.Object
  extended by com.pcube.apps.engage.policy.SePlatformData

public final class SePlatformData
extends Object


Field Summary
static int BW_10GBPS
           
static int BW_1GBPS
           
static int BW_MIN_16KBPS
           
static String ONE_GBE_PLATFORM
           
static String TEN_GBE_PLATFORM
           
 
Method Summary
 int calculateGlobalVirtualLinkActualAgcIndex(int startPosOfGlobalVlGcIndex, int vlGcIndex)
           
 Integer[] calculateGlobalVirtualLinkActualAgcIndexes(GlobalControllersArray vlGcArray, int startPosOfGlobalVlGcIndex)
          in virtual link mode GC array is kept in the following order: global GCs are following by template GCs this method calculate the actual agc index of the global virtual link GCs (GC from type DEFAULT_GC_TYPE).
static SePlatformData createFromSessionObject(com.pcube.management.framework.client.SessionObject sessionObject)
           
static String createPlatformDescription(SePlatformData sePlatformData)
          Create platform description SCE2000 - 4xGBE and etc..
static int fetchNumOfTrafficProcessorsFromSe(com.pcube.management.framework.client.SessionObject sessionObject)
          Fetch number of traffic processors using new function added in 3.6.0 and if not found use the old function
static int fetchNumOfTrafficProcessorsFromSeOld(com.pcube.management.framework.client.SessionObject sessionObject)
          old method for backward compatibility up to 3.5.5 to get number of traffic processors
static String fetchUserDir(com.pcube.management.framework.client.SessionObject sessionObject)
           
 String fetchUserDir(String relativePath, com.pcube.management.framework.client.SessionObject sessionObject)
           
 void freeSliXmlSection()
           
 ArrayList getAvailableAccessList()
           
 Map getFfPartitonMap()
           
 String getHostname()
           
 int getMaxGcIndex()
           
 int getNumOfLinks()
           
 int getNumOfPorts()
           
 int getNumOfTrafficProcessors()
           
 String getPlatformType()
           
 List getPpProtocolList()
           
 String getPpUpgradeVesion()
           
static long getRefferenceDeviceBw()
           
 com.pcube.management.framework.client.SessionObject getSessionObject()
           
 String getSliXmlSection()
           
 int getTotalBwLimitKbps()
           
 String getUserDir()
           
 boolean isLinkEnable(int linkIdx)
           
static String parseLatestPPUpgradeVersion(Policy policy)
           
static String parseLatestUpgradeVersion(Policy policy)
          at the end it return either empty string "", or sustain version number "3.6.0" or PP version number 3.6.0 PP19
static void setRefferenceDeviceBw(long refferenceDeviceBw)
           
static void setRefferenceDeviceBw(com.pcube.management.framework.client.SessionObject sessionObject)
           
 String toString()
           
 String validLinksToString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ONE_GBE_PLATFORM

public static final String ONE_GBE_PLATFORM
See Also:
Constant Field Values

TEN_GBE_PLATFORM

public static final String TEN_GBE_PLATFORM
See Also:
Constant Field Values

BW_1GBPS

public static final int BW_1GBPS
See Also:
Constant Field Values

BW_10GBPS

public static final int BW_10GBPS
See Also:
Constant Field Values

BW_MIN_16KBPS

public static final int BW_MIN_16KBPS
See Also:
Constant Field Values
Method Detail

createFromSessionObject

public static SePlatformData createFromSessionObject(com.pcube.management.framework.client.SessionObject sessionObject)
                                              throws IOException,
                                                     com.pcube.management.common.WrapperException
Parameters:
sessionObject -
Returns:
Throws:
IOException
IOException
com.pcube.management.common.WrapperException

getPpUpgradeVesion

public String getPpUpgradeVesion()

createPlatformDescription

public static String createPlatformDescription(SePlatformData sePlatformData)
                                        throws com.pcube.management.common.WrapperException
Create platform description SCE2000 - 4xGBE and etc..

Parameters:
sePlatformData -
Returns:
Throws:
com.pcube.management.common.WrapperException

fetchNumOfTrafficProcessorsFromSe

public static int fetchNumOfTrafficProcessorsFromSe(com.pcube.management.framework.client.SessionObject sessionObject)
                                             throws com.pcube.management.common.WrapperException
Fetch number of traffic processors using new function added in 3.6.0 and if not found use the old function

Parameters:
sessionObject -
Returns:
Throws:
com.pcube.management.common.WrapperException

fetchNumOfTrafficProcessorsFromSeOld

public static int fetchNumOfTrafficProcessorsFromSeOld(com.pcube.management.framework.client.SessionObject sessionObject)
                                                throws com.pcube.management.common.WrapperException
old method for backward compatibility up to 3.5.5 to get number of traffic processors

Parameters:
sessionObject -
Returns:
Throws:
com.pcube.management.common.WrapperException

getRefferenceDeviceBw

public static long getRefferenceDeviceBw()

setRefferenceDeviceBw

public static void setRefferenceDeviceBw(long refferenceDeviceBw)

setRefferenceDeviceBw

public static void setRefferenceDeviceBw(com.pcube.management.framework.client.SessionObject sessionObject)
                                  throws com.pcube.management.common.WrapperException
Throws:
com.pcube.management.common.WrapperException

parseLatestPPUpgradeVersion

public static String parseLatestPPUpgradeVersion(Policy policy)

parseLatestUpgradeVersion

public static String parseLatestUpgradeVersion(Policy policy)
at the end it return either empty string "", or sustain version number "3.6.0" or PP version number 3.6.0 PP19

Parameters:
policy -
Returns:

fetchUserDir

public static String fetchUserDir(com.pcube.management.framework.client.SessionObject sessionObject)
Parameters:
sessionObject -
Returns:

fetchUserDir

public String fetchUserDir(String relativePath,
                           com.pcube.management.framework.client.SessionObject sessionObject)
Parameters:
relativePath -
sessionObject -
Returns:
the user directory in the sce + relative path requested

getAvailableAccessList

public final ArrayList getAvailableAccessList()

getFfPartitonMap

public Map getFfPartitonMap()
Returns:

getHostname

public String getHostname()

getMaxGcIndex

public final int getMaxGcIndex()
Returns:
Returns the maxGcIndex.

getNumOfPorts

public final int getNumOfPorts()
Returns:

getNumOfLinks

public final int getNumOfLinks()
Returns:

isLinkEnable

public final boolean isLinkEnable(int linkIdx)
Returns:

validLinksToString

public final String validLinksToString()
Returns:

getNumOfTrafficProcessors

public final int getNumOfTrafficProcessors()
Returns:

getPlatformType

public final String getPlatformType()
Returns:

getPpProtocolList

public final List getPpProtocolList()

freeSliXmlSection

public final void freeSliXmlSection()
Parameters:
sliXmlSection -

getSliXmlSection

public final String getSliXmlSection()
Returns:

getTotalBwLimitKbps

public final int getTotalBwLimitKbps()
Returns:

getUserDir

public final String getUserDir()
Returns:

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

getSessionObject

public com.pcube.management.framework.client.SessionObject getSessionObject()

calculateGlobalVirtualLinkActualAgcIndexes

public Integer[] calculateGlobalVirtualLinkActualAgcIndexes(GlobalControllersArray vlGcArray,
                                                            int startPosOfGlobalVlGcIndex)
in virtual link mode GC array is kept in the following order: global GCs are following by template GCs this method calculate the actual agc index of the global virtual link GCs (GC from type DEFAULT_GC_TYPE). for instance gc array: template gc 0 --> actual agc index = 0 template gc 1 --> actual agc index = 1 ... template gc n --> actual agc index = n global gc 0 --> actual agc index = maxGC - 0 global gc 1 --> actual agc index = maxGC - 1 ... global gc m --> actual agc index = maxGC - m

Parameters:
vlGcArray -
startPosOfGlobalVlGcIndex -
Returns:

calculateGlobalVirtualLinkActualAgcIndex

public int calculateGlobalVirtualLinkActualAgcIndex(int startPosOfGlobalVlGcIndex,
                                                    int vlGcIndex)
                                             throws ItemNotFoundException
Parameters:
startPosOfGlobalVlGcIndex -
vlGcIndex -
Returns:
Throws:
ItemNotFoundException

Cisco Systems, Inc.

Copyright © 2011 Cisco Systems, Inc. Confidential.