public abstract class AbstractLocalCacheSpaceFactoryBean extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.BeanNameAware, ServiceDetailsProvider
IJSpace
. The
master is set using setSpace(IJSpace)
. This factory represents an IJSpace
that
is the local cache proxy on top of the master space.
Allows to set additional properties that further configure the local cache using setProperties(Properties)
.
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
AbstractLocalCacheSpaceFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
addProperty(String name,
String value) |
void |
afterPropertiesSet()
Constructs a new local cache
IJSpace based on the master local cache set using setSpace(IJSpace) and a set of properties driving the actual local cache type from the
configuration. |
protected abstract IJSpace |
createCache(IDirectSpaceProxy remoteSpace) |
void |
destroy()
Closes the local cache space
|
protected String |
getBeanName() |
protected abstract SpaceCacheConfig |
getCacheConfig() |
Object |
getObject()
Returns an
IJSpace that is the local cache wrapping the
master proxy set using setSpace(com.j_spaces.core.IJSpace) . |
Class<? extends IJSpace> |
getObjectType()
Returns the type of the factory object.
|
ServiceDetails[] |
getServicesDetails()
Retruns one or more service details that the service exposes.
|
boolean |
isSingleton()
Returns
true since this bean is a singleton. |
void |
setBatchSize(int batchSize) |
void |
setBatchTimeout(long batchTimeout) |
void |
setBeanName(String beanName)
Spring callback that sets the bean name.
|
void |
setMaxDisconnectionDuration(long maxDisconnectionDuration) |
void |
setProperties(Properties properties)
Sets additional properties for the local cache.
|
void |
setSpace(IJSpace space)
Sets the master space that a local cache will be built on top.
|
protected void |
validate() |
public void setSpace(IJSpace space)
public void setProperties(Properties properties)
public void setBatchSize(int batchSize)
public void setBatchTimeout(long batchTimeout)
public void setMaxDisconnectionDuration(long maxDisconnectionDuration)
public void setBeanName(String beanName)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
protected String getBeanName()
public void afterPropertiesSet()
IJSpace
based on the master local cache set using setSpace(IJSpace)
and a set of properties driving the actual local cache type from the
configuration. Additional properties are applied based on setProperties(java.util.Properties)
.afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
protected abstract IJSpace createCache(IDirectSpaceProxy remoteSpace)
public void destroy()
destroy
in interface org.springframework.beans.factory.DisposableBean
protected void validate()
protected abstract SpaceCacheConfig getCacheConfig()
public Object getObject()
IJSpace
that is the local cache wrapping the
master proxy set using setSpace(com.j_spaces.core.IJSpace)
.getObject
in interface org.springframework.beans.factory.FactoryBean
public Class<? extends IJSpace> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean
public boolean isSingleton()
true
since this bean is a singleton.isSingleton
in interface org.springframework.beans.factory.FactoryBean
public ServiceDetails[] getServicesDetails()
ServiceDetailsProvider
getServicesDetails
in interface ServiceDetailsProvider
Copyright © GigaSpaces.