|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.linkedin.glu.provisioner.impl.planner.InstallationsDelta
class InstallationsDelta
Describes the delta between two installations author: Riccardo Ferretti created: Jul 27, 2009
Constructor Summary | |
InstallationsDelta(java.lang.Object args)
|
|
InstallationsDelta(Installation first, Installation second)
|
Method Summary | |
---|---|
boolean
|
areSameProps()
Return if the properties of the two installations are the same |
boolean
|
areSameProps(java.lang.Object excludes)
Return if the properties of the two installations are the same |
Installation
|
getFirst()
|
java.lang.String
|
getId()
Return the id of the two installations |
java.util.Map
|
getModifiedProps()
Return the map of properties that differ between the two installations. |
Installation
|
getSecond()
|
java.lang.Boolean
|
isInstall()
Return if the delta represents a new installation |
boolean
|
isSame(java.lang.String field)
Generic call to compare 2 fields |
boolean
|
isSameHost()
Return if the host of the two installations is the same |
boolean
|
isSameInstallation()
Return if the only difference between the installations is in the properties (that is, they are the same installation but with different properties) or in the state. |
boolean
|
isSameInstallation(java.lang.Object excludes)
Return if the only difference between the installations is in the properties (that is, they are the same installation but with different properties) or in the state. |
boolean
|
isSameMount()
Return if the mount point of the two installations is the same |
boolean
|
isSameName()
Return if the name of the two installations is the same |
boolean
|
isSameParent()
Return if the parent of the two installations is the same |
boolean
|
isSameScript()
Return if the script used by the two installations is the same |
boolean
|
isSameState()
Return if the state of the installations is the same |
java.lang.Boolean
|
isUninstall()
Return if the delta represents an installation to remove |
java.lang.Boolean
|
isUpdate()
Return if the delta represents an update in an existing installation |
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() |
Constructor Detail |
---|
InstallationsDelta(java.lang.Object args)
InstallationsDelta(Installation first, Installation second)
Method Detail |
---|
boolean areSameProps()
boolean areSameProps(java.lang.Object excludes)
excludes
- an array of keys to exclude from the comparison
Installation getFirst()
final java.lang.String getId()
java.util.Map getModifiedProps()
true
)
it will return an empty map.
Otherwise it returns a map where the key is the name of the property and the value
is another map, where the key is the old value and the value is the new one.
Installation getSecond()
java.lang.Boolean isInstall()
boolean isSame(java.lang.String field)
boolean isSameHost()
boolean isSameInstallation()
boolean isSameInstallation(java.lang.Object excludes)
boolean isSameMount()
boolean isSameName()
boolean isSameParent()
boolean isSameScript()
boolean isSameState()
java.lang.Boolean isUninstall()
java.lang.Boolean isUpdate()
Groovy Documentation