Package org.apache.solr.core
Class NodeRoles
- java.lang.Object
-
- org.apache.solr.core.NodeRoles
-
public class NodeRoles extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NodeRoles.Role
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_ROLES_STRING
Roles to be assumed on nodes that don't have roles specified for them at startupstatic String
MODE_ALLOWED
static String
MODE_DISALLOWED
static String
MODE_OFF
static String
MODE_ON
static String
MODE_PREFERRED
static String
NODE_ROLES_PROP
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getRoleMode(NodeRoles.Role role)
Map<NodeRoles.Role,String>
getRoles()
static String
getZNodeForRole(NodeRoles.Role role)
static String
getZNodeForRoleMode(NodeRoles.Role role, String mode)
boolean
isOverseerAllowedOrPreferred()
-
-
-
Field Detail
-
NODE_ROLES_PROP
public static final String NODE_ROLES_PROP
- See Also:
- Constant Field Values
-
DEFAULT_ROLES_STRING
public static final String DEFAULT_ROLES_STRING
Roles to be assumed on nodes that don't have roles specified for them at startup- See Also:
- Constant Field Values
-
MODE_ON
public static final String MODE_ON
- See Also:
- Constant Field Values
-
MODE_OFF
public static final String MODE_OFF
- See Also:
- Constant Field Values
-
MODE_ALLOWED
public static final String MODE_ALLOWED
- See Also:
- Constant Field Values
-
MODE_PREFERRED
public static final String MODE_PREFERRED
- See Also:
- Constant Field Values
-
MODE_DISALLOWED
public static final String MODE_DISALLOWED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NodeRoles
public NodeRoles(String rolesString)
-
-
Method Detail
-
getRoles
public Map<NodeRoles.Role,String> getRoles()
-
getRoleMode
public String getRoleMode(NodeRoles.Role role)
-
isOverseerAllowedOrPreferred
public boolean isOverseerAllowedOrPreferred()
-
getZNodeForRole
public static String getZNodeForRole(NodeRoles.Role role)
-
getZNodeForRoleMode
public static String getZNodeForRoleMode(NodeRoles.Role role, String mode)
-
-