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


java.lang.Object
   com.sun.jbi.management.system.ScaffoldEnvironmentContext

ScaffoldEnvironmentContext
public class ScaffoldEnvironmentContext implements ComponentManager,ComponentQuery,EnvironmentContext,StringTranslator(Code)
Provide local implementation of EnvironmentContext for testing.
author:
   Sun Microsystems, Inc.



Constructor Summary
public  ScaffoldEnvironmentContext()
     Dummy constructor.

Method Summary
public  voidcancelComponentUpdate(String componentName)
     Cancel a pending component update.
public  voidcancelComponentUpgrade(String componentName)
     Cancel a pending component upgrade.
public  StringgetAppServerInstallRoot()
     Gets the AppServer installation root directory.
public  StringgetAppServerInstanceRoot()
     Gets the AppServer instance root directory.
public  StringgetComponentId()
     Get the component ID of the current component.
public  ListgetComponentIds(ComponentType type)
     Get a list of component IDs for all registered components of a specified type.
Parameters:
  type - - the Component type: ComponentInfo.SHARED_NAME_SPACE,ComponentInfo.BINDING, ComponentInfo.ENGINE, ComponentInfo.ALL, orComponentInfo.BINDINGS_AND_ENGINES.
public  ListgetComponentIds(ComponentType type, ComponentState status)
     Get a list of component IDs for all components of a specified type with a specified status.
Parameters:
  type - - the Component type: ComponentInfo.SHARED_NAME_SPACE,ComponentInfo.BINDING, ComponentInfo.ENGINE, ComponentInfo.ALL, orComponentInfo.BINDINGS_AND_ENGINES.
public  ComponentInfogetComponentInfo(String componentId)
     Get the ComponentInfo for a particular component.
Parameters:
  componentId - - the unique ID of the component being retrieved.
public  javax.jbi.component.ComponentgetComponentInstance(String name)
     Get the javax.jbi.component.Component instance.
Parameters:
  name - - the unique name of the component being retrieved.
public  ComponentManagergetComponentManager()
     A scaffolded component manager.
public  StringgetComponentName()
     Get the component name of the current component.
public  ComponentQuerygetComponentQuery()
    
public  ComponentQuerygetComponentQuery(String targetName)
    
public  StringgetComponentRoot()
     Get the installation root directory of the specified Binding Component (BC) or Business Process Engine (BPE).
public  com.sun.jbi.messaging.ConnectionManagergetConnectionManager()
     Get the Connection Manager handle.
public  ListgetDependentComponentIds(String snsId)
     Get a list of component IDs that depend upon a specified Shared Library.
Parameters:
  snsId - - the unique ID of the Shared Library.
public  com.sun.jbi.framework.DeployerMBeangetDeployerInstance(String name)
     Get the com.sun.jbi.framework.DeployerMBean instance.
Parameters:
  name - - the unique name of the component.
public  java.util.PropertiesgetInitialProperties()
     Gets the initial properties specified in the domain.xml file.
public  StringgetJbiInstallRoot()
    
public  StringgetJbiInstanceRoot()
    
public  LoggergetLogger()
     Gets the logger for the framework.
public  MBeanHelpergetMBeanHelper()
     Get the MBeanHelper service handle.
public  MBeanNamesgetMBeanNames()
     Get the MBeanNames service handle.
public  javax.management.MBeanServergetMBeanServer()
     Get the MBean server used to register all MBeans in the JBI framework.
public  ObjectgetManagementClass(String aServiceName)
     Get a handle to the class implementing management for the named JBI system service.
public  com.sun.jbi.management.ManagementMessageFactorygetManagementMessageFactory()
     Get the management message factory which enables JBI components to construct status and exception messages.
public  javax.naming.InitialContextgetNamingContext()
     Get the JNDI naming context.
public  com.sun.jbi.framework.EventNotifierCommongetNotifier()
     Get the Event Notifier instance.
public  com.sun.jbi.platform.PlatformContextgetPlatformContext()
     Get the platform-specific context for this implementation.
public  JBIProvidergetProvider()
    
public  org.w3c.dom.DocumentgetReadOnlyRegistry()
     Get a read-only reference to the persisted JBI Registry.
