| org.jgroups.ChannelFactory
All known Subclasses: org.jgroups.JChannelFactory,
ChannelFactory | public interface ChannelFactory (Code) | | A channel factory takes care of creation of channel implementations. Subclasses will create
different implementations.
|
createMultiplexerChannel | Channel createMultiplexerChannel(String stack_name, String id, boolean register_for_state_transfer, String substate_id) throws Exception(Code) | | Creates an implementation of Channel using a guven stack name and registering under a given identity.
The latter is used for multiplexing requests to and from a block on top of a channel.
Parameters: stack_name - The name of the stack to be used. All stacks are defined in the configurationwith which the factory is configured (see ChannelFactory.setMultiplexerConfig(Object) for example. Parameters: id - The identifier used for multiplexing and demultiplexing (dispatching requests to one of possiblymultiple receivers). Note that id needs to be a string since it will be shipped with each message. Try to picka short string, because this is shipped with every message (overhead). todo: possibly change to short ? Parameters: register_for_state_transfer - If set to true, after all registered listeners called connect() on the returned Channel,the state for all registered listeners will be fetched and set in all listeners Parameters: substate_id - The ID of the substate to be retrieved. Set this to null if the entire state should be retrieved. Ifregister_for_state_transfer is false, substate_id will be ignored An implementation of Channel which keeps track of the id, so that it can be attached to each messageand be properly dispatched at the receiver. This will be a org.jgroups.mux.MuxChannel. throws: ChannelException - |
setMultiplexerConfig | void setMultiplexerConfig(File properties) throws Exception(Code) | | Initializes the factory from a file. Example: conf/stacks.xml
Parameters: properties - throws: ChannelException - |
|
|