GigaSpaces XAP 7.1 API

org.openspaces.core.space.cache
Class LocalViewSpaceConfigurer

java.lang.Object
  extended by org.openspaces.core.space.cache.LocalViewSpaceConfigurer
All Implemented Interfaces:
SpaceConfigurer

public class LocalViewSpaceConfigurer
extends Object
implements SpaceConfigurer

A simple configurer helper to create IJSpace local view. The configurer wraps LocalViewSpaceFactoryBean and providing a simpler means to configure it using code.

An example of using it:

 UrlSpaceConfigurer urlSpaceConfigurer = new UrlSpaceConfigurer("/./space").schema("persistent")
          .noWriteLeaseMode(true).lookupGroups(new String[] {"kimchy"});

 LocalViewSpaceConfigurer localViewConfigurer = new LocalViewSpaceConfigurer(urlSpaceConfigurer)
           .addView(new View(SimpleMessage.class, "processed = true"));
 GigaSpace localViewGigaSpace = new GigaSpaceConfigurer(localViewConfigurer).gigaSpace();
 ...
 localViewConfigurer.destroy();
 urlSpaceConfigurer.destroy(); // optional
 

Author:
kimchy

Constructor Summary
LocalViewSpaceConfigurer(IJSpace space)
           
LocalViewSpaceConfigurer(SpaceConfigurer spaceConfigurer)
           
 
Method Summary
 LocalViewSpaceConfigurer addProperty(String name, String value)
           
 LocalViewSpaceConfigurer addView(View view)
           
 void destroy()
           
 IJSpace localView()
           
 IJSpace space()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalViewSpaceConfigurer

public LocalViewSpaceConfigurer(SpaceConfigurer spaceConfigurer)

LocalViewSpaceConfigurer

public LocalViewSpaceConfigurer(IJSpace space)
Method Detail

addProperty

public LocalViewSpaceConfigurer addProperty(String name,
                                            String value)
See Also:
AbstractLocalCacheSpaceFactoryBean.setProperties(java.util.Properties)

addView

public LocalViewSpaceConfigurer addView(View view)

localView

public IJSpace localView()

destroy

public void destroy()

space

public IJSpace space()
Specified by:
space in interface SpaceConfigurer

GigaSpaces XAP 7.1 API

Copyright © GigaSpaces.