1 26 27 package org.objectweb.openccm.OpenCCM_DCI.cif; 28 29 import org.objectweb.openccm.OpenCCM_DCI.*; 30 31 39 40 public class NodeManagerHomeImpl 41 extends org.objectweb.openccm 42 .OpenCCM_DCI.NodeManagerSessionComposition 43 .NodeManagerHomeImpl 44 { 45 private String npdFilePath; 52 58 59 public 60 NodeManagerHomeImpl() 61 { 62 super(); 63 } 64 65 71 77 83 88 public org.omg.Components.ExecutorSegmentBase 89 create_executor_segment(int segid) 90 { 91 switch(segid){ 92 case 0 93 : NodeManagerImpl nmi= 94 new NodeManagerImpl(npdFilePath); 95 return nmi; 96 case org.objectweb.openccm.OpenCCM_DCI. 97 NodeManagerSessionComposition. 98 ComponentServerManagerRegistrationSeg._segment_id_value 99 : return new ComponentServerManagerRegistrationImpl(); 100 case org.objectweb.openccm.OpenCCM_DCI. 101 NodeManagerSessionComposition. 102 ServerActivatorSeg._segment_id_value 103 : return new ServerActivatorImpl(); 104 case org.objectweb.openccm.OpenCCM_DCI. 105 NodeManagerSessionComposition. 106 ComponentInstallationSeg._segment_id_value 107 : return new ExtComponentInstallationImpl(); 108 case org.objectweb.openccm.OpenCCM_DCI. 109 NodeManagerSessionComposition. 110 NodeInformationSeg._segment_id_value 111 : return new NodeInformationSegImpl(); 112 default:System.err.println("Bad segment request"); 113 return null; 114 } 115 116 } 117 118 124 128 public static org.omg.Components.HomeExecutorBase 129 create_home() 130 { 131 return new NodeManagerHomeImpl(); 132 } 133 134 139 public org.omg.Components.EnterpriseComponent 140 create_node(String npdFilePath){ 141 this.npdFilePath=npdFilePath; 142 return create(); 143 } 144 145 146 } 147 | Popular Tags |