|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--org.openorb.adapter.fwd.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. |
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. |
Object |
get(java.lang.String initRef)
Resolve using the given string. |
ServerManager.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(Object object,
java.lang.String path)
Add a new initial reference. |
void |
put(java.lang.String initRef,
Object obj)
Add a new initial reference. |
void |
register(byte[] oid,
Object obj)
Add a new initial reference. |
Object |
resolve(byte[] key)
Resolve using given byte array. |
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 java.lang.Object |
equals, 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 Object get(java.lang.String initRef)
get in interface CorbalocServiceOperationsinitRef - String name of initial reference. Should be
RFC2396 encoded.BAD_PARAM - if the initial reference
does not exist.
public void put(java.lang.String initRef,
Object obj)
put in interface CorbalocServiceOperationsinitRef - String name of initial reference. Should be
RFC2396 encoded.obj - the target object.BAD_PARAM - if the initial reference
already exists.public Object resolve(byte[] key)
resolve in interface CorbalocServiceOperationskey - Initial reference key.BAD_PARAM - if the initial reference
does not exist.
public void register(byte[] oid,
Object obj)
register in interface CorbalocServiceOperationsinitRef - String name of initial reference. Should be
RFC2396 encoded.obj - the target object.BAD_PARAM - if obj is null.
public java.lang.String put_object(Object object,
java.lang.String path)
put_object in interface CorbalocServiceOperationsobject - the object to registerpath - String name of initial reference. Should be
RFC2396 encoded.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 ObjectAdapterorg.openorb.adapter.ObjectAdaptercleanup_in_progress - if true the adapter is being perminently
deactivated and will no longer have to dispatch operations.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 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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||