public  com.sun.jbi.registry.RegistrygetRegistry()
     Get a reference to the persisted JBI registry.
public  ServiceUnitRegistrationgetServiceUnitRegistration()
     Get the ServiceUnitRegistration handle.
public  ComponentInfogetSharedLibraryInfo(String sharedLibraryName)
     Get the ComponentInfo for a particular shared library.
Parameters:
  sharedLibraryName - - the unique name of the shared library beingretrieved.
public  ComponentStategetStatus(String componentId)
     Get the current status of a component.
Parameters:
  componentId - - the unique component ID.
public  StringgetString(String key)
     Get a localized string using the specified resource key.
Parameters:
  key - - the key to the localized string in the resource bundle.
public  StringgetString(String key, Object insert1)
     Get a localized string using the specified resource key.
public  StringgetString(String key, Object insert1, Object insert2)
     Get a localized string using the specified resource key.
public  StringgetString(String key, Object insert1, Object insert2, Object insert3)
     Get a localized string using the specified resource key.
public  StringgetString(String key, Object insert1, Object insert2, Object insert3, Object insert4)
     Get a localized string using the specified resource key.
public  StringgetString(String key, Object[] inserts)
     Get a localized string using the specified resource key.
public  StringTranslatorgetStringTranslator(String packageName)
     Get a StringTranslator for a specific package name.
Parameters:
  packageName - - the name of the package for which a StringTranslatoris being requested.
public  StringTranslatorgetStringTranslatorFor(Object object)
     Get a StringTranslator for a specific object.
Parameters:
  object - - the object for which a StringTranslator is beingrequested, using the name of the package containing the object.
public  javax.transaction.TransactionManagergetTransactionManager()
     Get the TransactionManager.
public  com.sun.jbi.VersionInfogetVersionInfo()
     Get the VersionInfo for this runtime.
public  WsdlFactorygetWsdlFactory()
    
public  voidinitService(EnvironmentContext aContext)
     Initialize a service.
public  voidinstallSharedLibrary(String id, String name, String description, String componentRoot, List elements)
     Install a Shared Library into the JBI framework.
Parameters:
  id - - the unique component ID assigned to the Shared Library.
Parameters:
  name - - the unique name of the Shared Library.
Parameters:
  description - - the description of the Shared Library.
Parameters:
  componentRoot - - the root directory for the Shared Library.
Parameters:
  elements - - the list of jar and class files included in thisshared namespace, as a List of String objects in the order in which theyshould appear in the class path.
public  voidinstallSharedLibrary(String name, String description, String componentRoot, boolean isSelfFirst, List elements)
     Install a Shared Library into the JBI framework.
Parameters:
  name - - the unique component ID assigned to the Shared Library.
Parameters:
  description - - the description of the Shared Library.
Parameters:
  componentRoot - - the root directory for the Shared Library.
Parameters:
  isSelfFirst - - set to true to force the class loader to use aself-first hierarchy, false for parent-first.
Parameters:
  elements - - the list of jar and class files included in thisshared namespace, as a List of String objects in the order in which theyshould appear in the class path.
public  booleanisFrameworkReady(boolean start)
     Indicates whether or not the JBI framework has been fully started.
public  booleanisStartOnDeployEnabled()
    
public  booleanisStartOnVerifyEnabled()
     This method is used to find out if start-onverify is enabled. When this is enabled components are started automatically when an application has to be verified for them This is controlled by the property com.sun.jbi.startOnVerify. By default start-on-verify is enabled.
public  javax.management.ObjectNameloadBootstrap(InstallationContext installContext, String bootClassName, List bootClassPathElements, List snsIdList)
     Load a Component bootstrap into the JBI framework.
public  voidsetAppServerInstallRoot(String asInstallRoot)
     Sets the AppServer install root directory.
public  voidsetAppServerInstanceRoot(String asInstanceRoot)
     Sets the AppServer instance root directory.
public  voidsetJbiInstallRoot(String jbiRoot)
    
public  voidsetJbiInstanceRoot(String jbiRoot)
    
public  voidsetMBeanServer(javax.management.MBeanServer mBeanServer)
     Sets the main MBean server for use by all components.
public  voidsetProperty(String key, String value)
    
public  voidsetRegistry(Registry registry)
     Set a reference to JBI registry.
