KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > openccm > descriptor > componentassembly > ccm > deployer > installer > ProcesscollocationDeployer


1 /*====================================================================
2
3 OpenCCM: The Open CORBA Component Model Platform
4 Copyright (C) 2000-2002 USTL - LIFL - GOAL
5 Contact: openccm@objectweb.org
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20 USA
21
22 Initial developer(s): Briclet Frederic
23 Contributor(s): ___________________________________________________.
24
25 ====================================================================*/

26
27 package org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.installer;
28 //Import all required packages
29

30 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.DeployerActiveState;
31 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.DeployerInactiveState;
32 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.FatalDeploymentException;
33
34 /**
35  * Process the processcollocation deployment.
36  *
37  * @author <a HREF="mailto:frederic.briclet@lifl.fr">Briclet Frederic</a>
38  *
39  * @version 0.1
40  */

41 public class ProcesscollocationDeployer extends ProcesscollocationDeployerContext{
42
43     // ==================================================================
44
//
45
// Internal state.
46
//
47
// ==================================================================
48
// ==================================================================
49
//
50
// Constructors.
51
//
52
// ==================================================================
53

54     // ==================================================================
55
//
56
// Internal methods.
57
//
58
// ==================================================================
59

60     // ==================================================================
61
//
62
// Public methods.
63
//
64
// ==================================================================
65

66
67     /**
68      * Deploy the processcollocation
69      * @throws FatalDeploymentException if fatal problem occured
70      **/

71     public void
72     deploy()
73     throws FatalDeploymentException
74     {
75    
76         traverse(this,getHomeplacementDeployers());
77     }
78     
79     /**
80      * HomeplacementDeployer visitor to install a CCMHome
81      *
82      * @param home The homeplacement to install
83      * @param status The processcollocation current status
84      * @throws FatalDeploymentException if fatal problem occured
85      */

86     public void
87     visit(HomeplacementDeployer home,DeployerInactiveState status)
88     throws FatalDeploymentException
89     {
90          home.deploy();
91      }
92    
93    
94     /**
95      * TearDown method browse its homeplacement children.
96      * @throws FatalDeploymentException if fatal problem occured
97      **/

98     public void
99     tearDown()
100     throws FatalDeploymentException
101     {
102         traverse(this,getHomeplacementDeployers());
103     }
104     /**
105      * HomeplacementDeployer visitor to uninstall a CCMHome
106      *
107      * @param home The homeplacement to install
108      * @param status The processcollocation current status
109      * @throws FatalDeploymentException if fatal problem occured
110      */

111     public void
112     visit(HomeplacementDeployer home,DeployerActiveState status)
113     throws FatalDeploymentException
114     {
115         home.tearDown();
116     }
117 }
118
Popular Tags