Class JGroupsTransport

java.lang.Object
org.infinispan.remoting.transport.jgroups.JGroupsTransport
All Implemented Interfaces:
org.infinispan.commons.api.Lifecycle, Transport, org.jgroups.ChannelListener, org.jgroups.stack.AddressGenerator

public class JGroupsTransport extends Object implements Transport, org.jgroups.ChannelListener, org.jgroups.stack.AddressGenerator
An encapsulation of a JGroups transport. JGroups transports can be configured using a variety of methods, usually by passing in one of the following properties:
  • configurationString - a JGroups configuration String
  • configurationXml - JGroups configuration XML as a String
  • configurationFile - String pointing to a JGroups XML configuration file
  • channelLookup - Fully qualified class name of a JGroupsChannelLookup instance
These are normally passed in as Properties in TransportConfigurationBuilder.withProperties(Properties) or in the Infinispan XML configuration file.
Since:
4.0
Author:
Manik Surtani, Galder ZamarreƱo
  • Field Details

    • CONFIGURATION_STRING

      public static final String CONFIGURATION_STRING
      See Also:
    • CONFIGURATION_XML

      public static final String CONFIGURATION_XML
      See Also:
    • CONFIGURATION_FILE

      public static final String CONFIGURATION_FILE
      See Also:
    • CHANNEL_LOOKUP

      public static final String CHANNEL_LOOKUP
      See Also:
    • CHANNEL_CONFIGURATOR

      public static final String CHANNEL_CONFIGURATOR
      See Also:
    • SOCKET_FACTORY

      public static final String SOCKET_FACTORY
      See Also:
    • DATA_SOURCE

      public static final String DATA_SOURCE
      See Also:
    • REQUEST_FLAGS_UNORDERED

      public static final short REQUEST_FLAGS_UNORDERED
    • REQUEST_FLAGS_UNORDERED_NO_FC

      public static final short REQUEST_FLAGS_UNORDERED_NO_FC
    • REQUEST_FLAGS_PER_SENDER

      public static final short REQUEST_FLAGS_PER_SENDER
    • REQUEST_FLAGS_PER_SENDER_NO_FC

      public static final short REQUEST_FLAGS_PER_SENDER_NO_FC
    • REPLY_FLAGS

      public static final short REPLY_FLAGS
    • DEFAULT_JGROUPS_CONFIGURATION_FILE

      protected static final String DEFAULT_JGROUPS_CONFIGURATION_FILE
      See Also:
    • log

      public static final Log log
    • configuration

      protected GlobalConfiguration configuration
    • marshaller

      protected org.infinispan.commons.marshall.StreamingMarshaller marshaller
    • notifier

      protected CacheManagerNotifier notifier
    • timeService

      protected org.infinispan.commons.time.TimeService timeService
    • invocationHandler

      protected InboundInvocationHandler invocationHandler
    • timeoutExecutor

      protected ScheduledExecutorService timeoutExecutor
    • nonBlockingExecutor

      protected ExecutorService nonBlockingExecutor
    • jmxRegistration

      protected CacheManagerJmxRegistration jmxRegistration
    • metricsManager

      protected JGroupsMetricsManager metricsManager
    • connectChannel

      protected boolean connectChannel
    • disconnectChannel

      protected boolean disconnectChannel
    • closeChannel

      protected boolean closeChannel
    • props

      protected org.infinispan.commons.util.TypedProperties props
    • channel

      protected org.jgroups.JChannel channel
    • address

      protected Address address
    • physicalAddress

      protected Address physicalAddress
    • clusterView

      protected volatile ClusterView clusterView
  • Constructor Details

    • JGroupsTransport

      public JGroupsTransport(org.jgroups.JChannel channel)
      This form is used when the transport is created by an external source and passed in to the GlobalConfiguration.
      Parameters:
      channel - created and running channel to use
    • JGroupsTransport

      public JGroupsTransport()
  • Method Details