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


java.lang.Object
   com.sun.jbi.framework.ScaffoldRegistry

ScaffoldRegistry
public class ScaffoldRegistry implements com.sun.jbi.management.registry.Registry,com.sun.jbi.management.registry.Updater,com.sun.jbi.ComponentQuery(Code)
Scaffolded registry implementation to allow unit testing of the framework.
author:
   Sun Microsystems, Inc.


Field Summary
 ComponentRegistrymCompReg
     ComponentRegistry handle.
 EnvironmentContextmContext
     EnvironmentContext handle.

Constructor Summary
 ScaffoldRegistry(EnvironmentContext context)
     Constructor.

Method Summary
public  voidaddCluster(String clusterNameRef)
     Add a cluster name.
public  voidaddComponent(ComponentInfo componentInfo)
     Add a component to the runtime target.
public  voidaddComponent(String targetName, ComponentInfo componentInfo)
     Add a component to a given target.
public  voidaddComponent(String componentName, String fileName, Calendar timestamp)
    
public  voidaddComponentApplicationConfiguration(String componentName, Properties appConfig)
     Add a named application configuration to the registry for the component for the implicit runtime target.
public  voidaddComponentApplicationConfiguration(String componentName, String targetName, Properties appConfig)
     Add a named application configuration to the registry for the component for the specified runtime target.
public  voidaddComponentApplicationVariables(String componentName, com.sun.jbi.management.ComponentInfo.Variable[] appVars)
     Add a set of application variables to the registry for the runtime target.
public  voidaddComponentApplicationVariables(String componentName, String targetName, com.sun.jbi.management.ComponentInfo.Variable[] appVars)
     Add a set of application variables to the registry for the specified target.
public  voidaddServer(String serverNameRef)
     Add a server name.
public  voidaddServiceAssembly(String saName, String fileName, Calendar timestamp)
     Add a service assembly to the domain.
public  voidaddServiceAssembly(String saName)
    
public  voidaddServiceAssembly(String targetName, String saName)
     Add a service assembly to a given target.
public  voidaddServiceUnitToComponent(String componentName, ServiceUnitInfo suInfo)
     Add a ServiceUnit to a Component for the runtime target.
public  voidaddServiceUnitToComponent(String targetName, String componentName, ServiceUnitInfo suInfo)
     Add a ServiceUnit to a Component.
public  voidaddSharedLibrary(ComponentInfo sharedLibraryInfo)
     Add a shared library to the runtime's target.
public  voidaddSharedLibrary(String targetName, ComponentInfo sharedLibraryInfo)
     Add a shared library to a given target.
public  voidaddSharedLibrary(String slName, String fileName, Calendar timestamp)
    
public  voidcommit()
     Commit the changes to the registry.
public  voiddeleteAttribute(ConfigurationCategory type, String name)
     Delete the named attribute from the category if it exists, for the implicit target The attribute is deleted only if it is overriden for the target, if target is "domain" the attribute is not deleted.
public  voiddeleteAttribute(String target, ConfigurationCategory type, String name)
     Delete the named attribute from the category if it exists, for the implicit target The attribute is deleted only if it is overriden for the target, if target is "domain" the attribute is not deleted.
public  voiddeleteComponentApplicationConfiguration(String componentName, String appConfigName)
    
public  voiddeleteComponentApplicationConfiguration(String componentName, String targetName, String appConfigName)
    
public  voiddeleteComponentApplicationVariables(String componentName, String[] names)
     Delete a set of application variables from the registry for the runtime target.
public  voiddeleteComponentApplicationVariables(String componentName, String targetName, String[] names)
     Add a set of application variables to the registry for the specified target.
public  voiddestroy()
     destroy the single instance.
public  List<String>getComponentIds(ComponentType type)
     Get a list of component IDs of the specified type.
Parameters:
  type - The type of component for which the IDs are requested.Can be one of: ComponentType.BINDING, ComponentType.ENGINE,ComponentType.SHARED_LIBRARY, ComponentType.BINDINGS_AND_ENGINES, orComponentType.ALL.
