get all the hostIds in the partition group where the host with the given host id belongs
@param hostId the given hostId
@return all the hostIds in the partition group
347289
public Set<Integer> getPartitionGroupPeers(int hostId) {
        Set<Integer> peers = Sets.newHashSet();
        for (Partition p : hostsById.get(hostId).partitions) {
            peers.addAll(p.hostIds);
        }
        return peers;
    }
374958
public OvhHostProfile location_pccZone_hostProfile_id_GET(String pccZone, Long id) throws IOException {
		String qPath = "/dedicatedCloud/location/{pccZone}/hostProfile/{id}";
		StringBuilder sb = path(qPath, pccZone, id);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, OvhHostProfile.class);
	}
1222164
public java.util.List<String> getInternetGatewayIds() {
        if (internetGatewayIds == null) {
            internetGatewayIds = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return internetGatewayIds;
    }
255301
public Group findGroupById(String groupId) {
    return createGroupQuery(org.camunda.bpm.engine.impl.context.Context.getCommandContext())
      .groupId(groupId)
      .singleResult();
  }
1328766
public Long getMasterHSId(int partition)
    {
        Preconditions.checkArgument(m_masterHSIds.values().containsAll(m_useHSIds) &&
                                    m_useHSIds.containsAll(m_masterHSIds.values()));
        return m_masterHSIds.get(partition);
    }
749535
@Override
    public long getAllocatedHostObjects(Long bucketId) {
        if (zeroAllocations.containsKey(bucketId))
            return zeroAllocations.get(bucketId).size();
        else
            return 0L;
    }
1241588
public function getHostFromId( $lanInterfaceId, $hostId){
        $service = sprintf( self::API_LAN_BROWSER_HOST, $lanInterfaceId, $hostId);
        $rest = $this->getService( $service);
        $rest->GET();

        return $rest->getResult( models\LAN\LanHost::class);
    }
1349583
@com.fasterxml.jackson.annotation.JsonProperty("ResourceIds")
    public java.util.List<String> getResourceIds() {
        return resourceIds;
    }
1070689
public List<String> getCorporateGroupIds(final String organizationId) {
        final DbOrganization dbOrganization = getOrganization(organizationId);
        return dbOrganization.getCorporateGroupIdPrefixes();
    }
229692
@Nonnull
  @ReturnsMutableCopy
  public ICommonsList <String> getAllUserGroupIDsWithAssignedRole (@Nullable final String sRoleID)
  {
    if (StringHelper.hasNoText (sRoleID))
      return getNone ();

    return getAllMapped (aUserGroup -> aUserGroup.containsRoleID (sRoleID), IUserGroup::getID);
  }
1337242
public java.util.List<String> getAllocationIds() {
        if (allocationIds == null) {
            allocationIds = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return allocationIds;
    }
1201614
public java.util.List<String> getLayerIds() {
        if (layerIds == null) {
            layerIds = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return layerIds;
    }
1252828
private Set<String> getRelatedElementIds(String id) {

        Set<String> result = new HashSet<String>();
        if (id != null) {
            result.add(id);
            String serverId = getServerId(id);

            Iterator<String> it = m_elements.keySet().iterator();
            while (it.hasNext()) {
                String elId = it.next();
                if (elId.startsWith(serverId)) {
                    result.add(elId);
                }
            }

            Iterator<org.opencms.ade.containerpage.client.ui.CmsContainerPageElementPanel> itEl = getAllDragElements().iterator();
            while (itEl.hasNext()) {
                org.opencms.ade.containerpage.client.ui.CmsContainerPageElementPanel element = itEl.next();
                if (element.getId().startsWith(serverId)) {
                    result.add(element.getId());
                }
            }
        }
        return result;
    }
823270
public String getUserID(String globusID) {
        String [] ids = getUserIDs(globusID);
        if (ids != null && ids.length > 0) {
            return ids[0];
        } else {
            return null;
        }
    }
282959
public java.util.List<String> getGroupId() {
        if (groupId == null) {
            groupId = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return groupId;
    }
1264706
public Set<Integer> getPartitionGroupPeersContainHighestPid() {
        // find highest partition
        int hPid = getPartitionCount() -1;

        // find the host that contains the highest partition
        Collection<Integer> hHostIds = getHostIdList(hPid);
        if (hHostIds == null || hHostIds.isEmpty()) {
            return Collections.emptySet();
        }
        int hHostId = hHostIds.iterator().next();
        return getPartitionGroupPeers(hHostId);
    }
1359614
def _get_ids_from_hostname(self, hostname):
        """"""
        results = self.list_hardware(hostname=hostname, mask="id")
        return [result['id'] for result in results]