001: /***** Copyright (c) 1999 Object Management Group. Unlimited rights to
002: duplicate and use this code are hereby granted provided that this
003: copyright notice is included.
004: *****/package org.omg.PortableServer;
005:
006: public interface POAOperations {
007:
008: public org.omg.PortableServer.POA create_POA(
009: java.lang.String adapter_name,
010: org.omg.PortableServer.POAManager a_POAManager,
011: org.omg.CORBA.Policy[] policies)
012: throws org.omg.PortableServer.POAPackage.AdapterAlreadyExists,
013: org.omg.PortableServer.POAPackage.InvalidPolicy;
014:
015: public org.omg.PortableServer.POA find_POA(
016: java.lang.String adapter_name, boolean activate_it)
017: throws org.omg.PortableServer.POAPackage.AdapterNonExistent;
018:
019: void destroy(boolean etherealize_objects,
020: boolean wait_for_completion);
021:
022: public org.omg.PortableServer.ThreadPolicy create_thread_policy(
023: org.omg.PortableServer.ThreadPolicyValue value);
024:
025: public org.omg.PortableServer.LifespanPolicy create_lifespan_policy(
026: org.omg.PortableServer.LifespanPolicyValue value);
027:
028: public org.omg.PortableServer.IdUniquenessPolicy create_id_uniqueness_policy(
029: org.omg.PortableServer.IdUniquenessPolicyValue value);
030:
031: public org.omg.PortableServer.IdAssignmentPolicy create_id_assignment_policy(
032: org.omg.PortableServer.IdAssignmentPolicyValue value);
033:
034: public org.omg.PortableServer.ImplicitActivationPolicy create_implicit_activation_policy(
035: org.omg.PortableServer.ImplicitActivationPolicyValue value);
036:
037: public org.omg.PortableServer.ServantRetentionPolicy create_servant_retention_policy(
038: org.omg.PortableServer.ServantRetentionPolicyValue value);
039:
040: public org.omg.PortableServer.RequestProcessingPolicy create_request_processing_policy(
041: org.omg.PortableServer.RequestProcessingPolicyValue value);
042:
043: public java.lang.String the_name();
044:
045: public org.omg.PortableServer.POA the_parent();
046:
047: public org.omg.PortableServer.POA[] the_children();
048:
049: public org.omg.PortableServer.POAManager the_POAManager();
050:
051: public org.omg.PortableServer.AdapterActivator the_activator();
052:
053: public void the_activator(
054: org.omg.PortableServer.AdapterActivator the_activator);
055:
056: public org.omg.PortableServer.ServantManager get_servant_manager()
057: throws org.omg.PortableServer.POAPackage.WrongPolicy;
058:
059: public void set_servant_manager(
060: org.omg.PortableServer.ServantManager imgr)
061: throws org.omg.PortableServer.POAPackage.WrongPolicy;
062:
063: public org.omg.PortableServer.Servant get_servant()
064: throws org.omg.PortableServer.POAPackage.NoServant,
065: org.omg.PortableServer.POAPackage.WrongPolicy;
066:
067: public void set_servant(org.omg.PortableServer.Servant p_servant)
068: throws org.omg.PortableServer.POAPackage.WrongPolicy;
069:
070: public byte[] activate_object(
071: org.omg.PortableServer.Servant p_servant)
072: throws org.omg.PortableServer.POAPackage.ServantAlreadyActive,
073: org.omg.PortableServer.POAPackage.WrongPolicy;
074:
075: public void activate_object_with_id(byte[] id,
076: org.omg.PortableServer.Servant p_servant)
077: throws org.omg.PortableServer.POAPackage.ServantAlreadyActive,
078: org.omg.PortableServer.POAPackage.ObjectAlreadyActive,
079: org.omg.PortableServer.POAPackage.WrongPolicy;
080:
081: public void deactivate_object(byte[] oid)
082: throws org.omg.PortableServer.POAPackage.ObjectNotActive,
083: org.omg.PortableServer.POAPackage.WrongPolicy;
084:
085: public org.omg.CORBA.Object create_reference(java.lang.String intf)
086: throws org.omg.PortableServer.POAPackage.WrongPolicy;
087:
088: public org.omg.CORBA.Object create_reference_with_id(byte[] oid,
089: java.lang.String intf)
090: throws org.omg.PortableServer.POAPackage.WrongPolicy;
091:
092: public byte[] servant_to_id(org.omg.PortableServer.Servant p_servant)
093: throws org.omg.PortableServer.POAPackage.ServantNotActive,
094: org.omg.PortableServer.POAPackage.WrongPolicy;
095:
096: public org.omg.CORBA.Object servant_to_reference(
097: org.omg.PortableServer.Servant p_servant)
098: throws org.omg.PortableServer.POAPackage.ServantNotActive,
099: org.omg.PortableServer.POAPackage.WrongPolicy;
100:
101: public org.omg.PortableServer.Servant reference_to_servant(
102: org.omg.CORBA.Object reference)
103: throws org.omg.PortableServer.POAPackage.ObjectNotActive,
104: org.omg.PortableServer.POAPackage.WrongPolicy;
105:
106: public byte[] reference_to_id(org.omg.CORBA.Object reference)
107: throws org.omg.PortableServer.POAPackage.WrongAdapter,
108: org.omg.PortableServer.POAPackage.WrongPolicy;
109:
110: public org.omg.PortableServer.Servant id_to_servant(byte[] oid)
111: throws org.omg.PortableServer.POAPackage.ObjectNotActive,
112: org.omg.PortableServer.POAPackage.WrongPolicy;
113:
114: public org.omg.CORBA.Object id_to_reference(byte[] oid)
115: throws org.omg.PortableServer.POAPackage.ObjectNotActive,
116: org.omg.PortableServer.POAPackage.WrongPolicy;
117: }
|