Java Doc for GenericQueryImpl.java in  » ESB » open-esb » com » sun » jbi » management » registry » xml » 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.xml 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.jbi.management.registry.xml.GenericQueryImpl

GenericQueryImpl
public class GenericQueryImpl implements com.sun.jbi.management.registry.GenericQuery(Code)
This class encapsulates queries which are common to all targets ( domain / server / cluster ).
author:
   Sun Microsystems, Inc.



Constructor Summary
public  GenericQueryImpl(Jbi jbi, ManagementContext mgtCtx, boolean validate, RegistryImpl registry)
    

Method Summary
public  booleandoesComponentDeployServiceAssembly(ComponentRefType componentRef, String serviceAssemblyName)
    
public  StringgetAttribute(ConfigurationCategory type, String name)
     Get the value of a configuration attribute belonging to the specified category, for the runtime target.
public  StringgetAttribute(String targetName, ConfigurationCategory type, String name)
     Get the value of a configuration attribute belonging to the specified category, for the specified target.
public  List<String>getClusters()
    
public  List<String>getClustersDeployingServiceAssembly(String serviceAssemblyName)
    
public  List<String>getClustersInstallingComponent(String componentName)
    
public  List<String>getClustersInstallingSharedLibrary(String sharedLibraryName)
    
public  DomainComponentTypegetComponent(String componentName)
    
public  ComponentRefTypegetComponent(String componentName, String targetName)
    
public  StringgetComponentArchive(String componentName)
    
public  com.sun.jbi.management.descriptor.ComponentDescriptorgetComponentDescriptor(String componentName)
     Get the wrapper for the JAXB model for the installation descriptor for a component.
public  StringgetComponentFileName(String componentName)
     Get the file name for the domain component.
public  StringgetComponentInstallationDescriptor(String componentName)
    
public  com.sun.jbi.management.descriptor.JbigetComponentJbi(String componentName)
    
public  ComponentStategetComponentState(String componentName, String targetName)
     Return the state of the component on the specified target.
public  longgetComponentTimestamp(String componentName)
     Get the timestamp for the domain component.
public  ComponentTypegetComponentType(String componentName)
    
public  java.math.BigIntegergetComponentUpgradeNumber(String componentName)
    
public  ConfigTypegetConfig(String targetName)
     Get a particular configuration for a target.
Parameters:
  targetName - - target instance/cluster name.
public  ConfigCategoryTypegetConfigCategory(String targetName, ConfigurationCategory type)
     Get a particular configuration category in a target configuration.
public  StringgetConfigName(String targetName)
    
public  InstalledComponentsListTypegetInstalledEntities(String targetName)
    
public  MapgetPropertyMap(List<PropertyType> propertyList)
    
public  List<String>getRegisteredComponents()
    
public  List<String>getRegisteredServiceAssemblies()
    
public  List<String>getRegisteredSharedLibraries()
    
public  List<String>getServers()
    
public  List<String>getServersDeployingServiceAssembly(String serviceAssemblyName)
    
public  List<String>getServersInstallingComponent(String componentName)
    
public  List<String>getServersInstallingSharedLibrary(String sharedLibraryName)
    
public  DomainEntityTypegetServiceAssembly(String saName)
    
public  ServiceAssemblyRefTypegetServiceAssembly(String saName, String targetName)
     Get the ServiceAssemblyRef for a service assembly.
public  StringgetServiceAssemblyArchive(String saName)
    
public  StringgetServiceAssemblyDeploymentDescriptor(String serviceAssemblyName)
    
public  StringgetServiceAssemblyFileName(String saName)
     Get the file name for the domain service assembly.
public  com.sun.jbi.management.descriptor.JbigetServiceAssemblyJbi(String serviceAssemblyName)
    
public  longgetServiceAssemblyTimestamp(String saName)
     Get the file name for the domain service assembly.
public  StringgetServiceUnitDeploymentDescriptor(String serviceAssemblyName, String serviceUnitName)
    
public  DomainSharedLibraryTypegetSharedLibrary(String slName)
    
