public class BOA extends org.omg.CORBA.BOA implements ObjectAdapter
| Constructor and Description |
|---|
BOA(ServerManager server_manager)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
adapter_id(byte[] object_key)
Return the adapter id.
|
int |
cache_priority()
Expected lifetime of the adapter.
|
void |
cancel_dispatch(ServerRequest req,
TargetInfo target)
Cancel a dispatch.
|
void |
connect(org.omg.CORBA.portable.ObjectImpl obj)
Connect an object to the BOA but don't activate it.
|
void |
connect(org.omg.CORBA.portable.ObjectImpl obj,
boolean activate)
Connect an object to the BOA and optionaly activate it.
|
void |
connect(org.omg.CORBA.portable.ObjectImpl obj,
java.lang.String name)
Connect and object and provide its key.
|
void |
deactivate_impl()
Stop the BOA.
|
void |
deactivate_obj(org.omg.CORBA.portable.ObjectImpl obj)
Deactivate an object.
|
void |
disconnect(org.omg.CORBA.portable.ObjectImpl obj)
Disconnect an object.
|
void |
dispatch(ServerRequest req,
TargetInfo target)
Dispatch a request from a client.
|
void |
etherealize(boolean cleanup_in_progress)
Etherealize the adapter.
|
ObjectAdapter |
find_adapter(byte[] object_key)
If this adapter serves this object directly it should return itself,
otherwise it should return an adapter that does.
|
boolean |
forced_marshal(byte[] object_key)
If this returns true then requests for the specified object id
must be sent through the network.
|
void |
forward(org.omg.CORBA.portable.ObjectImpl objOld,
org.omg.CORBA.portable.ObjectImpl objNew)
This operation is used to forward an object.
|
org.omg.CORBA.Object |
get_component(byte[] object_key)
get_componenent operation.
|
org.omg.CORBA.DomainManager[] |
get_domain_managers(byte[] object_key)
get_domain_manager operation.
|
org.omg.CORBA.Object |
get_interface_def(byte[] object_key)
get_interface_def operation.
|
org.omg.CORBA.Policy[] |
get_server_policies(int[] ts)
Returns a PolicyList containing the Polices set for the
requested PolicyTypes.
|
AdapterManager |
getAdapterManager()
Queue manager for the adapter.
|
void |
impl_is_ready()
Run the BOA.
|
boolean |
is_a(byte[] object_key,
java.lang.String repository_id)
is_a operation.
|
boolean |
locate(byte[] object_key)
Respond to a local locate request.
|
void |
obj_is_ready(org.omg.CORBA.portable.ObjectImpl obj)
Activate an object.
|
byte[] |
object_id(byte[] object_key)
Return the object id.
|
TargetInfo |
predispatch(ServerRequest req)
Locate the servant object for a request.
|
void |
servant_postinvoke(byte[] object_key,
org.omg.CORBA.portable.ServantObject srvObject)
Close off a local operation.
|
org.omg.CORBA.portable.ServantObject |
servant_preinvoke(byte[] object_key,
java.lang.String operation,
java.lang.Class expectedType)
Preinvoke a local operation.
|
boolean |
single_threaded()
Adapter is single threaded.
|
public BOA(ServerManager server_manager)
server_manager - The server manager the BOA will be connected to.public void connect(org.omg.CORBA.portable.ObjectImpl obj)
connect in class org.omg.CORBA.BOAobj - The object to connect.public void connect(org.omg.CORBA.portable.ObjectImpl obj,
boolean activate)
obj - The object to connect to this BOA instance.activate - Whether the object should be activated or not.public void connect(org.omg.CORBA.portable.ObjectImpl obj,
java.lang.String name)
connect in class org.omg.CORBA.BOAobj - The object to connect to this BOA instance.name - The name to register the object at the corbaloc service.public void forward(org.omg.CORBA.portable.ObjectImpl objOld,
org.omg.CORBA.portable.ObjectImpl objNew)
forward in class org.omg.CORBA.BOAobjOld - The old object.objNew - The new object requests should be forwarded to.public void disconnect(org.omg.CORBA.portable.ObjectImpl obj)
disconnect in class org.omg.CORBA.BOAobj - The object to disconnect from this BOA.public void obj_is_ready(org.omg.CORBA.portable.ObjectImpl obj)
obj_is_ready in class org.omg.CORBA.BOAobj - The object to activate.public void deactivate_obj(org.omg.CORBA.portable.ObjectImpl obj)
deactivate_obj in class org.omg.CORBA.BOAobj - The object to deactivate.public void impl_is_ready()
impl_is_ready in class org.omg.CORBA.BOApublic void deactivate_impl()
deactivate_impl in class org.omg.CORBA.BOApublic int cache_priority()
cache_priority in interface ObjectAdapterpublic boolean single_threaded()
single_threaded in interface ObjectAdapterpublic void etherealize(boolean cleanup_in_progress)
etherealize in interface ObjectAdaptercleanup_in_progress - ???public AdapterManager getAdapterManager()
getAdapterManager in interface ObjectAdapterpublic ObjectAdapter find_adapter(byte[] object_key) throws AdapterDestroyedException
find_adapter in interface ObjectAdapterAdapterDestroyedExceptionpublic byte[] adapter_id(byte[] object_key)
adapter_id in interface ObjectAdapterpublic byte[] object_id(byte[] object_key)
object_id in interface ObjectAdapterpublic org.omg.CORBA.Policy[] get_server_policies(int[] ts)
get_server_policies in interface ObjectAdapterpublic boolean forced_marshal(byte[] object_key)
throws AdapterDestroyedException
forced_marshal in interface ObjectAdapterAdapterDestroyedExceptionpublic org.omg.CORBA.portable.ServantObject servant_preinvoke(byte[] object_key,
java.lang.String operation,
java.lang.Class expectedType)
throws org.omg.PortableInterceptor.ForwardRequest,
AdapterDestroyedException
servant_preinvoke in interface ObjectAdapterorg.omg.PortableInterceptor.ForwardRequestAdapterDestroyedExceptionpublic void servant_postinvoke(byte[] object_key,
org.omg.CORBA.portable.ServantObject srvObject)
servant_postinvoke in interface ObjectAdapterpublic boolean locate(byte[] object_key)
throws org.omg.PortableInterceptor.ForwardRequest,
AdapterDestroyedException
locate in interface ObjectAdapterorg.omg.PortableInterceptor.ForwardRequestAdapterDestroyedExceptionpublic boolean is_a(byte[] object_key,
java.lang.String repository_id)
throws org.omg.PortableInterceptor.ForwardRequest,
AdapterDestroyedException
is_a in interface ObjectAdapterorg.omg.PortableInterceptor.ForwardRequestAdapterDestroyedExceptionpublic org.omg.CORBA.Object get_interface_def(byte[] object_key)
throws org.omg.PortableInterceptor.ForwardRequest,
AdapterDestroyedException
get_interface_def in interface ObjectAdapterorg.omg.PortableInterceptor.ForwardRequestAdapterDestroyedExceptionpublic org.omg.CORBA.DomainManager[] get_domain_managers(byte[] object_key)
throws org.omg.PortableInterceptor.ForwardRequest,
AdapterDestroyedException
get_domain_managers in interface ObjectAdapterorg.omg.PortableInterceptor.ForwardRequestAdapterDestroyedExceptionpublic org.omg.CORBA.Object get_component(byte[] object_key)
throws org.omg.PortableInterceptor.ForwardRequest,
AdapterDestroyedException
get_component in interface ObjectAdapterorg.omg.PortableInterceptor.ForwardRequestAdapterDestroyedExceptionpublic TargetInfo predispatch(ServerRequest req) throws org.omg.PortableInterceptor.ForwardRequest, AdapterDestroyedException
predispatch in interface ObjectAdapterreq - out parameter holding repository ids of all available interfaces
with the most derived interface appearing first.org.omg.PortableInterceptor.ForwardRequestAdapterDestroyedExceptionpublic void dispatch(ServerRequest req, TargetInfo target)
dispatch in interface ObjectAdapterpublic void cancel_dispatch(ServerRequest req, TargetInfo target)
cancel_dispatch in interface ObjectAdapter