public  List<String>getComponentIds(ComponentType type, ComponentState status)
     Get a list of component IDs of the specified type, with the specified status.
Parameters:
  type - The type of component for which the IDs are requested.
Parameters:
  status - The status for which the IDs are requested.
public  ComponentInfogetComponentInfo(String componentName)
     Look up a component using its unique name.
Parameters:
  componentName - the unique name of the component.
public  ComponentQuerygetComponentQuery(String targetName)
     Get a ComponentQuery instance for a given target.
Parameters:
  targetName - the name identifying the target.
public  ComponentQuerygetComponentQuery()
     Get the ComponentQuery specific to the target of the instance.
public  List<String>getDependentComponentIds(String sharedLibraryName)
     Return a list of all component names dependent upon the specified Shared Library.
Parameters:
  sharedLibraryName - - the unique name of the Shared Library.
public  com.sun.jbi.management.registry.GenericQuerygetGenericQuery()
     Get a Generic Query Instance.
public  StringgetProperty(String propName)
     Get a registry property.
public  com.sun.jbi.management.registry.RegistrySpecgetRegistrySpec()
     Get the Registry Specification.
public  com.sun.jbi.management.repository.RepositorygetRepository()
     Get the Repository the registry instance uses.
public  ServiceAssemblyQuerygetServiceAssemblyQuery(String targetName)
     Get a ServiceAssemblyQuery instance for a given target
Parameters:
  targetName - the name identifying the target.
public  ServiceAssemblyQuerygetServiceAssemblyQuery()
     Get the ServiceAssemblyQuery specific to the target of the instance.
public  ComponentInfogetSharedLibraryInfo(String sharedLibraryName)
     Look up a Shared Library using its unique name.
Parameters:
  sharedLibraryName - the unique name of the Shared Library.
public  ComponentStategetStatus(String componentName)
     Get the current status of a Binding Component or Service Engine.
public  com.sun.jbi.management.registry.UpdatergetUpdater()
     Get the Updater instance to be used for updating the Registry.
public  voidremoveCluster(String clusterNameRef)
     Remove a cluster name.
public  voidremoveComponent(String componentName)
     Remove a component from the runtime's target.
public  voidremoveComponent(String targetName, String componentName)
     Remove a component from a given target.
public  voidremoveServer(String serverNameRef)
     Remove a server name.
public  voidremoveServiceAssembly(String serviceAssemblyName)
     Remove a service assembly from a given target.
public  voidremoveServiceAssembly(String targetName, String serviceAssemblyName)
     Remove a service assembly from a given target.
public  voidremoveServiceUnitFromComponent(String componentName, String suName)
     Remove a ServiceUnit from a Component for the runtime target.
public  voidremoveServiceUnitFromComponent(String targetName, String componentName, String suName)
     Remove a ServiceUnit from a Component.
public  voidremoveSharedLibrary(String sharedLibraryName)
    
public  voidremoveSharedLibrary(String targetName, String sharedLibraryName)
     Remove a shared library from a given target.
public  voidsetAttribute(ConfigurationCategory type, String name, String value)
     Set the value of a configuration attribute belonging to the specified category, for the runtime target.
public  voidsetAttribute(String targetName, ConfigurationCategory type, String name, String value)
     Get the value of a configuration attribute belonging to the specified category, for the runtime target.
public  voidsetComponentAttribute(String componentName, String name, String value)
     Set the value of a configuration attribute for a component installed on a target for the runtime target.
public  voidsetComponentAttribute(String componentName, String targetName, String name, String value)
    
public  voidsetComponentAttributes(String componentName, Properties props)
     Set the value of a configuration attribute for a component installed on a target for the runtime target.
public  voidsetComponentAttributes(String componentName, String targetName, Properties props)
    
public  voidsetComponentFileName(String fileName, String componentName)
     Set the file name for the domain component.
public  voidsetComponentProperties(String targetName, Map<String, String> state, String componentName)
     Set the properties of a component in a server/cluster.
Parameters:
  targetName - either the server-name or cluster-name, this operationis a no-op when target = domain.
