Returns the actually used priorities.

@return the actually used priorities.
549502
public Priority[] getPriorities() {
        List<Priority> actualPriorities = new ArrayList<Priority>();
        for (String priority : getAvailablePriorities()) {
            if (provider.getNumberOfAnnotations(priority) > 0) {
                actualPriorities.add(Priority.fromString(priority));
            }
        }
        return actualPriorities.toArray(new Priority[actualPriorities.size()]);
    }
817593
def priorities(self):
        
        r_json = self._get_json('priority')
        priorities = [Priority(
            self._options, self._session, raw_priority_json) for raw_priority_json in r_json]
        return priorities
151458
protected function getIndexingPriority()
    {
        $priority = 0;

        if (!empty($this->indexingConfiguration['indexingPriority'])) {
            $priority = (int)$this->indexingConfiguration['indexingPriority'];
        }

        return $priority;
    }
1038326
public int getTotalUsedCapacity() {
        int totalCapacity = 0;
        for (Entry<String, ParallelTask> entry : inprogressTaskMap.entrySet()) {
            ParallelTask task = entry.getValue();
            if (task != null)
                totalCapacity += task.capacityUsed();

        }
        return totalCapacity;
    }
148855
public java.util.List<String> getRegionOrder() {
        if (regionOrder == null) {
            regionOrder = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return regionOrder;
    }
862196
public java.util.List<ReservedInstancesOffering> getReservedInstancesOfferings() {
        if (reservedInstancesOfferings == null) {
            reservedInstancesOfferings = new com.amazonaws.internal.SdkInternalList<ReservedInstancesOffering>();
        }
        return reservedInstancesOfferings;
    }
798394
public ResourceUsage getResourceUsage() {
    int totalMapperGrants = 0;
    int totalReducerGrants = 0;
    synchronized (lockObject) {
      for (Map.Entry<Integer, ResourceGrant> entry :
          grantedResources.entrySet()) {
        switch(entry.getValue().getType()) {
        case MAP:
          ++totalMapperGrants;
          break;
        case REDUCE:
          ++totalReducerGrants;
          break;
        case JOBTRACKER:
          // Ignore for now
          break;
        default:
          throw new RuntimeException("Illegal type " +
                                     entry.getValue().getType());
        }
      }
    }
    return new ResourceUsage(totalMapperGrants, totalReducerGrants);
  }
857432
public String getUsage()
    {
        if (usage == null)
        {
            StringBuilder usageSB;

            usageSB = new StringBuilder();
            for (int i = 2; i < lines.size(); i++)
            {
                String line;

                line = lines.get(i);
                if (END_OF_PROPER_USAGE.equals(line))
                {
                    break;
                }

                usageSB.append(line.trim());
                usageSB.append(" ");
            }
            usage = usageSB.toString().trim();
        }
        return usage;
    }
635536
public long getUsed() throws IOException{
    long used = 0;
    FileStatus[] files = listStatus(new Path("/"));
    for(FileStatus file:files){
      used += file.getLen();
    }
    return used;
  }
1044810
public ArrayList<Integer> getVisited() {
    if (0 == (this.registry.length - this.unvisitedCount)) {
      return new ArrayList<Integer>();
    }
    ArrayList<Integer> res = new ArrayList<Integer>(this.registry.length - this.unvisitedCount);
    for (int i = 0; i < this.registry.length; i++) {
      if (ONE == this.registry[i]) {
        res.add(i);
      }
    }
    return res;
  }
1060577
public String getUsage()
    {
        Set<Option> set = new HashSet<>();
        StringBuilder sb = new StringBuilder();
        sb.append("usage: ");
        boolean n1 = false;
        for (Entry<String,List<Option>> e : groups.entrySet())
        {
            if (n1)
            {
                sb.append("|");
            }
            n1 = true;
            sb.append("[");
            boolean n2 = false;
            for (Option opt : e.getValue())
            {
                if (n2)
                {
                    sb.append(" ");
                }
                n2 = true;
                append(sb, opt);
                set.add(opt);
            }
            sb.append("]");
        }
        for (Option opt : map.values())
        {
            if (!set.contains(opt))
            {
                sb.append(" ");
                append(sb, opt);
            }
        }
        for (int ii=0;ii<names.size();ii++)
        {
            sb.append(" <").append(names.get(ii)).append(">");
            if (types.get(ii).isArray())
            {
                sb.append("...");
            }
        }
        return sb.toString();
    }
280180
public function getSortedList()
    {
        $this->addVariables();

        // Find all items that don't have their order specified by the config system
        $unspecified = array_diff($this->names, $this->priorities);

        if (!empty($unspecified)) {
            $this->includeRest($unspecified);
        }

        $sortedList = [];
        foreach ($this->priorities as $itemName) {
            if (isset($this->items[$itemName])) {
                $sortedList[$itemName] = $this->items[$itemName];
            }
        }

        return $sortedList;
    }
652621
public int getThreadsPriority()
    {
        int priority=Thread.NORM_PRIORITY;
        Object o=_pool.getAttribute(__PRIORITY);
        if(o!=null)
        {
            priority=((Integer)o).intValue();
        }
        return priority;
    }
1086662
public function getPriorities()
	{
		// Fetch priorities when the method is called for the first time.
		if ( $this->priorities === null ) {
			$priorities = array();
			$result = $this->api(self::REQUEST_GET, '/rest/api/2/priority', array(), true);

			/* set hash key as custom field id */
			foreach ( $result as $priority ) {
				$priorities[$priority['id']] = $priority;
			}

			$this->priorities = $priorities;
		}

		return $this->priorities;
	}
197904
@Trivial
    private static int getPriority(Converter<?> converter) {
        int value = ConfigConstants.DEFAULT_CONVERTER_PRIORITY;
        //get Priority annotations from class only, not from the super-class
        Priority[] priorities = converter.getClass().getDeclaredAnnotationsByType(Priority.class);
        if (priorities != null && priorities.length > 0) {
            Priority priority = priorities[0];
            value = priority.value();
        }
        return value;
    }
206078
public Iterator<Tuple> getUsed()
    {
    if( usedChanged_)
      {
      // Order to prefer reuse of larger tuples first. By preferring "intact" tuples over post-reduction singletons,
      // we hope to minimize reoccurrence of once-only tuples.
      Collections.sort( used_, tupleSizeDescending_);
      usedChanged_ = false;
      }
    
    return used_.iterator();
    }
1204007
public int getCompletedTasks() {
    int completedTasks = 0;
    for (TaskState taskState : this.taskStates.values()) {
      if (taskState.isCompleted()) {
        completedTasks++;
      }
    }

    return completedTasks;
  }