org.infinispan.config
Class Configuration.QueryConfigurationBean

java.lang.Object
  extended by org.infinispan.config.AbstractConfigurationBean
      extended by org.infinispan.config.Configuration.QueryConfigurationBean
All Implemented Interfaces:
Serializable, Cloneable, CloneableConfigurationComponent, Configuration.IndexingConfig, JAXBUnmarshallable
Enclosing class:
Configuration

public static class Configuration.QueryConfigurationBean
extends AbstractConfigurationBean
implements Configuration.IndexingConfig

Configures indexing of entries in the cache for searching. Note that infinispan-query.jar and its dependencies needs to be available if this option is to be used.

See Also:
Configuration reference, Serialized Form

Field Summary
protected  Boolean enabled
           
protected  Boolean indexLocalOnly
           
 
Fields inherited from class org.infinispan.config.AbstractConfigurationBean
EMPTY_PROPERTIES, log, overriddenConfigurationElements
 
Constructor Summary
Configuration.QueryConfigurationBean()
           
 
Method Summary
 void accept(ConfigurationBeanVisitor v)
           
 Configuration.QueryConfigurationBean clone()
           
 Configuration.IndexingConfig enabled(Boolean enabled)
          If enabled, entries will be indexed when they are added to the cache.
 boolean equals(Object o)
           
protected  boolean hasComponentStarted()
          Tests whether the component this configuration bean intents to configure has already started.
 int hashCode()
           
 Configuration.IndexingConfig indexLocalOnly(Boolean indexLocalOnly)
          If true, only index changes made locally, ignoring remote changes.
 Boolean isEnabled()
           
 Boolean isIndexLocalOnly()
           
 void setEnabled(Boolean enabled)
           
 void setIndexLocalOnly(Boolean indexLocalOnly)
           
 
Methods inherited from class org.infinispan.config.AbstractConfigurationBean
testImmutability, toTypedProperties, toTypedProperties, uc, willUnmarshall
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

enabled

protected Boolean enabled

indexLocalOnly

protected Boolean indexLocalOnly
Constructor Detail

Configuration.QueryConfigurationBean

public Configuration.QueryConfigurationBean()
Method Detail

isEnabled

public Boolean isEnabled()

setEnabled

public void setEnabled(Boolean enabled)

enabled

public Configuration.IndexingConfig enabled(Boolean enabled)
Description copied from interface: Configuration.IndexingConfig
If enabled, entries will be indexed when they are added to the cache. Indexes will be updated as entries change or are removed.

Specified by:
enabled in interface Configuration.IndexingConfig

isIndexLocalOnly

public Boolean isIndexLocalOnly()

setIndexLocalOnly

public void setIndexLocalOnly(Boolean indexLocalOnly)

indexLocalOnly

public Configuration.IndexingConfig indexLocalOnly(Boolean indexLocalOnly)
Description copied from interface: Configuration.IndexingConfig
If true, only index changes made locally, ignoring remote changes. This is useful if indexes are shared across a cluster to prevent redundant indexing of updates.

Specified by:
indexLocalOnly in interface Configuration.IndexingConfig

accept

public void accept(ConfigurationBeanVisitor v)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

hasComponentStarted

protected boolean hasComponentStarted()
Description copied from class: AbstractConfigurationBean
Tests whether the component this configuration bean intents to configure has already started.

Specified by:
hasComponentStarted in class AbstractConfigurationBean
Returns:
true if the component has started; false otherwise.

clone

public Configuration.QueryConfigurationBean clone()
Specified by:
clone in interface CloneableConfigurationComponent
Overrides:
clone in class AbstractConfigurationBean


Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.