use of com.emc.storageos.cimadapter.connections.cim.CimConnectionInfo in project coprhd-controller by CoprHD.
the class IndicationTest method startListeningForIndications.
@Test
@PostConstruct
@DependsOn("connectionManager,cIMIndicationProcessor,dbclient")
public void startListeningForIndications() {
try {
_logger.info("Started Listening for CIM Indications....");
// Create a CIM connection info and add the connection.
CimConnectionInfo connectionInfo = new CimConnectionInfo();
connectionInfo.setType(CimConstants.ECOM_CONNECTION_TYPE);
// connectionInfo.setHost("10.247.87.240");
connectionInfo.setHost(providerIP);
connectionInfo.setPort(providerPort);
connectionInfo.setUser(providerUser);
connectionInfo.setPassword(providerPassword);
connectionInfo.setInteropNS(providerInterOpNamespace);
connectionInfo.setImplNS(providerNamespace);
connectionInfo.setUseSSL(Boolean.parseBoolean(providerUseSsl));
_logger.info("Adding Connection....");
// _connectionManager.addConnection(connectionInfo);
} catch (Exception e) {
_logger.error("Exception adding connection.", e);
}
}
Aggregations