Class DistributedScheme
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
- All Implemented Interfaces:
BackingMapManagerBuilder,MapBuilder,NamedCacheBuilder,ServiceBuilder,BundlingScheme,CachingScheme,ClusteredCachingScheme,ObservableCachingScheme,Scheme,ServiceScheme
- Direct Known Subclasses:
PagedTopicScheme
public class DistributedScheme
extends AbstractCachingScheme<com.tangosol.internal.net.service.grid.PartitionedCacheDependencies>
implements ClusteredCachingScheme, BundlingScheme
The
DistributedScheme class builds a distributed cache.- Since:
- Coherence 12.1.2
- Author:
- pfm 2011.12.06
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTheDistributedScheme.BackupConfigclass manages configuration for the partitioned cache backup map.Nested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.MapBuilder
MapBuilder.Dependencies -
Field Summary
Fields inherited from class com.tangosol.coherence.config.scheme.AbstractServiceScheme
m_serviceDependenciesFields inherited from interface com.tangosol.coherence.config.scheme.ServiceScheme
DELIM_APPLICATION_SCOPE, DELIM_DOMAIN_PARTITION -
Constructor Summary
ConstructorsModifierConstructorDescriptionConstructs aDistributedScheme.protectedDistributedScheme(com.tangosol.internal.net.service.grid.PartitionedCacheDependencies deps) Constructs aDistributedScheme. -
Method Summary
Modifier and TypeMethodDescriptionReturn theBackingMapSchemewhich builds the backing map for the clustered scheme.Return theBackupMapConfigwhich is used to configure the backup map.Obtains theBundleManager.Return the service type.booleanReturn true if a running cluster is needed before using a service.voidsetBackingMapScheme(BackingMapScheme scheme) Set theBackingMapSchemewhich builds the backing map for the clustered scheme.voidsetBackupMapConfig(BackupMapConfig config) Set theBackupMapConfigwhich is used to configure a backup map.voidsetBundleManager(BundleManager mgrBundle) Set theBundleManager.voidsetEventInterceptorBuilders(List<NamedEventInterceptorBuilder> listBuilders) Methods inherited from class com.tangosol.coherence.config.scheme.AbstractCachingScheme
establishMapListeners, getDefaultParameterResolver, getListenerBuilder, realizeBackingMapManager, realizeCache, realizeMap, setListenerBuilder, validateMethods inherited from class com.tangosol.coherence.config.scheme.AbstractServiceScheme
ensureService, getDefaultServiceName, getScopedServiceName, getScopeName, getServiceBuilder, getServiceDependencies, getServiceName, getXml, injectScopeNameIntoService, isAutoStart, realizeService, setAutoStart, setScopeName, setServiceDependencies, setServiceName, setXmlMethods inherited from class com.tangosol.coherence.config.scheme.AbstractScheme
getSchemeName, isAnonymous, setSchemeName, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tangosol.coherence.config.scheme.Scheme
getSchemeName, isAnonymousMethods inherited from interface com.tangosol.coherence.config.scheme.ServiceScheme
getScopedServiceName, getServiceBuilder, getServiceName, isAutoStart
-
Constructor Details
-
DistributedScheme
public DistributedScheme()Constructs aDistributedScheme. -
DistributedScheme
protected DistributedScheme(com.tangosol.internal.net.service.grid.PartitionedCacheDependencies deps) Constructs aDistributedScheme.- Parameters:
deps- thePartitionedCacheDependenciesto use
-
-
Method Details
-
getServiceType
Return the service type.- Specified by:
getServiceTypein interfaceServiceScheme- Returns:
- the service type
-
getEventInterceptorBuilders
Obtains theListofNamedEventInterceptorBuilders that have been defined for theServiceScheme.Note: For those
ServiceSchemes don't support event interceptors, the returned value must be an empty list.- Specified by:
getEventInterceptorBuildersin interfaceServiceScheme- Overrides:
getEventInterceptorBuildersin classAbstractServiceScheme<com.tangosol.internal.net.service.grid.PartitionedCacheDependencies>- Returns:
- an
ListoverNamedEventInterceptorBuilders
-
isRunningClusterNeeded
public boolean isRunningClusterNeeded()Return true if a running cluster is needed before using a service.- Specified by:
isRunningClusterNeededin interfaceServiceBuilder- Specified by:
isRunningClusterNeededin classAbstractServiceScheme<com.tangosol.internal.net.service.grid.PartitionedCacheDependencies>- Returns:
trueif a running cluster is needed before using a service
-
getBundleManager
Obtains theBundleManager.- Specified by:
getBundleManagerin interfaceBundlingScheme- Returns:
- the BundleManager
-
getBackingMapScheme
Return theBackingMapSchemewhich builds the backing map for the clustered scheme.- Specified by:
getBackingMapSchemein interfaceClusteredCachingScheme- Returns:
- the scheme
-
setBackingMapScheme
Set theBackingMapSchemewhich builds the backing map for the clustered scheme.- Parameters:
scheme- the scheme builder
-
getBackupMapConfig
Return theBackupMapConfigwhich is used to configure the backup map.- Returns:
- the backup map configuration
-
setBundleManager
Set theBundleManager.- Parameters:
mgrBundle- the BundleManager
-
setBackupMapConfig
Set theBackupMapConfigwhich is used to configure a backup map.- Parameters:
config- the backup map configuration
-
setEventInterceptorBuilders
@Injectable("interceptors") public void setEventInterceptorBuilders(List<NamedEventInterceptorBuilder> listBuilders) - Parameters:
listBuilders- theListofNamedEventInterceptorBuilders
-