public  SharedLibraryRefTypegetSharedLibrary(String slName, String targetName)
    
public  StringgetSharedLibraryArchive(String sharedLibraryName)
    
public  StringgetSharedLibraryFileName(String slName)
     Get the file name for the domain shared library.
public  StringgetSharedLibraryInstallationDescriptor(String sharedLibraryName)
    
public  com.sun.jbi.management.descriptor.JbigetSharedLibraryJbi(String sharedLibraryName)
    
public  longgetSharedLibraryTimestamp(String slName)
     Get the file name for the domain shared library.
public  booleanisAttributeOverriden(String targetName, ConfigurationCategory type, String name)
     Determine if a configuration attribute is overriden by a target.
public  booleanisComponentInstalled(String componentName)
    
public  booleanisComponentRegistered(String componentName)
    
public  booleanisGlobalConfigurationDefined()
    
public  booleanisServiceAssemblyDeployed(String serviceAssemblyName)
    
public  booleanisServiceAssemblyRegistered(String serviceAssemblyName)
     If a service assembly is registered in the registry and not in the repository it is removed from the repository.
public  booleanisSharedLibraryInstalled(String sharedLibraryName)
    
public  booleanisSharedLibraryRegistered(String sharedLibraryName)
    
public  booleanisSystemComponent(String componentName)
     This method is used to find out if this is a system component.
public  booleanisSystemSharedLibrary(String sharedLibraryName)
    
 booleanisTargetCluster(String targetName)
    
 booleanisTargetDomain(String targetName)
    
 booleanisTargetServer(String targetName)
    
public  voidremoveComponentFromCache(String componentName)
    
public  voidremoveServiceAssemblyFromCache(String serviceAssemblyName)
    
public  voidremoveSharedLibraryFromCache(String sharedLibraryName)
    


Constructor Detail
GenericQueryImpl
public GenericQueryImpl(Jbi jbi, ManagementContext mgtCtx, boolean validate, RegistryImpl registry)(Code)




Method Detail
doesComponentDeployServiceAssembly
public boolean doesComponentDeployServiceAssembly(ComponentRefType componentRef, String serviceAssemblyName) throws RegistryException(Code)



getAttribute
public String getAttribute(ConfigurationCategory type, String name) throws RegistryException(Code)
Get the value of a configuration attribute belonging to the specified category, for the runtime target.
Parameters:
  type - - configuration category
Parameters:
  name - - identification for the attribute
exception:
  RegistryException - on errors in getting the attribute value the String representation of the attributes value



getAttribute
public String getAttribute(String targetName, ConfigurationCategory type, String name) throws RegistryException(Code)
Get the value of a configuration attribute belonging to the specified category, for the specified target.
Parameters:
  targetName - - target instance/cluster name.
Parameters:
  type - - configuration category
Parameters:
  name - - identification for the attribute
exception:
  RegistryException - on errors in getting the attribute value the String representation of the attributes value



getClusters
public List<String> getClusters() throws RegistryException(Code)
a List of Clusters in the registry



getClustersDeployingServiceAssembly
public List<String> getClustersDeployingServiceAssembly(String serviceAssemblyName) throws RegistryException(Code)

Parameters:
  serviceAssemblyName - - Service Assembly name a List of all clusters deploying a service assembly.The list excludes all non-clustered servers.
throws:
  RegistryException - if a read lock cannot be acquired to access the in-memory Registry.



getClustersInstallingComponent
public List<String> getClustersInstallingComponent(String componentName) throws RegistryException(Code)

Parameters:
  componentName - - Component name a List of all clusters installing a component.
throws:
  RegistryException - if a read lock cannot be acquired to access the in-memory Registry.



getClustersInstallingSharedLibrary
public List<String> getClustersInstallingSharedLibrary(String sharedLibraryName) throws RegistryException(Code)

Parameters:
  sharedLibraryName - - Shared Library name a List of all clusters installing a shared library.
throws:
  RegistryException - if a read lock cannot be acquired to access the in-memory Registry.



