KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > PortableActivationIDL > ActivatorOperations


1 package com.sun.corba.se.PortableActivationIDL;
2
3
4 /**
5 * com/sun/corba/se/PortableActivationIDL/ActivatorOperations.java .
6 * Generated by the IDL-to-Java compiler (portable), version "3.2"
7 * from ../../../../src/share/classes/com/sun/corba/se/PortableActivationIDL/activation.idl
8 * Saturday, February 9, 2008 2:04:41 AM PST
9 */

10
11 public interface ActivatorOperations
12 {
13
14   /** A new ORB started server registers itself with the Activator
15     */

16   void registerServer (String JavaDoc serverId, com.sun.corba.se.PortableActivationIDL.ServerProxy serverObj) throws com.sun.corba.se.PortableActivationIDL.ServerNotRegistered;
17
18   /** A server is shutting down that was started by this activator.
19     * Complete termination of the server is detected by the death of the
20     * process implementing the server.
21     */

22   void serverGoingDown (String JavaDoc serverId);
23
24   /** Called whenever an ORB instance is created. This registers
25     * the transport endpoints and the ORB proxy callback object.
26     * Note that we cannot detect when an ORB shuts down, although
27     * all of the POA shutdowns should still be reported.
28     */

29   void registerORB (String JavaDoc serverId, String JavaDoc orbId, com.sun.corba.se.PortableActivationIDL.ORBProxy orb, com.sun.corba.se.PortableActivationIDL.EndPointInfo[] endPointInfo) throws com.sun.corba.se.PortableActivationIDL.ServerNotRegistered, com.sun.corba.se.PortableActivationIDL.NoSuchEndPoint, com.sun.corba.se.PortableActivationIDL.ORBAlreadyRegistered;
30
31   /** Construct or find an ORBD object template corresponding to the
32     * server's object template and return it. Called whenever a
33     * persistent POA is created.
34     */

35   org.omg.PortableInterceptor.ObjectReferenceTemplate JavaDoc registerPOA (String JavaDoc serverId, String JavaDoc orbId, org.omg.PortableInterceptor.ObjectReferenceTemplate JavaDoc poaTemplate);
36
37   /** Called whenever a POA is destroyed.
38     */

39   void poaDestroyed (String JavaDoc serverId, String JavaDoc orbId, org.omg.PortableInterceptor.ObjectReferenceTemplate JavaDoc poaTemplate);
40
41   /** If the server is not running, start it up. This is allowed
42     * whether or not the server has been installed.
43     */

44   void activate (String JavaDoc serverId) throws com.sun.corba.se.PortableActivationIDL.ServerAlreadyActive, com.sun.corba.se.PortableActivationIDL.ServerNotRegistered, com.sun.corba.se.PortableActivationIDL.ServerHeldDown;
45
46   /** If the server is running, shut it down
47     */

48   void shutdown (String JavaDoc serverId) throws com.sun.corba.se.PortableActivationIDL.ServerNotActive, com.sun.corba.se.PortableActivationIDL.ServerNotRegistered;
49
50   /** Invoke the server install hook. If the server is not
51     * currently running, this method will activate it.
52     */

53   void install (String JavaDoc serverId) throws com.sun.corba.se.PortableActivationIDL.ServerNotRegistered, com.sun.corba.se.PortableActivationIDL.ServerHeldDown, com.sun.corba.se.PortableActivationIDL.ServerAlreadyInstalled;
54
55   /** Invoke the server uninstall hook. If the server is not
56     * currently running, this method will activate it.
57     * After this hook completes, the server may still be running.
58     */

59   void uninstall (String JavaDoc serverId) throws com.sun.corba.se.PortableActivationIDL.ServerNotRegistered, com.sun.corba.se.PortableActivationIDL.ServerHeldDown, com.sun.corba.se.PortableActivationIDL.ServerAlreadyUninstalled;
60
61   /** list active servers
62     */

63   String JavaDoc[] getActiveServers ();
64
65   /** list all registered ORBs for a server
66     */

67   String JavaDoc[] getORBNames (String JavaDoc serverId) throws com.sun.corba.se.PortableActivationIDL.ServerNotRegistered;
68
69   /** Find the server template that corresponds to the ORBD's
70     * adapter id.
71     */

72   org.omg.PortableInterceptor.ObjectReferenceTemplate JavaDoc lookupPOATemplate (String JavaDoc serverId, String JavaDoc orbId, String JavaDoc[] orbAdapterName);
73 } // interface ActivatorOperations
74
Popular Tags