1 26 27 package org.objectweb.openccm.OpenCCM_DCI.cif; 28 29 import org.objectweb.openccm.OpenCCM_DCI.*; 30 39 public class ComponentServerManagerRegistrationImpl 40 extends org.objectweb.openccm.OpenCCM_DCI. 41 NodeManagerSessionComposition.ComponentServerManagerRegistrationSeg 42 { 43 64 70 public org.omg.Components.Cookie 71 register_component_server_manager( 72 org.objectweb.openccm.OpenCCM_DCI 73 .ComponentServerManager component_server_manager) 74 { 75 try{ 76 return 78 ((org.objectweb.openccm 79 .OpenCCM_DCI.NodeManagerCCM)get_context()) 80 .connect_component_server_managers(component_server_manager) ; 81 } 82 catch(Exception e){e.printStackTrace();} 83 System.err.println("Error occured during component server manager connection"); 84 return null; 85 } 86 87 88 94 public void 95 unregister_component_server_manager(org.omg.Components.Cookie cookie) 96 throws org.omg.Components.CookieRequired 97 { 98 try{ 99 ((org.objectweb.openccm.OpenCCM_DCI.NodeManagerCCM) 101 get_context()) 102 .disconnect_component_server_managers(cookie); 103 } 104 catch(Exception e){ 105 e.printStackTrace(); 106 throw new org.omg.Components.CookieRequired(); 107 } 108 } 109 110 } 111 | Popular Tags |