Parameters:
  componentName - the component name
Parameters:
  props - the properties to set.
public  voidsetComponentState(ComponentState state, String componentName)
     Set the state of a component for the target at runtime.
Parameters:
  componentName - the component name
Parameters:
  state - the state to set.
public  voidsetComponentState(String targetName, ComponentState state, String componentName)
     Set the state of a component in a server/cluster.
Parameters:
  targetName - either the server-name or cluster-name
Parameters:
  componentName - the component name
Parameters:
  state - the state to set.
public  voidsetComponentUpgradeNumber(String componentName, java.math.BigInteger upgradeNumber)
    
public  voidsetServiceAssemblyFileName(String fileName, String saName)
     Set the file name for the domain service assembly.
public  voidsetServiceAssemblyState(ServiceAssemblyState state, String saName)
     Set the state of a ServiceAssembly for the runtime target.
public  voidsetServiceAssemblyState(String targetName, ServiceAssemblyState state, String saName)
     Set the state of a ServiceAssembly in a server / cluster.
public  voidsetServiceUnitState(ServiceUnitState state, String componentName, String suName)
     Set the state of a ServiceUnit for the runtime target.
Parameters:
  componentName - the component name
Parameters:
  suName - the service unit name
Parameters:
  state - the state to set.
public  voidsetServiceUnitState(String targetName, ServiceUnitState state, String componentName, String suName)
     Set the state of a ServiceUnit in a server / cluster.
Parameters:
  targetName - either the value 'domain', 'server' or theserver-name or cluster-name.
Parameters:
  componentName - the component name
Parameters:
  suName - the service unit name
Parameters:
  state - the state to set.
public  voidsetSharedLibraryFileName(String fileName, String slName)
     Set the file name for the domain shared library.
public  ByteArrayInputStreamsnapshot()
     Commit the changes to the registry.
public  voidupdateComponentApplicationConfiguration(String componentName, Properties appConfig)
     Update a named application configuration set on a component for the implicit runtime target.
public  voidupdateComponentApplicationConfiguration(String componentName, String targetName, Properties appConfig)
     Update a named application configuration set on a component for the specified runtime target.
public  voidupdateComponentApplicationVariables(String componentName, com.sun.jbi.management.ComponentInfo.Variable[] appVars)
     Update a set of application variables to the registry for the runtime target.
public  voidupdateComponentApplicationVariables(String componentName, String targetName, com.sun.jbi.management.ComponentInfo.Variable[] appVars)
     Updated a set of application variables to the registry for the specified target.

Field Detail
mCompReg
ComponentRegistry mCompReg(Code)
ComponentRegistry handle.



mContext
EnvironmentContext mContext(Code)
EnvironmentContext handle.




Constructor Detail
ScaffoldRegistry
ScaffoldRegistry(EnvironmentContext context)(Code)
Constructor.
Parameters:
  the - instance of the EnvironmentContext for testing.




Method Detail
addCluster
public void addCluster(String clusterNameRef) throws RegistryException(Code)
Add a cluster name.
Parameters:
  clusterNameRef - the cluster name to be added
throws:
  RegistryException - on errors



addComponent
public void addComponent(ComponentInfo componentInfo) throws RegistryException(Code)
Add a component to the runtime target.
Parameters:
  componentInfo - the component instance
throws:
  RegistryException - on errors



addComponent
public void addComponent(String targetName, ComponentInfo componentInfo) throws RegistryException(Code)
Add a component to a given target.
Parameters:
  targetName - {'domain', 'server', "instance-name", "cluster-name"}
Parameters:
  componentInfo - the component instance
throws:
  RegistryException - on errors



addComponent
public void addComponent(String componentName, String fileName, Calendar timestamp) throws RegistryException(Code)
Add a domain component
Parameters:
  componentName - the name of the component
Parameters:
  fileName - the component archive file name
throws:
  RegistryException - on errors



addComponentApplicationConfiguration
public void addComponentApplicationConfiguration(String componentName, Properties appConfig) throws RegistryException(Code)
Add a named application configuration to the registry for the component for the implicit runtime target.
Parameters:
  componentName - component identification
