public class DataModel extends Entity
Modifier and Type | Method and Description |
---|---|
boolean |
containsObject(java.lang.String name)
Returns whether there is an object of the given name in this data model.
|
java.lang.String |
getAccelerationCronSchedule()
Return the cron schedule on which the cached data for acceleration should be
updated.
|
java.lang.String |
getAccelerationNamespace()
Returns the tsidx namespace which holds global acceleration events for this
data model.
|
java.lang.String |
getDescription() |
java.lang.String |
getDisplayName() |
java.lang.String |
getEarliestAcceleratedTime()
Return the earliest time of the window over which the data model is accelerated.
|
DataModelObject |
getObject(java.lang.String name)
Retrieve an object by name from this data model.
|
java.util.Collection<DataModelObject> |
getObjects() |
java.lang.String |
getRawJson() |
boolean |
isAccelerated() |
boolean |
isManualRebuilds()
This setting prevents outdated summaries from being rebuilt by the
'summarize' command.
|
void |
setAcceleration(boolean enabled)
Enable or disable global acceleration on this data model.
|
void |
setAccelerationCronSchedule(java.lang.String accelerationCronSchedule)
Set the cron schedule on which the cached data for the acceleration should
be updated.
|
void |
setEarliestAcceleratedTime(java.lang.String earliestAcceleratedTime)
Set the size of the window (from the specified earliest time to now) over
which the data model should be accelerated.
|
void |
setManualRebuilds(boolean enabled)
Enable or disable manual rebuilds on this data model.
|
void |
update()
Updates the entity with the accumulated arguments, established by the
individual setter methods for each specific entity class.
|
actionPath, clear, containsKey, containsValue, disable, enable, entrySet, get, getContent, getMetadata, isDisabled, isEmpty, isNameChangeAllowed, keySet, put, putAll, refresh, remove, remove, size, update, validate, values
getName, getPath, getService, getTitle, invalidate
public boolean containsObject(java.lang.String name)
name
- Name of the object to check for.public DataModelObject getObject(java.lang.String name)
name
- Name of the object to retrieve.public java.util.Collection<DataModelObject> getObjects()
public java.lang.String getAccelerationNamespace()
public boolean isAccelerated()
public java.lang.String getDescription()
public java.lang.String getRawJson()
public java.lang.String getDisplayName()
public void setAcceleration(boolean enabled)
enabled
- true enabled, false disables.public java.lang.String getEarliestAcceleratedTime()
public void setEarliestAcceleratedTime(java.lang.String earliestAcceleratedTime)
earliestAcceleratedTime
- a string specifying a time.public java.lang.String getAccelerationCronSchedule()
public void setAccelerationCronSchedule(java.lang.String accelerationCronSchedule)
accelerationCronSchedule
- a crontab style schedule to use.public boolean isManualRebuilds()
public void setManualRebuilds(boolean enabled)
enabled
- true enabled, false disables.