Java Doc for InstallationService.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.ModelSystemService
      com.sun.jbi.management.system.InstallationService

InstallationService
public class InstallationService extends ModelSystemService implements com.sun.jbi.management.InstallationServiceMBean(Code)
The installation service MBean allows administrative tools to manage component and shared library installations. The tasks supported are:
  • Installing (and uninstalling) a shared library
  • Creating (loading) and destroying (unloading) a component installer MBean.
  • Finding an existing component installer MBean.
Installing and uninstalling components is accomplished using InstallerMBean s, loaded by this MBean. An individual installer MBean is needed for each component installation / uninstallation. This is to support the more complex installation process that some components require.
author:
   JSR208 Expert Group



Constructor Summary
public  InstallationService(ManagementContext anEnv)
     Constructs a InstallationService.

Method Summary
 ObjectNamebootStrapComponent(URL aComponentURL)
     Create the Component Installation Context and load the bootstrap.
Parameters:
  aComponentURL - the component .jar specification
Parameters:
  isSharedLib - - true iff the component is a shared library.
 voidcloseJarFile(JarFile aJarFile)
    
protected  voidinitModelSystemService(com.sun.jbi.EnvironmentContext anEnv)
     local model init - called by constructor - create custom mbeans.
public synchronized  StringinstallSharedLibrary(String slZipURL)
     Install a shared library installation package.
public  StringinstallSharedLibraryFromRepository(String sharedLibraryName)
     Install a shared library from the Repository.
 StringinstallSharedLibraryToFramework(URL aComponentURL)
    
public synchronized  ObjectNameloadInstaller(String componentName)
     Load the InstallerMBean for a previously installed component.
public  ObjectNameloadInstallerFromRepository(String componentName)
     Load the installer for a component from the Repository.
public synchronized  ObjectNameloadNewInstaller(String installZipURL)
     Load the installer for a new component for the given component installation package.
public synchronized  booleanuninstallSharedLibrary(String slName)
     Uninstall a previously installed shared library.
public  booleanuninstallSharedLibrary(String slName, boolean keep)
     Uninstall a previously installed shared library.
public synchronized  booleanunloadInstaller(String componentName, boolean isToBeDeleted)
     Unload an InstallerMBean previously loaded for a component.
public  StringupgradeComponent(String componentName, String installZipPath)
     Upgrade a component.
public  voidupgradeComponent(String componentName, long upgradeNumber)
     Set a component's upgrade number.


Constructor Detail
InstallationService
public InstallationService(ManagementContext anEnv) throws javax.jbi.JBIException(Code)
Constructs a InstallationService.
Parameters:
  anEnv - is the ManagementContext.




Method Detail
bootStrapComponent
ObjectName bootStrapComponent(URL aComponentURL) throws javax.jbi.JBIException(Code)
Create the Component Installation Context and load the bootstrap.
Parameters:
  aComponentURL - the component .jar specification
Parameters:
  isSharedLib - - true iff the component is a shared library. the ID of the component/library
throws:
  javax.jbi.JBIException - if an error occurs



closeJarFile
void closeJarFile(JarFile aJarFile)(Code)
Close the given (open) JarFile, ignoring IOExceptions
Parameters:
  aJarFile - - an open Jar file



initModelSystemService
protected void initModelSystemService(com.sun.jbi.EnvironmentContext anEnv)(Code)
local model init - called by constructor - create custom mbeans.
Parameters:
  anEnv - is the ManagementContext



installSharedLibrary
public synchronized String installSharedLibrary(String slZipURL)(Code)
Install a shared library installation package.

The return value is the unique name for the shared-library, as found in the the value of the installation descriptor's <identification><name> element.
Parameters:
  slZipURL - URL locating a zip file containing a shared libraryinstallation package; must be non-null, non-empty, and a legalURL the unique name of the shared library loaded from slZipURL; mustbe non-null and non-empty




installSharedLibraryFromRepository
public String installSharedLibraryFromRepository(String sharedLibraryName) throws javax.jbi.JBIException(Code)
Install a shared library from the Repository. This method is not implemented and never called by the facade MBeans.
Parameters:
  sharedLibraryName - - name of the registered shared library. the shared library name
exception:
  javax.jbi.JBIException - if the shared library is not registered oruninstall fails.



installSharedLibraryToFramework
String installSharedLibraryToFramework(URL aComponentURL) throws javax.jbi.JBIException(Code)

Parameters:
  alURL - - path to the shared library archive



loadInstaller
public synchronized ObjectName loadInstaller(String componentName)(Code)
Load the InstallerMBean for a previously installed component.

The "component name" refers to the <identification><name> element value from the component's installation package (see InstallationService.loadNewInstaller(String) ).
Parameters:
  componentName - the component name identifying the installer to load; must be non-null and non-empty the JMX ObjectName of the InstallerMBean loaded from an existinginstallation context; null if the installer MBeandoesn't exist




loadInstallerFromRepository
public ObjectName loadInstallerFromRepository(String componentName) throws javax.jbi.JBIException(Code)
Load the installer for a component from the Repository. The component archive from the repository is uploaded to the target instance(s), loadNewInstaller() in invoked on the remote instance(s). The object name of the Installer MBean is returned.
If the component is not there in the DAS repository a exception will be thrown.
Parameters:
  componentName - - name of the registered component. the ObjectName of Installer MBean for the registered component
exception:
  javax.jbi.JBIException - if the component is not registered.



loadNewInstaller
public synchronized ObjectName loadNewInstaller(String installZipURL)(Code)
Load the installer for a new component for the given component installation package.
Parameters:
  installZipURL - URL locating a ZIP file containing theJBI Installation package to be installed; must be non-null, non-empty, and a legal URL the JMX ObjectName of the InstallerMBean loaded frominstallZipURL; must be non-null



uninstallSharedLibrary
public synchronized boolean uninstallSharedLibrary(String slName)(Code)
Uninstall a previously installed shared library.
Parameters:
  slName - the name of the shared name space to uninstall; must benon-null and non-empty true if the uninstall was successful



uninstallSharedLibrary
public boolean uninstallSharedLibrary(String slName, boolean keep)(Code)
Uninstall a previously installed shared library. The facade InstallationService never invokes this operation.
Parameters:
  slName - the name of the shared name space to uninstall; must benon-null and non-empty
Parameters:
  keep - if true the shared libray is not deleted from the domain. If false, the shared library is deleted from the repository if after this uninstall it is not installed on any targets. true if the uninstall was successful



unloadInstaller
public synchronized boolean unloadInstaller(String componentName, boolean isToBeDeleted)(Code)
Unload an InstallerMBean previously loaded for a component.
Parameters:
  componentName - the component name identifying the installer to unload; must be non-null and non-empty
Parameters:
  isToBeDeleted - true if the component is to be deleted as well true if the operation was successful, otherwise false



upgradeComponent
public String upgradeComponent(String componentName, String installZipPath) throws javax.jbi.JBIException(Code)
Upgrade a component. This is used to perform an upgrade of the runtime files of a component without requiring undeployment of Service Assemblies with Service Units deployed to the component.
Parameters:
  componentName - The name of the component.
Parameters:
  installZipURL - The URL to the component archive. a status management message that contains component upgrade result
throws:
  JBIException - if there is a problem with the upgrade.



upgradeComponent
public void upgradeComponent(String componentName, long upgradeNumber) throws javax.jbi.JBIException(Code)
Set a component's upgrade number. This method is used by synchronization to set the component upgrade number
Parameters:
  componentName - The name of the component.
throws:
  JBIException - if there is a problem with the upgrade.



Fields inherited from com.sun.jbi.management.system.ModelSystemService
protected ObjectName mAdminServiceMBeanName(Code)(Java Doc)
protected ObjectName mConfigMBeanName(Code)(Java Doc)
protected ObjectName mConfigServiceMBeanName(Code)(Java Doc)
protected ObjectName mDeployServiceMBeanName(Code)(Java Doc)
protected String mDisplayName(Code)(Java Doc)
protected com.sun.jbi.EnvironmentContext mEnv(Code)(Java Doc)
protected MBeanSet mInitialMBeansmStartMBeans(Code)(Java Doc)
protected ObjectName mInstallServiceMBeanName(Code)(Java Doc)
protected JbiNameInfo mJbiNameInfo(Code)(Java Doc)
protected ObjectName mLifeCycleMBeanName(Code)(Java Doc)
protected Logger mLogger(Code)(Java Doc)
protected LoggerMBean mLoggerImpl(Code)(Java Doc)
protected ObjectName mLoggerMBeanName(Code)(Java Doc)
protected ObjectName mLoggingServiceMBeanName(Code)(Java Doc)
protected com.sun.jbi.management.MBeanNames mMBeanNames(Code)(Java Doc)
protected MBeanServer mMBeanServer(Code)(Java Doc)
protected ObjectName mMessageServiceMBeanName(Code)(Java Doc)
final protected String mModelName(Code)(Java Doc)
protected ObjectName mStatisticsMBeanName(Code)(Java Doc)
protected StringTranslator mTranslator(Code)(Java Doc)

Methods inherited from com.sun.jbi.management.system.ModelSystemService
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws java.lang.IllegalArgumentException(Code)(Java Doc)
protected void bootstrap()(Code)(Java Doc)
protected com.sun.jbi.ComponentQuery getComponentQuery()(Code)(Java Doc)
public String getCurrentState()(Code)(Java Doc)
public NotificationBroadcasterSupport getNotificationBroadcaster()(Code)(Java Doc)
public MBeanNotificationInfo[] getNotificationInfo()(Code)(Java Doc)
protected Registry getRegistry()(Code)(Java Doc)
protected void initModelSystemService(com.sun.jbi.EnvironmentContext anEnv, JbiNameInfo aJbiName)(Code)(Java Doc)
protected void initModelSystemService(com.sun.jbi.EnvironmentContext anEnv, Logger aLogger, JbiNameInfo aJbiName)(Code)(Java Doc)
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException(Code)(Java Doc)
public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException(Code)(Java Doc)
public void shutDown() throws javax.jbi.JBIException(Code)(Java Doc)
public void start() throws javax.jbi.JBIException(Code)(Java Doc)
public void stop() throws javax.jbi.JBIException(Code)(Java Doc)

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.