KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ve > luz > ica > jackass > daemon > NodeDeployerManager


1 /*
2  * Copyright (c) 2003 by The Jackass Team
3  * Licensed under the Open Software License version 2.0
4  */

5 package ve.luz.ica.jackass.daemon;
6
7 import ve.luz.ica.jackass.deploy.daemon.NodeDeployer;
8
9 /**
10  * This interface is to be implemented by classes that manage the association
11  * between items (groups, applications or anything identified by a String)
12  * and node deployers.
13  * @author Guido Urdaneta, Carlos Arévalo
14  * @see NodeDeployer
15  */

16 public interface NodeDeployerManager
17 {
18     /**
19      * Returns all node deployers associatied to a specified group.
20      * @param itemName the name of the group.
21      * @return an array with node deployers associated to the specified group
22      * or null if the group does not exist.
23      */

24     NodeDeployer[] getNodeDeployers(String JavaDoc itemName);
25
26     /**
27      * Associates a NodeDeployer and a group.
28      * @param itemName the group name
29      * @param nodeDeployer the node deployer.
30      */

31     void addNodeDeployer(String JavaDoc itemName, NodeDeployer nodeDeployer);
32
33     /**
34      * Removes the association between a NodeDeployer and a group,
35      * if such association exists.
36      * @param itemName the group name.
37      * @param nodeDeployer the NodeDeployer.
38      */

39     void removeNodeDeployer(String JavaDoc itemName, NodeDeployer nodeDeployer);
40
41     /**
42      * Removes a NodeDeployer from every group.
43      * @param nodeDeployer the NodeDeployer.
44      */

45     void removeNodeDeployer(NodeDeployer nodeDeployer);
46
47     /**
48      * Removes a group.
49      * @param itemName the group name.
50      */

51     void removeItem(String JavaDoc itemName);
52 }
53
Popular Tags