public  StringstackTraceToString(Throwable ex)
     Return a String containing the result of a printStackTrace() on an exception.
Parameters:
  ex - the exception for which a stack trace is requested.
public  voidstartService()
     Start a service.
public  voidstopService()
     Stop a service.
public  voiduninstallSharedLibrary(String name)
     Uninstall a Shared Library from the JBI framework.
public  voidunloadBootstrap(String componentName)
     Unload a Component bootstrap from the JBI framework.
public  voidupdateComponent(com.sun.jbi.component.InstallationContext installContext, List bootClassPathElements)
     Update an installed component.
public  voidupgradeComponent(com.sun.jbi.component.InstallationContext installContext, String bootClassName, List<String> bootClassPathElements, List<String> sharedLibraryList)
     Upgrade an installed component.
public  voidvalidateComponentForUpdate(com.sun.jbi.component.InstallationContext installContext, List bootClassPathElements)
     Validate a component for update.
public  booleanvalidateComponentForUpgrade(com.sun.jbi.component.InstallationContext installContext, String bootClassName, List<String> bootClassPathElements, List<String> sharedLibraryList)
     Validate a component for upgrade.


Constructor Detail
ScaffoldEnvironmentContext
public ScaffoldEnvironmentContext()(Code)
Dummy constructor.




Method Detail
cancelComponentUpdate
public void cancelComponentUpdate(String componentName) throws javax.jbi.JBIException(Code)
Cancel a pending component update. This is called when some failure has occurred after validateComponentForUpdate() has already been called but before updateComponent() is called. All this method does is return the component to the SHUTDOWN state and remove the busy indicator from the component entry in the runtime registry cache.
Parameters:
  componentName - The name of the component.
throws:
  javax.jbi.JBIException - if the component does not exist.



cancelComponentUpgrade
public void cancelComponentUpgrade(String componentName) throws javax.jbi.JBIException(Code)
Cancel a pending component upgrade. This is called when some failure has occurred after validateComponentForUpgrade() has already been called but before upgradeComponent() is called. All this method does is return the component to the SHUTDOWN state and remove the busy indicator from the component entry in the runtime registry cache.
Parameters:
  componentName - The name of the component.
throws:
  javax.jbi.JBIException - if the component does not exist.



getAppServerInstallRoot
public String getAppServerInstallRoot()(Code)
Gets the AppServer installation root directory. String the AppServer install root



getAppServerInstanceRoot
public String getAppServerInstanceRoot()(Code)
Gets the AppServer instance root directory. String the AppServer instance root



getComponentId
public String getComponentId()(Code)
Get the component ID of the current component. String containing the component ID.



getComponentIds
public List getComponentIds(ComponentType type)(Code)
Get a list of component IDs for all registered components of a specified type.
Parameters:
  type - - the Component type: ComponentInfo.SHARED_NAME_SPACE,ComponentInfo.BINDING, ComponentInfo.ENGINE, ComponentInfo.ALL, orComponentInfo.BINDINGS_AND_ENGINES. ComponentInfo.ALL includes allcomponents regardless of their types. ComponentInfo.BINDINGS_AND_ENGINESincludes both bindings and engines. A List of component IDs ( String ) of all registered componentsof the requested type. Returns an empty list of no components were found.



getComponentIds
public List getComponentIds(ComponentType type, ComponentState status)(Code)
Get a list of component IDs for all components of a specified type with a specified status.
Parameters:
  type - - the Component type: ComponentInfo.SHARED_NAME_SPACE,ComponentInfo.BINDING, ComponentInfo.ENGINE, ComponentInfo.ALL, orComponentInfo.BINDINGS_AND_ENGINES. ComponentInfo.ALL includes allcomponents regardless of their types. ComponentInfo.BINDINGS_AND_ENGINESincludes both bindings and engines.
Parameters:
  status - - the Component status: ComponentInfo.LOADED,ComponentInfo.INSTALLED, ComponentInfo.STARTED, or ComponentInfo.STOPPED. A List of component IDs ( String ) of all registered componentsof the requested type with the requested status. Returns an empty list ifno components were found.



