this.cmServerHost = url.getHost();
this.cmPort = url.getPort();
this.domain = url.getProtocol() + "://" + cmServerHost + ":" + cmPort;
this.cmUsername = user;
this.cmPassword = password;
ApiRootResource apiRootResource =
new ClouderaManagerClientBuilder().withBaseURL(url)
.withUsernamePassword(user, password).build();
initApiResource(apiRootResource);
this.privateKey = privateKey;
}