Class FederatedScheme
java.lang.Object
com.tangosol.coherence.config.scheme.AbstractScheme
com.tangosol.coherence.config.scheme.AbstractServiceScheme<com.tangosol.internal.net.service.grid.PartitionedCacheDependencies>
com.tangosol.coherence.config.scheme.AbstractCachingScheme<com.tangosol.internal.net.service.grid.PartitionedCacheDependencies>
com.tangosol.coherence.config.scheme.DistributedScheme
com.tangosol.coherence.config.scheme.FederatedScheme
- All Implemented Interfaces:
BackingMapManagerBuilder, MapBuilder, NamedCacheBuilder, ServiceBuilder, BundlingScheme, CachingScheme, ClusteredCachingScheme, ObservableCachingScheme, Scheme, ServiceScheme
A FederatedScheme creates the infrastructure required for federated caches.
- Since:
- 12.2.1
- Author:
- pp 2012.02.28
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe NameConverter is an implementation ofConverterthat converts an internal cache name to a cache-mapping, binding it to a federated scheme.static classThe TopologyReference class is used to reference a Federation defined in the operational config.Nested classes/interfaces inherited from class DistributedScheme
DistributedScheme.BackupConfigNested classes/interfaces inherited from interface MapBuilder
MapBuilder.Dependencies -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the XML element to set the high-units on the cache for federation journal entries.Fields inherited from class AbstractServiceScheme
m_serviceDependenciesFields inherited from interface ServiceScheme
DELIM_APPLICATION_SCOPE, DELIM_DOMAIN_PARTITION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the name of the ack cache for this service.Return the configured address-provider builder.Return the name of the envelope cache for this service.Return a set of internal cache names.Return theBackingMapSchemewhich builds the backing map for federation's internal caches.Return the name of the journal cache for this service.Return the load-balancer builder.Return a converter that converts an internal cache name to a cache-mapping that ties it to this federated scheme.Return the Participant destination name.Return the service type.Return the configured socket provider builderReturn the list of topology references.Initialize the internal cache names.Realize aBackingMapManagerto be scoped by the specifiedConfigurableCacheFactory.voidsetAddressProvider(ParameterizedBuilder<AddressProvider> addrProviderBuilder) Set the address provider.voidsetFederatedLoading(boolean fFederatedLoading) Set the flag to indicate if the cache store load should be federated.voidSet theBackingMapSchemewhich builds the backing map for federation's internal caches.voidsetJournalcacheHighunits(int nHighUnits) Deprecated.voidsetJournalcacheHighunits(String sHighUnits) Set the high-units limit for the federation journal cache.voidsetLoadBalancer(FederatedServiceLoadBalancerBuilder bldrLoadBalancer) Set the load-balancer builder.voidsetParticipantDestination(String sParticipantDest) Set the Participant destination name.voidsetSendOldValue(boolean fSendOldValue) Set the flag to indicate if the old value should be sent when replicating.voidSet theSocketProviderBuilder.voidsetTopologies(List<FederatedScheme.TopologyReference> listRefs) Set the list of topology references.protected voidvalidate()Validate the properties.Methods inherited from class DistributedScheme
getBackingMapScheme, getBackupMapConfig, getBundleManager, getEventInterceptorBuilders, isRunningClusterNeeded, setBackingMapScheme, setBackupMapConfig, setBundleManager, setEventInterceptorBuildersMethods inherited from class AbstractCachingScheme
establishMapListeners, getDefaultParameterResolver, getListenerBuilder, realizeCache, realizeMap, setListenerBuilder, validateMethods inherited from class AbstractServiceScheme
ensureService, getDefaultServiceName, getScopedServiceName, getScopeName, getServiceBuilder, getServiceDependencies, getServiceName, getXml, injectScopeNameIntoService, isAutoStart, realizeService, setApplicationContext, setAutoStart, setScopeName, setServiceDependencies, setServiceName, setXmlMethods inherited from class AbstractScheme
getSchemeName, isAnonymous, setSchemeNameMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Scheme
getSchemeName, isAnonymousMethods inherited from interface ServiceScheme
getNamedCollectionBuilder, getScopedServiceName, getScopedServiceNameForProperty, getServiceBuilder, getServiceName, isAutoStart
-
Field Details
-
JOURNALCACHE_HIGHUNITS
The name of the XML element to set the high-units on the cache for federation journal entries.- Since:
- 12.2.1.4
- See Also:
-
-
Constructor Details
-
FederatedScheme
public FederatedScheme()Construct aFederatedScheme.
-
-
Method Details
-
getServiceType
Return the service type.- Specified by:
getServiceTypein interfaceServiceScheme- Overrides:
getServiceTypein classDistributedScheme- Returns:
- the service type
-
realizeBackingMapManager
Description copied from class:AbstractCachingSchemeRealize aBackingMapManagerto be scoped by the specifiedConfigurableCacheFactory.- Specified by:
realizeBackingMapManagerin interfaceBackingMapManagerBuilder- Overrides:
realizeBackingMapManagerin classAbstractCachingScheme<com.tangosol.internal.net.service.grid.PartitionedCacheDependencies>- Parameters:
factory- theConfigurableCacheFactory- Returns:
- a
BackingMapManager
-
validate
-
getLoadBalancerBuilder
Return the load-balancer builder.- Returns:
- the load balancer builder
-
setLoadBalancer
@Injectable("load-balancer") public void setLoadBalancer(FederatedServiceLoadBalancerBuilder bldrLoadBalancer) Set the load-balancer builder.- Parameters:
bldrLoadBalancer- the federation service load-balancer
-
getParticipantDestination
Return the Participant destination name.The service name will be returned if no destination name has been specified.
- Returns:
- the Participant destination name
- Since:
- 14.1.2.0.0
-
setParticipantDestination
@Injectable("participant-destination-name") public void setParticipantDestination(String sParticipantDest) Set the Participant destination name.- Parameters:
sParticipantDest- the destination name- Since:
- 14.1.2.0.0
-
getTopologies
Return the list of topology references.- Returns:
- the list of topology references
-
setTopologies
Set the list of topology references.- Parameters:
listRefs- the list of topology references
-
setJournalcacheHighunits
Set the high-units limit for the federation journal cache.- Parameters:
sHighUnits- the high-units limit.- Since:
- 12.2.1.4
-
setJournalcacheHighunits
Deprecated.Set the high-units limit for the federation journal cache.- Parameters:
nHighUnits- the high-units limit.
-
getJournalcacheBackingMapScheme
Return theBackingMapSchemewhich builds the backing map for federation's internal caches.- Returns:
- the scheme
- Since:
- 12.2.1.4
-
setJournalcacheBackingMapScheme
Set theBackingMapSchemewhich builds the backing map for federation's internal caches.- Parameters:
scheme- the scheme builder- Since:
- 12.2.1.4
-
setSendOldValue
Set the flag to indicate if the old value should be sent when replicating.- Parameters:
fSendOldValue- true if the old value should be sent.
-
setFederatedLoading
@Injectable("backing-map-scheme/read-write-backing-map-scheme/cachestore-scheme/federated-loading") public void setFederatedLoading(boolean fFederatedLoading) Set the flag to indicate if the cache store load should be federated.- Parameters:
fFederatedLoading- true if the cache store load should be federated.
-
getAddressProvider
Return the configured address-provider builder.- Returns:
- the configured address provider builder or null
-
setAddressProvider
@Injectable("address-provider") public void setAddressProvider(ParameterizedBuilder<AddressProvider> addrProviderBuilder) Set the address provider.- Parameters:
addrProviderBuilder- the federation service address provider builder
-
getSocketProviderBuilder
Return the configured socket provider builder- Returns:
- the configured socket provider builder
-
setSocketProviderBuilder
Set theSocketProviderBuilder.- Parameters:
builder- the configured socket provider builder
-
getAckCacheName
Return the name of the ack cache for this service.- Returns:
- the ack cache name
-
getEnvelopeCacheName
Return the name of the envelope cache for this service.- Returns:
- the envelope cache name
-
getJournalCacheName
Return the name of the journal cache for this service.- Returns:
- the journal cache name
-
getInternalCacheNames
-
initInternalCacheNames
-
getNameConverter
Return a converter that converts an internal cache name to a cache-mapping that ties it to this federated scheme.- Returns:
- internal cache name converter
-