Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.objectweb.jeremie.protocols.giop.GIOPProtocol
Field Summary | |
static String |
|
boolean |
|
Constructor Summary | |
|
Method Summary | |
ProtocolGraph |
|
SessionIdentifier |
|
boolean |
|
public static final String corba_prefix
Constant used for IDL repository ids.
public boolean verbose
Indicates whether warning messages should be printed to stderr. This constant is defined under the name/jeremie/giop/verbose
in thebootstrap context
.
public GIOPProtocol(Scheduler scheduler, MarshallerFactory marshaller_factory, ChunkFactory chunk_factory, ServicesHandler services_handler, ClassPathFinder finder, boolean verbose, ContextFactory context_factory) throws JonathanException
Creates a new GIOP Protocol instance. Theadapter
parameter represents a naming context that will be used to forward requests to their recipient: when GIOP decodes requests, the recipient is encoded as an array of bytes (the object key), that must be the encoding of an identifier foradapter
. GIOP will thus askadapter
to decode this identifier. TheisValid
andresolve
operations on the returned identifier may be used respectively to test the existence of the target object, and its presence locally. If theresolve
doesn't return null, it should return a CORBA object reference, that may be returned in a forward reply (or in case a locate request has been issued). Else, the identifier isbound
. The returned object must be of typeRequestSession
. Theservices_handler
parameter will be called each time a message is sent or received, so that the appropriate services are provided.
- Parameters:
scheduler
- the scheduler corresponding to the kernel;marshaller_factory
- a marshaller factory;chunk_factory
- a chunk factory;services_handler
- a services handler (may be null);finder
- a classpath finder (class loader)verbose
- should we display messages on the log?context_factory
- a context factory
public ProtocolGraph createProtocolGraph(ProtocolGraph[] subgraphs, Context hints) throws JonathanException
Creates a GIOP Protocol graph.
- Parameters:
subgraphs
- lower level protocol graphs. There should be exactly one!hints
- should have a key named "adapter" with an object adapter as value.
- Returns:
- a GIOP Protocol Graph
public SessionIdentifier createSessionIdentifier(Properties info, SessionIdentifier[] next) throws JonathanException
Creates a GIOP Session Identifier
- Parameters:
info
- ignorednext
- the lower level session ids. There should be exactly one.
- Returns:
- a new GIOP session identifier
public boolean isAnInvocationProtocol()
Returns true: GIOP handles invocations.
- Returns:
- true.