use of com.vmware.vim.vasa._1_0.data.xsd.VendorModel in project coprhd-controller by CoprHD.
the class ContextManagerImpl method initializeVasaProviderInfo.
/**
* Craft the VASAProvider info
*/
public VasaProviderInfo initializeVasaProviderInfo() {
final String methodName = "initializeVasaProviderInfo(): ";
log.debug(methodName + "Entry");
VendorModel[] vms = new VendorModel[1];
vms[0] = new VendorModel();
vms[0].setVendorId(Constants.VASA_BOURNE_PROVIDER_VENDOR_NAME);
vms[0].setModelId(Constants.VASA_BOURNE_PROVIDER_VENDOR_MODEL);
_vpInfo = new VasaProviderInfo();
_vpInfo.setVasaApiVersion(FaultUtil.getVasaApiVersion());
log.debug(methodName + "vasa api version: " + _vpInfo.getVasaApiVersion());
_vpInfo.setName(Constants.VASA_BOURNE_PROVIDER_NAME);
log.debug(methodName + "vasa provider name: " + _vpInfo.getName());
_vpInfo.setVasaProviderVersion(Constants.VASA_BOURNE_PROVIDER_VERSION);
log.debug(methodName + "vasa provider version: " + _vpInfo.getVasaProviderVersion());
_vpInfo.setDefaultSessionTimeoutInSeconds(SessionContext.DEFAULT_SESSION_TIMEOUT);
log.debug(methodName + "default session time out (in seconds): " + _vpInfo.getDefaultSessionTimeoutInSeconds());
String namespace = Constants.VASA_BOURNE_PROVIDER_NAMESPACE;
_vpInfo.setDefaultNamespace(namespace);
log.debug(methodName + "defaultNameSpace: " + _vpInfo.getDefaultNamespace());
_vpInfo.setSupportedVendorModel(vms);
log.debug(methodName + "Exit");
return _vpInfo;
}
Aggregations