@Experimental public class RegionConfig extends CacheElement implements RestfulEndpoint, CorrespondWith<RuntimeRegionInfo>
Java class for region-type complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="region-type">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="region-attributes" type="{http://geode.apache.org/schema/cache}region-attributes-type" maxOccurs="unbounded" minOccurs="0"/>
<element name="index" maxOccurs="unbounded" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<choice minOccurs="0">
<element name="functional">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<attribute name="expression" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="from-clause" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="imports" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
</element>
<element name="primary-key">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<attribute name="field" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
</element>
</choice>
<attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="expression" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="from-clause" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="imports" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="key-index" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="type" default="range">
<simpleType>
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="range"/>
<enumeration value="hash"/>
</restriction>
</simpleType>
</attribute>
</restriction>
</complexContent>
</complexType>
</element>
<element name="entry" maxOccurs="unbounded" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="key">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<choice>
<element name="string" type="{http://geode.apache.org/schema/cache}string-type"/>
<element name="declarable" type="{http://geode.apache.org/schema/cache}declarable-type"/>
</choice>
</restriction>
</complexContent>
</complexType>
</element>
<element name="value">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<choice>
<element name="string" type="{http://geode.apache.org/schema/cache}string-type"/>
<element name="declarable" type="{http://geode.apache.org/schema/cache}declarable-type"/>
</choice>
</restriction>
</complexContent>
</complexType>
</element>
</sequence>
</restriction>
</complexContent>
</complexType>
</element>
<any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
<element name="region" type="{http://geode.apache.org/schema/cache}region-type" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="refid" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Class and Description |
|---|---|
static class |
RegionConfig.Entry
Java class for anonymous complex type.
|
static class |
RegionConfig.Index
Java class for anonymous complex type.
|
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<RegionConfig.Entry> |
entries |
protected java.util.List<RegionConfig.Index> |
indexes |
protected java.lang.String |
name |
static java.lang.String |
REGION_CONFIG_ENDPOINT |
protected RegionAttributesType |
regionAttributes |
protected java.util.List<CacheElement> |
regionElements |
protected java.util.List<RegionConfig> |
regions |
protected java.lang.String |
type |
CLUSTER, groupsURI_CONTEXT, URI_VERSION| Constructor and Description |
|---|
RegionConfig() |
RegionConfig(RegionConfig config) |
RegionConfig(java.lang.String name,
java.lang.String refid) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object that) |
java.util.List<CacheElement> |
getCustomRegionElements()
Gets the list of custom region elements
Currently, users can not create regions with custom region elements using management v2 api.
|
java.lang.String |
getEndpoint()
this returns the URI that display the list of entries.
|
java.util.List<RegionConfig.Entry> |
getEntries()
Gets the value of the entry property.
|
java.lang.String |
getId() |
java.util.List<RegionConfig.Index> |
getIndexes()
Gets the value of the index property.
|
java.lang.String |
getName()
Gets the value of the name property.
|
RegionAttributesType |
getRegionAttributes() |
java.util.List<RegionConfig> |
getRegions()
Gets the list of the sub regions
Currently, users can not create regions with sub regions using management v2 api.
|
java.lang.String |
getType()
Gets the value of the type property.
|
boolean |
isGlobalRuntime() |
void |
setName(java.lang.String value)
Sets the value of the name property.
|
void |
setRegionAttributes(RegionAttributesType regionAttributes) |
void |
setType(RegionType regionType)
Sets the value of the type property.
|
void |
setType(java.lang.String regionType) |
addGroup, exists, findElement, getConfigGroup, getGroup, getGroups, removeElement, setGroupclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIdentityEndPoint, getUrigetRuntimeClass, hasRuntimeInfopublic static final java.lang.String REGION_CONFIG_ENDPOINT
protected RegionAttributesType regionAttributes
protected java.util.List<RegionConfig.Index> indexes
protected java.util.List<RegionConfig.Entry> entries
protected java.util.List<CacheElement> regionElements
protected java.util.List<RegionConfig> regions
protected java.lang.String name
protected java.lang.String type
public RegionConfig()
public RegionConfig(java.lang.String name,
java.lang.String refid)
public RegionConfig(RegionConfig config)
public boolean isGlobalRuntime()
isGlobalRuntime in interface CorrespondWith<RuntimeRegionInfo>public java.lang.String getEndpoint()
RestfulEndpointgetEndpoint in interface RestfulEndpointpublic RegionAttributesType getRegionAttributes()
public void setRegionAttributes(RegionAttributesType regionAttributes)
public java.util.List<RegionConfig.Index> getIndexes()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the index property.
For example, to add a new item, do as follows:
getIndexes().add(newItem);
Objects of the following type(s) are allowed in the list
RegionConfig.Index
public java.util.List<RegionConfig.Entry> getEntries()
public java.util.List<CacheElement> getCustomRegionElements()
public java.util.List<RegionConfig> getRegions()
public java.lang.String getName()
Stringpublic void setName(java.lang.String value)
throws java.lang.IllegalArgumentException
Stringjava.lang.IllegalArgumentExceptionpublic java.lang.String getType()
Stringpublic void setType(RegionType regionType)
Stringpublic void setType(java.lang.String regionType)
public java.lang.String getId()
getId in interface org.apache.geode.lang.Identifiable<java.lang.String>public boolean equals(java.lang.Object that)
equals in class java.lang.Object