org.objectweb.jonathan.binding.echannel
Class EBinder.EId
- EBinder
- Identifier
EId is an indentifier representing an event channel of a given type and
relying on a given multicast address and port.
Identifier
EId(String address, int port, String type) - Builds a new EId representing an event channel of a given type relying
on a given multicast address and port
|
EId(byte[] encoded, int offset, int length) - Builds a new EId representing an event channel by decoding the
information supplied in a byte array
|
EId(UnMarshaller unmarshaller) - Builds a new EId representing an event channel by decoding the
information supplied in an unmarshaller.
|
EId
public EId(String address,
int port,
String type)
Builds a new EId representing an event channel of a given type relying
on a given multicast address and port
address
- the IP multicast address to be used by the channelport
- the port number to be used by the channeltype
- the type of the channel
EId
public EId(byte[] encoded,
int offset,
int length)
throws JonathanException
Builds a new EId representing an event channel by decoding the
information supplied in a byte array
encoded
- the byte array containing the marshalled EIdoffset
- the offset in bytes from which to start the decodinglength
- the length in bytes of the portion of the byte array to
decode
EId
public EId(UnMarshaller unmarshaller)
throws JonathanException
Builds a new EId representing an event channel by decoding the
information supplied in an unmarshaller.
unmarshaller
- an unmarshaller.
bind
public Object bind(Identifier[] ref,
Context hints)
throws JonathanException
encode
public byte[] encode()
throws JonathanException
- encode in interface Identifier
getProtocolGraph
public ProtocolGraph getProtocolGraph()
throws JonathanException
Returns a session identifier for the event channel represented by this EId
- the session identifier
getSessionIdentifier
public SessionIdentifier getSessionIdentifier()
throws JonathanException
Returns a session identifier for the event channel represented by this EId
- the session identifier