MCPcopy Create free account
hub / github.com/apache/solr / getRole

Method getRole

solr/core/src/java/org/apache/solr/core/NodeRoles.java:124–129  ·  view source on GitHub ↗
(String value)

Source from the content-addressed store, hash-verified

122 }
123
124 public static Role getRole(String value) {
125 for (Role role : Role.values()) {
126 if (value.equals(role.roleName)) return role;
127 }
128 throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, "Unknown role: " + value);
129 }
130
131 public abstract Set<String> supportedModes();
132

Callers 1

NodeRolesMethod · 0.95

Calls 2

valuesMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected