public abstract class EntityImpl extends JsonSettingsMapImpl implements IEntity
IChannel
implementationAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
protected Path |
path |
protected String |
shortName |
protected TenantImpl |
tenant |
originatorName
Modifier | Constructor and Description |
---|---|
protected |
EntityImpl(TenantImpl tenant,
String name,
ISettingsMap map)
Constructor when called from configuration folder.
|
Modifier and Type | Method and Description |
---|---|
IApplication |
getApplication(String name) |
IApplication |
getApplicationForCluster(String name,
String cluster)
Return the a given application
|
Collection<IApplication> |
getApplications() |
List<IApplication> |
getApplications(String namePattern) |
List<IApplication> |
getApplicationsForCluster(String namePattern,
String clusterPattern) |
int |
getApplicationSize() |
List<String> |
getApplicationsName() |
String |
getHash(String folder) |
Collection<ITopic> |
getKafkaTopics() |
int |
getMajorVersion() |
int |
getMinorVersion() |
String |
getName() |
Path |
getPath() |
TenantImpl |
getTenant() |
String |
getUUID() |
String |
getVersion() |
boolean |
isStartableByTenant() |
boolean |
isStoppableByTenant() |
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, getAsRequiredObjectOfClass, 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
getHash, getRoot, getStructure, getType, isBook, isChannel
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, getAsRequiredObjectOfClass, 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
protected final String shortName
protected transient TenantImpl tenant
protected transient Path path
protected EntityImpl(TenantImpl tenant, String name, ISettingsMap map)
tenant
- the owning tenantname
- entity namemap
- map containing the file names as keys and the file paths as valuespublic String getName()
public TenantImpl getTenant()
public List<String> getApplicationsName() throws ConfigurationException
getApplicationsName
in interface IEntity
ConfigurationException
public Collection<IApplication> getApplications() throws ConfigurationException
getApplications
in interface IEntity
ConfigurationException
public Collection<ITopic> getKafkaTopics() throws ConfigurationException
getKafkaTopics
in interface IEntity
ConfigurationException
public List<IApplication> getApplications(String namePattern) throws ConfigurationException
getApplications
in interface IEntity
namePattern
- the job name pattern (using '*' as wildcard)ConfigurationException
public IApplication getApplication(String name) throws ConfigurationException
getApplication
in interface IEntity
ConfigurationException
public List<IApplication> getApplicationsForCluster(String namePattern, String clusterPattern) throws ConfigurationException
getApplicationsForCluster
in interface IEntity
namePattern
- either an exact job name or a pattern using '*' as wildcardclusterPattern
- cluster either an exact cluster name or a pattern using '*' as wildcardConfigurationException
public IApplication getApplicationForCluster(String name, String cluster) throws ConfigurationException
IEntity
getApplicationForCluster
in interface IEntity
name
- the application namecluster
- the associated clusterConfigurationException
public int getApplicationSize() throws ConfigurationException
getApplicationSize
in interface IEntity
ConfigurationException
public String getVersion() throws ConfigurationException
getVersion
in interface IEntity
ConfigurationException
public int getMajorVersion() throws ConfigurationException
getMajorVersion
in interface IEntity
ConfigurationException
public int getMinorVersion() throws ConfigurationException
getMinorVersion
in interface IEntity
ConfigurationException
public Path getPath()
public boolean isStartableByTenant() throws ConfigurationException
isStartableByTenant
in interface IEntity
ConfigurationException
public boolean isStoppableByTenant() throws ConfigurationException
isStoppableByTenant
in interface IEntity
ConfigurationException
Copyright © 2014–2022. All rights reserved.