Parameters:
  appConfig - named application configuration represented as properties
exception:
  RegistryException - on errors in adding the application configuration.



addComponentApplicationConfiguration
public void addComponentApplicationConfiguration(String componentName, String targetName, Properties appConfig) throws RegistryException(Code)
Add a named application configuration to the registry for the component for the specified runtime target.
Parameters:
  componentName - component identification
Parameters:
  appConfig - named application configuration represented as properties
Parameters:
  targetName - target name
exception:
  RegistryException - on errors in adding the application configuration.



addComponentApplicationVariables
public void addComponentApplicationVariables(String componentName, com.sun.jbi.management.ComponentInfo.Variable[] appVars) throws RegistryException(Code)
Add a set of application variables to the registry for the runtime target.
Parameters:
  appVars - - list of application variables to be added to the registry
exception:
  RegistryException - on errors in adding the application variables.



addComponentApplicationVariables
public void addComponentApplicationVariables(String componentName, String targetName, com.sun.jbi.management.ComponentInfo.Variable[] appVars) throws RegistryException(Code)
Add a set of application variables to the registry for the specified target.
Parameters:
  appVars - - list of application variables to be added to the registry
Parameters:
  targetName - - target to be updated
exception:
  RegistryException - on errors in adding the application variables.



addServer
public void addServer(String serverNameRef) throws RegistryException(Code)
Add a server name.
Parameters:
  serverNameRef - the server name to be added
throws:
  RegistryException - on errors



addServiceAssembly
public void addServiceAssembly(String saName, String fileName, Calendar timestamp) throws RegistryException(Code)
Add a service assembly to the domain.
Parameters:
  saName - the service assembly name
Parameters:
  fileName - the service assembly archive name
throws:
  RegistryException - on errors



addServiceAssembly
public void addServiceAssembly(String saName) throws RegistryException(Code)
Add a service assembly to he runtime's target
Parameters:
  saName - - service assembly name
throws:
  RegistryException - on errors



addServiceAssembly
public void addServiceAssembly(String targetName, String saName) throws RegistryException(Code)
Add a service assembly to a given target. If target = DOMAIN, then a simple entry is created with the assembly name. If the target = SERVER / CLUSTER a service-assembly-ref is added.
Parameters:
  targetName - - {'domain', 'server', "instance-name", "cluster-name"}
Parameters:
  saName - - service assembly name
throws:
  RegistryException - on errors



addServiceUnitToComponent
public void addServiceUnitToComponent(String componentName, ServiceUnitInfo suInfo) throws RegistryException(Code)
Add a ServiceUnit to a Component for the runtime target.
Parameters:
  suInfo - the ServiceUnitInfo
Parameters:
  componentName - the component name
throws:
  RegistryException - on errors



addServiceUnitToComponent
public void addServiceUnitToComponent(String targetName, String componentName, ServiceUnitInfo suInfo) throws RegistryException(Code)
Add a ServiceUnit to a Component.
Parameters:
  suInfo - the ServiceUnitInfo
Parameters:
  targetName - either the value 'domain', 'server' or theserver-name or cluster-name.
Parameters:
  componentName - the component name
throws:
  RegistryException - on errors



addSharedLibrary
public void addSharedLibrary(ComponentInfo sharedLibraryInfo) throws RegistryException(Code)
Add a shared library to the runtime's target.
Parameters:
  ComponentInfo - the shared library instance
throws:
  RegistryException - on errors



addSharedLibrary
public void addSharedLibrary(String targetName, ComponentInfo sharedLibraryInfo) throws RegistryException(Code)
Add a shared library to a given target. If target = DOMAIN, then a simple entry is created with the library name. If the target = SERVER / CLUSTER a shared-library-ref is added.
Parameters:
  targetName - {'domain', 'server', "instance-name", "cluster-name"}
Parameters:
  ComponentInfo - the shared library instance
throws:
  RegistryException - on errors



addSharedLibrary
public void addSharedLibrary(String slName, String fileName, Calendar timestamp) throws RegistryException(Code)
Add a domain shared library
Parameters:
  slName - the name of the shared library
