|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.jbi.management.installation.InstallationServiceImpl
public class InstallationServiceImpl
JBI installation service implementation.
| Field Summary | |
|---|---|
protected AdminService |
adminService
Communication :: JMX Agent Admin. |
protected javax.naming.InitialContext |
componentInitialContext
|
protected ContainerService |
container
Container :: Container Service. |
protected InstallationTaskFactory |
installationTaskFactory
|
protected org.ow2.petals.util.LoggingUtil |
log
logger wrapper |
protected RepositoryService |
repositoryService
Platform :: Repository Service. |
protected RouterService |
router
JBI messaging :: Router Service. |
protected SystemStateService |
systemStateService
Platform :: SystemState Service. |
| Constructor Summary | |
|---|---|
InstallationServiceImpl()
Default constructor. |
|
| Method Summary | |
|---|---|
boolean |
forceUnloadInstaller(java.lang.String componentName)
Try to unload installer of a component. |
java.lang.String[] |
getInstalledComponentsForSharedLibrary(java.lang.String slName)
Get the list of components that use the shared library |
java.lang.String[] |
getInstalledSharedLibraries()
Get the list of all installed shared libraries |
java.lang.String[] |
getInstallers()
Get the list of all the existing installers |
java.util.logging.Logger |
getLogger()
|
java.lang.String |
installSharedLibrary(java.lang.String slZipURL)
|
javax.management.ObjectName |
loadInstaller(java.lang.String componentName)
|
javax.management.ObjectName |
loadNewInstaller(java.lang.String installZipURL)
|
void |
shutdown()
Called to shutdown a component. |
java.lang.String[] |
shutdownAllComponents()
Try to shutdown all components. |
boolean |
shutdownComponent(java.lang.String componentName)
Shutdown the component. |
protected void |
start()
Initialize the InstallationServiceImpl |
java.lang.String[] |
startAllComponents()
Try to start all components. |
boolean |
startComponent(java.lang.String componentName)
Start the component. |
protected void |
stop()
Stop the InstallationServiceImpl |
java.lang.String[] |
stopAllComponents()
Try to stop all components. |
boolean |
stopComponent(java.lang.String componentName)
Stop the component. |
java.lang.String[] |
uninstallAllComponents()
Try to uninstall all components. |
java.lang.String[] |
uninstallAllSharedLibraries()
Try to uninstall all shared libraries. |
boolean |
uninstallComponent(java.lang.String componentName)
Uninstall the component. |
boolean |
uninstallSharedLibrary(java.lang.String slName)
|
boolean |
uninstallSharedLibrary(java.lang.String slName,
java.lang.String version)
Uninstall a previously installed shared library with the given version. |
java.lang.String[] |
unloadAllInstallers(boolean force)
Try to uninstall all components. |
boolean |
unloadInstaller(java.lang.String componentName,
boolean isToBeDeleted)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected AdminService adminService
protected javax.naming.InitialContext componentInitialContext
protected ContainerService container
protected InstallationTaskFactory installationTaskFactory
protected org.ow2.petals.util.LoggingUtil log
protected RepositoryService repositoryService
protected RouterService router
protected SystemStateService systemStateService
| Constructor Detail |
|---|
public InstallationServiceImpl()
| Method Detail |
|---|
public boolean forceUnloadInstaller(java.lang.String componentName)
InstallationServiceMBean
componentName - the component unique name
public java.lang.String[] getInstalledComponentsForSharedLibrary(java.lang.String slName)
throws java.lang.Exception
InstallationServiceMBean
slName - the name of the shared library
java.lang.Exception - if the shared library is not installedpublic java.lang.String[] getInstalledSharedLibraries()
InstallationServiceMBean
public java.lang.String[] getInstallers()
InstallationServiceMBean
public java.util.logging.Logger getLogger()
public java.lang.String installSharedLibrary(java.lang.String slZipURL)
installSharedLibrary in interface javax.jbi.management.InstallationServiceMBeanpublic javax.management.ObjectName loadInstaller(java.lang.String componentName)
loadInstaller in interface javax.jbi.management.InstallationServiceMBeanpublic javax.management.ObjectName loadNewInstaller(java.lang.String installZipURL)
loadNewInstaller in interface javax.jbi.management.InstallationServiceMBeanjava.lang.RuntimeException - if an error occurs during installation process. We have
chosen this type of exception because, in the specification,
this method doesn't return an exceptionReturn a specific ObjectName if component can't be
installed correctly. It's an implementation choice !
public void shutdown()
throws java.lang.Exception
PetalsLifeCycle
shutdown in interface PetalsLifeCyclejava.lang.Exceptionpublic java.lang.String[] shutdownAllComponents()
InstallationServiceMBean
public boolean shutdownComponent(java.lang.String componentName)
throws javax.jbi.JBIException
InstallationServiceMBeanLifeCycleMBean.SHUTDOWN state.
componentName - name of the component to be shutdown; must be non-null and
non-empty
true if the component is correctly shut down
javax.jbi.JBIException - if the component fails to shut downpublic java.lang.String[] startAllComponents()
InstallationServiceMBean
public boolean startComponent(java.lang.String componentName)
throws javax.jbi.JBIException
InstallationServiceMBeanLifeCycleMBean.STARTED state.
componentName - name of the component to be started; must be non-null and
non-empty
true if the component is correctly started
javax.jbi.JBIException - if the component fails to startpublic java.lang.String[] stopAllComponents()
InstallationServiceMBean
public boolean stopComponent(java.lang.String componentName)
throws javax.jbi.JBIException
InstallationServiceMBeanLifeCycleMBean.STOPPED state.
componentName - name of the component to be stopped; must be non-null and
non-empty
true if the component is correctly stopped
javax.jbi.JBIException - if the component fails to stoppublic java.lang.String[] uninstallAllComponents()
InstallationServiceMBean
public java.lang.String[] uninstallAllSharedLibraries()
InstallationServiceMBean
public boolean uninstallComponent(java.lang.String componentName)
throws javax.jbi.JBIException
InstallationServiceMBeanInstaller.UNINSTALLED state.
componentName - name of the component to be uninstalled; must be non-null and
non-empty
true if the component is correctly uninstalled
javax.jbi.JBIException - if the component fails to uninstallpublic boolean uninstallSharedLibrary(java.lang.String slName)
uninstallSharedLibrary in interface javax.jbi.management.InstallationServiceMBean
public boolean uninstallSharedLibrary(java.lang.String slName,
java.lang.String version)
InstallationServiceMBean
slName - the name of the shared name space to uninstall; must be
non-null and non-emptyversion - the Version of the shared name space to uninstall; must be
non-null and non-empty
public java.lang.String[] unloadAllInstallers(boolean force)
InstallationServiceMBean
public boolean unloadInstaller(java.lang.String componentName,
boolean isToBeDeleted)
unloadInstaller in interface javax.jbi.management.InstallationServiceMBeanprotected void start()
protected void stop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||