getComponent
public DomainComponentType getComponent(String componentName) throws RegistryException(Code)
Search for a domain Component with the specified componentName the Component with the specified name null if not found



getComponent
public ComponentRefType getComponent(String componentName, String targetName) throws RegistryException(Code)



getComponentArchive
public String getComponentArchive(String componentName) throws RegistryException(Code)
/**
Parameters:
  componentName - - component name the filename for the associated archive
throws:
  RegistryException - if a problem exists.



getComponentDescriptor
public com.sun.jbi.management.descriptor.ComponentDescriptor getComponentDescriptor(String componentName) throws RegistryException(Code)
Get the wrapper for the JAXB model for the installation descriptor for a component.
Parameters:
  componentName - - component name the wrapper for the installation descriptor for the component.
throws:
  RegistryException - if a read lock cannot be acquired to access thein-memory Registry.



getComponentFileName
public String getComponentFileName(String componentName) throws RegistryException(Code)
Get the file name for the domain component.
Parameters:
  componentName - - component name



getComponentInstallationDescriptor
public String getComponentInstallationDescriptor(String componentName) throws RegistryException(Code)

Parameters:
  componentName - - component name the Installation descriptor for the component.
throws:
  RegistryException - if a read lock cannot be acquired to access the in-memory Registry.



getComponentJbi
public com.sun.jbi.management.descriptor.Jbi getComponentJbi(String componentName) throws RegistryException(Code)

Parameters:
  componentName - - component name the Installation descriptor for the component.
throws:
  RegistryException - if a read lock cannot be acquired to access the in-memory Registry.



getComponentState
public ComponentState getComponentState(String componentName, String targetName) throws RegistryException(Code)
Return the state of the component on the specified target.



getComponentTimestamp
public long getComponentTimestamp(String componentName) throws RegistryException(Code)
Get the timestamp for the domain component.
Parameters:
  componentName - - component name



getComponentType
public ComponentType getComponentType(String componentName) throws RegistryException(Code)



getComponentUpgradeNumber
public java.math.BigInteger getComponentUpgradeNumber(String componentName) throws RegistryException(Code)
This method is used to get the value of the attribute upgrade-number from the domain level entry for the component in the registry
Parameters:
  componentName - the componentName BigInteger the upgrade number
throws:
  RegistryException - if the upgrade number could not be retrieved



getConfig
public ConfigType getConfig(String targetName)(Code)
Get a particular configuration for a target.
Parameters:
  targetName - - target instance/cluster name. the Configuration for the target if found or null otherwise



getConfigCategory
public ConfigCategoryType getConfigCategory(String targetName, ConfigurationCategory type)(Code)
Get a particular configuration category in a target configuration.
Parameters:
  targetName - - target instance/cluster name.
Parameters:
  type - - configuration category the Configuration Category handle if found or null otherwise



getConfigName
public String getConfigName(String targetName)(Code)
the configuration name based on the target name



getInstalledEntities
public InstalledComponentsListType getInstalledEntities(String targetName) throws RegistryException(Code)



getPropertyMap
public Map getPropertyMap(List<PropertyType> propertyList)(Code)

Parameters:
  propertyList - a list of PropertyType elements the properties in a category in map keyed by the property name.



getRegisteredComponents
public List<String> getRegisteredComponents() throws RegistryException(Code)
a List of Components registered in the domain.



getRegisteredServiceAssemblies
public List<String> getRegisteredServiceAssemblies() throws RegistryException(Code)
a List of Service Assemblies registered in the domain.



getRegisteredSharedLibraries
public List<String> getRegisteredSharedLibraries() throws RegistryException(Code)
a List of Shared Libraries registered in the domain.



getServers
public List<String> getServers() throws RegistryException(Code)
a List of Servers in the registry



getServersDeployingServiceAssembly
public List<String> getServersDeployingServiceAssembly(String serviceAssemblyName) throws RegistryException(Code)

Parameters:
  serviceAssemblyName - - Service Assembly name a List of all servers deploying a service assembly.The list excludes all non-clustered servers.
throws:
  RegistryException - if a read lock cannot be acquired to access the in-memory Registry.



getServersInstallingComponent
public List<String> getServersInstallingComponent(String componentName) throws RegistryException(Code)

Parameters:
  componentName - - Component name a List of all servers installing a component.The list excludes all non-clustered servers.
throws:
  RegistryException - if a read lock cannot be acquired to access the in-memory Registry.



getServersInstallingSharedLibrary
public List<String> getServersInstallingSharedLibrary(String sharedLibraryName) throws RegistryException(Code)

Parameters:
  sharedLibraryName - - Shared Library name a List of all servers installing a shared library.The list excludes all non-clustered servers.
throws:
  RegistryException - if a read lock cannot be acquired to access the in-memory Registry.



getServiceAssembly
public DomainEntityType getServiceAssembly(String saName) throws RegistryException(Code)
Search for a domain Service Assembly with the specified saName the SharedLibrary with the specified name null if not found



getServiceAssembly
public ServiceAssemblyRefType getServiceAssembly(String saName, String targetName) throws RegistryException(Code)
Get the ServiceAssemblyRef for a service assembly.
Parameters:
  saName - - service assembly name
Parameters:
  targetName - - server/cluster name
throws:
  RegistryException - on errors



getServiceAssemblyArchive
public String getServiceAssemblyArchive(String saName) throws RegistryException(Code)

Parameters:
  saName - - service assembly name the filename for the associated archive
throws:
  RegistryException - if a problem exists.



getServiceAssemblyDeploymentDescriptor
public String getServiceAssemblyDeploymentDescriptor(String serviceAssemblyName) throws RegistryException(Code)

Parameters:
  serviceAssemblyName - - service assembly name the Installation descriptor for the component.
throws:
  RegistryException - if a read lock cannot be acquired to access the in-memory Registry.



getServiceAssemblyFileName
public String getServiceAssemblyFileName(String saName) throws RegistryException(Code)
Get the file name for the domain service assembly.
Parameters:
  saName - - service assembly name



getServiceAssemblyJbi
public com.sun.jbi.management.descriptor.Jbi getServiceAssemblyJbi(String serviceAssemblyName) throws RegistryException(Code)

Parameters:
  serviceAssemblyName - - service assembly name the Installation descriptor for the component.
throws:
  RegistryException - if a read lock cannot be acquired to access the in-memory Registry.



getServiceAssemblyTimestamp
public long getServiceAssemblyTimestamp(String saName) throws RegistryException(Code)
Get the file name for the domain service assembly.
Parameters:
  saName - - service assembly name



getServiceUnitDeploymentDescriptor
public String getServiceUnitDeploymentDescriptor(String serviceAssemblyName, String serviceUnitName) throws RegistryException(Code)

Parameters:
  serviceAssemblyName - - service assembly name
Parameters:
  serviceUnitName - - service unit name the deployment descriptor for the service unit.
throws:
  RegistryException - if a read lock cannot be acquired to access the in-memory Registry.



getSharedLibrary
public DomainSharedLibraryType getSharedLibrary(String slName) throws RegistryException(Code)
Search for a domain Shared Library with the specified slName the SharedLibrary with the specified name null if not found



getSharedLibrary
public SharedLibraryRefType getSharedLibrary(String slName, String targetName) throws RegistryException(Code)



getSharedLibraryArchive
public String getSharedLibraryArchive(String sharedLibraryName) throws RegistryException(Code)

Parameters:
  sharedLibraryName - - sharedLibrary name the filename for the associated archive
throws:
  RegistryException - if a problem exists.



getSharedLibraryFileName
public String getSharedLibraryFileName(String slName) throws RegistryException(Code)
Get the file name for the domain shared library.
Parameters:
  slName - - shared library name



getSharedLibraryInstallationDescriptor
public String getSharedLibraryInstallationDescriptor(String sharedLibraryName) throws RegistryException(Code)

Parameters:
  sharedLibraryName - - shared library name the Installation descriptor for the shared library.
throws:
  RegistryException - if a read lock cannot be acquired to access the in-memory Registry.



getSharedLibraryJbi
public com.sun.jbi.management.descriptor.Jbi getSharedLibraryJbi(String sharedLibraryName) throws RegistryException(Code)

Parameters:
  sharedLibraryName - - shared library name the Installation descriptor for the shared library.
throws:
  RegistryException - if a read lock cannot be acquired to access the in-memory Registry.



getSharedLibraryTimestamp
public long getSharedLibraryTimestamp(String slName) throws RegistryException(Code)
Get the file name for the domain shared library.
Parameters:
  slName - - shared library name



isAttributeOverriden
public boolean isAttributeOverriden(String targetName, ConfigurationCategory type, String name)(Code)
Determine if a configuration attribute is overriden by a target.
Parameters:
  targetName - - target instance/cluster name.
Parameters:
  type - - configuration category
Parameters:
  name - - identification for the attribute true if the attribute is overriden by a target



isComponentInstalled
public boolean isComponentInstalled(String componentName) throws RegistryException(Code)
true if a component is installed on one or more servers / clusters
throws:
  RegistryException - if a read lock cannot be acquired to access the in-memory Registry.



isComponentRegistered
public boolean isComponentRegistered(String componentName) throws RegistryException(Code)



isGlobalConfigurationDefined
public boolean isGlobalConfigurationDefined()(Code)
Determine if the domain configuration is present in the registry true if the domain-config is defined in the registry



isServiceAssemblyDeployed
public boolean isServiceAssemblyDeployed(String serviceAssemblyName) throws RegistryException(Code)
true if a service assembly is deployed on one or more servers / clusters
throws:
  RegistryException - if a read lock cannot be acquired to access the in-memory Registry.



isServiceAssemblyRegistered
public boolean isServiceAssemblyRegistered(String serviceAssemblyName) throws RegistryException(Code)
If a service assembly is registered in the registry and not in the repository it is removed from the repository. If a service assembly is registered in the repository and not in the registry then the service assembly is removed from the domain entry as well as any other installed entry. true if the service assembly is there in registry and repository



isSharedLibraryInstalled
public boolean isSharedLibraryInstalled(String sharedLibraryName) throws RegistryException(Code)
true if a shared library is installed on one or more servers / clusters
throws:
  RegistryException - if a read lock cannot be acquired to access the in-memory Registry.



isSharedLibraryRegistered
public boolean isSharedLibraryRegistered(String sharedLibraryName) throws RegistryException(Code)



isSystemComponent
public boolean isSystemComponent(String componentName) throws RegistryException(Code)
This method is used to find out if this is a system component. This method returns the value of system-install attribute for this component from the registry A component that has system-install set to true will have its install root under AS_INSTALL/jbi and it should not be deleted on unload of the component's uninstaller.
Parameters:
  componentName - the name of the component boolean true if system-install is true, false otherwise



isSystemSharedLibrary
public boolean isSystemSharedLibrary(String sharedLibraryName) throws RegistryException(Code)
This method is used to find out if this is a system shared library This method returns the value of system-install attribute for this shared library from the registry A shared library that has system-install set to true will have its install root under AS_INSTALL/jbi and it should not be deleted on uninstall
Parameters:
  sharedLibraryName - the name of the shared library boolean true if system-install is true, false otherwise



isTargetCluster
boolean isTargetCluster(String targetName) throws RegistryException(Code)



isTargetDomain
boolean isTargetDomain(String targetName)(Code)



isTargetServer
boolean isTargetServer(String targetName) throws RegistryException(Code)



removeComponentFromCache
public void removeComponentFromCache(String componentName)(Code)



removeServiceAssemblyFromCache
public void removeServiceAssemblyFromCache(String serviceAssemblyName)(Code)



removeSharedLibraryFromCache
public void removeSharedLibraryFromCache(String sharedLibraryName)(Code)



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.