Package org.apache.solr.cloud
Class CloudDescriptor
- java.lang.Object
-
- org.apache.solr.cloud.CloudDescriptor
-
public class CloudDescriptor extends Object
SolrCloud metadata attached to aCoreDescriptor
.
-
-
Field Summary
Fields Modifier and Type Field Description static String
NUM_SHARDS
static String
REPLICA_TYPE
-
Constructor Summary
Constructors Constructor Description CloudDescriptor(CoreDescriptor cd, String coreName, Properties props)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCollectionName()
String
getCoreNodeName()
org.apache.solr.common.cloud.Replica.State
getLastPublished()
Integer
getNumShards()
Map<String,String>
getParams()
Optional parameters that can change how a core is created.org.apache.solr.common.cloud.Replica.Type
getReplicaType()
String
getRoles()
String
getShardId()
boolean
hasRegistered()
boolean
isLeader()
void
reload(CloudDescriptor reloadFrom)
boolean
requiresTransactionLog()
void
setCollectionName(String collectionName)
void
setCoreNodeName(String nodeName)
void
setHasRegistered(boolean hasRegistered)
void
setLastPublished(org.apache.solr.common.cloud.Replica.State state)
void
setLeader(boolean isLeader)
void
setNumShards(int numShards)
void
setRoles(String roles)
void
setShardId(String shardId)
-
-
-
Field Detail
-
NUM_SHARDS
public static final String NUM_SHARDS
- See Also:
- Constant Field Values
-
REPLICA_TYPE
public static final String REPLICA_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CloudDescriptor
public CloudDescriptor(CoreDescriptor cd, String coreName, Properties props)
-
-
Method Detail
-
requiresTransactionLog
public boolean requiresTransactionLog()
-
getLastPublished
public org.apache.solr.common.cloud.Replica.State getLastPublished()
-
setLastPublished
public void setLastPublished(org.apache.solr.common.cloud.Replica.State state)
-
isLeader
public boolean isLeader()
-
setLeader
public void setLeader(boolean isLeader)
-
hasRegistered
public boolean hasRegistered()
-
setHasRegistered
public void setHasRegistered(boolean hasRegistered)
-
setShardId
public void setShardId(String shardId)
-
getShardId
public String getShardId()
-
getCollectionName
public String getCollectionName()
-
setCollectionName
public void setCollectionName(String collectionName)
-
getRoles
public String getRoles()
-
setRoles
public void setRoles(String roles)
-
getParams
public Map<String,String> getParams()
Optional parameters that can change how a core is created.
-
getNumShards
public Integer getNumShards()
-
setNumShards
public void setNumShards(int numShards)
-
getCoreNodeName
public String getCoreNodeName()
-
setCoreNodeName
public void setCoreNodeName(String nodeName)
-
reload
public void reload(CloudDescriptor reloadFrom)
-
getReplicaType
public org.apache.solr.common.cloud.Replica.Type getReplicaType()
-
-