getComponentInfo
public ComponentInfo getComponentInfo(String componentId)(Code)
Get the ComponentInfo for a particular component.
Parameters:
  componentId - - the unique ID of the component being retrieved. The ComponentInfo for the requested component or null if thecomponent is not registered.



getComponentInstance
public javax.jbi.component.Component getComponentInstance(String name)(Code)
Get the javax.jbi.component.Component instance.
Parameters:
  name - - the unique name of the component being retrieved. The instance for the requested component or null if thecomponent is not registered or not active.



getComponentManager
public ComponentManager getComponentManager()(Code)
A scaffolded component manager. a scaffolded component manager



getComponentName
public String getComponentName()(Code)
Get the component name of the current component. String containing the component name.



getComponentQuery
public ComponentQuery getComponentQuery()(Code)
A scaffolded component query a scaffolded component query object



getComponentQuery
public ComponentQuery getComponentQuery(String targetName)(Code)
A scaffolded component query a scaffolded component query object



getComponentRoot
public String getComponentRoot()(Code)
Get the installation root directory of the specified Binding Component (BC) or Business Process Engine (BPE). String containing the installation root directory path



getConnectionManager
public com.sun.jbi.messaging.ConnectionManager getConnectionManager()(Code)
Get the Connection Manager handle. The ConnectionManager instance.



getDependentComponentIds
public List getDependentComponentIds(String snsId)(Code)
Get a list of component IDs that depend upon a specified Shared Library.
Parameters:
  snsId - - the unique ID of the Shared Library. A list of the component IDs of all components that depend upon theShared Library. If none are found, the list is empty.



getDeployerInstance
public com.sun.jbi.framework.DeployerMBean getDeployerInstance(String name)(Code)
Get the com.sun.jbi.framework.DeployerMBean instance.
Parameters:
  name - - the unique name of the component. The instance for the requested component or null if thecomponent is not registered or not active.



getInitialProperties
public java.util.Properties getInitialProperties()(Code)
Gets the initial properties specified in the domain.xml file. java.util.Properties is the initial properties



getJbiInstallRoot
public String getJbiInstallRoot()(Code)



getJbiInstanceRoot
public String getJbiInstanceRoot()(Code)



getLogger
public Logger getLogger()(Code)
Gets the logger for the framework. java.util.Logger is the logger



getMBeanHelper
public MBeanHelper getMBeanHelper()(Code)
Get the MBeanHelper service handle. MBeanHelper the MBeanHelper service



getMBeanNames
public MBeanNames getMBeanNames()(Code)
Get the MBeanNames service handle. MBeanNames the MBeanNames service



getMBeanServer
public javax.management.MBeanServer getMBeanServer()(Code)
Get the MBean server used to register all MBeans in the JBI framework. javax.management.MBeanServer the MBean server



getManagementClass
public Object getManagementClass(String aServiceName)(Code)
Get a handle to the class implementing management for the named JBI system service.
Parameters:
  aServiceName - the service name Object is the class implementing manangment.



getManagementMessageFactory
public com.sun.jbi.management.ManagementMessageFactory getManagementMessageFactory()(Code)
Get the management message factory which enables JBI components to construct status and exception messages. An instance of ManagementMessageFactory.



getNamingContext
public javax.naming.InitialContext getNamingContext()(Code)
Get the JNDI naming context. javax.naming.InitialContext the JNDI naming context



getNotifier
public com.sun.jbi.framework.EventNotifierCommon getNotifier()(Code)
Get the Event Notifier instance. The EventNotifier instance.



getPlatformContext
public com.sun.jbi.platform.PlatformContext getPlatformContext()(Code)
Get the platform-specific context for this implementation. The PlatformContext.



getProvider
public JBIProvider getProvider()(Code)



getReadOnlyRegistry
public org.w3c.dom.Document getReadOnlyRegistry()(Code)
Get a read-only reference to the persisted JBI Registry. A DOM registry document object is returned. the registry document



getRegistry
public com.sun.jbi.registry.Registry getRegistry()(Code)
Get a reference to the persisted JBI registry. Registry instance



getServiceUnitRegistration
public ServiceUnitRegistration getServiceUnitRegistration()(Code)
Get the ServiceUnitRegistration handle. the Service Unit registration instance.



