public class GenericQueryImpl extends Object implements GenericQuery
| Constructor and Description |
|---|
GenericQueryImpl(Jbi jbi,
ManagementContext mgtCtx,
boolean validate,
RegistryImpl registry) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doesComponentDeployServiceAssembly(ComponentRefType componentRef,
String serviceAssemblyName) |
String |
getAttribute(ConfigurationCategory type,
String name)
Get the value of a configuration attribute belonging to the
specified category, for the runtime target.
|
String |
getAttribute(String targetName,
ConfigurationCategory type,
String name)
Get the value of a configuration attribute belonging to the
specified category, for the specified target.
|
List<String> |
getClusters() |
List<String> |
getClustersDeployingServiceAssembly(String serviceAssemblyName) |
List<String> |
getClustersInstallingComponent(String componentName) |
List<String> |
getClustersInstallingSharedLibrary(String sharedLibraryName) |
DomainComponentType |
getComponent(String componentName)
Search for a domain Component with the specified componentName
|
ComponentRefType |
getComponent(String componentName,
String targetName) |
String |
getComponentArchive(String componentName)
/**
|
ComponentDescriptor |
getComponentDescriptor(String componentName)
Get the wrapper for the JAXB model for the installation descriptor for
a component.
|
String |
getComponentFileName(String componentName)
Get the file name for the domain component.
|
String |
getComponentInstallationDescriptor(String componentName) |
Jbi |
getComponentJbi(String componentName) |
ComponentState |
getComponentState(String componentName,
String targetName)
Return the state of the component on the specified target.
|
long |
getComponentTimestamp(String componentName)
Get the timestamp for the domain component.
|
ComponentType |
getComponentType(String componentName) |
BigInteger |
getComponentUpgradeNumber(String componentName)
This method is used to get the value of the attribute upgrade-number from the
domain level entry for the component in the registry
|
ConfigType |
getConfig(String targetName)
Get a particular configuration for a target.
|
ConfigCategoryType |
getConfigCategory(String targetName,
ConfigurationCategory type)
Get a particular configuration category in a target configuration.
|
String |
getConfigName(String targetName) |
InstalledComponentsListType |
getInstalledEntities(String targetName) |
Map |
getPropertyMap(List<PropertyType> propertyList) |
List<String> |
getRegisteredComponents() |
List<String> |
getRegisteredServiceAssemblies() |
List<String> |
getRegisteredSharedLibraries() |
List<String> |
getServers() |
List<String> |
getServersDeployingServiceAssembly(String serviceAssemblyName) |
List<String> |
getServersInstallingComponent(String componentName) |
List<String> |
getServersInstallingSharedLibrary(String sharedLibraryName) |
DomainEntityType |
getServiceAssembly(String saName)
Search for a domain Service Assembly with the specified saName
|
ServiceAssemblyRefType |
getServiceAssembly(String saName,
String targetName)
Get the ServiceAssemblyRef for a service assembly.
|
String |
getServiceAssemblyArchive(String saName) |
String |
getServiceAssemblyDeploymentDescriptor(String serviceAssemblyName) |
String |
getServiceAssemblyFileName(String saName)
Get the file name for the domain service assembly.
|
Jbi |
getServiceAssemblyJbi(String serviceAssemblyName) |
long |
getServiceAssemblyTimestamp(String saName)
Get the file name for the domain service assembly.
|
String |
getServiceUnitDeploymentDescriptor(String serviceAssemblyName,
String serviceUnitName) |
DomainSharedLibraryType |
getSharedLibrary(String slName)
Search for a domain Shared Library with the specified slName
|
SharedLibraryRefType |
getSharedLibrary(String slName,
String targetName) |
String |
getSharedLibraryArchive(String sharedLibraryName) |
String |
getSharedLibraryFileName(String slName)
Get the file name for the domain shared library.
|
String |
getSharedLibraryInstallationDescriptor(String sharedLibraryName) |
Jbi |
getSharedLibraryJbi(String sharedLibraryName) |
long |
getSharedLibraryTimestamp(String slName)
Get the file name for the domain shared library.
|
boolean |
isAttributeOverriden(String targetName,
ConfigurationCategory type,
String name)
Determine if a configuration attribute is overriden by a target.
|
boolean |
isComponentInstalled(String componentName) |
boolean |
isComponentRegistered(String componentName) |
boolean |
isGlobalConfigurationDefined()
Determine if the domain configuration is present in the registry
|
boolean |
isServiceAssemblyDeployed(String serviceAssemblyName) |
boolean |
isServiceAssemblyRegistered(String serviceAssemblyName)
If a service assembly is registered in the registry and not in the repository
it is removed from the repository.
|
boolean |
isSharedLibraryInstalled(String sharedLibraryName) |
boolean |
isSharedLibraryRegistered(String sharedLibraryName) |
boolean |
isSystemComponent(String componentName)
This method is used to find out if this is a schemaorg_apache_xmlbeans.system
component.
|
boolean |
isSystemSharedLibrary(String sharedLibraryName)
This method is used to find out if this is a schemaorg_apache_xmlbeans.system
shared library
This method returns the value of schemaorg_apache_xmlbeans.system-install attribute
for this shared library from the registry
A shared library that has schemaorg_apache_xmlbeans.system-install set to true will have
its install root under AS_INSTALL/jbi and it should not be
deleted on uninstall
|
void |
removeComponentFromCache(String componentName) |
void |
removeServiceAssemblyFromCache(String serviceAssemblyName) |
void |
removeSharedLibraryFromCache(String sharedLibraryName) |
public GenericQueryImpl(Jbi jbi, ManagementContext mgtCtx, boolean validate, RegistryImpl registry)
public List<String> getServersInstallingComponent(String componentName) throws RegistryException
getServersInstallingComponent in interface GenericQuerycomponentName - - Component nameRegistryException - if a read lock cannot be acquired to access the
in-memory Registry.public List<String> getServersInstallingSharedLibrary(String sharedLibraryName) throws RegistryException
getServersInstallingSharedLibrary in interface GenericQuerysharedLibraryName - - Shared Library nameRegistryException - if a read lock cannot be acquired to access the
in-memory Registry.public List<String> getServersDeployingServiceAssembly(String serviceAssemblyName) throws RegistryException
getServersDeployingServiceAssembly in interface GenericQueryserviceAssemblyName - - Service Assembly nameRegistryException - if a read lock cannot be acquired to access the
in-memory Registry.public List<String> getClustersInstallingComponent(String componentName) throws RegistryException
getClustersInstallingComponent in interface GenericQuerycomponentName - - Component nameRegistryException - if a read lock cannot be acquired to access the
in-memory Registry.public List<String> getClustersInstallingSharedLibrary(String sharedLibraryName) throws RegistryException
getClustersInstallingSharedLibrary in interface GenericQuerysharedLibraryName - - Shared Library nameRegistryException - if a read lock cannot be acquired to access the
in-memory Registry.public List<String> getClustersDeployingServiceAssembly(String serviceAssemblyName) throws RegistryException
getClustersDeployingServiceAssembly in interface GenericQueryserviceAssemblyName - - Service Assembly nameRegistryException - if a read lock cannot be acquired to access the
in-memory Registry.public String getComponentInstallationDescriptor(String componentName) throws RegistryException
getComponentInstallationDescriptor in interface GenericQuerycomponentName - - component nameRegistryException - if a read lock cannot be acquired to access the
in-memory Registry.public ComponentDescriptor getComponentDescriptor(String componentName) throws RegistryException
getComponentDescriptor in interface GenericQuerycomponentName - - component nameRegistryException - if a read lock cannot be acquired to access the
in-memory Registry.public Jbi getComponentJbi(String componentName) throws RegistryException
componentName - - component nameRegistryException - if a read lock cannot be acquired to access the
in-memory Registry.public String getSharedLibraryInstallationDescriptor(String sharedLibraryName) throws RegistryException
getSharedLibraryInstallationDescriptor in interface GenericQuerysharedLibraryName - - shared library nameRegistryException - if a read lock cannot be acquired to access the
in-memory Registry.public Jbi getSharedLibraryJbi(String sharedLibraryName) throws RegistryException
sharedLibraryName - - shared library nameRegistryException - if a read lock cannot be acquired to access the
in-memory Registry.public String getServiceAssemblyDeploymentDescriptor(String serviceAssemblyName) throws RegistryException
getServiceAssemblyDeploymentDescriptor in interface GenericQueryserviceAssemblyName - - service assembly nameRegistryException - if a read lock cannot be acquired to access the
in-memory Registry.public String getServiceUnitDeploymentDescriptor(String serviceAssemblyName, String serviceUnitName) throws RegistryException
getServiceUnitDeploymentDescriptor in interface GenericQueryserviceAssemblyName - - service assembly nameserviceUnitName - - service unit nameRegistryException - if a read lock cannot be acquired to access the
in-memory Registry.public Jbi getServiceAssemblyJbi(String serviceAssemblyName) throws RegistryException
serviceAssemblyName - - service assembly nameRegistryException - if a read lock cannot be acquired to access the
in-memory Registry.public String getServiceAssemblyArchive(String saName) throws RegistryException
getServiceAssemblyArchive in interface GenericQuerysaName - - service assembly nameRegistryException - if a problem exists.public String getComponentArchive(String componentName) throws RegistryException
getComponentArchive in interface GenericQuerycomponentName - - component nameRegistryException - if a problem exists.public String getSharedLibraryArchive(String sharedLibraryName) throws RegistryException
getSharedLibraryArchive in interface GenericQuerysharedLibraryName - - sharedLibrary nameRegistryException - if a problem exists.public boolean isComponentInstalled(String componentName) throws RegistryException
isComponentInstalled in interface GenericQueryRegistryException - if a read lock cannot be acquired to access the
in-memory Registry.public boolean isSharedLibraryInstalled(String sharedLibraryName) throws RegistryException
isSharedLibraryInstalled in interface GenericQueryRegistryException - if a read lock cannot be acquired to access the
in-memory Registry.public boolean isServiceAssemblyDeployed(String serviceAssemblyName) throws RegistryException
isServiceAssemblyDeployed in interface GenericQueryRegistryException - if a read lock cannot be acquired to access the
in-memory Registry.public List<String> getServers() throws RegistryException
getServers in interface GenericQueryRegistryExceptionpublic List<String> getClusters() throws RegistryException
getClusters in interface GenericQueryRegistryExceptionpublic void removeComponentFromCache(String componentName)
public void removeServiceAssemblyFromCache(String serviceAssemblyName)
public void removeSharedLibraryFromCache(String sharedLibraryName)
public ComponentType getComponentType(String componentName) throws RegistryException
getComponentType in interface GenericQueryRegistryExceptionpublic ComponentState getComponentState(String componentName, String targetName) throws RegistryException
RegistryExceptionpublic boolean isComponentRegistered(String componentName) throws RegistryException
isComponentRegistered in interface GenericQueryRegistryExceptionpublic boolean isSharedLibraryRegistered(String sharedLibraryName) throws RegistryException
isSharedLibraryRegistered in interface GenericQueryRegistryExceptionpublic boolean isServiceAssemblyRegistered(String serviceAssemblyName) throws RegistryException
isServiceAssemblyRegistered in interface GenericQueryRegistryExceptionpublic List<String> getRegisteredServiceAssemblies() throws RegistryException
getRegisteredServiceAssemblies in interface GenericQueryRegistryExceptionpublic List<String> getRegisteredSharedLibraries() throws RegistryException
getRegisteredSharedLibraries in interface GenericQueryRegistryExceptionpublic List<String> getRegisteredComponents() throws RegistryException
getRegisteredComponents in interface GenericQueryRegistryExceptionpublic boolean isSystemComponent(String componentName) throws RegistryException
isSystemComponent in interface GenericQuerycomponentName - the name of the componentRegistryExceptionpublic boolean isSystemSharedLibrary(String sharedLibraryName) throws RegistryException
isSystemSharedLibrary in interface GenericQuerysharedLibraryName - the name of the shared libraryRegistryExceptionpublic boolean doesComponentDeployServiceAssembly(ComponentRefType componentRef, String serviceAssemblyName) throws RegistryException
RegistryExceptionpublic DomainComponentType getComponent(String componentName) throws RegistryException
RegistryExceptionpublic ComponentRefType getComponent(String componentName, String targetName) throws RegistryException
RegistryExceptionpublic DomainSharedLibraryType getSharedLibrary(String slName) throws RegistryException
RegistryExceptionpublic SharedLibraryRefType getSharedLibrary(String slName, String targetName) throws RegistryException
RegistryExceptionpublic DomainEntityType getServiceAssembly(String saName) throws RegistryException
RegistryExceptionpublic ServiceAssemblyRefType getServiceAssembly(String saName, String targetName) throws RegistryException
saName - - service assembly nametargetName - - server/cluster nameRegistryException - on errorspublic String getComponentFileName(String componentName) throws RegistryException
getComponentFileName in interface GenericQuerycomponentName - - component nameRegistryExceptionpublic String getSharedLibraryFileName(String slName) throws RegistryException
getSharedLibraryFileName in interface GenericQueryslName - - shared library nameRegistryExceptionpublic String getServiceAssemblyFileName(String saName) throws RegistryException
getServiceAssemblyFileName in interface GenericQuerysaName - - service assembly nameRegistryExceptionpublic long getComponentTimestamp(String componentName) throws RegistryException
getComponentTimestamp in interface GenericQuerycomponentName - - component nameRegistryExceptionpublic long getSharedLibraryTimestamp(String slName) throws RegistryException
getSharedLibraryTimestamp in interface GenericQueryslName - - shared library nameRegistryExceptionpublic long getServiceAssemblyTimestamp(String saName) throws RegistryException
getServiceAssemblyTimestamp in interface GenericQuerysaName - - service assembly nameRegistryExceptionpublic InstalledComponentsListType getInstalledEntities(String targetName) throws RegistryException
RegistryExceptionpublic BigInteger getComponentUpgradeNumber(String componentName) throws RegistryException
getComponentUpgradeNumber in interface GenericQuerycomponentName - the componentNameRegistryException - if the upgrade number could not be retrievedpublic String getAttribute(ConfigurationCategory type, String name) throws RegistryException
getAttribute in interface GenericQuerytype - - configuration categoryname - - identification for the attributeRegistryException - on errors in getting the attribute valuepublic String getAttribute(String targetName, ConfigurationCategory type, String name) throws RegistryException
getAttribute in interface GenericQuerytargetName - - target instance/cluster name.type - - configuration categoryname - - identification for the attributeRegistryException - on errors in getting the attribute valuepublic boolean isGlobalConfigurationDefined()
isGlobalConfigurationDefined in interface GenericQuerypublic String getConfigName(String targetName)
public boolean isAttributeOverriden(String targetName, ConfigurationCategory type, String name)
isAttributeOverriden in interface GenericQuerytargetName - - target instance/cluster name.type - - configuration categoryname - - identification for the attributepublic Map getPropertyMap(List<PropertyType> propertyList)
propertyList - a list of PropertyType elementspublic ConfigCategoryType getConfigCategory(String targetName, ConfigurationCategory type)
targetName - - target instance/cluster name.type - - configuration categorypublic ConfigType getConfig(String targetName)
targetName - - target instance/cluster name.Copyright © 2011-2016 OpenESB Community. All Rights Reserved.