|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.jbi.management.recovery.SystemRecoveryServiceImpl
public class SystemRecoveryServiceImpl
Allows to restore system state after shutdown or crash.
| Field Summary | |
|---|---|
protected AdminService |
adminService
Communication :: JMX Agent Admin. |
protected ContainerService |
container
Container :: Container Service. |
protected EndpointRegistry |
endpointRegistry
The EndpointRegistry is used to manage all the endpoint interfaces in a distributed context |
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 | |
|---|---|
SystemRecoveryServiceImpl()
|
|
| Method Summary | |
|---|---|
protected Context |
createDeploymentContext(java.net.URL installUrl,
org.ow2.petals.jbi.descriptor.original.generated.Jbi descriptor)
Create the deployment context |
protected Context |
createRecoveryContext(org.ow2.petals.jbi.descriptor.original.generated.Jbi descriptor,
java.net.URL installUrl)
Create recovery context for component and shared libraries |
protected void |
moveUnknownDirsToLostPlusFoundDir(java.util.List<java.io.File> unknownDirs)
Move all unknown components from Petals repository to "lost+found" directory |
void |
recoverAllEntities()
Recover all petals recoverable entities (component, shared lib and service assemblies) |
void |
recoverAllServiceAssembly()
|
void |
recoverAllSharedLibrary()
|
protected void |
recoverComponent(java.net.URL installUrl,
org.ow2.petals.jbi.descriptor.original.generated.Jbi descriptor,
java.lang.String installState,
java.lang.String lifecycleState,
java.lang.String compName)
Recover the given component. |
protected void |
recoverServiceAssembly(java.net.URL installRoot,
org.ow2.petals.jbi.descriptor.original.generated.Jbi descriptor,
java.lang.String lifecycleState)
Recover the given Service Assembly. |
protected void |
recoverSharedLib(java.net.URL installUrl,
org.ow2.petals.jbi.descriptor.original.generated.Jbi descriptor)
Recover the given shared library. |
protected void |
start()
Start FRACTAL component. |
protected void |
stop()
Stop the FRACTAL component |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.ow2.petals.util.LoggingUtil log
protected InstallationTaskFactory installationTaskFactory
protected EndpointRegistry endpointRegistry
protected AdminService adminService
protected RouterService router
protected RepositoryService repositoryService
protected SystemStateService systemStateService
protected ContainerService container
| Constructor Detail |
|---|
public SystemRecoveryServiceImpl()
| Method Detail |
|---|
public void recoverAllEntities()
throws ManagementException
SystemRecoveryService
recoverAllEntities in interface SystemRecoveryServiceManagementException
public void recoverAllServiceAssembly()
throws ManagementException
ManagementException
public void recoverAllSharedLibrary()
throws ManagementException
ManagementExceptionprotected void moveUnknownDirsToLostPlusFoundDir(java.util.List<java.io.File> unknownDirs)
unknownDirs - the List of unknown dirs that have to be moved.
protected void recoverComponent(java.net.URL installUrl,
org.ow2.petals.jbi.descriptor.original.generated.Jbi descriptor,
java.lang.String installState,
java.lang.String lifecycleState,
java.lang.String compName)
throws ManagementException
InstallationServiceMBean), calling the "install" method on
the created Installer and putting the component in its previous state by
calling "start" or/and "stop" on the created component lifecycle.
installationRoot - installState - lifecycleState -
ManagementException
protected Context createRecoveryContext(org.ow2.petals.jbi.descriptor.original.generated.Jbi descriptor,
java.net.URL installUrl)
descriptor - installRoot -
protected void recoverServiceAssembly(java.net.URL installRoot,
org.ow2.petals.jbi.descriptor.original.generated.Jbi descriptor,
java.lang.String lifecycleState)
throws ManagementException
DeploymentServiceMBean) and putting the Service Assembly in
its previous state by calling "start" or/and "stop" on the created
component lifecycle.
installationRoot - lifecycleState -
ManagementException
protected Context createDeploymentContext(java.net.URL installUrl,
org.ow2.petals.jbi.descriptor.original.generated.Jbi descriptor)
descriptor - the sa jbi descriptor
protected void recoverSharedLib(java.net.URL installUrl,
org.ow2.petals.jbi.descriptor.original.generated.Jbi descriptor)
throws ManagementException
InstallationServiceMBean).
installationRoot -
ManagementExceptionprotected void start()
protected void stop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||