|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.openorb.orb.adapter.fwd.ForwardAdapter
public class ForwardAdapter
This class provides the implementation for registering objects that can easily accessed by plain-text corbaloc references.
| Field Summary | |
|---|---|
static byte[] |
CORBALOC_SVC_ID
The byte representation of the service's name. |
static java.lang.String |
CORBALOC_SVC_NAME
The name of the service. |
static byte[] |
JDK_ID
This is the string sent by the JDK ORB when trying to resolve corbaloc references. |
| Constructor Summary | |
|---|---|
ForwardAdapter(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 |
dispatch(ServerRequest req,
TargetInfo ti)
Dispatch a request from a client. |
void |
etherealize(boolean cleanup_in_progress)
Etherialize 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. |
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. |
org.omg.CORBA.Object |
get(java.lang.String initRef)
Resolve using the given string. |
AdapterManager |
getAdapterManager()
Queue manager for the adapter. |
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. |
byte[] |
object_id(byte[] object_key)
Return the object id. |
TargetInfo |
predispatch(ServerRequest req)
Locate the servant object for a request. |
java.lang.String |
put_object(org.omg.CORBA.Object object,
java.lang.String path)
Add a new initial reference. |
void |
put(java.lang.String initRef,
org.omg.CORBA.Object obj)
Add a new initial reference. |
void |
register(byte[] oid,
org.omg.CORBA.Object obj)
Add a new initial reference. |
org.omg.CORBA.Object |
resolve(byte[] key)
Resolve using given byte array. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte[] JDK_ID
public static final java.lang.String CORBALOC_SVC_NAME
public static final byte[] CORBALOC_SVC_ID
| Constructor Detail |
|---|
public ForwardAdapter(ServerManager server_manager)
| Method Detail |
|---|
public org.omg.CORBA.Object get(java.lang.String initRef)
get in interface org.openorb.orb.corbaloc.CorbalocServiceOperationsinitRef - String name of initial reference. Should be
RFC2396 encoded.
org.omg.CORBA.BAD_PARAM - if the initial reference
does not exist.
public void put(java.lang.String initRef,
org.omg.CORBA.Object obj)
put in interface org.openorb.orb.corbaloc.CorbalocServiceOperationsinitRef - String name of initial reference. Should be
RFC2396 encoded.obj - the target object.
org.omg.CORBA.BAD_PARAM - if the initial reference
already exists.public org.omg.CORBA.Object resolve(byte[] key)
resolve in interface org.openorb.orb.corbaloc.CorbalocServiceOperationskey - Initial reference key.
org.omg.CORBA.BAD_PARAM - if the initial reference
does not exist.
public void register(byte[] oid,
org.omg.CORBA.Object obj)
register in interface org.openorb.orb.corbaloc.CorbalocServiceOperationsoid - Name of initial reference. Should be
RFC2396 encoded.obj - the target object.
org.omg.CORBA.BAD_PARAM - if obj is null.
public java.lang.String put_object(org.omg.CORBA.Object object,
java.lang.String path)
put_object in interface org.openorb.orb.corbaloc.CorbalocServiceOperationsobject - the object to registerpath - String name of initial reference. Should be
RFC2396 encoded.
org.omg.CORBA.BAD_PARAM - if the supplied object is null.public 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 - if true the adapter is being perminently
deactivated and will no longer have to dispatch operations.public AdapterManager getAdapterManager()
getAdapterManager in interface ObjectAdapter
public 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 ObjectAdapter
public boolean forced_marshal(byte[] object_key)
throws AdapterDestroyedException
forced_marshal in interface ObjectAdapterAdapterDestroyedException
public 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.ForwardRequest
AdapterDestroyedException
public void servant_postinvoke(byte[] object_key,
org.omg.CORBA.portable.ServantObject srvObject)
servant_postinvoke in interface ObjectAdapter
public boolean locate(byte[] object_key)
throws org.omg.PortableInterceptor.ForwardRequest,
AdapterDestroyedException
locate in interface ObjectAdapterorg.omg.PortableInterceptor.ForwardRequest
AdapterDestroyedException
public boolean is_a(byte[] object_key,
java.lang.String repository_id)
throws org.omg.PortableInterceptor.ForwardRequest,
AdapterDestroyedException
is_a in interface ObjectAdapterorg.omg.PortableInterceptor.ForwardRequest
AdapterDestroyedException
public org.omg.CORBA.Object get_interface_def(byte[] object_key)
throws org.omg.PortableInterceptor.ForwardRequest,
AdapterDestroyedException
get_interface_def in interface ObjectAdapterorg.omg.PortableInterceptor.ForwardRequest
AdapterDestroyedException
public org.omg.CORBA.DomainManager[] get_domain_managers(byte[] object_key)
throws org.omg.PortableInterceptor.ForwardRequest,
AdapterDestroyedException
get_domain_managers in interface ObjectAdapterorg.omg.PortableInterceptor.ForwardRequest
AdapterDestroyedException
public org.omg.CORBA.Object get_component(byte[] object_key)
throws org.omg.PortableInterceptor.ForwardRequest,
AdapterDestroyedException
get_component in interface ObjectAdapterobject_key - The key of the object.
org.omg.PortableInterceptor.ForwardRequest
AdapterDestroyedException
public 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.ForwardRequest
AdapterDestroyedException
public void dispatch(ServerRequest req,
TargetInfo ti)
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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||