Java Doc for RegistryDiff.java in  » ESB » open-esb » com » sun » jbi » management » registry » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ESB » open esb » com.sun.jbi.management.registry 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.jbi.management.registry.RegistryDiff

RegistryDiff
public class RegistryDiff (Code)
This class performs a logical difference between two open registry instances and maintains state information about the changes that can be queried afterwards.
author:
   Sun Microsystems, Inc.


Field Summary
 Map<String, Variable[]>mAddComponentAppVars
    
 Map<String, Map<String, Properties>>mAddComponentConfig
    
 List<String>mAddComponents
    
 List<String>mAddServiceAssemblies
    
 List<String>mAddSharedLibraries
    
 List<String>mAllMasterComponents
    
 List<String>mAllTargetComponents
    
 List<String>mChangedConfigComponents
    
 List<String>mChangedLifecycleComponents
    
 List<String>mChangedLifecycleServiceAssemblies
    
 booleanmChanges
    
 Map<String, Properties>mComponentProperties
    
 List<String>mComponentsAffectedByChanges
    
 Map<String, HashMap>mDomainConfigChanges
    
 Map<String, HashMap>mDomainConfigValues
    
 Map<String, HashMap>mInstanceConfigChanges
    
 GenericQueryImplmMasterCQuery
    
 Map<String, ComponentInfo>mMasterComponents
    
 ComponentQuerymMasterQuery
    
 ServiceAssemblyQuerymMasterSAQuery
    
 Map<String, ServiceAssemblyInfo>mMasterServiceAssemblies
    
 Map<String, ComponentInfo>mMasterSharedLibraries
    
 Map<String, String[]>mRemoveComponentAppVars
    
 Map<String, String>mRemoveComponentConfig
    
 List<String>mRemoveComponents
    
 List<String>mRemoveServiceAssemblies
    
 List<String>mRemoveSharedLibraries
    
 List<String>mReplaceComponents
    
 List<String>mReplaceServiceAssemblies
    
 List<String>mReplaceSharedLibraries
    
 List<String>mServiceAssembliesAffectedByChanges
    
 StringmTarget
    
 GenericQueryImplmTargetCQuery
    
 Map<String, ComponentInfo>mTargetComponents
    
 ComponentQuerymTargetQuery
    
 ServiceAssemblyQuerymTargetSAQuery
    
 Map<String, ServiceAssemblyInfo>mTargetServiceAssemblies
    
 Map<String, ComponentInfo>mTargetSharedLibraries
    
 List<String>mUpdateComponents
    

Constructor Summary
public  RegistryDiff(Registry master, Registry target, String targetName)
     Construct a RegistryDiff object using two given registries and the target processing entity of interest.

Method Summary
 voidanalyzeComponentConfig()
     Compute the components that need to be started to make configuration changes.
 voidanalyzeComponents()
     Analyze Components to determine if a component has been replaced.
 voidanalyzeConfigs()
     Analyze Config changes.
 voidanalyzeServiceAssemblies()
     Analyze ServiceAssemblies to determine if a service assembly has been replaced. Compute the set of service assemblies that may be effected by components/shared-libraries that have been replaced.
 voidanalyzeSharedLibraries()
     Analyze SharedLibraries to determine if a library has been replaced.
public  List<String>componentsToStartForDeploy()
     Compute the set of components that need to be started so that a deploy service assembly operation can execute.
public  List<String>componentsToStartForUndeploy()
     Compute the set of components that need to be started so that a undeploy service assembly operation can execute.
public  booleancomputeDiff()
     Perform the actual difference computation.
 voiddiffComponentAppVars()
    
 voiddiffComponentConfigs()
     Compute the actions needed to sync the config configuration changes.
 voiddiffComponentProperties()
    
 voiddiffComponents()
     Compute differences in the components.
 voiddiffConfigs()
    
 voiddiffServiceAssemblies()
     Compute differences in the service assemblies.
 voiddiffSharedLibraries()
    
public  Map<String, Variable[]>getAddComponentAppVars()
    
public  Map<String, Map<String, Properties>>getAddComponentConfigs()
    
public  List<String>getAffectedComponents()
     Get the list of components affected by other changes.
public  List<String>getAffectedServiceAssemblies()
     Get the list of service assemblies affected by other changes.
public  List<String>getChangedConfigComponents()
    
public  List<String>getChangedLifeCycleComponents()
     Get the list of components with lifecycle changes.
public  List<String>getChangedLifeCycleServiceAssemblies()
     Get the list of service assemblies with lifecycle changes.
public  Map<String, Properties>getComponentPropertyUpdates()
    
public  Map<String, String>getConfigChanges(String category)
    
public  Map<String, String>getGlobalConfigChanges(String category)
    
public  ComponentInfogetNewComponentInfo(String compName)
    
public  List<String>getNewComponents()
     Get the list of new components in the master.
public  List<String>getNewServiceAssemblies()
     Get the list of new service assemblies in the master.
public  ServiceAssemblyInfogetNewServiceAssemblyInfo(String saName)
    
public  ServiceAssemblyStategetNewServiceAssemblyState(String saName)
     Compute the state of a new service assembly (exists in master) from the state of the service units.
public  List<String>getNewSharedLibraries()
     Get the list of new shared libraries in the master.
public  ComponentInfogetNewSharedLibraryInfo(String slName)
    
public  List<String>getOldComponents()
     Get the list of old components in the target.
public  List<String>getOldServiceAssemblies()
     Get the list of old service assemblies in the target.
public  List<String>getOldSharedLibraries()
     Get the list of old shared libraries in the target.
public  Map<String, String[]>getRemoveComponentAppVars()
    
public  Map<String, String>getRemoveComponentConfigs()
    
public  List<String>getReplacedComponents()
    
public  List<String>getReplacedServiceAssemblies()
     Get the list of replaced service assemblies in the target.
public  List<String>getReplacedSharedLibraries()
     Get the list of replaced shared libraries in the target.
public  List<String>getUpdatedComponents()
    
public  StringtoString()
     Return a printable status that summarizes the changes and actions.

Field Detail
mAddComponentAppVars
Map<String, Variable[]> mAddComponentAppVars(Code)



mAddComponentConfig
Map<String, Map<String, Properties>> mAddComponentConfig(Code)



mAddComponents
List<String> mAddComponents(Code)



mAddServiceAssemblies
List<String> mAddServiceAssemblies(Code)



mAddSharedLibraries
List<String> mAddSharedLibraries(Code)



mAllMasterComponents
List<String> mAllMasterComponents(Code)



mAllTargetComponents
List<String> mAllTargetComponents(Code)



mChangedConfigComponents
List<String> mChangedConfigComponents(Code)



mChangedLifecycleComponents
List<String> mChangedLifecycleComponents(Code)



mChangedLifecycleServiceAssemblies
List<String> mChangedLifecycleServiceAssemblies(Code)



mChanges
boolean mChanges(Code)



mComponentProperties
Map<String, Properties> mComponentProperties(Code)



mComponentsAffectedByChanges
List<String> mComponentsAffectedByChanges(Code)



mDomainConfigChanges
Map<String, HashMap> mDomainConfigChanges(Code)



mDomainConfigValues
Map<String, HashMap> mDomainConfigValues(Code)



mInstanceConfigChanges
Map<String, HashMap> mInstanceConfigChanges(Code)



mMasterCQuery
GenericQueryImpl mMasterCQuery(Code)



mMasterComponents
Map<String, ComponentInfo> mMasterComponents(Code)



mMasterQuery
ComponentQuery mMasterQuery(Code)



mMasterSAQuery
ServiceAssemblyQuery mMasterSAQuery(Code)



mMasterServiceAssemblies
Map<String, ServiceAssemblyInfo> mMasterServiceAssemblies(Code)



mMasterSharedLibraries
Map<String, ComponentInfo> mMasterSharedLibraries(Code)



mRemoveComponentAppVars
Map<String, String[]> mRemoveComponentAppVars(Code)



mRemoveComponentConfig
Map<String, String> mRemoveComponentConfig(Code)



mRemoveComponents
List<String> mRemoveComponents(Code)



mRemoveServiceAssemblies
List<String> mRemoveServiceAssemblies(Code)



mRemoveSharedLibraries
List<String> mRemoveSharedLibraries(Code)



mReplaceComponents
List<String> mReplaceComponents(Code)



mReplaceServiceAssemblies
List<String> mReplaceServiceAssemblies(Code)



mReplaceSharedLibraries
List<String> mReplaceSharedLibraries(Code)



mServiceAssembliesAffectedByChanges
List<String> mServiceAssembliesAffectedByChanges(Code)



mTarget
String mTarget(Code)



mTargetCQuery
GenericQueryImpl mTargetCQuery(Code)



mTargetComponents
Map<String, ComponentInfo> mTargetComponents(Code)



mTargetQuery
ComponentQuery mTargetQuery(Code)



mTargetSAQuery
ServiceAssemblyQuery mTargetSAQuery(Code)



mTargetServiceAssemblies
Map<String, ServiceAssemblyInfo> mTargetServiceAssemblies(Code)



mTargetSharedLibraries
Map<String, ComponentInfo> mTargetSharedLibraries(Code)



mUpdateComponents
List<String> mUpdateComponents(Code)




Constructor Detail
RegistryDiff
public RegistryDiff(Registry master, Registry target, String targetName)(Code)
Construct a RegistryDiff object using two given registries and the target processing entity of interest.
Parameters:
  master - - Registry that is considered to be the reference
Parameters:
  target - - Registry that is being upgraded to be consistent with the master
Parameters:
  targetName - - The target processing entity (instance, cluster)




Method Detail
analyzeComponentConfig
void analyzeComponentConfig()(Code)
Compute the components that need to be started to make configuration changes.



analyzeComponents
void analyzeComponents()(Code)
Analyze Components to determine if a component has been replaced. Also collect ComponentInfo for future use.



analyzeConfigs
void analyzeConfigs()(Code)
Analyze Config changes. The one special case is a delete of a instance value is replayed as a setting of the instance value to the global value.



analyzeServiceAssemblies
void analyzeServiceAssemblies()(Code)
Analyze ServiceAssemblies to determine if a service assembly has been replaced. Compute the set of service assemblies that may be effected by components/shared-libraries that have been replaced. Also collect ServiceAssemblyInfo for future use.



analyzeSharedLibraries
void analyzeSharedLibraries()(Code)
Analyze SharedLibraries to determine if a library has been replaced. Also collect ComponentInfo for future use.



componentsToStartForDeploy
public List<String> componentsToStartForDeploy()(Code)
Compute the set of components that need to be started so that a deploy service assembly operation can execute. List of components name that need to be started.



componentsToStartForUndeploy
public List<String> componentsToStartForUndeploy()(Code)
Compute the set of components that need to be started so that a undeploy service assembly operation can execute. List of components name that need to be started.



computeDiff
public boolean computeDiff()(Code)
Perform the actual difference computation. indication if a difference was detected.



diffComponentAppVars
void diffComponentAppVars()(Code)



diffComponentConfigs
void diffComponentConfigs()(Code)
Compute the actions needed to sync the config configuration changes. We don't try and compute the changes at the configuration value level. If the configuration is different in any way we just delete the old configuration and apply the new one. This is most likely faster since each configuration operation is a registry commit. meaning that it should be deleted.



diffComponentProperties
void diffComponentProperties()(Code)



diffComponents
void diffComponents()(Code)
Compute differences in the components.



diffConfigs
void diffConfigs()(Code)
Compute differences in the configs



diffServiceAssemblies
void diffServiceAssemblies()(Code)
Compute differences in the service assemblies.



diffSharedLibraries
void diffSharedLibraries()(Code)
Compute differences in the shared libraries



getAddComponentAppVars
public Map<String, Variable[]> getAddComponentAppVars()(Code)



getAddComponentConfigs
public Map<String, Map<String, Properties>> getAddComponentConfigs()(Code)



getAffectedComponents
public List<String> getAffectedComponents()(Code)
Get the list of components affected by other changes. This typically means a dependent shared libaray has changed. List of components names.\



getAffectedServiceAssemblies
public List<String> getAffectedServiceAssemblies()(Code)
Get the list of service assemblies affected by other changes. This typically means a dependent component has changed. List of service assembly names.



getChangedConfigComponents
public List<String> getChangedConfigComponents()(Code)



getChangedLifeCycleComponents
public List<String> getChangedLifeCycleComponents()(Code)
Get the list of components with lifecycle changes. List of components names.\



getChangedLifeCycleServiceAssemblies
public List<String> getChangedLifeCycleServiceAssemblies()(Code)
Get the list of service assemblies with lifecycle changes. List of service assembly names.



getComponentPropertyUpdates
public Map<String, Properties> getComponentPropertyUpdates()(Code)



getConfigChanges
public Map<String, String> getConfigChanges(String category)(Code)



getGlobalConfigChanges
public Map<String, String> getGlobalConfigChanges(String category)(Code)



getNewComponentInfo
public ComponentInfo getNewComponentInfo(String compName)(Code)
Get ComponentInfo about a new Component ComponentInfo for the given component



getNewComponents
public List<String> getNewComponents()(Code)
Get the list of new components in the master. List of component names.



getNewServiceAssemblies
public List<String> getNewServiceAssemblies()(Code)
Get the list of new service assemblies in the master. List of service assemblies names.



getNewServiceAssemblyInfo
public ServiceAssemblyInfo getNewServiceAssemblyInfo(String saName)(Code)
Get ServiceAssemblyInfo about a new ServiceAssembly ComponentInfo for the given service assembly



getNewServiceAssemblyState
public ServiceAssemblyState getNewServiceAssemblyState(String saName)(Code)
Compute the state of a new service assembly (exists in master) from the state of the service units.
Parameters:
  saName - - name of the service assembly service assembly state



getNewSharedLibraries
public List<String> getNewSharedLibraries()(Code)
Get the list of new shared libraries in the master. List of shared library names.



getNewSharedLibraryInfo
public ComponentInfo getNewSharedLibraryInfo(String slName)(Code)
Get ComponentInfo about a new SharedLibrary ComponentInfo for the given shared library.



getOldComponents
public List<String> getOldComponents()(Code)
Get the list of old components in the target. List of component names.



getOldServiceAssemblies
public List<String> getOldServiceAssemblies()(Code)
Get the list of old service assemblies in the target. List of service assemblies names.



getOldSharedLibraries
public List<String> getOldSharedLibraries()(Code)
Get the list of old shared libraries in the target. List of shared library names.



getRemoveComponentAppVars
public Map<String, String[]> getRemoveComponentAppVars()(Code)



getRemoveComponentConfigs
public Map<String, String> getRemoveComponentConfigs()(Code)



getReplacedComponents
public List<String> getReplacedComponents()(Code)
Get the list of replaced components List of components names.



getReplacedServiceAssemblies
public List<String> getReplacedServiceAssemblies()(Code)
Get the list of replaced service assemblies in the target. List of shared library names.



getReplacedSharedLibraries
public List<String> getReplacedSharedLibraries()(Code)
Get the list of replaced shared libraries in the target. List of shared library names.



getUpdatedComponents
public List<String> getUpdatedComponents()(Code)
Get the list of updated components List of components names.



toString
public String toString()(Code)
Return a printable status that summarizes the changes and actions. String describing changes.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.