Parameters:
  fileName - the shared library archive file name
throws:
  RegistryException - on errors



commit
public void commit() throws RegistryException(Code)
Commit the changes to the registry.



deleteAttribute
public void deleteAttribute(ConfigurationCategory type, String name) throws RegistryException(Code)
Delete the named attribute from the category if it exists, for the implicit target The attribute is deleted only if it is overriden for the target, if target is "domain" the attribute is not deleted.
Parameters:
  type - - configuration category
Parameters:
  name - - identification for the attribute
exception:
  RegistryException - on errors in getting the attribute value



deleteAttribute
public void deleteAttribute(String target, ConfigurationCategory type, String name) throws RegistryException(Code)
Delete the named attribute from the category if it exists, for the implicit target The attribute is deleted only if it is overriden for the target, if target is "domain" the attribute is not deleted.
Parameters:
  target - - target name
Parameters:
  type - - configuration category
Parameters:
  name - - identification for the attribute
exception:
  RegistryException - on errors in getting the attribute value



deleteComponentApplicationConfiguration
public void deleteComponentApplicationConfiguration(String componentName, String appConfigName) throws RegistryException(Code)
Delete a named application configuration
Parameters:
  appConfigName - name of the application configuration to delete.
Parameters:
  componentName - component identification
exception:
  RegistryException - on errors in deleting the application configuration.



deleteComponentApplicationConfiguration
public void deleteComponentApplicationConfiguration(String componentName, String targetName, String appConfigName) throws RegistryException(Code)
Delete a named application configuration
Parameters:
  componentName - component identification
Parameters:
  targetName - target name
Parameters:
  appConfigName - the name of the configuration to be deleted.
exception:
  RegistryException - on errors in deleting the application configuration.



deleteComponentApplicationVariables
public void deleteComponentApplicationVariables(String componentName, String[] names) throws RegistryException(Code)
Delete a set of application variables from the registry for the runtime target.
Parameters:
  appVars - - list of application variables to be deleted from the registry
Parameters:
  names - - the names of the variables to be deleted.
exception:
  RegistryException - on errors in deleting the application variables.



deleteComponentApplicationVariables
public void deleteComponentApplicationVariables(String componentName, String targetName, String[] names) throws RegistryException(Code)
Add a set of application variables to the registry for the specified target.
Parameters:
  appVars - - list of application variables to be deleted from the registry
Parameters:
  targetName - - target to be updated
Parameters:
  names - - the names of the variables to be deleted.
exception:
  RegistryException - on errors in deleting the application variables.



destroy
public void destroy()(Code)
destroy the single instance.



getComponentIds
public List<String> getComponentIds(ComponentType type)(Code)
Get a list of component IDs of the specified type.
Parameters:
  type - The type of component for which the IDs are requested.Can be one of: ComponentType.BINDING, ComponentType.ENGINE,ComponentType.SHARED_LIBRARY, ComponentType.BINDINGS_AND_ENGINES, orComponentType.ALL. A list of Strings containing the component IDs.



getComponentIds
public List<String> getComponentIds(ComponentType type, ComponentState status)(Code)
Get a list of component IDs of the specified type, with the specified status.
Parameters:
  type - The type of component for which the IDs are requested.
Parameters:
  status - The status for which the IDs are requested. Can be one of {LOADED, SHUTDOWN, STOPPED, STARTED} A list of Strings containing the component IDs. If no componentswere found, the list is empty.



getComponentInfo
public ComponentInfo getComponentInfo(String componentName)(Code)
Look up a component using its unique name.
Parameters:
  componentName - the unique name of the component. the ComponentInfo instance containing all runtime informationabout the component or null if no component was found with the specifiedname.



getComponentQuery
public ComponentQuery getComponentQuery(String targetName) throws RegistryException(Code)
Get a ComponentQuery instance for a given target.
Parameters:
  targetName - the name identifying the target. an instance of ComponentQuery.
throws:
  RegistryException - on errors.



