@Test(expected = ConfigurationException.class) public void testMissingPrivateKey() throws ConfigurationException { Configuration conf = new PropertiesConfiguration(); conf.setProperty("whirr.private-key-file", "/dummy/path/that/does/not/exists"); ClusterSpec.withNoDefaults(conf); }
@VisibleForTesting public static ClusterSpec withNoDefaults() throws ConfigurationException { return withNoDefaults(new PropertiesConfiguration()); }
ClusterSpec { @VisibleForTesting public static ClusterSpec withNoDefaults() throws ConfigurationException { return withNoDefaults(new PropertiesConfiguration()); } }
ClusterSpec { @VisibleForTesting public static ClusterSpec withNoDefaults() throws ConfigurationException { return withNoDefaults(new PropertiesConfiguration()); } ClusterSpec();  ClusterSpec(Configuration config);  ClusterSpec(Configuration userConfig, boolean loadDefaults);  ClusterSpec(Configuration userConfig, boolean loadDefaults, Map<String,Node> byonNodes); }
ClusterSpec { @VisibleForTesting public static ClusterSpec withNoDefaults() throws ConfigurationException { return withNoDefaults(new PropertiesConfiguration()); } ClusterSpec();  ClusterSpec(Configuration config);  ClusterSpec(Configuration userConfig, boolean loadDefaults);  ClusterSpec(Configuration userConfig, boolean loadDefaults, Map<String,Node> byonNodes); @VisibleForTesting static ClusterSpec withTemporaryKeys(); @VisibleForTesting static ClusterSpec withTemporaryKeys(Configuration conf); @VisibleForTesting static ClusterSpec withNoDefaults(); @VisibleForTesting static ClusterSpec withNoDefaults(Configuration conf); ClusterSpec copy(); List<InstanceTemplate> getInstanceTemplates(); InstanceTemplate getInstanceTemplate(final Set<String> roles); InstanceTemplate getInstanceTemplate(String... roles); int getMaxStartupRetries(); String getContextName(); String getProvider(); boolean isStub(); String getEndpoint(); String getIdentity(); String getCredential(); String getClusterName(); String getBlobStoreContextName(); String getBlobStoreProvider(); boolean isQuiet(); String getBlobStoreEndpoint(); String getBlobStoreIdentity(); String getBlobStoreCredential(); String getBlobStoreLocationId(); String getBlobStoreCacheContainer(); String getStateStore(); String getStateStoreContainer(); String getStateStoreBlob(); @Nullable Float getAwsEc2SpotPrice(); String getServiceName(); String getPrivateKey(); File getPrivateKeyFile(); String getPublicKey(); TemplateBuilderSpec getTemplate(); List<String> getClientCidrs(); Map<String, List<String>> getFirewallRules(); Map<String, Node> getByonNodes(); ClusterActionHandlerListener getHandlerListener(); String getVersion(); String getRunUrlBase(); String getClusterUser(); void setInstanceTemplates(List<InstanceTemplate> instanceTemplates); void setMaxStartupRetries(int maxStartupRetries); void setContextName(String contextName); void setProvider(String provider); void setEndpoint(String endpoint); void setIdentity(String identity); void setCredential(String credential); void setBlobStoreContextName(String blobStoreContextName); void setBlobStoreProvider(String provider); void setBlobStoreEndpoint(String endpoint); void setBlobStoreIdentity(String identity); void setBlobStoreCredential(String credential); void setBlobStoreLocationId(String locationId); void setBlobStoreCacheContainer(String container); void setStateStore(String type); void setStateStoreContainer(String container); void setStateStoreBlob(String blob); void setAwsEc2SpotPrice(@Nullable Float value); void setClusterName(String clusterName); void setServiceName(String serviceName); boolean isTerminateAllOnLaunchFailure(); void setTerminateAllOnLaunchFailure(boolean terminateAllOnLaunchFailure); boolean isStoreClusterInEtcHosts(); void setStoreClusterInEtcHosts(boolean storeClusterInEtcHosts); String getAwsEc2PlacementGroup(); void setAwsEc2PlacementGroup(String awsEc2PlacementGroup); String getAutoHostnameSuffix(); void setAutoHostnameSuffix(String autoHostnameSuffix); String getAutoHostnamePrefix(); void setAutoHostnamePrefix(String autoHostnamePrefix); String getJdkInstallUrl(); void setJdkInstallUrl(String jdkInstallUrl); String getKerberosRealm(); void setKerberosRealm(String kerberosRealm); void setPublicKey(String publicKey); void setPublicKey(File publicKey); void setPrivateKey(String privateKey); void setPrivateKey(File privateKey); void setTemplate(TemplateBuilderSpec template); void setClientCidrs(List<String> clientCidrs); void setFirewallRules(Map<String,List<String>> firewallRules); @VisibleForTesting void setByonNodes(Map<String,Node> byonNodes); void setQuiet(boolean isQuiet); void setHandlerListener(ClusterActionHandlerListener handlerListener); void setVersion(String version); void setRunUrlBase(String runUrlBase); void setClusterUser(String user); Configuration getConfiguration(); Configuration getConfigurationForKeysWithPrefix(String prefix); Configuration getConfigurationForKeysMatching(Pattern pattern); File getClusterDirectory(); boolean equals(Object o); int hashCode(); String toString(); }
ClusterSpec { @VisibleForTesting public static ClusterSpec withNoDefaults() throws ConfigurationException { return withNoDefaults(new PropertiesConfiguration()); } ClusterSpec();  ClusterSpec(Configuration config);  ClusterSpec(Configuration userConfig, boolean loadDefaults);  ClusterSpec(Configuration userConfig, boolean loadDefaults, Map<String,Node> byonNodes); @VisibleForTesting static ClusterSpec withTemporaryKeys(); @VisibleForTesting static ClusterSpec withTemporaryKeys(Configuration conf); @VisibleForTesting static ClusterSpec withNoDefaults(); @VisibleForTesting static ClusterSpec withNoDefaults(Configuration conf); ClusterSpec copy(); List<InstanceTemplate> getInstanceTemplates(); InstanceTemplate getInstanceTemplate(final Set<String> roles); InstanceTemplate getInstanceTemplate(String... roles); int getMaxStartupRetries(); String getContextName(); String getProvider(); boolean isStub(); String getEndpoint(); String getIdentity(); String getCredential(); String getClusterName(); String getBlobStoreContextName(); String getBlobStoreProvider(); boolean isQuiet(); String getBlobStoreEndpoint(); String getBlobStoreIdentity(); String getBlobStoreCredential(); String getBlobStoreLocationId(); String getBlobStoreCacheContainer(); String getStateStore(); String getStateStoreContainer(); String getStateStoreBlob(); @Nullable Float getAwsEc2SpotPrice(); String getServiceName(); String getPrivateKey(); File getPrivateKeyFile(); String getPublicKey(); TemplateBuilderSpec getTemplate(); List<String> getClientCidrs(); Map<String, List<String>> getFirewallRules(); Map<String, Node> getByonNodes(); ClusterActionHandlerListener getHandlerListener(); String getVersion(); String getRunUrlBase(); String getClusterUser(); void setInstanceTemplates(List<InstanceTemplate> instanceTemplates); void setMaxStartupRetries(int maxStartupRetries); void setContextName(String contextName); void setProvider(String provider); void setEndpoint(String endpoint); void setIdentity(String identity); void setCredential(String credential); void setBlobStoreContextName(String blobStoreContextName); void setBlobStoreProvider(String provider); void setBlobStoreEndpoint(String endpoint); void setBlobStoreIdentity(String identity); void setBlobStoreCredential(String credential); void setBlobStoreLocationId(String locationId); void setBlobStoreCacheContainer(String container); void setStateStore(String type); void setStateStoreContainer(String container); void setStateStoreBlob(String blob); void setAwsEc2SpotPrice(@Nullable Float value); void setClusterName(String clusterName); void setServiceName(String serviceName); boolean isTerminateAllOnLaunchFailure(); void setTerminateAllOnLaunchFailure(boolean terminateAllOnLaunchFailure); boolean isStoreClusterInEtcHosts(); void setStoreClusterInEtcHosts(boolean storeClusterInEtcHosts); String getAwsEc2PlacementGroup(); void setAwsEc2PlacementGroup(String awsEc2PlacementGroup); String getAutoHostnameSuffix(); void setAutoHostnameSuffix(String autoHostnameSuffix); String getAutoHostnamePrefix(); void setAutoHostnamePrefix(String autoHostnamePrefix); String getJdkInstallUrl(); void setJdkInstallUrl(String jdkInstallUrl); String getKerberosRealm(); void setKerberosRealm(String kerberosRealm); void setPublicKey(String publicKey); void setPublicKey(File publicKey); void setPrivateKey(String privateKey); void setPrivateKey(File privateKey); void setTemplate(TemplateBuilderSpec template); void setClientCidrs(List<String> clientCidrs); void setFirewallRules(Map<String,List<String>> firewallRules); @VisibleForTesting void setByonNodes(Map<String,Node> byonNodes); void setQuiet(boolean isQuiet); void setHandlerListener(ClusterActionHandlerListener handlerListener); void setVersion(String version); void setRunUrlBase(String runUrlBase); void setClusterUser(String user); Configuration getConfiguration(); Configuration getConfigurationForKeysWithPrefix(String prefix); Configuration getConfigurationForKeysMatching(Pattern pattern); File getClusterDirectory(); boolean equals(Object o); int hashCode(); String toString();  }