server/src/main/java/com/orientechnologies/orient/server/distributed/ODistributedConfiguration.java
public ROLES getServerRole(final String iServerName) {

    final ODocument servers = configuration.field(SERVERS);
    if (servers == null)
      // DEFAULT: MASTER
      return ROLES.MASTER;

    String role = servers.field(iServerName);
    if (role == null) {
      // DEFAULT: MASTER
      role = servers.field(ALL_WILDCARD);
      if (role == null)
        // DEFAULT: MASTER
        return ROLES.MASTER;
    }

    return ROLES.valueOf(role.toUpperCase(Locale.ENGLISH));
  }
public ROLES getServerRole(final String iServerName) {

    final ODocument servers = configuration.field(SERVERS);
    if (servers == null)
      // DEFAULT: MASTER
      return ROLES.MASTER;

    String role = servers.field(iServerName);
    if (role == null) {
      // DEFAULT: MASTER
      role = servers.field(ALL_WILDCARD);
      if (role == null)
        // DEFAULT: MASTER
        return ROLES.MASTER;
    }

    return ROLES.valueOf(role.toUpperCase(Locale.ENGLISH));
  }
Returns the server role between MASTER (default) and REPLICA.