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
Modifier and TypeClassDescriptionstatic class
TheDistributedScheme.BackupConfig
class 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_serviceDependencies
Fields inherited from interface com.tangosol.coherence.config.scheme.ServiceScheme
DELIM_APPLICATION_SCOPE, DELIM_DOMAIN_PARTITION
-
Constructor Summary
ModifierConstructorDescriptionConstructs aDistributedScheme
.protected
DistributedScheme
(com.tangosol.internal.net.service.grid.PartitionedCacheDependencies deps) Constructs aDistributedScheme
. -
Method Summary
Modifier and TypeMethodDescriptionReturn theBackingMapScheme
which builds the backing map for the clustered scheme.Return theBackupMapConfig
which is used to configure the backup map.Obtains theBundleManager
.Return the service type.boolean
Return true if a running cluster is needed before using a service.void
setBackingMapScheme
(BackingMapScheme scheme) Set theBackingMapScheme
which builds the backing map for the clustered scheme.void
setBackupMapConfig
(BackupMapConfig config) Set theBackupMapConfig
which is used to configure a backup map.void
setBundleManager
(BundleManager mgrBundle) Set theBundleManager
.void
setEventInterceptorBuilders
(List<NamedEventInterceptorBuilder> listBuilders) Methods inherited from class com.tangosol.coherence.config.scheme.AbstractCachingScheme
establishMapListeners, getDefaultParameterResolver, getListenerBuilder, realizeBackingMapManager, realizeCache, realizeMap, setListenerBuilder, validate
Methods inherited from class com.tangosol.coherence.config.scheme.AbstractServiceScheme
ensureService, getDefaultServiceName, getScopedServiceName, getScopeName, getServiceBuilder, getServiceDependencies, getServiceName, getXml, injectScopeNameIntoService, isAutoStart, realizeService, setAutoStart, setScopeName, setServiceDependencies, setServiceName, setXml
Methods inherited from class com.tangosol.coherence.config.scheme.AbstractScheme
getSchemeName, isAnonymous, setSchemeName, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.tangosol.coherence.config.scheme.Scheme
getSchemeName, isAnonymous
Methods 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
- thePartitionedCacheDependencies
to use
-
-
Method Details
-
getServiceType
Return the service type.- Specified by:
getServiceType
in interfaceServiceScheme
- Returns:
- the service type
-
getEventInterceptorBuilders
Obtains theList
ofNamedEventInterceptorBuilder
s that have been defined for theServiceScheme
.Note: For those
ServiceScheme
s don't support event interceptors, the returned value must be an empty list.- Specified by:
getEventInterceptorBuilders
in interfaceServiceScheme
- Overrides:
getEventInterceptorBuilders
in classAbstractServiceScheme<com.tangosol.internal.net.service.grid.PartitionedCacheDependencies>
- Returns:
- an
List
overNamedEventInterceptorBuilder
s
-
isRunningClusterNeeded
public boolean isRunningClusterNeeded()Return true if a running cluster is needed before using a service.- Specified by:
isRunningClusterNeeded
in interfaceServiceBuilder
- Specified by:
isRunningClusterNeeded
in classAbstractServiceScheme<com.tangosol.internal.net.service.grid.PartitionedCacheDependencies>
- Returns:
true
if a running cluster is needed before using a service
-
getBundleManager
Obtains theBundleManager
.- Specified by:
getBundleManager
in interfaceBundlingScheme
- Returns:
- the BundleManager
-
getBackingMapScheme
Return theBackingMapScheme
which builds the backing map for the clustered scheme.- Specified by:
getBackingMapScheme
in interfaceClusteredCachingScheme
- Returns:
- the scheme
-
setBackingMapScheme
Set theBackingMapScheme
which builds the backing map for the clustered scheme.- Parameters:
scheme
- the scheme builder
-
getBackupMapConfig
Return theBackupMapConfig
which is used to configure the backup map.- Returns:
- the backup map configuration
-
setBundleManager
Set theBundleManager
.- Parameters:
mgrBundle
- the BundleManager
-
setBackupMapConfig
Set theBackupMapConfig
which is used to configure a backup map.- Parameters:
config
- the backup map configuration
-
setEventInterceptorBuilders
@Injectable("interceptors") public void setEventInterceptorBuilders(List<NamedEventInterceptorBuilder> listBuilders) - Parameters:
listBuilders
- theList
ofNamedEventInterceptorBuilder
s
-