/** Builds the Identifier element of ConnectHome */ private void buildIdentifierSection(EmaApiConnectHome alertFile) throws EmaException { EmaApiIdentifierType identifier = new EmaApiIdentifierType(); EmaApiNode node = alertFile.getNode(); identifier.setClarifyID(licenseInfo.getProductId()); identifier.setDeviceType(_identifierManager.findDeviceType()); identifier.setDeviceState(_identifierManager.findDeviceState()); identifier.setModel(licenseInfo.getModelId()); identifier.setOS(_identifierManager.findOS()); identifier.setOSVER(_identifierManager.findOSVersion()); identifier.setVendor("EMC"); identifier.setSiteName(""); identifier.setSerialNumber(licenseInfo.getProductId()); identifier.setUcodeVer(_identifierManager.findPlatform()); identifier.setWWN(licenseInfo.getLicenseTypeIndicator()); node.setIdentifier(identifier); overrideIdentifierData(identifier); }
public SendEvent( ServiceImpl service, LogSvcPropertiesLoader logSvcPropertiesLoader, MediaType mediaType, LicenseInfoExt licenseInfo, CoordinatorClientExt coordinator) { URI endpointUri = coordinator.getNodeEndpoint(service.getEndpoint().getHost()); _networkIpAddress = (endpointUri != null) ? coordinator.getIPAddrFromUri(endpointUri) : service.getEndpoint().getHost(); _log.info("_networkIpAddress: {}", _networkIpAddress); _identifierManager = IdentifierManager.getInstance(); this.logSvcPropertiesLoader = logSvcPropertiesLoader; this.mediaType = mediaType; this.licenseInfo = licenseInfo; this.coordinator = coordinator; }