|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.omg.CORBA.ORB
|
+--org.objectweb.david.libs.binding.orbs.ORBSingletonClass
|
+--org.objectweb.david.libs.binding.orbs.ORBClass
This class is an extension of the standard CORBA ORB class, implementing the protocol independent features of a CORBA ORB.
| Field Summary | |
protected NamingContext |
domain
|
protected DavidStreamFactory |
marshaller_factory
|
protected Context |
orb_context
|
protected String |
orb_context_name
|
protected StubFactory |
stub_factory
|
| Fields inherited from interface org.objectweb.david.libs.binding.orbs.Constants |
corba_object_id, corba_prefix, TC_any, TC_boolean, TC_char, TC_double, TC_float, TC_long, TC_longdouble, TC_longlong, TC_null, TC_Object, TC_octet, TC_Principal, TC_short, TC_string, tc_table, TC_TypeCode, TC_ulong, TC_ulonglong, TC_ushort, TC_void, TC_wchar, TC_wstring |
| Constructor Summary | |
protected |
ORBClass()
|
protected |
ORBClass(String _orb_context_name)
Constructs a new instance of ORBClass. |
| Method Summary | |
void |
connect(Object obj)
Exports the provided object to a default adapter of type SimpleAdapter.
|
Any |
create_any()
|
OutputStream |
create_output_stream()
Create a new org.omg.CORBA.portable.OutputStream into which IDL method parameters can be marshalled during method invocation. |
void |
disconnect(Object obj)
Unexports the provided object. |
Request |
get_next_response()
Get the next request instance for which a response has been received. |
protected abstract void |
initialize()
Initialises the target instance of ORBClass. |
protected void |
initialize(Context _orb_context)
Should be called by subclasses when initializing the ORB (not via ORB.init()). |
String[] |
list_initial_services()
Return a list of the initially available CORBA object references, such as the NameService and InterfaceRepository. |
DavidMarshaller |
newMarshaller()
Returns a new marshaller. |
DavidUnMarshaller |
newUnMarshaller()
Returns a new unmarshaller. |
String |
object_to_string(Object object)
Returns a stringified IOR corresponding to the specified CORBA Object. |
void |
perform_work()
This operation does nothing. |
boolean |
poll_next_response()
Find out if any of the deferred (asynchronous) invocations have a response yet. |
Object |
resolve_initial_references(String name)
Resolve a specific object reference from the set of available initial service names. |
void |
run()
This operation blocks the calling thread until shutdown() is called. |
void |
send_multiple_requests_deferred(Request[] requests)
Send multiple dynamic (DII) requests asynchronously. |
void |
send_multiple_requests_oneway(Request[] requests)
Send multiple dynamic (DII) requests asynchronously without expecting any responses. |
protected void |
set_parameters(Applet app,
Properties props)
Initializes the ORB implementation with the given parameters and properties. |
protected void |
set_parameters(String[] args,
Properties props)
Initializes the ORB implementation with the given parameters and properties. |
void |
shutdown(boolean wait_for_completion)
This operation instructs the ORB to shut down. |
Object |
string_to_object(String ior)
Returns a CORBA Object correponding to the specified IOR. |
boolean |
work_pending()
This operation always returns false. |
| Methods inherited from class org.objectweb.david.libs.binding.orbs.ORBSingletonClass |
create_alias_tc, create_array_tc, create_context_list, create_enum_tc, create_environment, create_exception_list, create_exception_tc, create_interface_tc, create_list, create_named_value, create_operation_list, create_recursive_sequence_tc, create_recursive_tc, create_sequence_tc, create_string_tc, create_struct_tc, create_union_tc, create_value_box_tc, create_value_tc, create_wstring_tc, get_default_context, get_primitive_tc |
| Methods inherited from class org.omg.CORBA.ORB |
create_abstract_interface_tc, create_fixed_tc, create_native_tc, create_operation_list, create_policy, get_current, get_service_information, init, init, init |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected String orb_context_name
protected Context orb_context
protected StubFactory stub_factory
protected NamingContext domain
protected DavidStreamFactory marshaller_factory
| Constructor Detail |
protected ORBClass(String _orb_context_name)
_orb_context_name - the scoped name of the context containing
the default orb propertiesprotected ORBClass()
| Method Detail |
protected final void set_parameters(String[] args,
Properties props)
set_parameters in class ORBSingletonClassargs - application strings from main() methodprops - application-specific properties
protected final void set_parameters(Applet app,
Properties props)
set_parameters in class ORBSingletonClassapp - the appletprops - applet-specific propertiesprotected final void initialize(Context _orb_context)
_orb_context -
protected abstract void initialize()
throws JonathanException
This method should be implemented by sub-class instances, and called when
they are initialized directly
by the Jonathan kernel
public void run()
run in class ORBpublic void shutdown(boolean wait_for_completion)
shutdown in class ORBpublic boolean work_pending()
work_pending in class ORBpublic void perform_work()
perform_work in class ORBpublic String[] list_initial_services()
list_initial_services in class ORBSingletonClass
public Object resolve_initial_references(String name)
throws InvalidName
resolve_initial_references in class ORBSingletonClassname - the name of the initial serviceInvalidName - The given name is not associated with a
known service.public String object_to_string(Object object)
object_to_string in class ORBSingletonClassobject - a CORBA object.public Object string_to_object(String ior)
string_to_object in class ORBSingletonClassior - a stringified IOR.public OutputStream create_output_stream()
create_output_stream in class ORBSingletonClasspublic void send_multiple_requests_oneway(Request[] requests)
send_multiple_requests_oneway in class ORBSingletonClassreq - an array of request objects.public void send_multiple_requests_deferred(Request[] requests)
send_multiple_requests_deferred in class ORBSingletonClassrequests - an array of request objects.public boolean poll_next_response()
poll_next_response in class ORBSingletonClasspublic Request get_next_response()
get_next_response in class ORBSingletonClasspublic Any create_any()
create_any in class ORBSingletonClasspublic void connect(Object obj)
SimpleAdapter.
The default adapter must be specified under the property "/david/orbs/initial_services/Connecter".
connect in class ORBSingletonClassobj - a CORBA object reference.public void disconnect(Object obj)
This operation throws a BAD_OPERATION exception if the provided object cannot have been connected by the target ORB.
disconnect in class ORBSingletonClassobj - a CORBA object reference.public DavidMarshaller newMarshaller()
DavidMarshallerFactorynewMarshaller in interface DavidMarshallerFactoryorg.objectweb.david.apis.presentation.DavidMarshallerFactorypublic DavidUnMarshaller newUnMarshaller()
DavidMarshallerFactorynewUnMarshaller in interface DavidMarshallerFactoryorg.objectweb.david.apis.presentation.DavidMarshallerFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||