org.infinispan.config
Interface GlobalConfiguration.TransportConfig

All Known Implementing Classes:
GlobalConfiguration.TransportType
Enclosing class:
GlobalConfiguration

public static interface GlobalConfiguration.TransportConfig

Configures the transport used for network communications across the cluster.

Since:
5.0
Author:
Vladimir Blagojevic

Method Summary
 Object addProperty(String key, String value)
           
 GlobalConfiguration.TransportConfig clusterName(String clusterName)
          Defines the name of the cluster.
 GlobalConfiguration.TransportConfig distributedSyncTimeout(Long distributedSyncTimeout)
           
 GlobalConfiguration.TransportConfig machineId(String machineId)
          The id of the machine where this node runs.
 GlobalConfiguration.TransportConfig nodeName(String nodeName)
          Name of the current node.
 GlobalConfiguration.TransportConfig rackId(String rackId)
          The id of the rack where this node runs.
 GlobalConfiguration.TransportConfig siteId(String siteId)
          The id of the site where this node runs.
 GlobalConfiguration.TransportConfig strictPeerToPeer(Boolean strictPeerToPeer)
          If set to true, RPC operations will fail if the named cache does not exist on remote nodes with a NamedCacheNotFoundException.
 GlobalConfiguration.TransportConfig transportClass(Class<? extends Transport> transportClass)
          Class that represents a network transport.
 GlobalConfiguration.TransportConfig withProperties(Properties properties)
          Sets transport properties
 

Method Detail

clusterName

GlobalConfiguration.TransportConfig clusterName(String clusterName)
Defines the name of the cluster. Nodes only connect to clusters sharing the same name.

Parameters:
clusterName -

machineId

GlobalConfiguration.TransportConfig machineId(String machineId)
The id of the machine where this node runs. Used for server hinting .


rackId

GlobalConfiguration.TransportConfig rackId(String rackId)
The id of the rack where this node runs. Used for server hinting .


siteId

GlobalConfiguration.TransportConfig siteId(String siteId)
The id of the site where this node runs. Used for server hinting .


distributedSyncTimeout

GlobalConfiguration.TransportConfig distributedSyncTimeout(Long distributedSyncTimeout)

transportClass

GlobalConfiguration.TransportConfig transportClass(Class<? extends Transport> transportClass)
Class that represents a network transport. Must implement org.infinispan.remoting.transport.Transport

Parameters:
transportClass -

nodeName

GlobalConfiguration.TransportConfig nodeName(String nodeName)
Name of the current node. This is a friendly name to make logs, etc. make more sense. Defaults to a combination of host name and a random number (to differentiate multiple nodes on the same host)

Parameters:
nodeName -

withProperties

GlobalConfiguration.TransportConfig withProperties(Properties properties)
Sets transport properties

Parameters:
properties -
Returns:
this TransportConfig

strictPeerToPeer

GlobalConfiguration.TransportConfig strictPeerToPeer(Boolean strictPeerToPeer)
If set to true, RPC operations will fail if the named cache does not exist on remote nodes with a NamedCacheNotFoundException. Otherwise, operations will succeed but it will be logged on the caller that the RPC did not succeed on certain nodes due to the named cache not being available.

Parameters:
strictPeerToPeer - flag controlling this behavior

addProperty

Object addProperty(String key,
                   String value)


Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.