|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cisco.scabb.servconf.mgmt.ServiceConfigApi
public class ServiceConfigApi
ServiceConfigApi exposes Service Configuration API functions . All of these functions get/set data located in the SCE, therefore require being connected to the SCE device.
SCABB| Method Summary | |
|---|---|
static long |
applyServiceConfiguration(ConnectionApi connectionApi,
ServiceConfig servConf)
Applies the Service Configuration to the sepecified SCE. |
static long |
applyServiceConfiguration(ConnectionApi connectionApi,
ServiceConfig servConf,
boolean updateCm,
java.util.Properties cmIpRemap,
int cmUpdateMethod,
boolean isPqbSaveReqd,
int rpcPort,
boolean forceTemplateVirtualLinksInVlMode)
|
static long |
applyServiceConfiguration(ConnectionApi connectionApi,
ServiceConfig servConf,
boolean updateCm,
java.util.Properties cmIpRemap,
int cmUpdateMethod,
int rpcPort,
boolean forceTemplateVirtualLinksInVlMode)
Applies the Service Configuration to the sepecified SCE. |
static long |
applyServiceConfiguration(ConnectionApi connectionApi,
ServiceConfig servConf,
byte applyFlag)
Deprecated. use applyServiceConfiguration(ConnectionApi, ServiceConfig)instead |
static long |
applyServiceConfiguration(ConnectionApi connectionApi,
ServiceConfig servConf,
java.util.Properties applySettings)
Applies the Service Configuration to the sepecified SCE. |
static void |
exportServConf(ServiceConfig servConf,
java.io.File pqbfile)
save a service configuration to a .pqb file |
static ServiceConfig |
importDefaultServConf()
Load the default Service Configuration |
static ServiceConfig |
importServConf(java.io.File pqbfile)
load service configuration from a .pqb file |
static ServiceConfig |
retrieveServiceConfiguration(ConnectionApi connectionApi)
Retrieving the Service Configuration. |
static void |
updateValuesIni(java.lang.String cmAddress,
java.lang.String sceAddress,
ServiceConfig servConf)
Updating the CM with the SCE device's service-configuration data (values ini). |
static void |
updateValuesIni(java.lang.String cmAddress,
java.lang.String sceAddress,
ServiceConfig servConf,
int cmUpdateMethod,
int rpcPort)
Updating the CM with the SCE device's service-configuration data (values ini). |
static java.util.ArrayList |
validateServiceConfiguration(ServiceConfig servConf)
Validates the given service-configuration |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static long applyServiceConfiguration(ConnectionApi connectionApi,
ServiceConfig servConf)
throws ElementManagementException,
ApplyException,
IncompatibleLicenseException
connectionApi - the ConnectionApi which keeps a handle to the connection to the
SCEservConf - the Service Configuration to apply
ElementManagementException
ApplyException
IncompatibleLicenseException
public static long applyServiceConfiguration(ConnectionApi connectionApi,
ServiceConfig servConf,
java.util.Properties applySettings)
throws ElementManagementException,
ApplyException,
IncompatibleLicenseException
connectionApi - the ConnectionApi which keeps a handle to the connection to the
SCEservConf - the Service Configuration to applyapplySettings - Properties
ElementManagementException
ApplyException
IncompatibleLicenseExceptionProperties
public static long applyServiceConfiguration(ConnectionApi connectionApi,
ServiceConfig servConf,
boolean updateCm,
java.util.Properties cmIpRemap,
int cmUpdateMethod,
int rpcPort,
boolean forceTemplateVirtualLinksInVlMode)
throws ElementManagementException,
ApplyException,
IncompatibleLicenseException
connectionApi - the ConnectionApi which keeps a handle to the connection to the
SCEservConf - the Service Configuration to applyupdateCm - whether the Collection Manager for the specified SCE should be
updated with the specified service configuration valuescmIpRemap - a map from CM IP address as configured in the SCE, to actual
Collection Manager addressescmUpdateMethod - which method should be used to connect to the CMrpcPort - port number for CM RPC connection
ElementManagementException
ApplyException
IncompatibleLicenseExceptionPolicyAPI.DC_UPDATE_METHOD_RPC,
PolicyAPI#DC_UPDATE_METHOD_SQL,
PolicyAPI.DC_DEFAULT_RPC_PORT
public static long applyServiceConfiguration(ConnectionApi connectionApi,
ServiceConfig servConf,
boolean updateCm,
java.util.Properties cmIpRemap,
int cmUpdateMethod,
boolean isPqbSaveReqd,
int rpcPort,
boolean forceTemplateVirtualLinksInVlMode)
throws ElementManagementException,
ApplyException,
IncompatibleLicenseException
ElementManagementException
ApplyException
IncompatibleLicenseException
public static long applyServiceConfiguration(ConnectionApi connectionApi,
ServiceConfig servConf,
byte applyFlag)
throws ElementManagementException,
ApplyException,
IncompatibleLicenseException,
java.io.IOException
applyServiceConfiguration(ConnectionApi, ServiceConfig)instead
connectionApi - the ConnectionApi which keeps a handle to the connection to the
SCEservConf - the Service Configuration to applyapplyFlag - the flag stating if the apply should overwrite previously
applied Policies.
ElementManagementException
ApplyException
IncompatibleLicenseException
java.io.IOExceptionEngage.APPLY_FLAG_OVERWRITE,
Engage.APPLY_FLAG_NO_OVERWRITE
public static ServiceConfig retrieveServiceConfiguration(ConnectionApi connectionApi)
throws java.io.IOException,
ElementManagementException,
ApplyException
connectionApi - the ConnectionApi which keeps a handle to the connection to the
SCE
java.io.IOException
ElementManagementException
ApplyException
public static void updateValuesIni(java.lang.String cmAddress,
java.lang.String sceAddress,
ServiceConfig servConf)
throws ApplyException
cmAddress - the address of the CM to updatesceAddress - the address of the SCE device which enforces the given Service ConfigurationservConf - the Service Configuration
ApplyException
public static void updateValuesIni(java.lang.String cmAddress,
java.lang.String sceAddress,
ServiceConfig servConf,
int cmUpdateMethod,
int rpcPort)
throws ApplyException
cmAddress - the address of the CM to updatesceAddress - the address of the SCE device which enforces the given Service ConfigurationservConf - the Service ConfigurationcmUpdateMethod - rpcPort -
ApplyExceptionpublic static java.util.ArrayList validateServiceConfiguration(ServiceConfig servConf)
servConf - the Service Configuration to validate
PolicyValidator.validatePolicy(com.pcube.apps.engage.policy.Policy)
public static ServiceConfig importServConf(java.io.File pqbfile)
throws ImportExportException,
java.io.IOException
pqbfile - the .pqb file to load
ImportExportException
java.io.IOException
public static void exportServConf(ServiceConfig servConf,
java.io.File pqbfile)
throws java.io.FileNotFoundException,
ImportExportException
servConf - the Service Configuration to savepqbfile - the .pqb file to save the Service Configuration into
java.io.FileNotFoundException
ImportExportException
public static ServiceConfig importDefaultServConf()
throws ImportExportException
ImportExportException
|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||