org.objectweb.jonathan.binding.echannel

Class EBinder.EId

Enclosing Class:
EBinder
Implemented Interfaces:
Identifier

public class EBinder.EId
extends Object
implements Identifier

EId is an indentifier representing an event channel of a given type and relying on a given multicast address and port.

See Also:
Identifier

Constructor Summary

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.

Method Summary

Object
bind(Identifier[] ref, Context hints)
byte[]
encode()
void
encode(Marshaller marshaller)
NamingContext
getContext()
ProtocolGraph
getProtocolGraph()
Returns a session identifier for the event channel represented by this EId
SessionIdentifier
getSessionIdentifier()
Returns a session identifier for the event channel represented by this EId
boolean
isValid()
Object
resolve()
void
unexport()

Constructor Details

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

Parameters:
address - the IP multicast address to be used by the channel
port - the port number to be used by the channel
type - 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

Parameters:
encoded - the byte array containing the marshalled EId
offset - the offset in bytes from which to start the decoding
length - 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.

Parameters:
unmarshaller - an unmarshaller.

Method Details

bind

public Object bind(Identifier[] ref,
                   Context hints)
            throws JonathanException


encode

public byte[] encode()
            throws JonathanException
Specified by:
encode in interface Identifier


encode

public void encode(Marshaller marshaller)
            throws JonathanException
Specified by:
encode in interface Identifier


getContext

public NamingContext getContext()
Specified by:
getContext in interface Identifier


getProtocolGraph

public ProtocolGraph getProtocolGraph()
            throws JonathanException
Returns a session identifier for the event channel represented by this EId

Returns:
the session identifier


getSessionIdentifier

public SessionIdentifier getSessionIdentifier()
            throws JonathanException
Returns a session identifier for the event channel represented by this EId

Returns:
the session identifier


isValid

public boolean isValid()
Specified by:
isValid in interface Identifier


resolve

public Object resolve()
Specified by:
resolve in interface Identifier


unexport

public void unexport()
Specified by:
unexport in interface Identifier