Groovy Documentation

org.linkedin.glu.provisioner.impl.planner
[Groovy] Class InstallationsDelta

java.lang.Object
  org.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

InstallationsDelta(java.lang.Object args)


InstallationsDelta

InstallationsDelta(Installation first, Installation second)


 
Method Detail

areSameProps

boolean areSameProps()
Return if the properties of the two installations are the same


areSameProps

boolean areSameProps(java.lang.Object excludes)
Return if the properties of the two installations are the same
Parameters:
excludes - an array of keys to exclude from the comparison


getFirst

Installation getFirst()


getId

final java.lang.String getId()
Return the id of the two installations


getModifiedProps

java.util.Map getModifiedProps()
Return the map of properties that differ between the two installations. If there is no difference (that is, {
link:
#areSameProps() is 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.


getSecond

Installation getSecond()


isInstall

java.lang.Boolean isInstall()
Return if the delta represents a new installation


isSame

boolean isSame(java.lang.String field)
Generic call to compare 2 fields


isSameHost

boolean isSameHost()
Return if the host of the two installations is the same


isSameInstallation

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. Also two installations are considered to be the same if the only difference in their parents is the properties


isSameInstallation

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. Also two installations are considered to be the same if the only difference in their parents is the properties


isSameMount

boolean isSameMount()
Return if the mount point of the two installations is the same


isSameName

boolean isSameName()
Return if the name of the two installations is the same


isSameParent

boolean isSameParent()
Return if the parent of the two installations is the same


isSameScript

boolean isSameScript()
Return if the script used by the two installations is the same


isSameState

boolean isSameState()
Return if the state of the installations is the same


isUninstall

java.lang.Boolean isUninstall()
Return if the delta represents an installation to remove


isUpdate

java.lang.Boolean isUpdate()
Return if the delta represents an update in an existing installation


 

Groovy Documentation