getSharedLibraryInfo
public ComponentInfo getSharedLibraryInfo(String sharedLibraryName)(Code)
Get the ComponentInfo for a particular shared library.
Parameters:
  sharedLibraryName - - the unique name of the shared library beingretrieved. The ComponentInfo for the requested shared library or null if theshared library is not registered.



getStatus
public ComponentState getStatus(String componentId) throws javax.jbi.JBIException(Code)
Get the current status of a component.
Parameters:
  componentId - - the unique component ID. The current status of the component: ComponentInfo.INSTALLED,ComponentInfo.LOADED, ComponentInfo.STARTED, or ComponentInfo.STOPPED.For a Shared Library, the status is always ComponentInfo.INSTALLED.
throws:
  javax.jbi.JBIException - if the component ID is not registered.



getString
public String getString(String key)(Code)
Get a localized string using the specified resource key.
Parameters:
  key - - the key to the localized string in the resource bundle. the localized string.



getString
public String getString(String key, Object insert1)(Code)
Get a localized string using the specified resource key. Handle one message insert.
Parameters:
  key - - the key to the localized string in the resource bundle.
Parameters:
  insert1 - - the message insert. the localized string formatted with the message insert.



getString
public String getString(String key, Object insert1, Object insert2)(Code)
Get a localized string using the specified resource key. Handle two message inserts.
Parameters:
  key - - the key to the localized string in the resource bundle.
Parameters:
  insert1 - - the first message insert.
Parameters:
  insert2 - - the second message insert. the localized string formatted with the message inserts.



getString
public String getString(String key, Object insert1, Object insert2, Object insert3)(Code)
Get a localized string using the specified resource key. Handle three message inserts.
Parameters:
  key - - the key to the localized string in the resource bundle.
Parameters:
  insert1 - - the first message insert.
Parameters:
  insert2 - - the second message insert.
Parameters:
  insert3 - - the third message insert. the localized string formatted with the message inserts.



getString
public String getString(String key, Object insert1, Object insert2, Object insert3, Object insert4)(Code)
Get a localized string using the specified resource key. Handle four message inserts.
Parameters:
  key - - the key to the localized string in the resource bundle.
Parameters:
  insert1 - - the first message insert.
Parameters:
  insert2 - - the second message insert.
Parameters:
  insert3 - - the third message insert.
Parameters:
  insert4 - - the fourth message insert. the localized string formatted with the message inserts.



getString
public String getString(String key, Object[] inserts)(Code)
Get a localized string using the specified resource key. Handle any number of message inserts.
Parameters:
  key - - the key to the localized string in the resource bundle.
Parameters:
  inserts - - the array of message inserts. the localized string formatted with the message inserts.



getStringTranslator
public StringTranslator getStringTranslator(String packageName)(Code)
Get a StringTranslator for a specific package name.
Parameters:
  packageName - - the name of the package for which a StringTranslatoris being requested. The StringTranslator for the named package.



getStringTranslatorFor
public StringTranslator getStringTranslatorFor(Object object)(Code)
Get a StringTranslator for a specific object.
Parameters:
  object - - the object for which a StringTranslator is beingrequested, using the name of the package containing the object. The StringTranslator for the object's package.



getTransactionManager
public javax.transaction.TransactionManager getTransactionManager()(Code)
Get the TransactionManager. TransactionManager instance.



getVersionInfo
public com.sun.jbi.VersionInfo getVersionInfo()(Code)
Get the VersionInfo for this runtime. The VersionInfo instance.



getWsdlFactory
public WsdlFactory getWsdlFactory() throws WsdlException(Code)



initService
public void initService(EnvironmentContext aContext) throws javax.jbi.JBIException(Code)
Initialize a service. This performs any initialization tasks required by the service but does not make the service ready to process requests.
Parameters:
  aContext - the JBI environment context createdby the JBI framework
throws:
  javax.jbi.JBIException - if an error occurs



installSharedLibrary
public void installSharedLibrary(String id, String name, String description, String componentRoot, List elements) throws javax.jbi.JBIException(Code)
Install a Shared Library into the JBI framework.
Parameters:
  id - - the unique component ID assigned to the Shared Library.
Parameters:
  name - - the unique name of the Shared Library.
Parameters:
  description - - the description of the Shared Library.
Parameters:
  componentRoot - - the root directory for the Shared Library.
