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.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 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()protected JChannelJChannel. cleanup()JChannelJChannel. clearChannelListeners()JChannelJChannel. connect(java.lang.String cluster_name)Joins the cluster.JChannelJChannel. connect(java.lang.String cluster_name, Address target, long timeout)Joins the cluster and gets the state from a specified state provider. This method invokesconnectandgetStatemethods.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.
The state transfer is initiated by invoking getState() on this channel.protected JChannelJChannel. init()Initializes all variables.protected JChannelJChannel. init(ProtocolStackConfigurator configurator)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. 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 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)protected JChannelJChannel. startStack(java.lang.String cluster_name)JChannelJChannel. stats(boolean stats)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 default voidChannelListener. channelClosed(JChannel channel)Channel has been closed notification callbackdefault voidChannelListener. channelConnected(JChannel channel)Channel has been connected notification callbackdefault voidChannelListener. channelDisconnected(JChannel channel)Channel has been disconnected notification callbackprotected 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 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. 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
Methods 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.demos
Fields in org.jgroups.demos declared as JChannel Modifier and Type Field Description protected JChannelCounterServiceDemo. chprotected static JChannelProgrammaticChat. chprotected JChannelRelayDemo. chprotected JChannelRelayDemoRpc. chprotected JChannelChat. channelMethods in org.jgroups.demos with parameters of type JChannel Modifier and Type Method Description 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)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
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) -
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 JChannelBridge. channelprotected JChannelRelayer2.Bridge. channelMethods in org.jgroups.protocols.relay that return JChannel Modifier and Type Method Description JChannelRoute. bridge()JChannelRELAY. 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, Relayer3 r, java.lang.String cluster_name, java.lang.String channel_name, AddressGenerator addr_generator)Bridge(JChannel ch, java.lang.String cluster, java.lang.String name, AddressGenerator gen)Route(Address site_master, JChannel bridge, RELAY 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
Fields in org.jgroups.util declared as JChannel Modifier and Type Field Description protected JChannelMetrics. chMethods 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 java.util.Map<java.lang.String,java.util.Map<java.lang.String,Metrics.Entry<java.lang.Object>>>Metrics. extract(JChannel ch)static java.util.Map<java.lang.String,java.util.Map<java.lang.String,Metrics.Entry<java.lang.Object>>>Metrics. extract(JChannel ch, java.util.function.Predicate<java.lang.reflect.AccessibleObject> filter)static booleanTests. hasThreadPool(JChannel... channels)static booleanUtil. isCoordinator(JChannel ch)static booleanTests. mcastRetransmissionAvailable(JChannel... channels)static java.lang.StringUtil. printViews(JChannel... channels)static booleanTests. processingPolicyIs(java.lang.Class<? extends MessageProcessingPolicy> policy_class, JChannel... channels)static voidUtil. registerChannel(JChannel channel, java.lang.String name)static voidUtil. removeFromViews(Address mbr, JChannel... channels)static voidUtil. shutdown(JChannel ch)Drops messages to/from other members and then closes the channel.static booleanTests. ucastRetransmissionAvailable(JChannel... channels)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)
-