GigaSpaces XAP 7.0 API

org.openspaces.core.space.cache
Class LocalViewSpaceFactoryBean

java.lang.Object
  extended by org.openspaces.core.space.cache.AbstractLocalCacheSpaceFactoryBean
      extended by org.openspaces.core.space.cache.LocalViewSpaceFactoryBean
All Implemented Interfaces:
ServiceDetailsProvider, BeanNameAware, DisposableBean, FactoryBean, InitializingBean

public class LocalViewSpaceFactoryBean
extends AbstractLocalCacheSpaceFactoryBean

The space local view proxy maintains a subset of the master space's data, allowing the client to read distributed data without any remote operations.

Data is streamed into the client view in an implicit manner - as opposed to local cache data (LocalCacheSpaceFactoryBean), that is loaded into the client on- demand, and later updated or evicted.

The local view is defined via a filter (setLocalViews(java.util.List) localViews) - as opposed to the local cache that caches data at the client side only after the data has been read

Author:
kimchy

Field Summary
 
Fields inherited from class org.openspaces.core.space.cache.AbstractLocalCacheSpaceFactoryBean
logger
 
Constructor Summary
LocalViewSpaceFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
          Constructs a new local cache IJSpace based on the master local cache set using AbstractLocalCacheSpaceFactoryBean.setSpace(IJSpace) and a set of properties driving the actual local cache type based on AbstractLocalCacheSpaceFactoryBean.createCacheProperties().
protected  Properties createCacheProperties()
          Creates newly created properties that holds the views set using setLocalViews(java.util.List) locaViews}.
protected  void prepareUrl(SpaceURL spaceURL)
           
 void setLocalViews(List<View<?>> localViews)
          Sets an array of filters/views that define what portion of the data from the master space will be streamed to this local view.
 
Methods inherited from class org.openspaces.core.space.cache.AbstractLocalCacheSpaceFactoryBean
destroy, getBeanName, getObject, getObjectType, getServicesDetails, isSingleton, setBeanName, setProperties, setSpace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalViewSpaceFactoryBean

public LocalViewSpaceFactoryBean()
Method Detail

setLocalViews

public void setLocalViews(List<View<?>> localViews)
Sets an array of filters/views that define what portion of the data from the master space will be streamed to this local view.


afterPropertiesSet

public void afterPropertiesSet()
Description copied from class: AbstractLocalCacheSpaceFactoryBean
Constructs a new local cache IJSpace based on the master local cache set using AbstractLocalCacheSpaceFactoryBean.setSpace(IJSpace) and a set of properties driving the actual local cache type based on AbstractLocalCacheSpaceFactoryBean.createCacheProperties(). Additional properties are applied based on AbstractLocalCacheSpaceFactoryBean.setProperties(java.util.Properties).

Specified by:
afterPropertiesSet in interface InitializingBean
Overrides:
afterPropertiesSet in class AbstractLocalCacheSpaceFactoryBean
See Also:
SpaceFinder.find(com.j_spaces.core.client.SpaceURL,com.j_spaces.core.IJSpace,com.sun.jini.start.LifeCycle)

createCacheProperties

protected Properties createCacheProperties()
Creates newly created properties that holds the views set using setLocalViews(java.util.List) locaViews}.

Specified by:
createCacheProperties in class AbstractLocalCacheSpaceFactoryBean

prepareUrl

protected void prepareUrl(SpaceURL spaceURL)
Overrides:
prepareUrl in class AbstractLocalCacheSpaceFactoryBean

GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.