Parameters:
  elements - - the list of jar and class files included in thisshared namespace, as a List of String objects in the order in which theyshould appear in the class path. Each list element contains the fullpath to either a jar file or a directory containing class files.
throws:
  javax.jbi.JBIException - if any error occurs.



installSharedLibrary
public void installSharedLibrary(String name, String description, String componentRoot, boolean isSelfFirst, List elements) throws javax.jbi.JBIException(Code)
Install a Shared Library into the JBI framework.
Parameters:
  name - - the unique component ID assigned to the Shared Library.
Parameters:
  description - - the description of the Shared Library.
Parameters:
  componentRoot - - the root directory for the Shared Library.
Parameters:
  isSelfFirst - - set to true to force the class loader to use aself-first hierarchy, false for parent-first.
Parameters:
  elements - - the list of jar and class files included in thisshared namespace, as a List of String objects in the order in which theyshould appear in the class path. Each list element contains the fullpath to either a jar file or a directory containing class files.
throws:
  javax.jbi.JBIException - if any error occurs.



isFrameworkReady
public boolean isFrameworkReady(boolean start)(Code)
Indicates whether or not the JBI framework has been fully started. This method provides clients with a way of determining if the JBI framework started up in passive mode as a result of on-demand initialization. The 'start' parameter instructs the framework to start completely if it has not already done so. If the framework has already been started, the request to start again is ignored.
Parameters:
  start - requests that the framework start completely beforereturning. true if the framework is completely started, false otherwise.



isStartOnDeployEnabled
public boolean isStartOnDeployEnabled()(Code)
This method is used to scaffold EnvironmentContext.isStartOnDeployEnabled() and always returns true



isStartOnVerifyEnabled
public boolean isStartOnVerifyEnabled()(Code)
This method is used to find out if start-onverify is enabled. When this is enabled components are started automatically when an application has to be verified for them This is controlled by the property com.sun.jbi.startOnVerify. By default start-on-verify is enabled. It is disabled only if com.sun.jbi.startOnVerify=false.



loadBootstrap
public javax.management.ObjectName loadBootstrap(InstallationContext installContext, String bootClassName, List bootClassPathElements, List snsIdList) throws javax.jbi.JBIException(Code)
Load a Component bootstrap into the JBI framework.
Parameters:
  installContext - is the InstallationContext
Parameters:
  bootClassName - is the name of the bootstrap class for the component
Parameters:
  bootClassPathElements - is the list of elements comprising theclass path for loading the bootstrap class
Parameters:
  snsIdList - is the list of Shared Libraries required by the component javax.management.ObjectName containing the MBean objectname and class name.
throws:
  javax.jbi.JBIException - if any error occurs.



setAppServerInstallRoot
public void setAppServerInstallRoot(String asInstallRoot)(Code)
Sets the AppServer install root directory.
Parameters:
  asInstallRoot - the AppServer install root



setAppServerInstanceRoot
public void setAppServerInstanceRoot(String asInstanceRoot)(Code)
Sets the AppServer instance root directory.
Parameters:
  asInstanceRoot - the AppServer instance root



setJbiInstallRoot
public void setJbiInstallRoot(String jbiRoot)(Code)



setJbiInstanceRoot
public void setJbiInstanceRoot(String jbiRoot)(Code)



setMBeanServer
public void setMBeanServer(javax.management.MBeanServer mBeanServer)(Code)
Sets the main MBean server for use by all components.
Parameters:
  mBeanServer - is the MBean server



setProperty
public void setProperty(String key, String value)(Code)



setRegistry
public void setRegistry(Registry registry)(Code)
Set a reference to JBI registry.
Parameters:
  Registry - instance



stackTraceToString
public String stackTraceToString(Throwable ex)(Code)
Return a String containing the result of a printStackTrace() on an exception.
Parameters:
  ex - the exception for which a stack trace is requested. the stack trace in a String.



startService
public void startService() throws javax.jbi.JBIException(Code)
Start a service. This makes the service ready to process requests.
throws:
  javax.jbi.JBIException - if an error occurs



stopService
public void stopService() throws javax.jbi.JBIException(Code)
Stop a service. This makes the service stop processing requests.
throws:
  javax.jbi.JBIException - if an error occurs



