KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > avalon > phoenix > interfaces > DeployerMBean


1 /*
2  * Copyright (C) The Apache Software Foundation. All rights reserved.
3  *
4  * This software is published under the terms of the Apache Software License
5  * version 1.1, a copy of which has been included with this distribution in
6  * the LICENSE.txt file.
7  */

8 package org.apache.avalon.phoenix.interfaces;
9
10 import java.net.URL JavaDoc;
11
12 /**
13  * MBean Interface for the Deployer to use the deploy
14  * feature in the HmtlAdaptor
15  *
16  * @phoenix:mx-topic name="Deployer"
17  *
18  * @author <a HREF="mailto:bauer@denic.de">Joerg Bauer</a>
19  * @see Deployer
20  */

21 public interface DeployerMBean
22 {
23     String JavaDoc ROLE = Deployer.class.getName();
24
25     /**
26      * Deploy an installation.
27      *
28      * @phoenix:mx-operation
29      *
30      * @param name the name of deployment
31      * @param sarURL the installation to deploy
32      * @throws DeploymentException if an error occurs
33      * @see #deploy(String,String)
34      * @see #undeploy(String)
35      * @see #redeploy(String)
36      */

37     void deploy( String JavaDoc name, String JavaDoc sarURL )
38         throws DeploymentException;
39
40     /**
41      * Deploy an installation.
42      *
43      * @phoenix:mx-operation
44      *
45      * @param name the name of deployment
46      * @param location the installation to deploy
47      * @throws DeploymentException if an error occurs
48      * @see #deploy(String,String)
49      * @see #undeploy(String)
50      * @see #redeploy(String)
51      */

52     void deploy( String JavaDoc name, URL JavaDoc location )
53         throws DeploymentException;
54
55     /**
56      * Undeploy an installation.
57      *
58      * @phoenix:mx-operation
59      *
60      * @param name the name of deployment
61      * @throws DeploymentException if an error occurs
62      * @see #deploy(String,String)
63      * @see #deploy(String,URL)
64      * @see #redeploy(String)
65      */

66     void undeploy( String JavaDoc name )
67         throws DeploymentException;
68
69     /**
70      * Redeploy an installation.
71      *
72      * @phoenix:mx-operation
73      *
74      * @param name the name of deployment
75      * @throws DeploymentException if an error occurs
76      * @see #deploy(String,String)
77      * @see #deploy(String,URL)
78      * @see #undeploy(String)
79      */

80     void redeploy( String JavaDoc name )
81         throws DeploymentException;
82 }
83
Popular Tags