public class PunchPlatformPropertiesImpl extends JsonSettingsMapImpl implements IPunchPlatformProperties
PunchPlatformPropertiesImpl. NEVER create this by
yourself. Always use the PunchEnvironment methods.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>originatorName| Constructor and Description |
|---|
PunchPlatformPropertiesImpl()
Use this constructor when using punch apps outside a 6.x platform.
|
PunchPlatformPropertiesImpl(byte[] jsonContent)
Deprecated.
do not use it because there is no resolving
|
PunchPlatformPropertiesImpl(String propertiesFile)
Constructor.
|
newSettingsListChild, newSettingsMapChild, put, putAll, putWithNoCloning, setOriginatorNameasFlatValuesMap, asFlatValuesMap, asFlatValuesMapIgnoreSettingsList, asHjsonString, asJsonString, asJsonString, asKvString, asListFlatValuesMapIgnoreSettingsList, asYamlString, childAsJson, childAsRawContent, childAsTarGz, childFileAsMap, childIsDir, childIsFile, getAsBoolean, getAsBoolean, getAsDouble, getAsInteger, getAsInteger, getAsIsoDateTime, getAsLong, getAsLong, getAsMsDuration, getAsRequiredBoolean, getAsRequiredDouble, getAsRequiredInteger, getAsRequiredIsoDateTime, getAsRequiredLong, getAsRequiredObject, getAsRequiredSettingsList, getAsRequiredSettingsMap, getAsRequiredString, getAsRequiredTimeValue, getAsRequiredZonedDateTime, getAsSettingsList, getAsSettingsList, getAsSettingsListOrEmpty, getAsSettingsMap, getAsSettingsMap, getAsString, getAsString, getAsTimeValue, getChildName, getCreateMap, getDeepCopy, getMapOrEmpty, getNestedProperty, getNewInstance, getOrCreateNestedSettingsMap, getOriginatorName, getRequiredNestedProperty, getStringOrFail, getStringOrFail, getTimeValueMs, newSettingsMapChild, overrideWith, putUsingDottedPath, putUsingSlashPath, removeUsingDottedPath, removeUsingSlashPath, setJsonDecoding, setNestedProperty, setPropertyIfMissingclear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitasFlatValuesMap, asFlatValuesMap, asFlatValuesMapIgnoreSettingsList, asHjsonString, asJsonString, asJsonString, asKvString, asListFlatValuesMapIgnoreSettingsList, asYamlString, childAsJson, childAsListOfString, childAsMapEntries, childAsMapValues, childAsRawContent, childAsRequiredListOfString, childAsRequiredString, childAsString, childAsStringContent, childAsTarGz, childFileAsMap, childIsDir, childIsFile, getAsBoolean, getAsBoolean, getAsDouble, getAsInteger, getAsInteger, getAsIsoDateTime, getAsLong, getAsLong, getAsMsDuration, getAsRequiredBoolean, getAsRequiredDouble, getAsRequiredInteger, getAsRequiredIsoDateTime, getAsRequiredLong, getAsRequiredObject, getAsRequiredSettingsList, getAsRequiredSettingsMap, getAsRequiredString, getAsRequiredTimeValue, getAsRequiredZonedDateTime, getAsSettingsList, getAsSettingsList, getAsSettingsListOrEmpty, getAsSettingsMap, getAsSettingsMap, getAsString, getAsString, getAsTimeValue, getCreateAsListOfMap, getCreateMap, getDeepCopy, getMapOrEmpty, getNestedProperty, getOrCreateNestedSettingsMap, getOriginatorName, getRequiredNestedProperty, getStringOrFail, getStringOrFail, getTimeValueMs, overrideWith, putUsingDottedPath, putUsingSlashPath, removeUsingDottedPath, removeUsingSlashPath, setNestedProperty, setOriginatorName, setPropertyIfMissingclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic PunchPlatformPropertiesImpl()
public PunchPlatformPropertiesImpl(String propertiesFile)
propertiesFile - the path to the punchplatformIOExceptionpublic PunchPlatformPropertiesImpl(byte[] jsonContent)
jsonContent - - json version of a punchplatform properties contentpublic ISettingsMap asSettingsMap()
asSettingsMap in interface IPunchPlatformPropertiespublic String getZkConnectionString(String zkClusterKey)
IPunchPlatformPropertiesgetZkConnectionString in interface IPunchPlatformPropertieszkClusterKey - the zookeeper cluster key.public Set<String> getStormClusterNames()
getStormClusterNames in interface IPunchPlatformPropertiespublic ISettingsMap getCreateStormCluster(String cluster)
IPunchPlatformPropertiesgetCreateStormCluster in interface IPunchPlatformPropertiescluster - the Storm cluster namepublic Set<String> getSparkClusterNames()
getSparkClusterNames in interface IPunchPlatformPropertiespublic org.apache.http.HttpHost[] getStormUAdminUrl(String stormClusterName)
getStormUAdminUrl in interface IPunchPlatformPropertiesstormClusterName - the name of a storm clusterpublic List<String> getStormNimbusNodes(String stormClusterName)
getStormNimbusNodes in interface IPunchPlatformPropertiesstormClusterName - the name of a storm clusterpublic int getStormNimbusPort(String stormClusterName)
getStormNimbusPort in interface IPunchPlatformPropertiespublic List<String> getStormSupervisors(String stormClusterName)
getStormSupervisors in interface IPunchPlatformPropertiesstormClusterName - the name of a storm clusterpublic org.apache.http.HttpHost[] getElasticsearchHttpHosts(String clusterName, boolean ssl)
getElasticsearchHttpHosts in interface IPunchPlatformPropertiesclusterName - the name of an elasticsearch clusterssl - https if true, else httppublic org.apache.http.HttpHost[] getElasticsearchHttpHostsForMonitoring(String clusterName, boolean ssl)
getElasticsearchHttpHostsForMonitoring in interface IPunchPlatformPropertiesclusterName - the name of an elasticsearch clusterssl - set true to use https scheme, false to use httppublic org.apache.http.HttpHost[] getSparkHttpHosts(String clusterName)
getSparkHttpHosts in interface IPunchPlatformPropertiesclusterName - the name of an spark clusterpublic String getSparkInstallDir()
getSparkInstallDir in interface IPunchPlatformPropertiespublic ISettingsMap getCreateSparkCluster(String clusterName)
getCreateSparkCluster in interface IPunchPlatformPropertiesclusterName - the name of an spark clusterpublic String getZkConnectionStringForKafkaCluster(String kafkaClusterName)
getZkConnectionStringForKafkaCluster in interface IPunchPlatformPropertieskafkaClusterName - the target kafka cluster namepublic List<String> getElasticsearchClusterNames()
getElasticsearchClusterNames in interface IPunchPlatformPropertiespublic ISettingsMap getCreateElasticsearchCluster(String esCluster)
IPunchPlatformPropertiesgetCreateElasticsearchCluster in interface IPunchPlatformPropertiesesCluster - the Elasticsearch cluster namepublic IKafkaCluster getKafkaCluster(String clusterName)
getKafkaCluster in interface IPunchPlatformPropertiesclusterName - as appearing in the list of keys in the 'kafka.clusters' platform settingpublic List<IKafkaCluster> getKafkaClusters()
getKafkaClusters in interface IPunchPlatformPropertiespublic Set<String> getKafkaClusterNames()
getKafkaClusterNames in interface IPunchPlatformPropertiespublic ISettingsMap getCreateKafkaCluster(String cluster)
IPunchPlatformPropertiesgetCreateKafkaCluster in interface IPunchPlatformPropertiescluster - the Kafka cluster namepublic org.apache.http.HttpHost[] getPlatformEsCluster()
getPlatformEsCluster in interface IPunchPlatformPropertiespublic String getPlatformEsIndexPrefix()
getPlatformEsIndexPrefix in interface IPunchPlatformPropertiespublic String getPlatformId()
getPlatformId in interface IPunchPlatformPropertiespublic List<ISettingsMap> getReporters(List<String> reporterIds)
getReporters in interface IPunchPlatformPropertiespublic List<IZookeeperCluster> getZookeeperClusters()
getZookeeperClusters in interface IPunchPlatformPropertiespublic Set<String> getZookeeperClusterNames()
getZookeeperClusterNames in interface IPunchPlatformPropertiespublic IZookeeperCluster getZookeeperCluster(String zkClusterName)
getZookeeperCluster in interface IPunchPlatformPropertieszkClusterName - as appearing in the list of keys in the 'zookeeper.clusters' platform settingpublic ISettingsMap getCreateZookeeperCluster(String zkCluster)
IPunchPlatformPropertiesgetCreateZookeeperCluster in interface IPunchPlatformPropertieszkCluster - the Zookeeper cluster namepublic List<IShivaCluster> getShivaClusters()
IPunchPlatformPropertiesgetShivaClusters in interface IPunchPlatformPropertiespublic Set<String> getShivaClusterNames()
getShivaClusterNames in interface IPunchPlatformPropertiespublic ISettingsMap getCreateShivaCluster(String cluster)
IPunchPlatformPropertiesgetCreateShivaCluster in interface IPunchPlatformPropertiescluster - the Shiva cluster namepublic IShivaCluster getShivaCluster(String shivaClusterName) throws ConfigurationException
getShivaCluster in interface IPunchPlatformPropertiesshivaClusterName - the target shiva cluster nameConfigurationExceptionpublic ISettingsMap getGatewayConfiguration()
IPunchPlatformPropertiesgetGatewayConfiguration in interface IPunchPlatformPropertiespublic ISettingsMap getOrCreate(String... tree)
IPunchPlatformPropertiesgetOrCreate in interface IPunchPlatformPropertiestree - the list of map nodespublic org.apache.http.HttpHost[] getCephAdminApiHosts(String clusterName)
getCephAdminApiHosts in interface IPunchPlatformPropertiesclusterName - the name of an Ceph clusterpublic Set<String> getCephClusterNames()
getCephClusterNames in interface IPunchPlatformPropertiespublic ISettingsMap getCreateCephCluster(String cluster)
getCreateCephCluster in interface IPunchPlatformPropertiescluster - the name of a Ceph clusterpublic String getKafkaBootstrapServer(String clusterName) throws ConfigurationException
IPunchPlatformPropertiesgetKafkaBootstrapServer in interface IPunchPlatformPropertiesclusterName - the target kafka cluster nameConfigurationExceptionpublic ISettingsMap getCreateKubernetesCluster(String cluster)
IPunchPlatformPropertiesgetCreateKubernetesCluster in interface IPunchPlatformPropertiescluster - the Kubernetes cluster namepublic String getPlanSchedulerInstallDir()
IPunchPlatformPropertiesgetPlanSchedulerInstallDir in interface IPunchPlatformPropertiespublic Set<String> getMinioClusterNames()
getMinioClusterNames in interface IPunchPlatformPropertiespublic ISettingsMap getCreateMinioCluster(String clusterName)
getCreateMinioCluster in interface IPunchPlatformPropertiesclusterName - the name of a minio clusterpublic Set<String> getClickhouseClusterNames()
getClickhouseClusterNames in interface IPunchPlatformPropertiespublic ISettingsMap getCreateClickhouseCluster(String clusterName)
getCreateClickhouseCluster in interface IPunchPlatformPropertiesclusterName - the name of a Clickhouse clusterpublic Set<String> getGatewayClusterNames()
getGatewayClusterNames in interface IPunchPlatformPropertiespublic ISettingsMap getCreateGatewayCluster(String clusterName)
getCreateGatewayCluster in interface IPunchPlatformPropertiesclusterName - the name of a Gateway clusterpublic String getApplicationControlTopic() throws ConfigurationException
getApplicationControlTopic in interface IPunchPlatformPropertiesConfigurationExceptionpublic String getApplicationControlKafkaClusterName() throws ConfigurationException
getApplicationControlKafkaClusterName in interface IPunchPlatformPropertiesConfigurationExceptionpublic String getApplicationControlKafkaClusterBootstrapUrl() throws ConfigurationException
getApplicationControlKafkaClusterBootstrapUrl in interface IPunchPlatformPropertiesConfigurationExceptionpublic ISettingsMap getResourceManagerConfiguration()
getResourceManagerConfiguration in interface IPunchPlatformPropertiespublic SecurityImpl getSecuritySectionForCommands()
getSecuritySectionForCommands in interface IPunchPlatformPropertiespublic Object getAsRequiredObjectOfClass(String key, Class<? extends Object> expectedClass)
getAsRequiredObjectOfClass in interface ISettingsMapgetAsRequiredObjectOfClass in class SettingsMapImplkey - the property key to retrieveexpectedClass - the class of which the property must be checked an instance ofpublic boolean clusterExists(EClusterType type, String cluster)
clusterExists in interface IPunchPlatformPropertiestype - a cluster typecluster - a cluster namepublic String sparkMaster(String clusterName) throws ConfigurationException
IPunchPlatformProperties
- spark://localhost:7077
- spark://server1:7077,server1:7077
sparkMaster in interface IPunchPlatformPropertiesclusterName - specified in your punchplatform propertiesConfigurationExceptionCopyright © 2014–2023. All rights reserved.