getComponentQuery
public ComponentQuery getComponentQuery() throws RegistryException(Code)
Get the ComponentQuery specific to the target of the instance. an instance of ComponentQuery.
throws:
  RegistryException - on errors.



getDependentComponentIds
public List<String> getDependentComponentIds(String sharedLibraryName)(Code)
Return a list of all component names dependent upon the specified Shared Library.
Parameters:
  sharedLibraryName - - the unique name of the Shared Library. A list containing the unique names of all components thatdepend upon the Shared Library.



getGenericQuery
public com.sun.jbi.management.registry.GenericQuery getGenericQuery() throws RegistryException(Code)
Get a Generic Query Instance. an instance of GenericQuery.
throws:
  RegistryException - on errors.



getProperty
public String getProperty(String propName)(Code)
Get a registry property.



getRegistrySpec
public com.sun.jbi.management.registry.RegistrySpec getRegistrySpec()(Code)
Get the Registry Specification.



getRepository
public com.sun.jbi.management.repository.Repository getRepository()(Code)
Get the Repository the registry instance uses.



getServiceAssemblyQuery
public ServiceAssemblyQuery getServiceAssemblyQuery(String targetName) throws RegistryException(Code)
Get a ServiceAssemblyQuery instance for a given target
Parameters:
  targetName - the name identifying the target. an instance of ServiceAssemblyQuery.
throws:
  RegistryException - on errors.



getServiceAssemblyQuery
public ServiceAssemblyQuery getServiceAssemblyQuery() throws RegistryException(Code)
Get the ServiceAssemblyQuery specific to the target of the instance. an instance of ServiceAssemblyQuery.
throws:
  RegistryException - on errors.



getSharedLibraryInfo
public ComponentInfo getSharedLibraryInfo(String sharedLibraryName)(Code)
Look up a Shared Library using its unique name.
Parameters:
  sharedLibraryName - the unique name of the Shared Library. the ComponentInfo instance containing all runtime informationabout the Shared Library or null if no Shared Library was found with thespecified name.



getStatus
public ComponentState getStatus(String componentName) throws javax.jbi.JBIException(Code)
Get the current status of a Binding Component or Service Engine. the current status of the BC or SE.
throws:
  javax.jbi.JBIException - if the component name is not found.



getUpdater
public com.sun.jbi.management.registry.Updater getUpdater() throws RegistryException(Code)
Get the Updater instance to be used for updating the Registry. an instance of the Updater to be used to manipulate ( create / delete / modify ) contents of the registry.
throws:
  RegistryException - if problems are encountered in creatinga Updater.



removeCluster
public void removeCluster(String clusterNameRef) throws RegistryException(Code)
Remove a cluster name.
Parameters:
  clusterNameRef - the cluster name to be removed
throws:
  RegistryException - on errors



removeComponent
public void removeComponent(String componentName) throws RegistryException(Code)
Remove a component from the runtime's target.
Parameters:
  componentName - the component name
throws:
  RegistryException - on errors



removeComponent
public void removeComponent(String targetName, String componentName) throws RegistryException(Code)
Remove a component from a given target.
Parameters:
  targetName - {'domain', 'server', "instance-name", "cluster-name"}
Parameters:
  componentName - the component name
throws:
  RegistryException - on errors



removeServer
public void removeServer(String serverNameRef) throws RegistryException(Code)
Remove a server name.
Parameters:
  serverNameRef - the server name to be removed
throws:
  RegistryException - on errors



removeServiceAssembly
public void removeServiceAssembly(String serviceAssemblyName) throws RegistryException(Code)
Remove a service assembly from a given target.
Parameters:
  serviceAssemblyName - the service assembly name
throws:
  RegistryException - on errors



removeServiceAssembly
public void removeServiceAssembly(String targetName, String serviceAssemblyName) throws RegistryException(Code)
Remove a service assembly from a given target.
Parameters:
  serviceAssemblyName - - service assembly name
Parameters:
  targetName - - {'domain', 'server', "instance-name", "cluster-name"}
throws:
  RegistryException - on errors



