|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.jeremie.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.
| Constructor Summary | |
EventChannelFactory(org.objectweb.jonathan.resources.api.ChunkFactory chunk_factory,
org.objectweb.jonathan.presentation.api.MarshallerFactory marshaller_factory)
|
|
| Method Summary | |
void |
bindConsumer(Object consumer,
org.objectweb.jonathan.binding.echannel.EBinder.EId id)
Binds a consumer object to the event channel represented by the given identifier. |
org.objectweb.jonathan.binding.api.Identifier |
decode(byte[] data,
int offset,
int length)
Decode an indentifier representing an event channel out of the supplied array of bytes. |
org.objectweb.jonathan.binding.api.Identifier |
decode(org.objectweb.jonathan.presentation.api.UnMarshaller u)
Decodes an identifier from the provided unmarshaller. |
org.objectweb.jonathan.binding.api.Identifier |
export(Object itf,
org.objectweb.jonathan.apis.kernel.Context hints)
This operation has no meaning in this context: an InternalException is always thrown. |
EventChannel |
newEventChannel(String address,
int port,
String type)
Constructs and returns a new EventChannel |
Object |
newStub(org.objectweb.jonathan.protocols.api.SessionIdentifier ep,
org.objectweb.jonathan.binding.api.Identifier[] ids,
org.objectweb.jonathan.apis.kernel.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 |
| Constructor Detail |
public EventChannelFactory(org.objectweb.jonathan.resources.api.ChunkFactory chunk_factory,
org.objectweb.jonathan.presentation.api.MarshallerFactory marshaller_factory)
| Method Detail |
public org.objectweb.jonathan.binding.api.Identifier export(Object itf,
org.objectweb.jonathan.apis.kernel.Context hints)
export in interface org.objectweb.jonathan.binding.api.NamingContextitf - hints -
public Object newStub(org.objectweb.jonathan.protocols.api.SessionIdentifier ep,
org.objectweb.jonathan.binding.api.Identifier[] ids,
org.objectweb.jonathan.apis.kernel.Context hints)
throws org.objectweb.jonathan.apis.kernel.JonathanException
newStub in interface org.objectweb.jonathan.stub_factories.api.StubFactoryep - the protocol SessionIdentifier of the event channelids - the set of indentifiers for the stubshints - a String containing the type of the EventChannel
org.objectweb.jonathan.apis.kernel.JonathanException - if something goes wrong
public EventChannel newEventChannel(String address,
int port,
String type)
throws org.objectweb.jonathan.apis.kernel.JonathanException
address - the IP multicast address to useport - the port number to usetype - the type of the EventChannel
org.objectweb.jonathan.apis.kernel.JonathanException - thrown if something goes wrong
public void bindConsumer(Object consumer,
org.objectweb.jonathan.binding.echannel.EBinder.EId id)
throws org.objectweb.jonathan.apis.kernel.JonathanException
consumer - the consumer object to add to the channelid - the identifier of the EventChannel
org.objectweb.jonathan.apis.kernel.JonathanException - thrown if something goes wrong
public org.objectweb.jonathan.binding.api.Identifier decode(byte[] data,
int offset,
int length)
throws org.objectweb.jonathan.apis.kernel.JonathanException
decode in interface org.objectweb.jonathan.binding.api.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 decode
org.objectweb.jonathan.apis.kernel.JonathanException - thrown if the decoding fails
public org.objectweb.jonathan.binding.api.Identifier decode(org.objectweb.jonathan.presentation.api.UnMarshaller u)
throws org.objectweb.jonathan.apis.kernel.JonathanException
decode in interface org.objectweb.jonathan.binding.api.NamingContextu - an unmarhaller;
org.objectweb.jonathan.apis.kernel.JonathanException - if something goes wrong.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||