uninstallSharedLibrary
public void uninstallSharedLibrary(String name) throws javax.jbi.JBIException(Code)
Uninstall a Shared Library from the JBI framework. A Shared Namespace cannot be uninstalled until all dependent components have been uninstalled. If any dependent components are found, the uninstall of the Shared Library is aborted.
Parameters:
  name - is the unique name of the shared namespace
throws:
  javax.jbi.JBIException - if any error occurs.



unloadBootstrap
public void unloadBootstrap(String componentName) throws javax.jbi.JBIException(Code)
Unload a Component bootstrap from the JBI framework.
Parameters:
  componentName - is the name of the component
throws:
  javax.jbi.JBIException - if any error occurs.



updateComponent
public void updateComponent(com.sun.jbi.component.InstallationContext installContext, List bootClassPathElements) throws javax.jbi.JBIException(Code)
Update an installed component. This is used to replace the runtime jar files of a component with a newer version without requiring the component to be uninstalled (which requires undeployment of all Service Assemblies that have Service Units deployed to the component).
Parameters:
  installContext - The installation context.
Parameters:
  bootClassPathElements - A list of elements comprising the classpath for loading the bootstrap class. Each element in the list is aString containing the full path to either a jar file or a directorycontaining class files.
throws:
  javax.jbi.JBIException - if the update fails for some reason.



upgradeComponent
public void upgradeComponent(com.sun.jbi.component.InstallationContext installContext, String bootClassName, List<String> bootClassPathElements, List<String> sharedLibraryList) throws javax.jbi.JBIException(Code)
Upgrade an installed component. This is used to upgrade a component to a newer version without requiring the component to be uninstalled (which requires undeployment of all Service Assemblies that have Service Units deployed to the component). There are two ways a component can be updated. If the component does not provide an upgrade() method in its bootstrap class, then the runtime jar files are updated and any changes to the component's installation descriptor in jbi.xml are propagated. If the component provides an upgrade() method, that method is called to give the component the opportunity to upgrade its workspace and all SUs deployed to it to a new version. In this case, it is the responsibility of the component to perform all version verification, and to provide any recovery processing required in the event of a failed upgrade.
Parameters:
  installContext - The installation context.
Parameters:
  bootClassPathElements - A list of elements comprising the classpath for loading the bootstrap class. Each element in the list is aString containing the full path to either a jar file or a directorycontaining class files.
throws:
  javax.jbi.JBIException - if the update fails for some reason.



validateComponentForUpdate
public void validateComponentForUpdate(com.sun.jbi.component.InstallationContext installContext, List bootClassPathElements) throws javax.jbi.JBIException(Code)
Validate a component for update. This is used to validate that the runtime jar files provided for the update contain valid implementations of the required interfaces and the component classes will load correctly.
Parameters:
  installContext - The installation context.
Parameters:
  bootClassPathElements - A list of elements comprising the classpath for loading the bootstrap class. Each element in the list is aString containing the full path to either a jar file or a directorycontaining class files.
throws:
  javax.jbi.JBIException - if there is a problem with the updatedcomponent.



validateComponentForUpgrade
public boolean validateComponentForUpgrade(com.sun.jbi.component.InstallationContext installContext, String bootClassName, List<String> bootClassPathElements, List<String> sharedLibraryList) throws javax.jbi.JBIException(Code)
Validate a component for upgrade. This validates that the runtime jar files provided for the upgrade contain valid implementations of the required interfaces and the component classes will load correctly. This also verifies that all Shared Library dependencies are met. It also determines whether or not the component has provided an implementation of the upgrade() method and returns an indicator of that to the caller.
Parameters:
  installContext - The installation context.
Parameters:
  bootClassName - The name of the bootstrap class for the component.
Parameters:
  bootClassPathElements - A list of elements comprising the classpath for loading the bootstrap class. Each element in the list is aString containing the full path to either a jar file or a directorycontaining class files.
Parameters:
  sharedLibraryList - A list of String objects specifing the names ofthe Shared Libraries required by the component, in the order in whichthey should appear in the class path. true if the component provided an upgrade() method, false if not.
throws:
  javax.jbi.JBIException - if there is a problem with the componentimplementation classes or with Shared Library dependencies.



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.