|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.net.brg.orb.BrgOrb
This is the root class of JavaBridge, a standard, non-interoperable CORBA ORB.
It is standard because it implements the CORBA ORB specification (more
specifically, it extends org.omg.CORBA.ORB
), but it is not
interoperable because it can only communicate with an IOM BRIDGE server. The
benefit of communicating with the IOM BRIDGE server through a standard CORBA
ORB is that it will support programs written to communicate with an IOM CORBA
server through an interoperable CORBA ORB without modification or even
recompilation.
To indicate to one of the org.omg.CORBA.ORB.init()
method that
you would
like to use this ORB specify the following properties in the
java.util.Properties
object required by those methods.
Name | Value |
---|---|
org.omg.CORBA.ORBClass |
com.sas.net.brg.orb.BrgOrb |
org.omg.CORBA.ORBSingletonClass |
com.sas.net.omgidl.orb.ORB |
It is also possible to instantiate this ORB directly using its constructor.
JavaBridge supports a variety of encryption algoritms for encrypting messages
sent to and received from the IOM BRIDGE server. If encryption is used, then
the authentication message which contains a user name and password will be
encrypted. More information about control of encryption options is available
at the string_to_object
method. The following algorithms are
supported.
Constructor Summary | |
BrgOrb()
|
|
BrgOrb(java.util.Properties properties)
|
Method Summary | |
void |
addEngine(com.sas.net.brg.orb.ProtocolEngineInterface engine)
|
org.omg.CORBA.TypeCode |
create_alias_tc(java.lang.String id,
java.lang.String name,
org.omg.CORBA.TypeCode original_type)
Create a TypeCode object representing another TypeCode object. |
org.omg.CORBA.Any |
create_any()
Create an Any object. |
org.omg.CORBA.TypeCode |
create_array_tc(int length,
org.omg.CORBA.TypeCode element_type)
Create a TypeCode object representing an array. |
org.omg.CORBA.ContextList |
create_context_list()
Create a list of Context objects. |
org.omg.CORBA.TypeCode |
create_enum_tc(java.lang.String id,
java.lang.String name,
java.lang.String[] members)
Create a TypeCode object representing an enum. |
org.omg.CORBA.Environment |
create_environment()
Creates an environment which holds the exception raised by an operation invocation. |
org.omg.CORBA.ExceptionList |
create_exception_list()
Create a list of exceptions raised by an operation. |
org.omg.CORBA.TypeCode |
create_exception_tc(java.lang.String id,
java.lang.String name,
org.omg.CORBA.StructMember[] members)
Create a TypeCode object representing an exception. |
org.omg.CORBA.TypeCode |
create_interface_tc(java.lang.String id,
java.lang.String name)
Create a TypeCode object representing an interface. |
org.omg.CORBA.NVList |
create_list(int count)
Create a name/value pair list. |
org.omg.CORBA.NamedValue |
create_named_value(java.lang.String s,
org.omg.CORBA.Any any,
int flags)
Create a name/value pair. |
org.omg.CORBA.portable.OutputStream |
create_output_stream()
Create a stream for serializing parameters. |
org.omg.CORBA.TypeCode |
create_recursive_sequence_tc(int bound,
int offset)
Deprecated. |
org.omg.CORBA.TypeCode |
create_sequence_tc(int bound,
org.omg.CORBA.TypeCode element_type)
Create a TypeCode object representing a sequence. |
org.omg.CORBA.TypeCode |
create_string_tc(int bound)
Create a TypeCode object representing a string. |
org.omg.CORBA.TypeCode |
create_struct_tc(java.lang.String id,
java.lang.String name,
org.omg.CORBA.StructMember[] members)
Create a TypeCode object representing a struct. |
org.omg.CORBA.TypeCode |
create_union_tc(java.lang.String id,
java.lang.String name,
org.omg.CORBA.TypeCode discriminator_type,
org.omg.CORBA.UnionMember[] members)
Create a TypeCode object representing a union. |
org.omg.CORBA.TypeCode |
create_wstring_tc(int bound)
Create a TypeCode object representing a wide string. |
org.omg.CORBA.Current |
get_current()
Deprecated. |
org.omg.CORBA.Context |
get_default_context()
Create a Context object. |
org.omg.CORBA.Request |
get_next_response()
Throws NO_IMPLEMENT. |
org.omg.CORBA.TypeCode |
get_primitive_tc(org.omg.CORBA.TCKind tcKind)
Get the TypeCode object representing a particular primitive type. |
java.util.Map |
getActiveObjectMap()
|
com.sas.net.brg.orb.ActiveObjectMapKey |
getActiveObjectMapKey()
|
com.sas.net.brg.orb.DelegateBase |
getDelegateBase()
|
com.sas.net.brg.orb.GenericObject |
getGenericObject()
|
int |
getNextClientID()
|
java.lang.String[] |
list_initial_services()
|
java.lang.String |
object_to_string(org.omg.CORBA.Object obj)
|
boolean |
poll_next_response()
Throws NO_IMPLEMENT. |
org.omg.CORBA.Object |
resolve_initial_references(java.lang.String name)
|
void |
returnActiveObjectMapKey(com.sas.net.brg.orb.ActiveObjectMapKey activeObjectMapKey)
|
void |
returnDelegateBase(com.sas.net.brg.orb.DelegateBase delegateBase)
|
void |
returnGenericObject(com.sas.net.brg.orb.GenericObject obj)
|
void |
send_multiple_requests_deferred(org.omg.CORBA.Request[] req)
Throws NO_IMPLEMENT. |
void |
send_multiple_requests_oneway(org.omg.CORBA.Request[] req)
Throws NO_IMPLEMENT. |
void |
shutdown(boolean waitForCompletion)
|
org.omg.CORBA.Object |
string_to_object(java.lang.String url)
This method causes the server to instantiate an object and sets up a remote reference to it on the client. |
Constructor Detail |
public BrgOrb()
public BrgOrb(java.util.Properties properties)
Method Detail |
public void shutdown(boolean waitForCompletion)
public java.lang.String[] list_initial_services()
public org.omg.CORBA.Object resolve_initial_references(java.lang.String name) throws org.omg.CORBA.ORBPackage.InvalidName
public java.lang.String object_to_string(org.omg.CORBA.Object obj)
public org.omg.CORBA.Object string_to_object(java.lang.String url)
The identity and location of the desired object are specified in a specially formatted URL.
bridge://host:port/classId?userName=user_name&password=password&otherNames=otherValues
440196D4-90F0-11D0-9F41-00A024BB830C
.
The name/value pairs listed above are all required. Other name/value pairs may be appended to the URL following the same format as userName and password to control optional functionality.
Note that the server's encryption policy is, by default, optional so no special action is needed to prepare an IOM BRIDGE server to use encryption. However, it is possible to set up the server so that encryption is required. Consult IOM BRIDGE server documentation for details.
Note also that name/value pairs containing &
, =
, or %
need to be
encoded since these characters are reserved in the URL format. Use java.net.URLEncoder
to encode each name and each value individually.
url
- a specially formatted URL indicating the identity and location of a remote object.public org.omg.CORBA.NVList create_list(int count)
count
- the initial capacity of the listpublic org.omg.CORBA.NamedValue create_named_value(java.lang.String s, org.omg.CORBA.Any any, int flags)
s
- the nameany
- the valueflags
- argument direction. One of ARG_IN
, ARG_OUT
or ARG_INOUT
public org.omg.CORBA.ExceptionList create_exception_list()
public org.omg.CORBA.ContextList create_context_list()
public org.omg.CORBA.Context get_default_context()
public org.omg.CORBA.Environment create_environment()
public org.omg.CORBA.portable.OutputStream create_output_stream()
public void send_multiple_requests_oneway(org.omg.CORBA.Request[] req)
public void send_multiple_requests_deferred(org.omg.CORBA.Request[] req)
public boolean poll_next_response()
public org.omg.CORBA.Request get_next_response()
public org.omg.CORBA.TypeCode get_primitive_tc(org.omg.CORBA.TCKind tcKind)
enumerated
- value representing the desired primitive type.public org.omg.CORBA.TypeCode create_struct_tc(java.lang.String id, java.lang.String name, org.omg.CORBA.StructMember[] members)
id
- interface repository IDname
- name of structmembers
- the struct memberspublic org.omg.CORBA.TypeCode create_union_tc(java.lang.String id, java.lang.String name, org.omg.CORBA.TypeCode discriminator_type, org.omg.CORBA.UnionMember[] members)
id
- interface repository IDname
- name of uniondiscriminator_type
- the discriminator typemembers
- the union memberspublic org.omg.CORBA.TypeCode create_enum_tc(java.lang.String id, java.lang.String name, java.lang.String[] members)
id
- interface repository IDname
- name of enummembers
- the enum memberspublic org.omg.CORBA.TypeCode create_alias_tc(java.lang.String id, java.lang.String name, org.omg.CORBA.TypeCode original_type)
id
- interface repository IDname
- name of alias typeoriginal_type
- the original TypeCode objectpublic org.omg.CORBA.TypeCode create_exception_tc(java.lang.String id, java.lang.String name, org.omg.CORBA.StructMember[] members)
id
- interface repository IDname
- name of exceptionmembers
- the exception memberspublic org.omg.CORBA.TypeCode create_interface_tc(java.lang.String id, java.lang.String name)
id
- interface repository IDname
- name of interfacepublic org.omg.CORBA.TypeCode create_string_tc(int bound)
bound
- maximum size of string, or 0 to indicate unbounded stringpublic org.omg.CORBA.TypeCode create_wstring_tc(int bound)
bound
- maximum size of string, or 0 to indicate unbounded stringpublic org.omg.CORBA.TypeCode create_sequence_tc(int bound, org.omg.CORBA.TypeCode element_type)
bound
- maximum size of sequence, or 0 to indicate unbounded sequenceelement_type
- the element typepublic org.omg.CORBA.TypeCode create_recursive_sequence_tc(int bound, int offset)
bound
- maximum size of sequence, or 0 to indicate unbounded sequenceoffset
- offset within sequencepublic org.omg.CORBA.TypeCode create_array_tc(int length, org.omg.CORBA.TypeCode element_type)
length
- size of arrayelement_type
- the element typepublic org.omg.CORBA.Current get_current()
public org.omg.CORBA.Any create_any()
public int getNextClientID()
public void addEngine(com.sas.net.brg.orb.ProtocolEngineInterface engine)
public com.sas.net.brg.orb.GenericObject getGenericObject()
public void returnGenericObject(com.sas.net.brg.orb.GenericObject obj)
public com.sas.net.brg.orb.DelegateBase getDelegateBase()
public void returnDelegateBase(com.sas.net.brg.orb.DelegateBase delegateBase)
public java.util.Map getActiveObjectMap()
public com.sas.net.brg.orb.ActiveObjectMapKey getActiveObjectMapKey()
public void returnActiveObjectMapKey(com.sas.net.brg.orb.ActiveObjectMapKey activeObjectMapKey)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |