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, setOriginatorName
asFlatValuesMap, 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, setPropertyIfMissing
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
asFlatValuesMap, 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, setPropertyIfMissing
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public PunchPlatformPropertiesImpl()
public PunchPlatformPropertiesImpl(String propertiesFile)
propertiesFile
- the path to the punchplatformIOException
public PunchPlatformPropertiesImpl(byte[] jsonContent)
jsonContent
- - json version of a punchplatform properties contentpublic ISettingsMap asSettingsMap()
asSettingsMap
in interface IPunchPlatformProperties
public String getZkConnectionString(String zkClusterKey)
IPunchPlatformProperties
getZkConnectionString
in interface IPunchPlatformProperties
zkClusterKey
- the zookeeper cluster key.public Set<String> getStormClusterNames()
getStormClusterNames
in interface IPunchPlatformProperties
public ISettingsMap getCreateStormCluster(String cluster)
IPunchPlatformProperties
getCreateStormCluster
in interface IPunchPlatformProperties
cluster
- the Storm cluster namepublic Set<String> getSparkClusterNames()
getSparkClusterNames
in interface IPunchPlatformProperties
public org.apache.http.HttpHost[] getStormUAdminUrl(String stormClusterName)
getStormUAdminUrl
in interface IPunchPlatformProperties
stormClusterName
- the name of a storm clusterpublic List<String> getStormNimbusNodes(String stormClusterName)
getStormNimbusNodes
in interface IPunchPlatformProperties
stormClusterName
- the name of a storm clusterpublic int getStormNimbusPort(String stormClusterName)
getStormNimbusPort
in interface IPunchPlatformProperties
public List<String> getStormSupervisors(String stormClusterName)
getStormSupervisors
in interface IPunchPlatformProperties
stormClusterName
- the name of a storm clusterpublic org.apache.http.HttpHost[] getElasticsearchHttpHosts(String clusterName, boolean ssl)
getElasticsearchHttpHosts
in interface IPunchPlatformProperties
clusterName
- the name of an elasticsearch clusterssl
- https if true, else httppublic org.apache.http.HttpHost[] getElasticsearchHttpHostsForMonitoring(String clusterName, boolean ssl)
getElasticsearchHttpHostsForMonitoring
in interface IPunchPlatformProperties
clusterName
- 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 IPunchPlatformProperties
clusterName
- the name of an spark clusterpublic String getSparkInstallDir()
getSparkInstallDir
in interface IPunchPlatformProperties
public ISettingsMap getCreateSparkCluster(String clusterName)
getCreateSparkCluster
in interface IPunchPlatformProperties
clusterName
- the name of an spark clusterpublic String getZkConnectionStringForKafkaCluster(String kafkaClusterName)
getZkConnectionStringForKafkaCluster
in interface IPunchPlatformProperties
kafkaClusterName
- the target kafka cluster namepublic List<String> getElasticsearchClusterNames()
getElasticsearchClusterNames
in interface IPunchPlatformProperties
public ISettingsMap getCreateElasticsearchCluster(String esCluster)
IPunchPlatformProperties
getCreateElasticsearchCluster
in interface IPunchPlatformProperties
esCluster
- the Elasticsearch cluster namepublic IKafkaCluster getKafkaCluster(String clusterName)
getKafkaCluster
in interface IPunchPlatformProperties
clusterName
- as appearing in the list of keys in the 'kafka.clusters' platform settingpublic List<IKafkaCluster> getKafkaClusters()
getKafkaClusters
in interface IPunchPlatformProperties
public Set<String> getKafkaClusterNames()
getKafkaClusterNames
in interface IPunchPlatformProperties
public ISettingsMap getCreateKafkaCluster(String cluster)
IPunchPlatformProperties
getCreateKafkaCluster
in interface IPunchPlatformProperties
cluster
- the Kafka cluster namepublic org.apache.http.HttpHost[] getPlatformEsCluster()
getPlatformEsCluster
in interface IPunchPlatformProperties
public String getPlatformEsIndexPrefix()
getPlatformEsIndexPrefix
in interface IPunchPlatformProperties
public String getPlatformId()
getPlatformId
in interface IPunchPlatformProperties
public List<ISettingsMap> getReporters(List<String> reporterIds)
getReporters
in interface IPunchPlatformProperties
public List<IZookeeperCluster> getZookeeperClusters()
getZookeeperClusters
in interface IPunchPlatformProperties
public Set<String> getZookeeperClusterNames()
getZookeeperClusterNames
in interface IPunchPlatformProperties
public IZookeeperCluster getZookeeperCluster(String zkClusterName)
getZookeeperCluster
in interface IPunchPlatformProperties
zkClusterName
- as appearing in the list of keys in the 'zookeeper.clusters' platform settingpublic ISettingsMap getCreateZookeeperCluster(String zkCluster)
IPunchPlatformProperties
getCreateZookeeperCluster
in interface IPunchPlatformProperties
zkCluster
- the Zookeeper cluster namepublic List<IShivaCluster> getShivaClusters()
IPunchPlatformProperties
getShivaClusters
in interface IPunchPlatformProperties
public Set<String> getShivaClusterNames()
getShivaClusterNames
in interface IPunchPlatformProperties
public ISettingsMap getCreateShivaCluster(String cluster)
IPunchPlatformProperties
getCreateShivaCluster
in interface IPunchPlatformProperties
cluster
- the Shiva cluster namepublic IShivaCluster getShivaCluster(String shivaClusterName) throws ConfigurationException
getShivaCluster
in interface IPunchPlatformProperties
shivaClusterName
- the target shiva cluster nameConfigurationException
public ISettingsMap getGatewayConfiguration()
IPunchPlatformProperties
getGatewayConfiguration
in interface IPunchPlatformProperties
public ISettingsMap getOrCreate(String... tree)
IPunchPlatformProperties
getOrCreate
in interface IPunchPlatformProperties
tree
- the list of map nodespublic org.apache.http.HttpHost[] getCephAdminApiHosts(String clusterName)
getCephAdminApiHosts
in interface IPunchPlatformProperties
clusterName
- the name of an Ceph clusterpublic Set<String> getCephClusterNames()
getCephClusterNames
in interface IPunchPlatformProperties
public ISettingsMap getCreateCephCluster(String cluster)
getCreateCephCluster
in interface IPunchPlatformProperties
cluster
- the name of a Ceph clusterpublic String getKafkaBootstrapServer(String clusterName) throws ConfigurationException
IPunchPlatformProperties
getKafkaBootstrapServer
in interface IPunchPlatformProperties
clusterName
- the target kafka cluster nameConfigurationException
public ISettingsMap getCreateKubernetesCluster(String cluster)
IPunchPlatformProperties
getCreateKubernetesCluster
in interface IPunchPlatformProperties
cluster
- the Kubernetes cluster namepublic String getPlanSchedulerInstallDir()
IPunchPlatformProperties
getPlanSchedulerInstallDir
in interface IPunchPlatformProperties
public Set<String> getMinioClusterNames()
getMinioClusterNames
in interface IPunchPlatformProperties
public ISettingsMap getCreateMinioCluster(String clusterName)
getCreateMinioCluster
in interface IPunchPlatformProperties
clusterName
- the name of a minio clusterpublic Set<String> getClickhouseClusterNames()
getClickhouseClusterNames
in interface IPunchPlatformProperties
public ISettingsMap getCreateClickhouseCluster(String clusterName)
getCreateClickhouseCluster
in interface IPunchPlatformProperties
clusterName
- the name of a Clickhouse clusterpublic Set<String> getGatewayClusterNames()
getGatewayClusterNames
in interface IPunchPlatformProperties
public ISettingsMap getCreateGatewayCluster(String clusterName)
getCreateGatewayCluster
in interface IPunchPlatformProperties
clusterName
- the name of a Gateway clusterpublic String getApplicationControlTopic() throws ConfigurationException
getApplicationControlTopic
in interface IPunchPlatformProperties
ConfigurationException
public String getApplicationControlKafkaClusterName() throws ConfigurationException
getApplicationControlKafkaClusterName
in interface IPunchPlatformProperties
ConfigurationException
public String getApplicationControlKafkaClusterBootstrapUrl() throws ConfigurationException
getApplicationControlKafkaClusterBootstrapUrl
in interface IPunchPlatformProperties
ConfigurationException
public ISettingsMap getResourceManagerConfiguration()
getResourceManagerConfiguration
in interface IPunchPlatformProperties
public SecurityImpl getSecuritySectionForCommands()
getSecuritySectionForCommands
in interface IPunchPlatformProperties
public Object getAsRequiredObjectOfClass(String key, Class<? extends Object> expectedClass)
getAsRequiredObjectOfClass
in interface ISettingsMap
getAsRequiredObjectOfClass
in class SettingsMapImpl
key
- 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 IPunchPlatformProperties
type
- a cluster typecluster
- a cluster namepublic String sparkMaster(String clusterName) throws ConfigurationException
IPunchPlatformProperties
- spark://localhost:7077
- spark://server1:7077,server1:7077
sparkMaster
in interface IPunchPlatformProperties
clusterName
- specified in your punchplatform propertiesConfigurationException
Copyright © 2014–2022. All rights reserved.