|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.objectweb.jeremie.libs.binding.echannel.EventChannelFactory
The EventChannelFactory service allows the construction of EventChannels providing best-effort unreliable and unordered event dissemination. It relies on the RTP protocol on top of IP multicast.
| Method Summary | |
void |
bindConsumer(Object consumer,
EBinder.EId id)
Binds a consumer object to the event channel represented by the given identifier. |
Identifier |
decode(byte[] data,
int offset,
int length)
Decode an indentifier representing an event channel out of the supplied array of bytes. |
Identifier |
decode(UnMarshaller u)
Decodes an identifier from the provided unmarshaller. |
Identifier |
export(Object itf,
Context hints)
This operation has no meaning in this context: an InternalException is always thrown. |
protected void |
initialize(Context c,
Object[] used_components)
Initializes the EventChannelfactory. |
EventChannel |
newEventChannel(String address,
int port,
String type)
Constructs and returns a new EventChannel |
Object |
newStub(SessionIdentifier ep,
Identifier[] ids,
Context hints)
Builds a new stub adapted for one-way event generation |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
protected void initialize(Context c,
Object[] used_components)
throws JonathanException
c - the Context instance to be used;JonathanException - if something goes wrong.
public Identifier export(Object itf,
Context hints)
export in interface NamingContextitf - hints -
public Object newStub(SessionIdentifier ep,
Identifier[] ids,
Context hints)
throws JonathanException
newStub in interface StubFactoryep - the protocol SessionIdentifier of the event channelids - the set of indentifiers for the stubshints - a String containing the type of the EventChannelJonathanException - if something goes wrong
public EventChannel newEventChannel(String address,
int port,
String type)
throws JonathanException
address - the IP multicast address to useport - the port number to usetype - the type of the EventChannelJonathanException - thrown if something goes wrong
public void bindConsumer(Object consumer,
EBinder.EId id)
throws JonathanException
consumer - the consumer object to add to the channelid - the identifier of the EventChannelJonathanException - thrown if something goes wrong
public Identifier decode(byte[] data,
int offset,
int length)
throws JonathanException
decode in interface NamingContextdata - the array of bytes from which to decode the identifieroffset - the offset in bytes from which to start the decodinglength - the length in bytes of the portion of the byte array to decodeJonathanException - thrown if the decoding fails
public Identifier decode(UnMarshaller u)
throws JonathanException
decode in interface NamingContextu - an unmarhaller;JonathanException - if something goes wrong.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||