1 26 27 package org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.installer; 28 29 30 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.*; 31 32 39 public class PartitioningDeployer extends PartitioningDeployerContext 40 { 41 42 43 49 55 61 67 73 public void 74 deploy() 75 throws FatalDeploymentException 76 { 77 78 traverse(this,getHomeplacementDeployers()); 80 traverse(this,getComponentplacementDeployers()); 82 traverse(this,getHostcollocationDeployers()); 84 traverse(this,getProcesscollocationDeployers()); 86 87 getLifeCycleManager().stepEndedSuccessFully(); 88 } 89 90 96 public void 97 tearDown() 98 throws FatalDeploymentException 99 { 100 traverse(this,getComponentplacementDeployers()); 101 traverse(this,getHomeplacementDeployers()); 102 traverse(this,getHostcollocationDeployers()); 103 traverse(this,getProcesscollocationDeployers()); 104 getLifeCycleManager().stepEndedSuccessFully(); 105 } 106 107 113 public void 114 visit(HomeplacementDeployer homeplacementDeployer, DeployerInactiveState status) 115 throws FatalDeploymentException{ 116 homeplacementDeployer.deploy(); 117 } 118 124 public void 125 visit(HomeplacementDeployer homeplacementDeployer, DeployerActiveState status) 126 throws FatalDeploymentException{ 127 homeplacementDeployer.tearDown(); 128 } 129 135 public void 136 visit(ComponentplacementDeployer componentplacementDeployer, DeployerInactiveState status) 137 throws FatalDeploymentException{ 138 componentplacementDeployer.deploy(); 139 } 140 146 public void 147 visit(ComponentplacementDeployer componentplacementDeployer, DeployerActiveState status) 148 throws Exception { 149 componentplacementDeployer.tearDown(); 150 } 151 157 public void 158 visit(HostcollocationDeployer hostcollocationDeployer, DeployerInactiveState status) 159 throws Exception { 160 hostcollocationDeployer.deploy(); 161 } 162 168 public void 169 visit(HostcollocationDeployer hostcollocationDeployer, DeployerActiveState status) 170 throws Exception { 171 hostcollocationDeployer.tearDown(); 172 } 173 174 175 } 176 177 | Popular Tags |