Uses of Class
org.jgroups.JChannel
-
Packages that use JChannel Package Description org.jgroups Provides top-level public JGroups classes such as Channel, Message, etc.org.jgroups.blocks Provides building blocks that are layered on top of channels.org.jgroups.blocks.atomic org.jgroups.blocks.executor org.jgroups.blocks.locking org.jgroups.demos Provides demonstrations of JGroups functionality.org.jgroups.fork org.jgroups.jmx org.jgroups.protocols Provides implementations of transport protocols which are responsible for sending and receiving messages to/from the network.org.jgroups.protocols.relay org.jgroups.protocols.relay.config org.jgroups.stack Support for managing protocol stacks.org.jgroups.util Provides useful functionality which cannot be assigned to any particular other package. -
-
Uses of JChannel in org.jgroups
Fields in org.jgroups declared as JChannel Modifier and Type Field Description protected JChannelChannel. chDeprecated.protected JChannelJChannelProbeHandler. chMethods in org.jgroups that return JChannel Modifier and Type Method Description protected JChannelJChannel. _close(boolean disconnect)protected JChannelJChannel. _connect(Event evt)JChannelJChannel. addAddressGenerator(AddressGenerator address_generator)Sets the newAddressGenerator.JChannelJChannel. addChannelListener(ChannelListener listener)Adds a ChannelListener that will be notified when a connect, disconnect or close occursprotected JChannelJChannel. checkClosed()protected JChannelJChannel. checkClosedOrNotConnected()JChannelJChannel. clearChannelListeners()JChannelJChannel. connect(java.lang.String cluster_name)Joins the cluster.protected JChannelJChannel. connect(java.lang.String cluster_name, boolean useFlushIfPresent)Connects the channel to a cluster.JChannelJChannel. connect(java.lang.String cluster_name, Address target, long timeout)Joins the cluster and gets the state from a specified state provider.JChannelJChannel. connect(java.lang.String cluster_name, Address target, long timeout, boolean useFlushIfPresent)Joins the cluster and gets a state from a specified state provider.JChannelJChannel. disconnect()Leaves the cluster (disconnects the channel if it is connected).JChannelJChannel. getState(Address target, long timeout)Retrieves the full state from the target member.JChannelJChannel. getState(Address target, long timeout, boolean useFlushIfPresent)Retrieves state from the target member.protected JChannelJChannel. getState(Address target, long timeout, java.util.concurrent.Callable<java.lang.Boolean> flushInvoker)protected JChannelJChannel. init()Initializes all variables.protected JChannelJChannel. init(ProtocolStackConfigurator configurator)protected JChannelJChannel. init(JChannel ch)JChannelJChannel. name(java.lang.String name)protected JChannelJChannel. notifyChannelClosed(JChannel c)protected JChannelJChannel. notifyChannelConnected(JChannel c)protected JChannelJChannel. notifyChannelDisconnected(JChannel c)protected JChannelJChannel. notifyListeners(java.util.function.Consumer<ChannelListener> func, java.lang.String msg)JChannelJChannel. receiver(Receiver r)JChannelJChannel. removeChannelListener(ChannelListener listener)protected JChannelJChannelProbeHandler. resetAllStats()JChannelJChannel. resetStats()JChannelJChannel. send(Address dst, byte[] buf)Sends a message.JChannelJChannel. send(Address dst, byte[] buf, int offset, int length)Sends a message to a destination.JChannelJChannel. send(Address dst, java.lang.Object obj)Helper method to create a Message with given parameters and invokesend(Message).JChannelJChannel. send(Message msg)Sends a message.protected JChannelJChannel. setAddress()Generates and sets local_addr.JChannelJChannel. setDiscardOwnMessages(boolean flag)JChannelJChannel. setName(java.lang.String name)Sets the logical name for the channel.JChannelJChannel. setReceiver(Receiver r)JChannelJChannel. setStats(boolean stats)JChannelJChannel. setUpHandler(UpHandler h)JChannelJChannel. startFlush(boolean automatic_resume)Performs the flush of the cluster, ie.JChannelJChannel. startFlush(java.util.List<Address> flushParticipants, boolean automatic_resume)Performs the flush of the cluster but only for the specified flush participants.protected JChannelJChannel. startStack(java.lang.String cluster_name)JChannelJChannel. stats(boolean stats)JChannelJChannel. stopFlush()Stops the current flush round.JChannelJChannel. stopFlush(java.util.List<Address> flushParticipants)Stops the current flush of the cluster for the specified flush participants.protected JChannelJChannel. stopStack(boolean stop, boolean destroy)JChannelJChannel. up(MessageBatch batch)Callback invoked by the protocol stack to deliver a message batchMethods in org.jgroups with parameters of type JChannel Modifier and Type Method Description voidChannelListener. channelClosed(JChannel channel)Channel has been closed notification callbackvoidChannelListener. channelConnected(JChannel channel)Channel has been connected notification callbackvoidChannelListener. channelDisconnected(JChannel channel)Channel has been disconnected notification callbackprotected JChannelJChannel. init(JChannel ch)protected JChannelJChannel. notifyChannelClosed(JChannel c)protected JChannelJChannel. notifyChannelConnected(JChannel c)protected JChannelJChannel. notifyChannelDisconnected(JChannel c)Constructors in org.jgroups with parameters of type JChannel Constructor Description Channel(JChannel ch)Deprecated.JChannel(JChannel ch)Creates a channel with the same configuration as the channel passed to this constructor.JChannelProbeHandler(JChannel ch) -
Uses of JChannel in org.jgroups.blocks
Fields in org.jgroups.blocks declared as JChannel Modifier and Type Field Description protected JChannelMessageDispatcher. channelMethods in org.jgroups.blocks that return JChannel Modifier and Type Method Description JChannelMessageDispatcher. getChannel()JChannelReplicatedHashMap. getChannel()JChannelReplicatedTree. getChannel()Returns the Channel the DistributedTree is connected toMethods in org.jgroups.blocks with parameters of type JChannel Modifier and Type Method Description voidMessageDispatcher. channelClosed(JChannel channel)voidMessageDispatcher. channelConnected(JChannel channel)voidMessageDispatcher. channelDisconnected(JChannel channel)<X extends MessageDispatcher>
XMessageDispatcher. setChannel(JChannel ch)Constructors in org.jgroups.blocks with parameters of type JChannel Constructor Description MessageDispatcher(JChannel channel)MessageDispatcher(JChannel channel, RequestHandler req_handler)ReplicatedHashMap(java.util.concurrent.ConcurrentMap<K,V> map, JChannel channel)Constructs a new ReplicatedHashMap using provided map instance.ReplicatedHashMap(JChannel channel)Constructs a new ReplicatedHashMap with channel.ReplicatedTree(JChannel channel)Expects an already connected channel.RpcDispatcher(JChannel channel, java.lang.Object server_obj) -
Uses of JChannel in org.jgroups.blocks.atomic
Fields in org.jgroups.blocks.atomic declared as JChannel Modifier and Type Field Description protected JChannelCounterService. chMethods in org.jgroups.blocks.atomic with parameters of type JChannel Modifier and Type Method Description voidCounterService. setChannel(JChannel ch)Constructors in org.jgroups.blocks.atomic with parameters of type JChannel Constructor Description CounterService(JChannel ch) -
Uses of JChannel in org.jgroups.blocks.executor
Fields in org.jgroups.blocks.executor declared as JChannel Modifier and Type Field Description protected JChannelExecutionRunner. chprotected JChannelExecutionService. chMethods in org.jgroups.blocks.executor with parameters of type JChannel Modifier and Type Method Description voidExecutionRunner. setChannel(JChannel ch)voidExecutionService. setChannel(JChannel ch)Constructors in org.jgroups.blocks.executor with parameters of type JChannel Constructor Description DistributedFuture(JChannel channel, java.util.concurrent.locks.Lock unfinishedLock, java.util.concurrent.locks.Condition condition, java.util.Set<java.util.concurrent.Future<?>> futuresToFinish, java.lang.Runnable runnable, V result)Creates a FutureTask that will upon running, execute the given Runnable, and arrange that get will return the given result on successful completion.DistributedFuture(JChannel channel, java.util.concurrent.locks.Lock unfinishedLock, java.util.concurrent.locks.Condition condition, java.util.Set<java.util.concurrent.Future<?>> futuresToFinish, java.util.concurrent.Callable<V> callable)Creates a FutureTask that will upon running, execute the given Callable.ExecutionRunner(JChannel channel)ExecutionService(JChannel ch) -
Uses of JChannel in org.jgroups.blocks.locking
Fields in org.jgroups.blocks.locking declared as JChannel Modifier and Type Field Description protected JChannelLockService. chMethods in org.jgroups.blocks.locking with parameters of type JChannel Modifier and Type Method Description voidLockService. setChannel(JChannel ch)Constructors in org.jgroups.blocks.locking with parameters of type JChannel Constructor Description LockService(JChannel ch) -
Uses of JChannel in org.jgroups.demos
Fields in org.jgroups.demos declared as JChannel Modifier and Type Field Description protected JChannelCounterServiceDemo. chprotected JChannelExecutionServiceDemo. chprotected JChannelLockServiceDemo. chprotected JChannelRelayDemo. chprotected JChannelRelayDemoRpc. chprotected JChannelChat. channelMethods in org.jgroups.demos with parameters of type JChannel Modifier and Type Method Description voidDraw. channelClosed(JChannel channel)voidDraw. channelConnected(JChannel channel)voidDraw. channelDisconnected(JChannel channel)protected voidRelayDemo. eventLoop(JChannel ch)voidChat. start(JChannel ch)Method called from other app, injecting channelvoidCounterServiceDemo. start(JChannel ch)voidLockServiceDemo. start(JChannel ch)voidReplicatedHashMapDemo. start(JChannel channel)Constructors in org.jgroups.demos with parameters of type JChannel Constructor Description Draw(JChannel channel)Draw(JChannel channel, boolean use_state, long state_timeout) -
Uses of JChannel in org.jgroups.fork
Subclasses of JChannel in org.jgroups.fork Modifier and Type Class Description classForkChannelImplementation of a ForkChannel, which is a light-weight channel.Fields in org.jgroups.fork declared as JChannel Modifier and Type Field Description protected JChannelForkChannel. main_channelFields in org.jgroups.fork with type parameters of type JChannel Modifier and Type Field Description protected java.util.concurrent.ConcurrentMap<java.lang.String,JChannel>ForkProtocolStack. fork_channelsMethods in org.jgroups.fork that return JChannel Modifier and Type Method Description JChannelForkProtocolStack. get(java.lang.String fork_channel_id)JChannelForkChannel. name(java.lang.String name)JChannelForkProtocolStack. putIfAbsent(java.lang.String id, JChannel fc)Methods in org.jgroups.fork that return types with arguments of type JChannel Modifier and Type Method Description java.util.concurrent.ConcurrentMap<java.lang.String,JChannel>ForkProtocolStack. getForkChannels()Methods in org.jgroups.fork with parameters of type JChannel Modifier and Type Method Description voidForkChannel. channelClosed(JChannel channel)voidForkChannel. channelConnected(JChannel channel)voidForkChannel. channelDisconnected(JChannel channel)protected static FORKForkChannel. getFORK(JChannel ch, ProtocolStack.Position position, java.lang.Class<? extends Protocol> neighbor, boolean create_fork_if_absent)Creates a new FORK protocol, or returns the existing one, or throws an exception.JChannelForkProtocolStack. putIfAbsent(java.lang.String id, JChannel fc)Constructors in org.jgroups.fork with parameters of type JChannel Constructor Description ForkChannel(JChannel main_channel, java.lang.String fork_stack_id, java.lang.String fork_channel_id, boolean create_fork_if_absent, ProtocolStack.Position position, java.lang.Class<? extends Protocol> neighbor, Protocol... protocols)Creates a new fork-channel from a main-channel.ForkChannel(JChannel main_channel, java.lang.String fork_stack_id, java.lang.String fork_channel_id, Protocol... protocols)Creates a new fork-channel from a main-channel. -
Uses of JChannel in org.jgroups.jmx
Methods in org.jgroups.jmx with parameters of type JChannel Modifier and Type Method Description static voidJmxConfigurator. registerChannel(JChannel channel, javax.management.MBeanServer server, java.lang.String name)Registers an already created channel with the given MBeanServer.static voidJmxConfigurator. registerChannel(JChannel channel, javax.management.MBeanServer server, java.lang.String domain, java.lang.String cluster_name, boolean register_protocols)Registers an already created channel with the given MBeanServer.static voidJmxConfigurator. registerChannel(JChannel ch, javax.management.MBeanServer server, javax.management.ObjectName namePrefix, java.lang.String cluster_name, boolean register_protocols)static voidJmxConfigurator. unregisterChannel(JChannel c, javax.management.MBeanServer server, java.lang.String clusterName)static voidJmxConfigurator. unregisterChannel(JChannel c, javax.management.MBeanServer server, java.lang.String domain, java.lang.String clusterName)static voidJmxConfigurator. unregisterChannel(JChannel c, javax.management.MBeanServer server, javax.management.ObjectName prefix, java.lang.String clusterName)static javax.management.DynamicMBeanJmxConfigurator. wrap(JChannel ch)Wrap JChannel with DynamicMBean interface. -
Uses of JChannel in org.jgroups.protocols
Fields in org.jgroups.protocols declared as JChannel Modifier and Type Field Description protected JChannelRELAY. bridgeDeprecated.The bridge between the two local clusters, usually based on a TCP configFields in org.jgroups.protocols with type parameters of type JChannel Modifier and Type Field Description protected java.util.function.Function<java.lang.String,JChannel>RELAY. bridge_creatorDeprecated.Methods in org.jgroups.protocols that return types with arguments of type JChannel Modifier and Type Method Description java.util.function.Function<java.lang.String,JChannel>RELAY. getBridgeCreator()Deprecated.Methods in org.jgroups.protocols with parameters of type JChannel Modifier and Type Method Description protected voidFORK. getStateFrom(JChannel channel, Protocol prot, java.lang.String stack, java.lang.String ch, java.io.DataOutputStream out)Method parameters in org.jgroups.protocols with type arguments of type JChannel Modifier and Type Method Description RELAYRELAY. setBridgeCreator(java.util.function.Function<java.lang.String,JChannel> bc)Deprecated. -
Uses of JChannel in org.jgroups.protocols.relay
Fields in org.jgroups.protocols.relay declared as JChannel Modifier and Type Field Description protected JChannelRoute. bridgeprotected JChannelRelayer.Bridge. channelMethods in org.jgroups.protocols.relay that return JChannel Modifier and Type Method Description JChannelRoute. bridge()JChannelRELAY2. getBridge(java.lang.String site_name)Returns the bridge channel to a given siteMethods in org.jgroups.protocols.relay with parameters of type JChannel Modifier and Type Method Description protected booleanRELAY2. sendTopoReq(JChannel bridge, Address dest)Constructors in org.jgroups.protocols.relay with parameters of type JChannel Constructor Description Bridge(JChannel ch, java.lang.String cluster_name, java.lang.String channel_name, AddressGenerator addr_generator)Route(Address site_master, JChannel bridge, RELAY2 relay, Log log) -
Uses of JChannel in org.jgroups.protocols.relay.config
Methods in org.jgroups.protocols.relay.config that return JChannel Modifier and Type Method Description abstract JChannelRelayConfig.BridgeConfig. createChannel()JChannelRelayConfig.ProgrammaticBridgeConfig. createChannel()JChannelRelayConfig.PropertiesBridgeConfig. createChannel() -
Uses of JChannel in org.jgroups.stack
Fields in org.jgroups.stack declared as JChannel Modifier and Type Field Description protected JChannelProtocolStack. channelMethods in org.jgroups.stack that return JChannel Modifier and Type Method Description JChannelProtocolStack. getChannel()Methods in org.jgroups.stack with parameters of type JChannel Modifier and Type Method Description ProtocolStackProtocolStack. setChannel(JChannel ch)Constructors in org.jgroups.stack with parameters of type JChannel Constructor Description NonReflectiveProbeHandler(JChannel ch)ProtocolStack(JChannel channel) -
Uses of JChannel in org.jgroups.util
Methods in org.jgroups.util with parameters of type JChannel Modifier and Type Method Description static booleanUtil. allChannelsHaveSameView(JChannel... channels)static voidUtil. assertAllChannelsHaveSameView(JChannel... channels)static voidUtil. closeFast(JChannel... channels)Closes all non-coordinators first, in parallel, then closes the coord.static booleanUtil. isCoordinator(JChannel ch)static java.lang.StringUtil. printViews(JChannel... channels)static voidUtil. registerChannel(JChannel channel, java.lang.String name)static voidUtil. shutdown(JChannel ch)Drops messages to/from other members and then closes the channel.static booleanUtil. startFlush(JChannel c)Performs the flush of the given channelstatic booleanUtil. startFlush(JChannel c, int numberOfAttempts, long randomSleepTimeoutFloor, long randomSleepTimeoutCeiling)Performs the flush of the given channel within the specfied number of attempts along with random sleep time after each such attempt.static booleanUtil. startFlush(JChannel c, java.util.List<Address> flushParticipants)Performs the flush of the given channel and the specified flush participantsstatic booleanUtil. startFlush(JChannel c, java.util.List<Address> flushParticipants, int numberOfAttempts, long randomSleepTimeoutFloor, long randomSleepTimeoutCeiling)Performs the flush of the given channel for the specified flush participants and the given number of attempts along with random sleep time after each such attempt.static voidUtil. waitUntilAllChannelsHaveSameView(long timeout, long interval, JChannel... channels)Blocks until all channels have the same viewMethod parameters in org.jgroups.util with type arguments of type JChannel Modifier and Type Method Description static voidUtil. waitUntilAllChannelsHaveSameView(long timeout, long interval, java.util.Collection<JChannel> channels)
-