public class MulticastIpProtocol extends Object implements Protocol
Protocol
Constructor and Description |
---|
MulticastIpProtocol(MarshallerFactory marshaller_factory)
Build a new MulticastIpProtocol
|
Modifier and Type | Method and Description |
---|---|
Protocol |
createProtocol(NamingContext adapter) |
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
|
int |
getMtu()
Returns the MulticastIpProtocol MTU (maximum transmition unit).
|
boolean |
isAnInvocationProtocol()
Returns false
|
ProtocolGraph |
newProtocolGraph(String address,
int port)
Builds a new Protocol graph associated with an (IP multicast address,
port) pair
|
SessionIdentifier |
newSessionIdentifier(String address,
int port)
Builds a new SessionIdentifier associated with an (IP multicast address,
port) pair
|
public MulticastIpProtocol(MarshallerFactory marshaller_factory)
marshaller_factory
- the MarshallerFactory used by the protocol to build
incoming messagespublic boolean isAnInvocationProtocol()
isAnInvocationProtocol
in interface Protocol
public int getMtu()
public SessionIdentifier newSessionIdentifier(String address, int port) throws CommunicationException
CommunicationException
- raised if the supplied parameters do not
correspond to a valid IP multicast addresspublic SessionIdentifier createSessionIdentifier(Properties info, SessionIdentifier[] next) throws org.objectweb.jonathan.apis.kernel.JonathanException
Protocol
createSessionIdentifier
in interface Protocol
org.objectweb.jonathan.apis.kernel.JonathanException
public ProtocolGraph newProtocolGraph(String address, int port) throws CommunicationException
CommunicationException
- raised if the supplied parameters do not
correspond to a valid IP multicast addresspublic ProtocolGraph createProtocolGraph(ProtocolGraph[] subgraphs, org.objectweb.jonathan.apis.kernel.Context hints) throws org.objectweb.jonathan.apis.kernel.JonathanException
Protocol
createProtocolGraph
in interface Protocol
subgraphs
- 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)