|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.omg.CORBA.BOA
|
+--org.openorb.adapter.boa.BOA
This class provides the implementation of the Basic Object Adapter (BOA). The BOA has been deprected as of CORBA 2.2, when the Portable Object Adapter (POA) was introduced.
| Constructor Summary | |
BOA(ServerManager server_manager)
Constructor. |
|
| Method Summary | |
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(ObjectImpl obj)
Connect an object to the BOA but don't activate it. |
void |
connect(ObjectImpl obj,
boolean activate)
Connect an object to the BOA and optionaly activate it. |
void |
connect(ObjectImpl obj,
java.lang.String name)
Connect and object and provide its key. |
void |
deactivate_impl()
Stop the BOA. |
void |
deactivate_obj(ObjectImpl obj)
Deactivate an object. |
void |
disconnect(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(ObjectImpl objOld,
ObjectImpl objNew)
This operation is used to forward an object. |
Object |
get_component(byte[] object_key)
get_componenent operation. |
DomainManager[] |
get_domain_managers(byte[] object_key)
get_domain_manager operation. |
Object |
get_interface_def(byte[] object_key)
get_interface_def operation. |
Policy[] |
get_server_policies(int[] ts)
Returns a PolicyList containing the Polices set for the requested PolicyTypes. |
ServerManager.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(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,
ServantObject srvObject)
Close off a local operation. |
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. |
| Methods inherited from class org.omg.CORBA.BOA |
init |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BOA(ServerManager server_manager)
server_manager - The server manager the BOA will be connected to.| Method Detail |
public void connect(ObjectImpl obj)
connect in class BOAobj - The object to connect.
public void connect(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(ObjectImpl obj,
java.lang.String name)
connect in class BOAobj - The object to connect to this BOA instance.name - The name to register the object at the corbaloc service.
public void forward(ObjectImpl objOld,
ObjectImpl objNew)
forward in class BOAobjOld - The old object.objNew - The new object requests should be forwarded to.public void disconnect(ObjectImpl obj)
disconnect in class BOAobj - The object to disconnect from this BOA.public void obj_is_ready(ObjectImpl obj)
obj_is_ready in class BOAobj - The object to activate.public void deactivate_obj(ObjectImpl obj)
deactivate_obj in class BOAobj - The object to deactivate.public void impl_is_ready()
impl_is_ready in class BOApublic void deactivate_impl()
deactivate_impl in class 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 ServerManager.AdapterManager getAdapterManager()
getAdapterManager in interface ObjectAdapter
public ObjectAdapter find_adapter(byte[] object_key)
throws AdapterDestroyedException
find_adapter in interface ObjectAdapterpublic byte[] adapter_id(byte[] object_key)
adapter_id in interface ObjectAdapterpublic byte[] object_id(byte[] object_key)
object_id in interface ObjectAdapterpublic Policy[] get_server_policies(int[] ts)
get_server_policies in interface ObjectAdapter
public boolean forced_marshal(byte[] object_key)
throws AdapterDestroyedException
forced_marshal in interface ObjectAdapter
public ServantObject servant_preinvoke(byte[] object_key,
java.lang.String operation,
java.lang.Class expectedType)
throws ForwardRequest,
AdapterDestroyedException
servant_preinvoke in interface ObjectAdapter
public void servant_postinvoke(byte[] object_key,
ServantObject srvObject)
servant_postinvoke in interface ObjectAdapter
public boolean locate(byte[] object_key)
throws ForwardRequest,
AdapterDestroyedException
locate in interface ObjectAdapter
public boolean is_a(byte[] object_key,
java.lang.String repository_id)
throws ForwardRequest,
AdapterDestroyedException
is_a in interface ObjectAdapter
public Object get_interface_def(byte[] object_key)
throws ForwardRequest,
AdapterDestroyedException
get_interface_def in interface ObjectAdapter
public DomainManager[] get_domain_managers(byte[] object_key)
throws ForwardRequest,
AdapterDestroyedException
get_domain_managers in interface ObjectAdapter
public Object get_component(byte[] object_key)
throws ForwardRequest,
AdapterDestroyedException
get_component in interface ObjectAdapter
public TargetInfo predispatch(ServerRequest req)
throws ForwardRequest,
AdapterDestroyedException
predispatch in interface ObjectAdapterids - out parameter holding repository ids of all available interfaces
with the most derived interface appearing first.
public void dispatch(ServerRequest req,
TargetInfo target)
dispatch in interface ObjectAdapter
public void cancel_dispatch(ServerRequest req,
TargetInfo target)
cancel_dispatch in interface ObjectAdapter
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||