removeServiceUnitFromComponent
public void removeServiceUnitFromComponent(String componentName, String suName) throws RegistryException(Code)
Remove a ServiceUnit from a Component for the runtime target.
Parameters:
  suName - the service unit name
Parameters:
  componentName - the component name
throws:
  RegistryException - on errors



removeServiceUnitFromComponent
public void removeServiceUnitFromComponent(String targetName, String componentName, String suName) throws RegistryException(Code)
Remove a ServiceUnit from a Component.
Parameters:
  suName - the service unit name
Parameters:
  targetName - the server-name or cluster-name.
Parameters:
  componentName - the component name
throws:
  RegistryException - on errors



removeSharedLibrary
public void removeSharedLibrary(String sharedLibraryName) throws RegistryException(Code)
Remove a shared library from the runtime's target
Parameters:
  sharedLibraryName - the shared library name
throws:
  RegistryException - on errors



removeSharedLibrary
public void removeSharedLibrary(String targetName, String sharedLibraryName) throws RegistryException(Code)
Remove a shared library from a given target.
Parameters:
  targetName - {'domain', 'server', "instance-name", "cluster-name"}
Parameters:
  sharedLibraryName - the shared library name
throws:
  RegistryException - on errors



setAttribute
public void setAttribute(ConfigurationCategory type, String name, String value) throws RegistryException(Code)
Set 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
Parameters:
  value - - string representation of the attribute value
exception:
  RegistryException - on errors in getting the attribute value



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



setComponentAttribute
public void setComponentAttribute(String componentName, String name, String value) throws RegistryException(Code)
Set the value of a configuration attribute for a component installed on a target for the runtime target.
Parameters:
  name - - identification for the attribute
Parameters:
  value - - string representation of the attribute value
Parameters:
  componentName - - identification for the component
exception:
  RegistryException - on errors in getting the attribute value



setComponentAttribute
public void setComponentAttribute(String componentName, String targetName, String name, String value) throws RegistryException(Code)
Set the value of a configuration attribute for a component installed on a target,
Parameters:
  targetName - - target instance/cluster name.
Parameters:
  name - - identification for the attribute
Parameters:
  value - - string representation of the attribute value
Parameters:
  componentName - - identification for the component
exception:
  RegistryException - on errors in getting the attribute value



setComponentAttributes
public void setComponentAttributes(String componentName, Properties props) throws RegistryException(Code)
Set the value of a configuration attribute for a component installed on a target for the runtime target.
Parameters:
  props - - properties to set
Parameters:
  componentName - - identification for the component
exception:
  RegistryException - on errors in getting the attribute value



setComponentAttributes
public void setComponentAttributes(String componentName, String targetName, Properties props) throws RegistryException(Code)
Set the value of a configuration attribute for a component installed on a target,
Parameters:
  targetName - - target instance/cluster name.
Parameters:
  props - - properties to set
Parameters:
  componentName - - identification for the component
exception:
  RegistryException - on errors in getting the attribute value



setComponentFileName
public void setComponentFileName(String fileName, String componentName) throws RegistryException(Code)
Set the file name for the domain component.
Parameters:
  fileName - the name of the component archive
Parameters:
  componentName - the component name



setComponentProperties
public void setComponentProperties(String targetName, Map<String, String> state, String componentName) throws RegistryException(Code)
Set the properties of a component in a server/cluster.
Parameters:
  targetName - either the server-name or cluster-name, this operationis a no-op when target = domain.
Parameters:
  componentName - the component name
Parameters:
  props - the properties to set.
throws:
  RegistryException - on errors



setComponentState
public void setComponentState(ComponentState state, String componentName) throws RegistryException(Code)
Set the state of a component for the target at runtime.
Parameters:
  componentName - the component name
Parameters:
  state - the state to set.
throws:
  RegistryException - on errors



setComponentState
public void setComponentState(String targetName, ComponentState state, String componentName) throws RegistryException(Code)
Set the state of a component in a server/cluster.
Parameters:
  targetName - either the server-name or cluster-name
Parameters:
  componentName - the component name
Parameters:
  state - the state to set.
