|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.linkedin.glu.provisioner.core.model.SystemModel
class SystemModel
Field Summary | |
---|---|
static OneWayCodec |
SHA1
|
static SystemModelSerializer |
TO_STRING_SERIALIZER
|
Property Summary | |
---|---|
java.lang.String |
fabric
|
SystemFilter |
filters
|
java.lang.String |
id
|
java.util.Map |
metadata
|
Method Summary | |
---|---|
void
|
addAgentTags(java.lang.String agentName, java.util.Collection tags)
Adds the agent tags |
void
|
addEntry(SystemEntry entry)
|
SystemModel
|
clone()
|
SystemModel
|
cloneNoEntries()
|
java.lang.String
|
computeContentSha1()
@return the sha1 of the content (does not include the id) |
java.lang.Object
|
computeStats()
|
java.lang.Object
|
computeStats(java.lang.Object keys)
Computes the stats of this model limited by the set of keys provided. |
java.lang.Object
|
each(groovy.lang.Closure closure)
|
boolean
|
equals(java.lang.Object o)
|
static java.util.List
|
filter(SystemModel system1, SystemModel system2)
Filters the 2 models in the following way:
|
SystemModel
|
filterBy(SystemModel system)
Apply all the filters from the provided system model. |
SystemModel
|
filterBy(java.lang.String filter)
The filter is a dsl |
SystemModel
|
filterBy(SystemFilter filter)
@return a model that has been filtered by the provided filter |
SystemModel
|
filterBy(groovy.lang.Closure filter)
@param filter (will be called for each entry ( |
SystemModel
|
filterBy(java.lang.String name, groovy.lang.Closure filter)
@param filter (will be called for each entry ( |
SystemModel
|
filterBy(java.lang.String name, java.lang.Object value)
This is a shortcut to apply a filter of the style: |
SystemModel
|
filterByMetadata(java.lang.String name, java.lang.Object value)
This is a shortcut to apply a filter where the metadata matches the value |
static java.util.Set
|
filterKeys(SystemModel system1, SystemModel system2)
Filters the 2 models in the following way:
|
java.util.Collection
|
findChildrenKeys(java.lang.String parentKey)
|
java.util.Collection
|
findEntries()
|
SystemEntry
|
findEntry(java.lang.String agent, java.lang.String mountPoint)
|
SystemEntry
|
findEntry(java.lang.String key)
|
static SystemModel
|
fromExternalRepresentation(java.lang.Object er)
|
ReadOnlyTaggeable
|
getAgentTags(java.lang.String agentName)
@return the tags of the given agent |
java.util.Map
|
getAgentTags()
@return all the agent tags |
T
|
getKeys(T keys)
|
java.lang.Object
|
groupByEntryMetadata(java.lang.String name)
@return a collection with all the unique values for |
int
|
hashCode()
|
void
|
removeEntry(java.lang.String key)
|
java.lang.Object
|
toCanonicalRepresentation()
In the canonical representation, the agent tags are removed from the entry tags |
java.lang.Object
|
toExternalRepresentation()
|
java.lang.Object
|
toExternalRepresentation(boolean includeEntries)
|
java.lang.String
|
toString()
|
SystemModel
|
unfilter()
@return the system as it was unfiltered |
void
|
updateEntry(SystemEntry entry)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
public static final OneWayCodec SHA1
public static final SystemModelSerializer TO_STRING_SERIALIZER
Property Detail |
---|
java.lang.String fabric
SystemFilter filters
java.lang.String id
java.util.Map metadata
Method Detail |
---|
void addAgentTags(java.lang.String agentName, java.util.Collection tags)
void addEntry(SystemEntry entry)
SystemModel clone()
SystemModel cloneNoEntries()
java.lang.String computeContentSha1()
java.lang.Object computeStats()
java.lang.Object computeStats(java.lang.Object keys)
java.lang.Object each(groovy.lang.Closure closure)
boolean equals(java.lang.Object o)
static java.util.List filter(SystemModel system1, SystemModel system2)
[system1, system2]
SystemModel filterBy(SystemModel system)
SystemModel filterBy(java.lang.String filter)
SystemModel filterBy(SystemFilter filter)
SystemModel filterBy(groovy.lang.Closure filter)
filter
- (will be called for each entry (SystemEntry
) and should return
true
if the entry should be included, false
for excluded
SystemModel filterBy(java.lang.String name, groovy.lang.Closure filter)
filter
- (will be called for each entry (SystemEntry
) and should return
true
if the entry should be included, false
for excluded
SystemModel filterBy(java.lang.String name, java.lang.Object value)
se."${name}" == value
.
Note that it properly handles names with a dot (ex: metadata.version will be turned into
se.metadata.version
(not se."metadata.version"
)
SystemModel filterByMetadata(java.lang.String name, java.lang.Object value)
static java.util.Set filterKeys(SystemModel system1, SystemModel system2)
java.util.Collection findChildrenKeys(java.lang.String parentKey)
java.util.Collection findEntries()
SystemEntry findEntry(java.lang.String agent, java.lang.String mountPoint)
SystemEntry findEntry(java.lang.String key)
static SystemModel fromExternalRepresentation(java.lang.Object er)
ReadOnlyTaggeable getAgentTags(java.lang.String agentName)
java.util.Map getAgentTags()
T getKeys(T keys)
java.lang.Object groupByEntryMetadata(java.lang.String name)
entry.metadata[name]
int hashCode()
void removeEntry(java.lang.String key)
java.lang.Object toCanonicalRepresentation()
java.lang.Object toExternalRepresentation()
java.lang.Object toExternalRepresentation(boolean includeEntries)
java.lang.String toString()
SystemModel unfilter()
void updateEntry(SystemEntry entry)
Groovy Documentation