public class RegistryDiff extends Object
| Constructor and Description |
|---|
RegistryDiff(Registry master,
Registry target,
String targetName)
Construct a RegistryDiff object using two given registries and the target
processing entity of interest.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
componentsToStartForDeploy()
Compute the set of components that need to be started so that a deploy service assembly
operation can execute.
|
List<String> |
componentsToStartForUndeploy()
Compute the set of components that need to be started so that a undeploy service assembly
operation can execute.
|
boolean |
computeDiff()
Perform the actual difference computation.
|
Map<String,ComponentInfo.Variable[]> |
getAddComponentAppVars() |
Map<String,Map<String,Properties>> |
getAddComponentConfigs() |
List<String> |
getAffectedComponents()
Get the list of components affected by other changes.
|
List<String> |
getAffectedServiceAssemblies()
Get the list of service assemblies affected by other changes.
|
List<String> |
getChangedConfigComponents() |
List<String> |
getChangedLifeCycleComponents()
Get the list of components with lifecycle changes.
|
List<String> |
getChangedLifeCycleServiceAssemblies()
Get the list of service assemblies with lifecycle changes.
|
Map<String,Properties> |
getComponentPropertyUpdates() |
Map<String,String> |
getConfigChanges(String category) |
Map<String,String> |
getGlobalConfigChanges(String category) |
ComponentInfo |
getNewComponentInfo(String compName)
Get ComponentInfo about a new Component
|
List<String> |
getNewComponents()
Get the list of new components in the master.
|
List<String> |
getNewServiceAssemblies()
Get the list of new service assemblies in the master.
|
ServiceAssemblyInfo |
getNewServiceAssemblyInfo(String saName)
Get ServiceAssemblyInfo about a new ServiceAssembly
|
ServiceAssemblyState |
getNewServiceAssemblyState(String saName)
Compute the state of a new service assembly (exists in master) from the state of the service units.
|
List<String> |
getNewSharedLibraries()
Get the list of new shared libraries in the master.
|
ComponentInfo |
getNewSharedLibraryInfo(String slName)
Get ComponentInfo about a new SharedLibrary
|
List<String> |
getOldComponents()
Get the list of old components in the target.
|
List<String> |
getOldServiceAssemblies()
Get the list of old service assemblies in the target.
|
List<String> |
getOldSharedLibraries()
Get the list of old shared libraries in the target.
|
Map<String,String[]> |
getRemoveComponentAppVars() |
Map<String,String> |
getRemoveComponentConfigs() |
List<String> |
getReplacedComponents()
Get the list of replaced components
|
List<String> |
getReplacedServiceAssemblies()
Get the list of replaced service assemblies in the target.
|
List<String> |
getReplacedSharedLibraries()
Get the list of replaced shared libraries in the target.
|
List<String> |
getUpdatedComponents()
Get the list of updated components
|
String |
toString()
Return a printable status that summarizes the changes and actions.
|
public RegistryDiff(Registry master, Registry target, String targetName)
master - - Registry that is considered to be the referencetarget - - Registry that is being upgraded to be consistent with the mastertargetName - - The target processing entity (instance, cluster)public boolean computeDiff()
public List<String> componentsToStartForUndeploy()
public List<String> componentsToStartForDeploy()
public ServiceAssemblyState getNewServiceAssemblyState(String saName)
saName - - name of the service assemblypublic List<String> getNewSharedLibraries()
public ComponentInfo getNewSharedLibraryInfo(String slName)
public List<String> getOldSharedLibraries()
public List<String> getReplacedSharedLibraries()
public List<String> getReplacedServiceAssemblies()
public List<String> getNewComponents()
public ComponentInfo getNewComponentInfo(String compName)
public List<String> getOldComponents()
public List<String> getAffectedComponents()
public List<String> getUpdatedComponents()
public List<String> getReplacedComponents()
public List<String> getChangedLifeCycleComponents()
public ServiceAssemblyInfo getNewServiceAssemblyInfo(String saName)
public List<String> getNewServiceAssemblies()
public List<String> getOldServiceAssemblies()
public List<String> getAffectedServiceAssemblies()
public List<String> getChangedLifeCycleServiceAssemblies()
public Map<String,Properties> getComponentPropertyUpdates()
public Map<String,ComponentInfo.Variable[]> getAddComponentAppVars()
public Map<String,Map<String,Properties>> getAddComponentConfigs()
Copyright © 2011-2016 OpenESB Community. All Rights Reserved.