|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.core.map.MapFactoryBean
public class MapFactoryBean
Base class for different IMap
factories. Uses the referenced space
(using setSpace(com.j_spaces.core.IJSpace)
) in order to build the map interface around
it.
Supports the cluster flag controlling if the map will work with a clustered view of the space
or directly with a cluster member. By default it will work directly with a cluster member if
the space was loaded in embedded mode (as if clustered flag was set to true
), otherwise
it will work with a clustered view.
Field Summary | |
---|---|
protected Log |
logger
|
Constructor Summary | |
---|---|
MapFactoryBean()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
protected IMap |
createMap()
|
Object |
getObject()
|
Class |
getObjectType()
|
protected IJSpace |
getSpace()
|
boolean |
isSingleton()
|
void |
setBeanName(String beanName)
Injected by Spring with the bean name. |
void |
setClustered(Boolean clustered)
Sets the cluster flag controlling if this IMap will work with a clustered
view of the space or directly with a cluster member. |
void |
setCompression(int compression)
Sets the compression level. |
void |
setLocalCacheSupport(LocalCacheSupport localCacheSupport)
If set, will use local cache with this map. |
void |
setSpace(IJSpace space)
Sets the Space the Map will be built on top. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Log logger
Constructor Detail |
---|
public MapFactoryBean()
Method Detail |
---|
public void setSpace(IJSpace space)
protected IJSpace getSpace()
public void setClustered(Boolean clustered)
Sets the cluster flag controlling if this IMap
will work with a clustered
view of the space or directly with a cluster member. By default if this flag is not set it will be set
automatically by this factory. It will be set to true
if the space is an embedded one AND
the space is not a local cache proxy. It will be set to false
otherwise (i.e. the space
is not an embedded space OR the space is a local cache proxy).
clustered
- If the IMap
is going to work with a clustered view of the
space or directly with a cluster memberpublic void setCompression(int compression)
0
.
public void setLocalCacheSupport(LocalCacheSupport localCacheSupport)
public void setBeanName(String beanName)
setBeanName
in interface BeanNameAware
public void afterPropertiesSet()
afterPropertiesSet
in interface InitializingBean
protected IMap createMap()
public Object getObject()
getObject
in interface FactoryBean
public Class getObjectType()
getObjectType
in interface FactoryBean
public boolean isSingleton()
isSingleton
in interface FactoryBean
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |