|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.david.libs.binding.iiop.IIOPBinder
IIOPBinder implements the IIOP protocol (GIOP/TCP/IP). This class should not be used directly by applications, but rather by personnality binders that will instantiate all the parameters: it is an IIOP "delegate" implementation.
Field Summary |
Fields inherited from interface org.objectweb.david.apis.services.java_serial.JAVA_SERIAL_SERVICE |
TAG_JAVA_SERIAL |
Fields inherited from interface org.objectweb.david.apis.services.exotic_protocol.EXOTIC_PROTOCOL_SUPPORT |
TAG_EXOTIC_PROTOCOL |
Constructor Summary | |
IIOPBinder(ProtocolInfo protocol_info,
Scheduler scheduler,
boolean direct_local_optimization,
ChunkFactory chunk_factory,
MarshallerFactory marshaller_factory,
StubFactory stub_factory,
NamingContext context,
TaggedComponents ior_components,
org.objectweb.jonathan.apis.kernel.Context protocolMappings,
org.objectweb.jonathan.apis.kernel.ContextFactory context_factory,
TcpIpProtocol tcp_protocol,
GIOPProtocol giop_protocol)
Builds a new instance of IIOPBinder. |
Method Summary | |
Identifier |
decode(byte[] data,
int offset,
int length)
Decodes an identifier from a buffer portion. |
Identifier |
decode(UnMarshaller u)
Decodes an identifier from the provided unmarhaller. |
Identifier |
export(java.lang.Object id,
org.objectweb.jonathan.apis.kernel.Context hints)
Creates a new identifier for the object interface designated by the id parameter. |
Identifier |
newId(java.lang.String host,
int port,
byte[] key)
Creates an IIOP Identifier. |
void |
setVerbose(boolean verbose)
Should we print informational messages on the log? |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IIOPBinder(ProtocolInfo protocol_info, Scheduler scheduler, boolean direct_local_optimization, ChunkFactory chunk_factory, MarshallerFactory marshaller_factory, StubFactory stub_factory, NamingContext context, TaggedComponents ior_components, org.objectweb.jonathan.apis.kernel.Context protocolMappings, org.objectweb.jonathan.apis.kernel.ContextFactory context_factory, TcpIpProtocol tcp_protocol, GIOPProtocol giop_protocol) throws org.objectweb.jonathan.apis.kernel.JonathanException
If direct_local_optimization
is true, it means that
the actual server implementation should be returned when a local server reference
is unmarshalled. Otherwise, a stub is returned, that will intercept calls to the server.
The context
parameter represents the actual IIOP naming context,
i.e., the context that delegates its operations to the newly created
IIOPBinder.
protocol_info
- the static information for building protocol graphsscheduler
- a schedulerdirect_local_optimization
- shall we use local optimizations?chunk_factory
- a chunk factory;marshaller_factory
- a marshaller factory;stub_factory
- a stub factory;context
- the actual IIOP binder (the ORB);ior_components
- the components to be included in the created IORsprotocolMappings
- maps the numeric protocol ids ProtocolIdentifiers
to instancescontext_factory
- a context factorytcp_protocol
- the TCP/IP protocol instance to be used on fallback to regular IIOPgiop_protocol
- the GIOP protocol instance to be used on fallback to regular IIOP
org.objectweb.jonathan.apis.kernel.JonathanException
- if something goes wrong.Method Detail |
public void setVerbose(boolean verbose)
verbose
- if true, the Binder displays messages on the log.public Identifier export(java.lang.Object id, org.objectweb.jonathan.apis.kernel.Context hints) throws org.objectweb.jonathan.apis.kernel.JonathanException
The hints
member may contain a component named
port
of type int. If so, its value is used as a preferred port
number. id
must be of type Identifier
.
export
in interface NamingContext
id
- an identifier managed by another naming context;hints
- additional information;
org.objectweb.jonathan.apis.kernel.JonathanException
- if something else goes wrong.naming_context.export(
org.objectweb.jonathan.model.name)
public Identifier decode(byte[] data, int offset, int length) throws org.objectweb.jonathan.apis.kernel.JonathanException
decode
in interface NamingContext
data
- the byte array to read the encoded identifier from;offset
- offset of the first byte of the encoding;length
- length of the encoding;
org.objectweb.jonathan.apis.kernel.JonathanException
- if something goes wrong.public Identifier decode(UnMarshaller u) throws org.objectweb.jonathan.apis.kernel.JonathanException
decode
in interface NamingContext
u
- an unmarhaller;
org.objectweb.jonathan.apis.kernel.JonathanException
- if something goes wrong.public Identifier newId(java.lang.String host, int port, byte[] key) throws org.objectweb.jonathan.apis.kernel.JonathanException
host
- a machine host name;port
- a port number;key
- an object key;
org.objectweb.jonathan.apis.kernel.JonathanException
- if something goes wrong.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |