1. package com.sun.corba.se.ActivationIDL;
  2. /**
  3. * com/sun/corba/se/ActivationIDL/_ServerStub.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.1"
  5. * from ../../../../../../src/share/classes/com/sun/corba/se/ActivationIDL/activation.idl
  6. * Sunday, February 22, 2004 11:21:42 PM PST
  7. */
  8. /** Server callback API, passed to Activator in active method.
  9. */
  10. public class _ServerStub extends org.omg.CORBA.portable.ObjectImpl implements com.sun.corba.se.ActivationIDL.Server
  11. {
  12. /** Shutdown this server. Returns after orb.shutdown() completes.
  13. */
  14. public void shutdown ()
  15. {
  16. org.omg.CORBA.portable.InputStream $in = null;
  17. try {
  18. org.omg.CORBA.portable.OutputStream $out = _request ("shutdown", true);
  19. $in = _invoke ($out);
  20. return;
  21. } catch (org.omg.CORBA.portable.ApplicationException $ex) {
  22. $in = $ex.getInputStream ();
  23. String _id = $ex.getId ();
  24. throw new org.omg.CORBA.MARSHAL (_id);
  25. } catch (org.omg.CORBA.portable.RemarshalException $rm) {
  26. shutdown ( );
  27. } finally {
  28. _releaseReply ($in);
  29. }
  30. } // shutdown
  31. /** Install the server. Returns after the install hook completes
  32. * execution in the server.
  33. */
  34. public void install ()
  35. {
  36. org.omg.CORBA.portable.InputStream $in = null;
  37. try {
  38. org.omg.CORBA.portable.OutputStream $out = _request ("install", true);
  39. $in = _invoke ($out);
  40. return;
  41. } catch (org.omg.CORBA.portable.ApplicationException $ex) {
  42. $in = $ex.getInputStream ();
  43. String _id = $ex.getId ();
  44. throw new org.omg.CORBA.MARSHAL (_id);
  45. } catch (org.omg.CORBA.portable.RemarshalException $rm) {
  46. install ( );
  47. } finally {
  48. _releaseReply ($in);
  49. }
  50. } // install
  51. /** Uninstall the server. Returns after the uninstall hook
  52. * completes execution.
  53. */
  54. public void uninstall ()
  55. {
  56. org.omg.CORBA.portable.InputStream $in = null;
  57. try {
  58. org.omg.CORBA.portable.OutputStream $out = _request ("uninstall", true);
  59. $in = _invoke ($out);
  60. return;
  61. } catch (org.omg.CORBA.portable.ApplicationException $ex) {
  62. $in = $ex.getInputStream ();
  63. String _id = $ex.getId ();
  64. throw new org.omg.CORBA.MARSHAL (_id);
  65. } catch (org.omg.CORBA.portable.RemarshalException $rm) {
  66. uninstall ( );
  67. } finally {
  68. _releaseReply ($in);
  69. }
  70. } // uninstall
  71. // Type-specific CORBA::Object operations
  72. private static String[] __ids = {
  73. "IDL:ActivationIDL/Server:1.0"};
  74. public String[] _ids ()
  75. {
  76. return (String[])__ids.clone ();
  77. }
  78. private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
  79. {
  80. String str = s.readUTF ();
  81. String[] args = null;
  82. java.util.Properties props = null;
  83. org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
  84. org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
  85. _set_delegate (delegate);
  86. }
  87. private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
  88. {
  89. String[] args = null;
  90. java.util.Properties props = null;
  91. String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
  92. s.writeUTF (str);
  93. }
  94. } // class _ServerStub