|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonathan.protocols.rtp.RTPProtocol
RTPProtocol is a partial implementation of the RTP protocol. It is an invocation protocol allowing the emission of one-way requests packaged within RTP packets. Requests whose size exceeds the mtu of the underlying transport are fragmented and reassembled. The semantics of this protocol depends on the specific transport protocol on top of which it is plugged. RTPProtocol, proper, is unreliable and unordered
Field Summary | |
static byte |
INVOC_PAYLOAD
our proprietary payload constant |
static int |
rtp_version
the version of RTP supported |
Constructor Summary | |
RTPProtocol(int mtu)
Builds a new RTPProtocol instance |
Method Summary | |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int rtp_version
public static final byte INVOC_PAYLOAD
Constructor Detail |
public RTPProtocol(int mtu)
mtu
- the mtu that the RTPProtocol will assume for fragmenting
messagesMethod Detail |
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 SessionIdentifier newSessionIdentifier(SessionIdentifier next)
next
- the lower level session identifier
public 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 graph
org.objectweb.jonathan.apis.kernel.JonathanException
- if the hints or the subgraphs are
invalid for this protocolpublic Protocol createProtocol(NamingContext adapter)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |