public abstract class ManagedEntity extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
aliases |
protected static String |
CONF_ALIASES |
protected static String |
CONF_ID |
protected static String |
CONF_TYPE |
protected Date |
createDateTime |
protected String |
digest |
protected String |
id |
protected String |
type |
| Modifier | Constructor and Description |
|---|---|
protected |
ManagedEntity(String id,
io.vertx.core.json.JsonObject config)
Constructor of configurable entity.
|
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getAliases()
Get list of aliases of the entity.
|
Date |
getCreationDateTime()
Get creation datetime of the entity.
|
String |
getId()
Get id of the entity.
|
String |
getType()
Get type of the entity.
|
abstract UsageStats |
getUsage(String idOrAlias) |
boolean |
isDifferentFrom(io.vertx.core.json.JsonObject config)
Check if given configuration is different from current or not.
|
void |
validate()
Validate this instance and throw runtime exception if something wrong.
|
protected static final String CONF_ID
protected static final String CONF_ALIASES
protected static final String CONF_TYPE
protected final Date createDateTime
protected final String digest
protected final String id
protected final String type
protected ManagedEntity(String id, io.vertx.core.json.JsonObject config)
id - id of the entityconfig - configuration in JSON format, id, type and
aliases properties are reserved for instantiationpublic void validate()
public final String getId()
public final Set<String> getAliases()
public final Date getCreationDateTime()
public String getType()
public final boolean isDifferentFrom(io.vertx.core.json.JsonObject config)
config - configuration in JSON formatpublic abstract UsageStats getUsage(String idOrAlias)
Copyright © 2019–2021. All rights reserved.