Class DistributedScheme
- java.lang.Object
-
- com.tangosol.coherence.config.scheme.AbstractScheme
-
- com.tangosol.coherence.config.scheme.AbstractServiceScheme<D>
-
- 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
TheDistributedScheme
class builds a distributed cache.- Since:
- Coherence 12.1.2
- Author:
- pfm 2011.12.06
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DistributedScheme.BackupConfig
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
Constructors Modifier Constructor Description DistributedScheme()
Constructs aDistributedScheme
.protected
DistributedScheme(com.tangosol.internal.net.service.grid.PartitionedCacheDependencies deps)
Constructs aDistributedScheme
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BackingMapScheme
getBackingMapScheme()
Return theBackingMapScheme
which builds the backing map for the clustered scheme.BackupMapConfig
getBackupMapConfig()
Return theBackupMapConfig
which is used to configure the backup map.BundleManager
getBundleManager()
Obtains theBundleManager
.List<NamedEventInterceptorBuilder>
getEventInterceptorBuilders()
String
getServiceType()
Return the service type.boolean
isRunningClusterNeeded()
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 Detail
-
DistributedScheme
public DistributedScheme()
Constructs aDistributedScheme
.
-
DistributedScheme
protected DistributedScheme(com.tangosol.internal.net.service.grid.PartitionedCacheDependencies deps)
Constructs aDistributedScheme
.- Parameters:
deps
- thePartitionedCacheDependencies
to use
-
-
Method Detail
-
getServiceType
public String getServiceType()
Return the service type.- Specified by:
getServiceType
in interfaceServiceScheme
- Returns:
- the service type
-
getEventInterceptorBuilders
public List<NamedEventInterceptorBuilder> 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
public BundleManager getBundleManager()
Obtains theBundleManager
.- Specified by:
getBundleManager
in interfaceBundlingScheme
- Returns:
- the BundleManager
-
getBackingMapScheme
public BackingMapScheme getBackingMapScheme()
Return theBackingMapScheme
which builds the backing map for the clustered scheme.- Specified by:
getBackingMapScheme
in interfaceClusteredCachingScheme
- Returns:
- the scheme
-
setBackingMapScheme
@Injectable("backing-map-scheme") public void setBackingMapScheme(BackingMapScheme scheme)
Set theBackingMapScheme
which builds the backing map for the clustered scheme.- Parameters:
scheme
- the scheme builder
-
getBackupMapConfig
public BackupMapConfig getBackupMapConfig()
Return theBackupMapConfig
which is used to configure the backup map.- Returns:
- the backup map configuration
-
setBundleManager
@Injectable("operation-bundling") public void setBundleManager(BundleManager mgrBundle)
Set theBundleManager
.- Parameters:
mgrBundle
- the BundleManager
-
setBackupMapConfig
@Injectable("backup-storage") public void setBackupMapConfig(BackupMapConfig config)
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
-
-