|
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.PolicyAPI
public class PolicyAPI
PolicyAPI exposes Policy API functions . All of these functions get/set data located in the SE, therefore require being connected to the SE device.
Engage| Field Summary | |
|---|---|
static int |
DC_DEFAULT_RPC_PORT
Comment for DC_DEFAULT_RPC_PORT |
static int |
DC_UPDATE_METHOD_RPC
Comment for DC_UPDATE_METHOD_RPC |
static boolean |
isFlavorsAllowedInAsymmetric
|
static int |
MAX_PORT_BASED_FILTERS
|
static int |
MAX_PORT_BASED_FILTERS_10K
|
| Method Summary | |
|---|---|
static long |
applyIncrementalPolicy(Connection connection,
Policy policy,
Policy retrievedPolicy,
java.util.Properties applySettings,
java.lang.String msgPrefix)
|
static long |
applyPolicy(Connection connection,
Policy newPolicy)
Applies the Service Configuration to the sepecified SE. |
static long |
applyPolicy(Connection connection,
Policy newPolicy,
boolean updateDc,
java.util.Properties dcIpRemap,
int dcUpdateMethod,
boolean isPqbSaveReqd,
int rpcPort,
boolean forceTemplateVirtualLinkValues)
|
static long |
applyPolicy(Connection connection,
Policy newPolicy,
boolean updateDc,
java.util.Properties dcIpRemap,
int dcUpdateMethod,
int rpcPort)
Applies the Service Configuration to the sepecified SE. |
static long |
applyPolicy(Connection connection,
Policy newPolicy,
boolean updateDc,
java.util.Properties dcIpRemap,
int dcUpdateMethod,
int rpcPort,
boolean forceTemplateVirtualLinkValues)
Applies the Service Configuration to the sepecified SE. |
static long |
applyPolicy(Connection connection,
Policy newPolicy,
byte applyFlag)
Deprecated. use applyPolicy(Connection, Policy)instead |
static long |
applyPolicy(Connection connection,
Policy policy,
java.util.Properties applySettings)
|
static long |
applyPolicy(Connection connection,
Policy policy,
java.util.Properties applySettings,
java.lang.String msgPrefix)
|
static Policy |
loadDefaultPolicy()
|
static Policy |
loadDefaultSplitFlowPolicy()
|
static Policy |
loadPolicy(java.io.File pqbfile)
load service configuration from a .pqb file |
static Policy |
retrievePolicy(Connection connection)
Retrieving the Service Configuration. |
static void |
savePolicy(Policy policy,
java.io.File pqbfile)
save a service configuration to a .pqb file |
static void |
setAsymmetricFlavorMode(boolean asymmetricFlavorMode)
This method been used during the preference confirmation dialog to validate the policies |
static Policy |
synchronizedRetrievePolicy(Connection connection)
Retrieving the Service Configuration. |
static void |
updateValuesIni(java.lang.String dcAddress,
java.lang.String seAddress,
Policy policy)
Updating the DC with the SE device's policy data (values ini). |
static void |
updateValuesIni(java.lang.String dcAddress,
java.lang.String seAddress,
Policy policy,
int dcUpdateMethod,
int rpcPort)
Updating the DC with the SE device's policy data (values ini). |
static java.util.ArrayList |
validatePolicy(Policy policy)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DC_UPDATE_METHOD_RPC
DC_UPDATE_METHOD_RPC
public static final int DC_DEFAULT_RPC_PORT
DC_DEFAULT_RPC_PORT
public static int MAX_PORT_BASED_FILTERS
public static int MAX_PORT_BASED_FILTERS_10K
public static boolean isFlavorsAllowedInAsymmetric
| Method Detail |
|---|
public static long applyPolicy(Connection connection,
Policy newPolicy)
throws ElementManagementException,
ApplyException,
IncompatibleLicenseException
connection - the Connection which keeps a handle to the connection to the
SEnewPolicy - the Policy to apply
ElementManagementException
ApplyException
IncompatibleLicenseExceptionEngage.APPLY_FLAG_NO_OVERWRITE
public static long applyPolicy(Connection connection,
Policy policy,
java.util.Properties applySettings)
throws ElementManagementException,
ApplyException,
IncompatibleLicenseException
ElementManagementException
ApplyException
IncompatibleLicenseException
public static long applyPolicy(Connection connection,
Policy policy,
java.util.Properties applySettings,
java.lang.String msgPrefix)
throws ElementManagementException,
ApplyException,
IncompatibleLicenseException
ElementManagementException
ApplyException
IncompatibleLicenseException
public static long applyIncrementalPolicy(Connection connection,
Policy policy,
Policy retrievedPolicy,
java.util.Properties applySettings,
java.lang.String msgPrefix)
throws ElementManagementException,
ApplyException,
IncompatibleLicenseException
ElementManagementException
ApplyException
IncompatibleLicenseException
public static long applyPolicy(Connection connection,
Policy newPolicy,
boolean updateDc,
java.util.Properties dcIpRemap,
int dcUpdateMethod,
int rpcPort)
throws ElementManagementException,
ApplyException,
IncompatibleLicenseException
connection - the Connection which keeps a handle to the connection to the
SEnewPolicy - the Policy to applyupdateDc - whether the DC for the specified SE should be updated with the
specified service configuration valuesdcIpRemap - a map from DC IP address as configured in the SE, to actual D
addressesdcUpdateMethod - which method should be used to connect to the DCrpcPort - port number for DC RPC connection
ElementManagementException
ApplyException
IncompatibleLicenseExceptionDC_UPDATE_METHOD_RPC,
#DC_UPDATE_METHOD_SQL,
DC_DEFAULT_RPC_PORT
public static long applyPolicy(Connection connection,
Policy newPolicy,
boolean updateDc,
java.util.Properties dcIpRemap,
int dcUpdateMethod,
int rpcPort,
boolean forceTemplateVirtualLinkValues)
throws ElementManagementException,
ApplyException,
IncompatibleLicenseException
connection - the Connection which keeps a handle to the connection to the
SEnewPolicy - the Policy to applyupdateDc - whether the DC for the specified SE should be updated with the
specified service configuration valuesdcIpRemap - a map from DC IP address as configured in the SE, to actual D
addressesdcUpdateMethod - which method should be used to connect to the DCrpcPort - port number for DC RPC connectionforceTemplateVirtualLinkValues - for Virtual Links mode Policy, whether to force configure the values of the
template Virtual Link for the virtual links defined in the applied SCE
ElementManagementException
ApplyException
IncompatibleLicenseExceptionDC_UPDATE_METHOD_RPC,
#DC_UPDATE_METHOD_SQL,
DC_DEFAULT_RPC_PORT
public static long applyPolicy(Connection connection,
Policy newPolicy,
boolean updateDc,
java.util.Properties dcIpRemap,
int dcUpdateMethod,
boolean isPqbSaveReqd,
int rpcPort,
boolean forceTemplateVirtualLinkValues)
throws ElementManagementException,
ApplyException,
IncompatibleLicenseException
ElementManagementException
ApplyException
IncompatibleLicenseException
public static long applyPolicy(Connection connection,
Policy newPolicy,
byte applyFlag)
throws ElementManagementException,
ApplyException,
IncompatibleLicenseException,
java.io.IOException
applyPolicy(Connection, Policy)instead
connection - the Connection which keeps a handle to the connection to the
SEnewPolicy - the Policy to applyapplyFlag - the flag stating if the apply should overwrite previously
applied Policies.
ElementManagementException
ApplyException
IncompatibleLicenseException
java.io.IOExceptionEngage.APPLY_FLAG_NO_OVERWRITE
public static Policy synchronizedRetrievePolicy(Connection connection)
throws java.io.IOException,
ElementManagementException,
ApplyException
connection - the Connection which keeps a handle to the connection to the
SE
java.io.IOException
ElementManagementException
ApplyException
public static Policy retrievePolicy(Connection connection)
throws java.io.IOException,
ElementManagementException,
ApplyException
connection - the Connection which keeps a handle to the connection to the
SE
java.io.IOException
ElementManagementException
ApplyException
public static void updateValuesIni(java.lang.String dcAddress,
java.lang.String seAddress,
Policy policy)
throws ApplyException
dcAddress - the address of the DC to updateseAddress - the address of the SE device who enforces the given Policypolicy - the Policy
ApplyException
public static void updateValuesIni(java.lang.String dcAddress,
java.lang.String seAddress,
Policy policy,
int dcUpdateMethod,
int rpcPort)
throws ApplyException
dcAddress - the address of the DC to updateseAddress - the address of the SE device who enforces the given Policypolicy - the PolicydcUpdateMethod - rpcPort -
ApplyExceptionpublic static java.util.ArrayList validatePolicy(Policy policy)
policy -
public static Policy loadPolicy(java.io.File pqbfile)
throws ImportExportException,
java.io.IOException
pqbfile -
ImportExportException
java.io.IOException
public static void savePolicy(Policy policy,
java.io.File pqbfile)
throws java.io.FileNotFoundException,
ImportExportException
pqbfile -
ImportExportException
java.io.FileNotFoundException
ImportExportException
java.io.IOException
public static Policy loadDefaultPolicy()
throws ImportExportException
ImportExportException
public static Policy loadDefaultSplitFlowPolicy()
throws ImportExportException
ImportExportExceptionpublic static void setAsymmetricFlavorMode(boolean asymmetricFlavorMode)
asymmetricFlavorMode -
|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||