/** * Constructs an instance of CMIReference. * @param protocol a name of protocol to access at the clustered object * @param providerURL a provider URL to access at the clustered object * @param objectName a name of object * @throws MalformedURLException if the URL is malformed * @throws UnknownHostException if the provided address can not be determined */ public CMIReference(final String protocol, final String providerURL, final String objectName) throws MalformedURLException, UnknownHostException { serverRef = new ServerRef(protocol, providerURL); this.objectName = objectName; }
serverRefs.add(new ServerRef(protocol, providerURL)); } catch (MalformedURLException e) { logger.error("The following provider URL is malformed {0}", providerURL);
for(String providerUrl : CMIConfig.getClusterViewProviderUrls(protocol)) { try { remoteRegistries.add(new ServerRef(providerUrl)); } catch (Exception e) { LOGGER.warn("Cannot add the {0} to the list of remote registries.", providerUrl, e);