Constructor and Description |
---|
MultiplexProtocol(org.objectweb.jonathan.apis.kernel.ContextFactory context_factory,
boolean verbose,
MultiplexingPolicyFactory policy_factory) |
Modifier and Type | Method and Description |
---|---|
ProtocolGraph |
createProtocolGraph(ProtocolGraph[] subgraphs,
org.objectweb.jonathan.apis.kernel.Context hints)
Creates a new protocol graph with a number of given sub
protocol graphs.
|
SessionIdentifier |
createSessionIdentifier(Properties info,
SessionIdentifier[] next)
Creates a new session identifier with the provided info
|
boolean |
isAnInvocationProtocol()
Returns true if the target protocol is an invocation protocol.
|
public MultiplexProtocol(org.objectweb.jonathan.apis.kernel.ContextFactory context_factory, boolean verbose, MultiplexingPolicyFactory policy_factory)
public boolean isAnInvocationProtocol()
Protocol
An invocation protocol is a protocol able to handle invocations, i.e.,
requests expecting a reply. In practice, this means that calls to the
prepareInvocation
method
on sessions obtained from the target protocol will not raise an
InternalException
, but perform the appropriate work.
isAnInvocationProtocol
in interface Protocol
public ProtocolGraph createProtocolGraph(ProtocolGraph[] subgraphs, org.objectweb.jonathan.apis.kernel.Context hints)
Protocol
createProtocolGraph
in interface Protocol
subgraphs
- the lower-level graphshints
- the information req'd to build the graphpublic SessionIdentifier createSessionIdentifier(Properties info, SessionIdentifier[] next)
Protocol
createSessionIdentifier
in interface Protocol