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, 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, 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, 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, waitgetHash, getRoot, getStructure, getType, isBook, isChannelasFlatValuesMap, 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, setPropertyIfMissingclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesprotected 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 IEntityConfigurationExceptionpublic Collection<IApplication> getApplications() throws ConfigurationException
getApplications in interface IEntityConfigurationExceptionpublic Collection<ITopic> getKafkaTopics() throws ConfigurationException
getKafkaTopics in interface IEntityConfigurationExceptionpublic List<IApplication> getApplications(String namePattern) throws ConfigurationException
getApplications in interface IEntitynamePattern - the job name pattern (using '*' as wildcard)ConfigurationExceptionpublic IApplication getApplication(String name) throws ConfigurationException
getApplication in interface IEntityConfigurationExceptionpublic List<IApplication> getApplicationsForCluster(String namePattern, String clusterPattern) throws ConfigurationException
getApplicationsForCluster in interface IEntitynamePattern - either an exact job name or a pattern using '*' as wildcardclusterPattern - cluster either an exact cluster name or a pattern using '*' as wildcardConfigurationExceptionpublic IApplication getApplicationForCluster(String name, String cluster) throws ConfigurationException
IEntitygetApplicationForCluster in interface IEntityname - the application namecluster - the associated clusterConfigurationExceptionpublic int getApplicationSize()
throws ConfigurationException
getApplicationSize in interface IEntityConfigurationExceptionpublic String getVersion() throws ConfigurationException
getVersion in interface IEntityConfigurationExceptionpublic int getMajorVersion()
throws ConfigurationException
getMajorVersion in interface IEntityConfigurationExceptionpublic int getMinorVersion()
throws ConfigurationException
getMinorVersion in interface IEntityConfigurationExceptionpublic Path getPath()
public boolean isStartableByTenant()
throws ConfigurationException
isStartableByTenant in interface IEntityConfigurationExceptionpublic boolean isStoppableByTenant()
throws ConfigurationException
isStoppableByTenant in interface IEntityConfigurationExceptionCopyright © 2014–2023. All rights reserved.