1 26 27 package org.objectweb.ccm.scripts; 28 29 37 38 public class Shutdown 39 extends org.objectweb.openccm.corba.Application 40 { 41 47 53 56 public 57 Shutdown() 58 { 59 } 60 61 67 73 76 public static void 77 main(String [] args) 78 { 79 Shutdown application = new Shutdown (); 80 application.start(args); 81 } 82 83 89 96 public int 97 run(String [] args) 98 { 99 org.omg.CORBA.Object objectRef = 101 org.objectweb.openccm.corba.TheORB.string_to_object(args[0]); 102 103 org.objectweb.openccm.Shutdownable shutdownable = 105 org.objectweb.openccm.ShutdownableHelper.narrow(objectRef); 106 107 shutdownable.shutdown(); 109 110 return 0; 111 } 112 } 113 | Popular Tags |