1 26 27 package org.objectweb.jonas.ant.cluster; 28 29 import java.util.Iterator ; 30 31 35 public class EjbLevel extends ClusterTasks { 36 37 40 private static final String INFO = "[EjbLevel] "; 41 42 45 public EjbLevel() { 46 super(); 47 } 48 49 53 public void addConfiguredServicesCluster(ServicesCluster servicesCluster) { 54 servicesCluster.setRootTask(getRootTask()); 55 log(INFO + "ServicesCluster added"); 56 servicesCluster.setLogInfo("ServicesCluster"); 57 addClusterTask(servicesCluster); 58 } 59 60 64 public void addConfiguredJdbcRaCluster(JdbcRaCluster jdbcRaCluster) { 65 jdbcRaCluster.setRootTask(getRootTask()); 66 log(INFO + "JdbcRaCluster added"); 67 jdbcRaCluster.setLogInfo("JdbcRaCluster"); 68 addClusterTask(jdbcRaCluster); 69 } 70 71 75 public void addConfiguredDbmCluster(DbmCluster dbmCluster) { 76 dbmCluster.setRootTask(getRootTask()); 77 log(INFO + "DbmCluster added"); 78 dbmCluster.setLogInfo("DbmCluster"); 79 addClusterTask(dbmCluster); 80 } 81 82 86 public void addConfiguredLibCluster(LibCluster libCluster) { 87 libCluster.setRootTask(getRootTask()); 88 log(INFO + "LibCluster added"); 89 libCluster.setLogInfo("LibCluster"); 90 addClusterTask(libCluster); 91 } 92 93 96 public void generatesTasks() { 97 98 for (Iterator it = this.getClusterTasks().iterator(); it.hasNext();) { 99 ClusterTasks ct = (ClusterTasks) it.next(); 100 log(INFO + "tasks generation for " + ct.getLogInfo()); 101 ct.setArch(getArch()); 102 ct.setDestDirPrefix(getDestDirPrefix()); 103 ct.setDestDirSuffixIndFirst(getDestDirSuffixIndFirst()); 104 ct.setDestDirSuffixIndLast(getDestDirSuffixIndLast()); 105 ct.generatesTasks(); 106 addTasks(ct); 107 } 108 } 109 110 } | Popular Tags |