throws:
  RegistryException - on errors



setComponentUpgradeNumber
public void setComponentUpgradeNumber(String componentName, java.math.BigInteger upgradeNumber) throws RegistryException(Code)
This method is used to set the upgrade-number attribute in the domain level entry for a component
Parameters:
  componentName - the component name
Parameters:
  upgradeNumber - the update number
throws:
  RegistryException - if the update number could not be set



setServiceAssemblyFileName
public void setServiceAssemblyFileName(String fileName, String saName) throws RegistryException(Code)
Set the file name for the domain service assembly.
Parameters:
  fileName - the name of the service assembly archive
Parameters:
  saName - the service assembly name



setServiceAssemblyState
public void setServiceAssemblyState(ServiceAssemblyState state, String saName) throws RegistryException(Code)
Set the state of a ServiceAssembly for the runtime target.
Parameters:
  state - - the state to set.
Parameters:
  saName - - the service assembly name
throws:
  RegistryException - on errors



setServiceAssemblyState
public void setServiceAssemblyState(String targetName, ServiceAssemblyState state, String saName) throws RegistryException(Code)
Set the state of a ServiceAssembly in a server / cluster.
Parameters:
  targetName - - either the value 'domain', 'server' or theserver-name or cluster-name.
Parameters:
  saName - - service assembly name
Parameters:
  state - - the state to set.
throws:
  RegistryException - on errors



setServiceUnitState
public void setServiceUnitState(ServiceUnitState state, String componentName, String suName) throws RegistryException(Code)
Set the state of a ServiceUnit for the runtime target.
Parameters:
  componentName - the component name
Parameters:
  suName - the service unit name
Parameters:
  state - the state to set.
throws:
  RegistryException - on errors



setServiceUnitState
public void setServiceUnitState(String targetName, ServiceUnitState state, String componentName, String suName) throws RegistryException(Code)
Set the state of a ServiceUnit in a server / cluster.
Parameters:
  targetName - either the value 'domain', 'server' or theserver-name or cluster-name.
Parameters:
  componentName - the component name
Parameters:
  suName - the service unit name
Parameters:
  state - the state to set.
throws:
  RegistryException - on errors



setSharedLibraryFileName
public void setSharedLibraryFileName(String fileName, String slName) throws RegistryException(Code)
Set the file name for the domain shared library.
Parameters:
  fileName - the name of the shared library archive
Parameters:
  slName - the shared library name



snapshot
public ByteArrayInputStream snapshot() throws RegistryException(Code)
Commit the changes to the registry.



updateComponentApplicationConfiguration
public void updateComponentApplicationConfiguration(String componentName, Properties appConfig) throws RegistryException(Code)
Update a named application configuration set on a component for the implicit runtime target.
Parameters:
  componentName - component identification
Parameters:
  appConfig - named application configuration represented as properties
exception:
  RegistryException - on errors in updating the application configuration.



updateComponentApplicationConfiguration
public void updateComponentApplicationConfiguration(String componentName, String targetName, Properties appConfig) throws RegistryException(Code)
Update a named application configuration set on a component for the specified runtime target.
Parameters:
  componentName - component identification
Parameters:
  appConfig - named application configuration represented as properties
Parameters:
  targetName - target name
exception:
  RegistryException - on errors in updating the application configuration.



updateComponentApplicationVariables
public void updateComponentApplicationVariables(String componentName, com.sun.jbi.management.ComponentInfo.Variable[] appVars) throws RegistryException(Code)
Update a set of application variables to the registry for the runtime target.
Parameters:
  appVars - - list of application variables to be updated
exception:
  RegistryException - on errors in updating the application variables.



updateComponentApplicationVariables
public void updateComponentApplicationVariables(String componentName, String targetName, com.sun.jbi.management.ComponentInfo.Variable[] appVars) throws RegistryException(Code)
Updated a set of application variables to the registry for the specified target.
Parameters:
  appVars - - list of application variables to be updated
Parameters:
  targetName - - target to be updated
exception:
  RegistryException - on errors in updating the application variables.



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.