1 26 27 package org.objectweb.openccm.OpenCCM_DCI.cif; 28 29 import org.objectweb.openccm.OpenCCM_DCI.*; 30 31 39 40 public class AssemblyFactoryManagerImpl 41 extends org.objectweb.openccm.OpenCCM_DCI 42 .AssemblyFactoryManagerSessionComposition 43 .AssemblyFactoryManagerImpl 44 { 45 51 57 63 69 74 public void 75 ccm_remove() 76 throws org.omg.Components.CCMException 77 { 78 try{ 79 ((AssemblyFactorySegImpl) 80 obtain_executor("assembly_factory")).destroy_assembly_factory(); 81 } 82 catch(org.omg.Components.RemoveFailure e){ 83 System.err.println("Cannot remove all the assembly managers"); 84 } 85 88 org.objectweb.openccm.Deployment.ShutDownThread tr= 89 new org.objectweb.openccm.Deployment.ShutDownThread(); 90 tr.start(); 91 try{ 92 tr.join(); 93 } 94 catch(InterruptedException e){ 95 e.printStackTrace(); 96 } 97 98 } 99 100 106 public void 107 configuration_complete() 108 throws org.omg.Components.InvalidConfiguration 109 { 110 111 try{ 112 ((org.objectweb.openccm.OpenCCM_DCI.AssemblyFactoryManagerCCM) 113 get_context()) 114 .connect_naming_service( 115 org.omg.CosNaming.NamingContextExtHelper 116 .narrow( 117 org.objectweb.openccm.corba.TheNameService 118 .getNamingContext() 119 .getNamingContext())); 120 ((AssemblyFactorySegImpl) 121 obtain_executor("assembly_factory")).setup(); 122 } 123 catch(Exception e){ 124 e.printStackTrace(); 125 System.err.println("Cannot configured the AssemblyFactory"); 126 } 127 } 128 129 130 } 131 | Popular Tags |