public class RTPProtocol extends Object implements Protocol
Modifier and Type | Field and Description |
---|---|
static byte |
INVOC_PAYLOAD
our proprietary payload constant
|
static int |
rtp_version
the version of RTP supported
|
Constructor and Description |
---|
RTPProtocol(int mtu)
Builds a new RTPProtocol instance
|
Modifier and Type | Method and Description |
---|---|
Protocol |
createProtocol(NamingContext adapter) |
ProtocolGraph |
createProtocolGraph(ProtocolGraph[] lower,
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.
|
ProtocolGraph |
newProtocolGraph(ProtocolGraph next)
Builds a new RTP ProtocolGraph
|
SessionIdentifier |
newSessionIdentifier(SessionIdentifier next)
Builds a new RTP SessionIdentifier
|
public static final int rtp_version
public static final byte INVOC_PAYLOAD
public RTPProtocol(int mtu)
mtu
- the mtu that the RTPProtocol will assume for fragmenting
messagespublic 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 SessionIdentifier newSessionIdentifier(SessionIdentifier next)
next
- the lower level session identifierpublic SessionIdentifier createSessionIdentifier(Properties info, SessionIdentifier[] next)
Protocol
createSessionIdentifier
in interface Protocol
public ProtocolGraph newProtocolGraph(ProtocolGraph next)
next
- the lower level protocol graph.public ProtocolGraph createProtocolGraph(ProtocolGraph[] lower, org.objectweb.jonathan.apis.kernel.Context hints) throws org.objectweb.jonathan.apis.kernel.JonathanException
Protocol
createProtocolGraph
in interface Protocol
lower
- the lower-level graphshints
- the information req'd to build the graphorg.objectweb.jonathan.apis.kernel.JonathanException
- if the hints or the subgraphs are
invalid for this protocolpublic Protocol createProtocol(NamingContext adapter)